Bayesian Inference
Bayesian Inference: From Everyday Prediction to Brain Modeling
Bayesian inference is a framework for reasoning under uncertainty. It helps answer questions such as:
- Given previous knowledge and new evidence, how likely is a hypothesis?
- Given an observed effect, what might have caused it?
- How should a belief change when new data arrive?
The central idea is simple: an existing belief is updated by evidence. The mathematical foundation for this process is Bayes’ theorem.
1. What Inference Means
Inference is the process of reaching a conclusion about something that is not directly known. The conclusion may concern:
- Whether an event is likely to occur
- The value of an unobserved quantity
- The cause of an observed effect
- The parameters of a model
For example, a person may observe dark clouds and infer that rain is likely. A researcher may observe brain activity and infer the neural connections that could have produced it.
Inference does not usually provide absolute certainty. Instead, it represents how plausible different possibilities are given the available information.
Bayesian inference
Bayesian inference uses Bayes’ theorem to update the probability of a hypothesis after observing data.
The general form is:
P(A∣B)=P(B)P(B∣A)P(A)Here:
- A is the hypothesis, cause, or unknown quantity.
- B is the observed evidence or data.
- P(A) is the prior probability: the belief about A before considering the new evidence.
- P(B∣A) is the likelihood: how probable the observed evidence would be if A were true.
- P(A∣B) is the posterior probability: the updated belief about A after considering B.
- P(B) is the model evidence or marginal probability of the data. It normalizes the result so that the posterior probabilities form a valid probability distribution.
The relationship can be summarized as:
Posterior belief = prior belief updated by the likelihood of the observed data.
The denominator, P(B), ensures that the resulting posterior is properly normalized.
2. Bayesian Prediction in Tennis
Bayesian inference is not limited to formal scientific calculations. It also describes ordinary decision-making.
Imagine receiving a tennis ball. The player must predict where the ball will be when it reaches the player’s side of the court. This prediction changes as time passes.
The prior
Before the ball has traveled very far, the player already has expectations about its likely path. These expectations may be influenced by:
- The opponent’s playing style
- Knowledge of the opponent’s usual tactics
- The time of day
- Lighting conditions
- Wind and weather
- The player’s previous experience
These expectations form the prior belief about the ball’s future location.
The prior does not need to be perfectly accurate. It represents the best estimate available before the newest sensory information is taken into account.
The likelihood
As the ball moves, the player receives sensory information from vision and possibly other sources. The current visual input provides evidence about the ball’s position and trajectory.
This evidence contributes the likelihood. It answers the question:
If the ball followed a particular trajectory, how likely would the current sensory data be?
The likelihood reflects the information arriving from the present moment rather than long-term experience.
Combining prior and evidence
The player combines the prior expectation with the current sensory evidence. The resulting estimate is the posterior belief.
In the visual illustration described in the source:
- The green ellipsoid represents the prior estimate.
- The red ellipsoid represents the likelihood from sensory data.
- The dark-outlined ellipsoid represents the posterior estimate.
An ellipsoid is useful here because the estimate may involve uncertainty in several dimensions, such as horizontal position, vertical position, and timing. A larger ellipsoid represents greater uncertainty; a smaller one represents a more precise estimate.
The posterior is therefore not merely the sensory estimate and not merely the prior expectation. It is a compromise determined by both.
Iterative belief updating
Bayesian reasoning continues as new observations arrive. At a later time point, the posterior from the previous moment becomes the new prior:
Previous posterior→new priorThe new prior is then combined with new sensory evidence to produce another posterior:
P(A_t \mid B_t) \] That posterior becomes the prior for the next time point. This process is called **Bayesian belief updating**. The sequence is: 1. Begin with a prior belief. 2. Receive new data. 3. Combine the prior and likelihood. 4. Produce a posterior. 5. Use the posterior as the next prior. 6. Repeat as new data arrive. This allows a player to continuously refine the predicted location of the ball rather than making one fixed prediction. > In sequential Bayesian inference, the posterior from the past becomes the prior for the future. ### Bayesian ideas in theories of brain function Some theories of brain function, including **predictive coding** and the **Bayesian brain theory**, propose that neural systems use a similar process. According to these theories, the brain: 1. Generates predictions about incoming sensory input. 2. Compares predictions with actual sensory input. 3. Calculates prediction errors. 4. Updates its internal representation to reduce those errors. The goal is to form efficient models of the world—models that predict sensory input as accurately as possible. Repeated prediction and updating can produce stable neural representations. The presentation does not develop these theories in detail, but Bayesian inference is presented as a central mathematical idea within them. ### Think About It If a tennis player has strong knowledge of an opponent’s usual shot direction but receives noisy visual information, should the prediction rely more heavily on the prior or on the likelihood? ## 3. Correlation, Hypotheses, and Causal Questions A simple correlation can reveal an interesting relationship, but it does not automatically explain why the relationship exists. One example concerns chocolate consumption and intellectual achievement. Suppose data show that countries with higher annual chocolate consumption also have more Nobel laureates per ten million inhabitants. This creates a positive correlation between: - Chocolate consumption per person - The number of Nobel laureates A tempting conclusion would be that eating more chocolate increases a country’s chances of producing Nobel Prize winners. However, correlation alone cannot establish that causal claim. ### Presumptions and hypotheses The example contains two different roles: - **Presumption or possible cause:** chocolate consumption - **Hypothesis or possible effect:** obtaining a Nobel Prize The question is not simply whether the two variables are related. The deeper question is: > Does increased chocolate consumption increase the probability of obtaining a Nobel Prize? This is a question about uncertainty, hypotheses, and possible causes. It cannot be settled by deductive logic alone because the available information does not logically force a single conclusion. Instead, one must compare hypotheses using probability and evidence. Bayesian inference provides a framework for expressing how strongly the evidence supports a hypothesis, given the assumptions being made. ### Why correlation is not enough A correlation may arise because: - One variable causes the other. - The direction of causation is reversed. - A third variable influences both. - The relationship is coincidental. - The data or measurement process produces the association. Bayesian inference does not remove the need to specify a causal model. The researcher must decide what is being treated as the cause, what is being treated as the effect, and what assumptions connect them. ## 4. The Mathematical Meaning of Probability Probability represents uncertainty or variability, depending on the interpretation being used. For a repeated random experiment, probability can be introduced as a ratio:P(\text{event}) = \frac{\text{number of times the event occurs}} {\text{total number of trials}}
Forexample,afairsix−sideddiegiveseachfacetheprobability:P(\text{one particular face}) = \frac{1}{6}
Forafaircoin:P(\text{heads}) = \frac{1}{2}, \qquad P(\text{tails}) = \frac{1}{2}
Amorerigorousfrequentistdefinitionconsidersthelimitingrelativefrequencyasthenumberoftrialsbecomesarbitrarilylarge:P(A) = \lim_{N \to \infty} \frac{\text{number of occurrences of } A}{N}
In practice, no experiment can literally be repeated infinitely many times. The expression is an ideal mathematical definition rather than a practical instruction to conduct infinitely many trials. ## 5. Frequentist and Bayesian Probability The word “probability” can be interpreted in two important ways. ### Frequentist probability **Frequentist probability** concerns the long-run frequency of an outcome in repeated trials. It treats probability as a property of a random process. For example, the probability of obtaining heads from a fair coin is understood as the long-run proportion of coin flips that produce heads. In this interpretation, probability describes variability across an imagined infinite ensemble of repeated experiments. ### Bayesian probability **Bayesian probability** quantifies uncertainty about a proposition, hypothesis, or unknown quantity given particular premises or evidence. For example: - Premise: observed brain data $Y$ - Hypothesis: a particular connectivity value $\theta$ - Bayesian question: how probable is $\theta$ given $Y$? This is written as:P(\theta \mid Y)
The vertical line means “given.” Thus, $P(\theta \mid Y)$ means the probability of $\theta$ given the observed data $Y$. Bayesian probability is especially useful when only one observation or one real-world event is available. For instance, tomorrow’s weather cannot be rerun under exactly the same conditions infinitely many times. A Bayesian probability can instead express uncertainty about whether it will rain, based on current evidence and prior knowledge. ### Comparing the interpretations | Interpretation | What probability represents | |---|---| | Frequentist | Long-run frequency or variability across repeated trials | | Bayesian | Degree of uncertainty about a hypothesis given premises or evidence | These interpretations use related mathematical rules, but they answer somewhat different conceptual questions. ## 6. Random Variables and Sample Spaces Probabilities are defined over **random variables**. A random variable is a function that assigns a numerical value to the possible outcome of a random process. The outcome does not have to be predictable in advance. Consider flipping a coin. The random process is the act of flipping the coin. The **sample space**, usually written as $\Omega$, is the set of possible outcomes:\Omega = {\text{heads}, \text{tails}}
Arandomvariablecanassignnumericalvaluesorprobabilitiestotheseoutcomes.Forafaircoin:P(\text{heads}) = \frac{1}{2}, \qquad P(\text{tails}) = \frac{1}{2}
Random variables may be: - **Discrete**, with separate countable outcomes such as coin results or die faces - **Continuous**, with values along a continuum such as temperature, position, or a connectivity parameter ### Brain connectivity as a random variable In brain modeling, the strength of a connection between neural areas can be treated as a random variable. Let $\theta$ represent a connectivity parameter, such as the influence of a frontal region on a parietal region. Rather than assuming that $\theta$ has one known value, a probability distribution can express uncertainty about it. For example:P(\theta \mid Y)
describes the probability distribution over possible connectivity values after observing brain data $Y$. A normal distribution may be used:P(\theta \mid Y)
\mathcal{N}(\theta; \mu, \sigma^2)
Here: - $\mu$ is the mean or most central estimated value. - $\sigma^2$ is the variance, representing uncertainty. - A small variance means the estimate is relatively precise. - A large variance means the estimate is more uncertain. ## 7. Causes, Effects, and the Inverse Problem Brain measurements provide observable effects, while neural mechanisms are often treated as hidden causes. For example: - Neural sources generate activity. - Connections between sources determine how activity influences other sources. - Sensors such as EEG electrodes record the resulting signals. Let: - $Y$ represent observed brain data. - $\theta$ represent unknown neural connectivity. The inferential question is:P(\theta \mid Y)
This asks: > Given the brain data that were observed, how probable are different connectivity values? The data $Y$ serve as the premise, and the connectivity $\theta$ is the hypothesis being inferred. ### Forward probability A **forward probability** describes the probability of an effect given a cause:P(Y \mid \theta)
This asks: > If the connectivity were $\theta$, how likely would the observed brain data be? Forward models begin with a proposed mechanism and predict its observable consequences. ### Inverse probability An **inverse probability** describes the probability of a cause given an effect:P(\theta \mid Y)
Thisasks:>Giventheobservedbraindata,whatconnectivitycouldhaveproducedthem?Bayes’theoremconnectstheforwardandinversedirections:P(\theta \mid Y)
\frac{P(Y \mid \theta)P(\theta)} {P(Y)}
### Why the inverse problem is ill-posed Several different neural configurations may produce similar observable data. For example, different combinations of neural sources and connection strengths might generate similar frontal or occipital activity patterns. Therefore, the mapping from causes to effects may not be one-to-one. A single observed effect may be compatible with multiple possible causes. This makes the inverse problem **ill-posed**: there is no guaranteed unique solution. Bayesian inference addresses this ambiguity by combining: - The likelihood, which describes how well each possible cause explains the data - The prior, which expresses how plausible each possible cause was before observing the data The posterior then ranks or weights the possible causes rather than pretending that the data identify one certain cause. ### Multidimensional random variables A model may contain more than one unknown parameter. Suppose two brain areas have a forward connection $\theta_1$ and a backward connection $\theta_2$. Together, these form a parameter vector:\bar{\theta}
\begin{bmatrix} \theta_1 \ \theta_2 \end{bmatrix}
Theprobabilitydistributionisthendefinedoverthismultidimensionalvariable:P(\bar{\theta} \mid Y)
The parameters may have different means, such as $\mu_1$ and $\mu_2$, and their uncertainties may also differ. A covariance matrix can describe both the uncertainty of each parameter and any statistical relationship between them. ### Think About It If several different neural networks can produce similar EEG signals, why would a model need prior information in addition to the observed data? ## 8. Three Fundamental Rules of Probability Bayes’ theorem can be derived from a few basic rules of probability. ### The normalization rule The probabilities of all mutually exclusive and exhaustive outcomes must add to one:\sum_i P(A_i) = 1
For example, tomorrow’s weather might be represented by outcomes such as rain, snow, sunshine, or cloudiness. If those outcomes cover every possibility and do not overlap, their probabilities must sum to $1$. Normalization is necessary because a probability distribution must account for the entire set of possible outcomes. ### The sum rule or marginalization The **sum rule** allows one variable to be eliminated by summing over all its possible values. For two variables $A$ and $B$:P(B) = \sum_A P(A,B)
Forcontinuousvariables,summationisreplacedbyintegration:P(B) = \int P(A,B),dA
Consider $A$ as clothing and $B$ as going to work. The probability of going to work includes every possible clothing choice:P(B)
\sum_{\text{all clothing choices } A} P(A,B)
This process is called **marginalization** because the details of $A$ are removed, leaving the marginal probability of $B$. ### The product rule or conditioning rule The **product rule** expresses a joint probability in terms of a conditional probability:P(A,B) = P(A \mid B)P(B)
Thesamejointprobabilitycanalsobewritteninthereversedirection:P(A,B) = P(B \mid A)P(A)
Therefore:P(A \mid B)P(B)
P(B \mid A)P(A)
The joint probability $P(A,B)$ describes the probability that both events occur together. The product rule breaks that joint probability into a conditional probability and a marginal probability. For example, the probability of wearing jeans and going to work can be written as:P(\text{jeans},\text{work})
P(\text{jeans}\mid\text{work})P(\text{work})
Itcanalsobewrittenas:P(\text{jeans},\text{work})
P(\text{work}\mid\text{jeans})P(\text{jeans})
## 9. Deriving Bayes’ Theorem Start with the two expressions for the joint probability:P(A,B) = P(A \mid B)P(B)
andP(A,B) = P(B \mid A)P(A)
Sincebothexpressionsequalthesamejointprobability,setthemequal:P(A \mid B)P(B)
P(B \mid A)P(A)
Dividing by $P(B)$ gives:P(A \mid B)
\frac{P(B \mid A)P(A)} {P(B)}
This is Bayes’ theorem. The theorem changes the direction of reasoning: - $P(B \mid A)$ goes from a cause or hypothesis to an expected effect. - $P(A \mid B)$ goes from an observed effect back to a possible cause. The denominator can be expanded using the sum rule and product rule:P(B)
\sum_A P(A,B)
andtherefore:P(B)
\sum_A P(B \mid A)P(A)
For continuous $A$, the corresponding expression is:P(B)
\int P(B \mid A)P(A),dA
Thecompleteformistherefore:P(A \mid B)
\frac{P(B \mid A)P(A)} {\sum_A P(B \mid A)P(A)}
fordiscretehypotheses,or:P(A \mid B)
\frac{P(B \mid A)P(A)} {\int P(B \mid A)P(A),dA}
for continuous hypotheses. The denominator considers all possible values of $A$. It answers: > How probable is the observed data overall, after considering every possible explanation? That is why the denominator is called the **model evidence**. ## 10. A Simple Gaussian Bayesian Update A particularly useful case occurs when the prior and likelihood are Gaussian distributions. Suppose a measured value $y$ is related to an unknown parameter $\beta$ by:y = \beta + e
Here: - $\beta$ is the true underlying value. - $e$ is measurement noise. - $y$ is the observed measurement. A temperature example makes this intuitive. The true temperature is $\beta$, while the thermometer records $y$ with some error $e$. ### The Gaussian prior Suppose the prior belief about $\beta$ is:P(\beta)
\mathcal{N} \left( \beta; \mu_p, \frac{1}{\alpha_p} \right)
where: - $\mu_p$ is the prior mean. - $\frac{1}{\alpha_p}$ is the prior variance. - $\alpha_p$ is the prior precision. **Precision** is the inverse of variance:\alpha_p = \frac{1}{\text{prior variance}}
A high precision means low uncertainty. A low precision means high uncertainty. ### The Gaussian likelihood The probability of observing $y$ given $\beta$ is:P(y\mid\beta)
\mathcal{N} \left( y; \beta, \frac{1}{\alpha_e} \right)
where $\alpha_e$ is the precision associated with the observation noise $e$. The likelihood is centered at $\beta$ because the measurement is expected to be close to the true value, with deviations caused by noise. ### The Gaussian posterior Combining the Gaussian prior and Gaussian likelihood produces another Gaussian posterior:P(\beta\mid y)
\mathcal{N} \left( \beta; \mu, \frac{1}{\alpha} \right)
Theposteriorprecisionis:\alpha = \alpha_p + \alpha_e
Theposteriormeanis:\mu
\frac{\alpha_e y + \alpha_p\mu_p} {\alpha_e+\alpha_p}
This is a **precision-weighted combination** of the prior mean and the observed value. The more precise source receives more weight: - If the prior is more precise than the measurement, the posterior remains closer to $\mu_p$. - If the measurement is more precise than the prior, the posterior moves closer to $y$. - If both have equal precision, the posterior lies halfway between them. The posterior is also more precise than either source alone because it incorporates both sources of information. > Bayesian updating does not simply average the prior and the data; it weights each by its reliability. ### Think About It If a thermometer is known to be very noisy but long-term environmental information is reliable, should the posterior temperature estimate be closer to the thermometer reading or to the prior estimate? ## 11. Bayesian Inference in the General Linear Model The Gaussian update can be extended to a **general linear model**, or GLM. The GLM expresses data as:\mathbf{Y}
\mathbf{X}\boldsymbol{\beta} + \boldsymbol{\varepsilon}
where: - $\mathbf{Y}$ is the observed data. - $\mathbf{X}$ is the design matrix. - $\boldsymbol{\beta}$ is a vector of model parameters. - $\boldsymbol{\varepsilon}$ is random noise. The design matrix contains predictors or covariates. For example, one column may contain ones to represent an overall mean, while another column may contain a variable such as age or another demographic measure. ### Geometric interpretation If the data are represented as points on a Cartesian plane, $\mathbf{X}\boldsymbol{\beta}$ gives the model’s predicted line. The residual noise is the distance between each observed point and the model prediction. The noise is commonly modeled as Gaussian:\boldsymbol{\varepsilon} \sim \mathcal{N} \left( \mathbf{0}, \sigma^2\mathbf{I} \right)
Here: - $\mathbf{0}$ is a vector of zero means. - $\sigma^2$ is the noise variance. - $\mathbf{I}$ is the identity matrix, representing equal variance and no modeled covariance between observations. The parameter vector may contain two components:\boldsymbol{\beta}
\begin{bmatrix} \beta_1\ \beta_2 \end{bmatrix}
The first parameter may represent an overall mean, while the second may represent the effect of a covariate. ### Prior over the parameters A Gaussian prior can be placed over the parameter vector:P(\boldsymbol{\beta})
\mathcal{N} \left( \boldsymbol{\beta}; \mathbf{0}, \mathbf{I} \right)
This states that the parameters are initially centered at zero, with unit variance and no prior interaction between the parameters. ### Likelihood of the data The likelihood is:P(\mathbf{Y}\mid\boldsymbol{\beta})
\mathcal{N} \left( \mathbf{Y}; \mathbf{X}\boldsymbol{\beta}, \sigma^2\mathbf{I} \right)
This says that the model predicts the data using $\mathbf{X}\boldsymbol{\beta}$, while the remaining variation is explained by Gaussian noise. The posterior is then:P(\boldsymbol{\beta}\mid\mathbf{Y})
\frac{ P(\mathbf{Y}\mid\boldsymbol{\beta}) P(\boldsymbol{\beta}) }{ P(\mathbf{Y}) }
For simple Gaussian linear models, the posterior can be obtained analytically. However, more complex models—especially nonlinear models such as dynamic causal models—often make the denominator difficult or impossible to calculate directly. ## 12. Why Approximate Bayesian Inference Is Needed The difficult term is the model evidence:P(\mathbf{Y})
\int P(\mathbf{Y}\mid\boldsymbol{\beta}) P(\boldsymbol{\beta}) ,d\boldsymbol{\beta}
This integral averages the likelihood over all possible parameter values, weighted by their prior probabilities. For simple models, the integral may have a closed-form solution. For nonlinear models involving biophysical neural networks, the parameter space can be high-dimensional and complicated. In such cases, exact marginalization is **intractable**, meaning it cannot practically be computed explicitly. Approximate inference methods are used instead. ## 13. Variational Bayes **Variational Bayes** approximates a difficult posterior distribution with a more manageable probability distribution. Let $q(\boldsymbol{\beta})$ be an approximate distribution. The goal is to choose $q$ so that it resembles the true posterior:q(\boldsymbol{\beta}) \approx P(\boldsymbol{\beta}\mid\mathbf{Y})
Rather than calculating the exact posterior directly, the algorithm searches for an approximation that provides a useful representation of it. ### Log model evidence and free energy Computations are often performed using the logarithm of the model evidence:\log P(\mathbf{Y})
The logarithm is mathematically convenient, especially because products become sums after taking logarithms. Variational methods produce a quantity called **variational free energy**, commonly denoted by $F$. It provides a lower bound on the log model evidence:F \leq \log P(\mathbf{Y})
The free energy is therefore used as an approximation to model evidence. A larger free-energy value generally indicates that a model provides a better balance between: - Explaining the observed data - Remaining consistent with its prior assumptions This makes free energy useful for **model comparison**. In dynamic causal modeling, it can help compare alternative neural architectures or competing explanations for brain data. ## 14. Iterative Computation with SPM Software such as SPM can implement approximate Bayesian inference numerically when hand calculations are impractical. For a general nonlinear model, the software needs information such as: - The model that maps parameters to predicted data - The observed data - Prior parameter means - Prior parameter covariance or precision - The model’s noise assumptions - An appropriate inference routine For a general linear model, the model may be represented as:\mathbf{m}(\boldsymbol{\beta})
\mathbf{X}\boldsymbol{\beta}
For a nonlinear model, $\mathbf{m}(\boldsymbol{\beta})$ may instead describe a more complex mapping, such as a biophysical neural network. ### Expectation-maximization style updating The approximate Bayesian algorithm operates iteratively. One implementation uses an **expectation-maximization**, or EM, procedure. The general pattern is: 1. Start with prior parameter estimates. 2. Use the current parameter estimates to evaluate how well the model explains the data. 3. Update the approximate posterior. 4. Recalculate the model evidence or free energy. 5. Repeat until the algorithm converges. Each iteration produces an updated estimate and a corresponding free-energy value. ### Convergence The algorithm stops when the change in free energy becomes sufficiently small:\Delta F
F_{k+1}-F_k
When $\Delta F$ falls below a chosen threshold, further iterations are no longer producing meaningful improvement. The algorithm is then considered to have converged. The resulting outputs include: - Approximate posterior values for the model parameters - Approximate posterior uncertainty - Free energy or approximate model evidence - Iteration and convergence information ### Graphical interpretation The software can display: - Observed data and model predictions - The degree to which the model prediction approaches the data - Posterior parameter values - Deviations of posterior estimates from prior values For a model with two parameters, two plotted bars may represent the posterior estimates for $\beta_1$ and $\beta_2$. Their displacement from the prior values illustrates how the observed data changed the original beliefs. The model-prediction plot provides a complementary view: it shows whether the estimated parameters produce predictions that match the observations. ## 15. Bringing the Ideas Together Bayesian inference connects probability, prediction, and model-based explanation. The complete reasoning process is: 1. A model begins with a prior belief about unknown quantities. 2. The model specifies how those quantities could generate observations. 3. New data are evaluated through the likelihood. 4. Bayes’ theorem combines the prior and likelihood. 5. The result is a posterior distribution. 6. In sequential settings, the posterior becomes the next prior. 7. For difficult models, approximate algorithms estimate the posterior and model evidence. 8. Free energy can support comparisons between competing models. The same structure appears in several settings: - A tennis player predicts a ball’s trajectory. - A scientist evaluates whether a hypothesis is supported by data. - A researcher estimates brain connectivity from EEG recordings. - A neural system updates predictions to reduce sensory errors. - Statistical software estimates model parameters when exact calculations are too difficult. ## Comprehensive Review - **Inference** draws conclusions about uncertain events, values, or causes. - **Bayesian inference** updates prior beliefs using observed evidence. - The prior represents knowledge before new data. - The likelihood measures how probable the observed data are under a hypothesis. - The posterior is the updated belief after incorporating the data. - The model evidence normalizes the posterior and can be used for model comparison. - In sequential inference, an earlier posterior becomes a later prior. - Frequentist probability describes long-run variability across repeated trials. - Bayesian probability describes uncertainty about a hypothesis given premises or evidence. - Random variables represent uncertain outcomes or unknown quantities. - Brain connectivity can be treated as a continuous random variable. - Forward inference evaluates effects given causes: $P(Y\mid\theta)$. - Inverse inference evaluates causes given effects: $P(\theta\mid Y)$. - Inverse problems may be ill-posed because different causes can produce similar effects. - The normalization, sum, and product rules provide the foundations for Bayes’ theorem. - In Gaussian updating, precision determines how strongly each information source influences the posterior. - General linear models express data as a linear prediction plus noise. - Variational Bayes approximates difficult posterior distributions. - Free energy provides a lower bound on log model evidence and supports model comparison. - Iterative software algorithms update parameters until the free energy and its change stabilize. Bayesian inference is ultimately a disciplined method for turning uncertain prior expectations and imperfect observations into updated, quantitative beliefs.
Ask anything
We've read this whole study set, so questions about it get the best answers.