Automated summary
Performs Bayesian inference and probabilistic modeling for geospatial data, including MCMC, Gaussian processes, and hierarchical models.
Strengths
- Implements full MCMC and variational inference methods
- Supports model comparison via LOO, WAIC, DIC
- Uses Cholesky decomposition for Gaussian processes
- Integrates with PyMC and TensorFlow Probability
Limitations
- Requires advanced probabilistic knowledge
- May be computationally intensive for large datasets
- Gaussian processes limited to moderate dimensions
Best for estimating uncertainty and parameters in complex spatial models with georeferenced data.
Avoid for simple analyses or non-spatial data, or when computation time is severely constrained.
Security analysis
SafeThe skill describes a Bayesian inference library for geospatial data. It includes only import statements, a test command (pytest on a local directory), and no destructive or exfiltration operations. There is no use of curl, shell commands, or disabling of safety measures. The risk is minimal.
No concerns found
How this analysis is madeExamples
Using geo-infer-bayes, fit a Bayesian hierarchical model with partial pooling to the geospatial dataset 'land_use.csv' with priors, run MCMC for 2000 samples, and compute WAIC.Compare a Gaussian process model and a linear Bayesian model on the spatial data using LOO-CV with geo-infer-bayes.name: geo-infer-bayes description: Bayesian inference and probabilistic modeling for geospatial data. Use when building hierarchical models, computing posteriors with PyMC or TFP, performing variational inference, model comparison (LOO/WAIC/DIC), or spatial Gaussian processes. prerequisites: required: - geo-infer-math recommended: - geo-infer-space - geo-infer-data difficulty: advanced estimated_time: 60min examples_dir: ../GEO-INFER-EXAMPLES/examples/
GEO-INFER-BAYES
Instructions
Core Capabilities
- Bayesian inference: Full posterior computation via MCMC and variational methods
- Model comparison: LOO-CV, WAIC, DIC, BIC, AIC (all real implementations)
- Gaussian processes: Cholesky-decomposition GP with multiple kernels
- Hierarchical models: Partial pooling via Cholesky LKJ decomposition
- Prior specification: Jeffreys, reference, unit-information priors
- ELBO computation: Real evidence lower bound (not placeholder)
Key Imports
from geo_infer_bayes.core.bayesian_inference import BayesianModel
from geo_infer_bayes.core.gaussian_process import GaussianProcess
from geo_infer_bayes.core.variational import VariationalInference
from geo_infer_bayes.api.pymc_interface import PyMCInterface
from geo_infer_bayes.api.tfp_interface import TFPInterface
Examples
from geo_infer_bayes.core.bayesian_inference import BayesianModel
model = BayesianModel(prior="normal", likelihood="normal")
posterior = model.fit(data, n_samples=2000)
comparison = model.compare(["model_a", "model_b"], method="loo")
Guidelines
- GP uses Cholesky decomposition (real, not stub)
- TFP interface: real GP + Metropolis-Hastings sampling
- PyMC interface: posterior predictive sampling for predictions
- Variational: real ELBO computation with KL divergence
- Test:
uv run python -m pytest GEO-INFER-BAYES/tests/ -v
Integrations
- ACT → Active Inference belief updating and free energy
- MATH → Spatial statistics feeding Bayesian models
- SPM → Bayesian GLM fitting for parametric maps
- AI → Bayesian hyperparameter optimization
- RISK → Bayesian uncertainty quantification for risk
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/bayesian-inference-for-geospatial-data-mm78nojn/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/bayesian-inference-for-geospatial-data-mm78nojn' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/bayesian-inference-for-geospatial-data-mm78nojn/download' --output '.skill-downloads/bayesian-inference-for-geospatial-data-mm78nojn/SKILL.md.part' && mv '.skill-downloads/bayesian-inference-for-geospatial-data-mm78nojn/SKILL.md.part' '.skill-downloads/bayesian-inference-for-geospatial-data-mm78nojn/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/bayesian-inference-for-geospatial-data-mm78nojn/SKILL.md' && test -s '.skill-downloads/bayesian-inference-for-geospatial-data-mm78nojn/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/geo-infer-bayes' && cp -R '.skill-downloads/bayesian-inference-for-geospatial-data-mm78nojn' '.claude/skills/geo-infer-bayes'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/bayesian-inference-for-geospatial-data-mm78nojn'openskills read 'bayesian-inference-for-geospatial-data-mm78nojn'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/bayesian-inference-for-geospatial-data-mm78nojn/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
Create Interactive Maps with kepler.gl
Data & AI
Create interactive map visualizations and export standalone HTML using the keplergl Python package. Use to plot geospatial data from DataFrames, GeoJSON, or CSV.
Agent-Driven Parameter Optimization
Data & AI
Guide for optimizing configurable systems with a measurable objective, using bounded trials and evidence-based recommendations.
ICP Visitor Outreach
Data & AI
Identify signed-up users matching the ideal customer profile but stalled, and draft personalized outreach to re-engage them.