Learn PyINLA

Pick a topic to learn core concepts and how to use them in pyINLA.

Theory

How INLA Works

Understand the Integrated Nested Laplace Approximation and why it's fast for latent Gaussian models.

Understand the method
Theory

Neural Networks vs INLA

Detailed mathematical comparison of Frequentist NNs, Bayesian NNs, and INLA on the same regression problem.

Coming Soon
Families

Likelihoods

Choose a likelihood and link for your response (counts, proportions, survival...).

Explore likelihood families
Transforms

Link Functions

Identity, log, logit and more. How links connect linear predictors to responses.

Explore link functions
Latent terms

Fixed Effects

Add one or more fixed-effect covariates to your model.

Coming Soon
Latent terms

Random Effects

Add iid, group-specific, temporal and spatial components via model['random'].

Coming Soon
Latent terms

The Latent Field

How fixed and random effects combine in the latent field to form the linear predictor.

Coming Soon
Bayesian setup

Priors

Choose priors for fixed effects, hyperparameters and more; configure defaults or overrides.

Coming Soon
Results

Marginal Posteriors

Understand marginal distributions and use utility functions to evaluate, transform, sample, and summarize them.

Coming Soon
Advanced

Posterior Sampling

Draw samples from the joint posterior for derived quantities, predictions, and Monte Carlo integration.

Coming Soon
Results

Predictions & NAs

Generate predictions, handle missing values, and understand how pyINLA treats NAs.

Coming Soon
Model checks

Diagnostics

DIC, WAIC, log marginal likelihood and other tools to compare and assess models.

Coming Soon
Spatial

Creating Meshes & fmesher

Build spatial domains, boundaries and meshes for SPDE models using Python's fmesher wrapper.

Explore mesh building
Spatial

Understanding SPDEs

Matern covariance via SPDE: the math, FEM matrices, precision matrix Q, and how it all connects.

Coming Soon
Spatial

Maps

Download administrative boundaries, build adjacency graphs, and plot posterior values on choropleth maps for Besag/BYM2 models.

Coming Soon
Reference

Defaults

What pyINLA chooses for you, and how to override it.

Coming Soon
Data

Data Collection

Ready-to-use pipelines for collecting weather, boundaries, elevation, and other data for spatial modeling.

Coming Soon