Bayesian Inference
- 72Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is inference?
72 questions
- 1
What is inference?
Model answer
Inference is the process of reaching a conclusion about the likelihood of an event occurring or an observable having a particular value.
Explanation
Inference uses available information to form conclusions about events or observations.
- 2
What makes inference Bayesian?
Model answer
Inference is Bayesian when it uses Bayes' theorem to update prior beliefs with observed data and produce posterior beliefs.
Explanation
Bayesian inference combines prior information with likelihood information from data.
- 3
State Bayes' theorem in terms of a prior, likelihood, posterior, and evidence.
Model answer
Bayes' theorem is P(A∣B)=P(B)P(B∣A)P(A), where P(A) is the prior, P(B∣A) is the likelihood, P(A∣B) is the posterior, and P(B) is the evidence.
Explanation
The theorem updates the probability of a hypothesis after observing data.
- 4
How does Bayesian belief updating work over time?
Model answer
A posterior obtained at one time point becomes the prior for the next time point, where it is combined with new sensory evidence to produce a new posterior.
Explanation
This process allows beliefs to be updated iteratively as additional data arrive.
- 5
Why can Bayesian inference be described as combining long-term predictions with on-the-fly estimates?
Model answer
Long-term predictions provide the prior, while current sensory observations provide the likelihood; their combination produces an updated posterior estimate.
Explanation
The prior represents existing knowledge and the likelihood represents evidence available at the current moment.
- 6
In the tennis example, what factors can contribute to a player's prior belief about the ball's location?
Model answer
Relevant factors include the time of day, weather, lighting, wind, knowledge of the opponent, and the opponent's tactics.
Explanation
These sources of previous knowledge shape the player's prediction before new sensory data arrive.
- 7
How do predictive coding and Bayesian brain theories apply Bayesian inference to neural activity?
Model answer
These theories propose that predictions and sensory likelihoods are combined to calculate errors, minimize them, and form stable neural representations.
Explanation
Bayesian inference is proposed as a mechanism for efficient neural models of the world.
- 8
What is the goal of the iterative inferential process in predictive coding?
Model answer
The goal is to construct efficient models of the world that best predict sensory input and produce stable neural representations.
Explanation
Iterative updating improves the match between internal models and sensory observations.
- 9
What question does the chocolate-consumption example raise?
Model answer
It asks whether greater chocolate consumption causes a country to have a greater chance of producing Nobel Prize winners.
Explanation
The example distinguishes an observed correlation from a causal hypothesis.
- 10
What correlation was reported in the chocolate example?
Model answer
Countries with greater annual per-capita chocolate consumption were reported to have more Nobel laureates per ten million inhabitants.
Explanation
The relationship was presented as a correlation between national chocolate consumption and Nobel laureate numbers.
- 11
Why can the chocolate-and-Nobel-Prize question not be answered by deductive logic alone?
Model answer
It concerns a causal hypothesis that must be evaluated using estimates, probabilities, and evidence rather than certain logical deduction.
Explanation
Correlation by itself does not establish that chocolate consumption causes Nobel Prize achievement.
- 12
In the chocolate example, what is the distinction between the presumption and the hypothesis?
Model answer
The presumption is eating chocolate, whereas the possible conclusion or hypothesis is obtaining a Nobel Prize.
Explanation
Bayesian analysis evaluates how probable a conclusion is given a premise.
- 13
How could asking Nobel Prize winners about their chocolate consumption provide a likelihood term?
Model answer
It could estimate the probability of observing a level of chocolate consumption given that a person has won a Nobel Prize, written as P(chocolate∣Nobel Prize).
Explanation
The likelihood describes the probability of the observed evidence under a specified hypothesis.
- 14
How would the chocolate example be organized for Bayesian inference?
Model answer
One must specify the cause and effect, choose a prior probability for the hypothesis, define the likelihood of the chocolate data under that hypothesis, and calculate the posterior.
Explanation
Correctly assigning the roles of cause, effect, prior, and likelihood is a practical modeling decision.
- 15
What is the classical definition of probability?
Model answer
Probability is the ratio of the number of times an event occurs to the total number of trials covering all possible outcomes.
Explanation
This definition treats probability as a relative frequency across repeated trials.
- 16
What is the probability of obtaining one particular side when rolling a fair six-sided die?
Model answer
The probability is 61.
Explanation
There is one favorable side among six equally likely sides.
- 17
What is the probability of obtaining heads or tails when flipping a fair coin?
Model answer
Each outcome has probability 50%, or 21.
Explanation
A fair coin has two equally likely outcomes.
- 18
Why is probability sometimes defined using a limit as the number of trials approaches infinity?
Model answer
The limit formalizes the long-run relative frequency of an outcome as the number of repeated trials N approaches infinity.
Explanation
Although infinitely many trials cannot be performed in practice, the limit gives a rigorous mathematical definition.
- 19
What is frequentist probability?
Model answer
Frequentist probability quantifies the frequency or variability of an outcome across an infinite ensemble of repeated trials.
Explanation
It is based on imagining that the same random experiment is repeated many times.
- 20
What is Bayesian probability?
Model answer
Bayesian probability quantifies uncertainty about whether a conclusion or hypothesis is true given specified premises or assumptions.
Explanation
Unlike frequentist probability, it can describe uncertainty about a hypothesis even when an experiment cannot be repeated many times.
- 21
Why is Bayesian probability useful for events such as whether it will rain tomorrow?
Model answer
Such events may provide only one practical trial, so probability must represent uncertainty about a conclusion rather than long-run frequency alone.
Explanation
Bayesian probability supports reasoning when repeated experiments are unavailable or impossible.
- 22
What is a random variable?
Model answer
A random variable is a function that assigns a real number to each outcome in the sample space of a random process.
Explanation
The assigned numerical value represents the outcome of the random process in a mathematical form.
- 23
What is the sample space for repeatedly flipping a coin when the possible outcomes of each flip are considered?
Model answer
The sample space is the set containing heads and tails.
Explanation
The sample space lists the possible outcomes of the random process.
- 24
How can random variables be classified according to their possible values?
Model answer
Random variables can be discrete or continuous.
Explanation
The classification depends on whether their possible values are countable or vary continuously.
- 25
Why can brain connectivity be treated as a random variable?
Model answer
Connectivity parameters, such as the connection between frontal and parietal areas, can take uncertain numerical values over which probability distributions are defined.
Explanation
Dynamic causal modeling uses probability distributions to represent uncertainty about these connectivity parameters.
- 26
In brain-data analysis, what do Y and θ represent?
Model answer
Y represents observed brain data, while θ represents parameters such as brain connectivity that are inferred from those data.
Explanation
Inferring θ from Y is an inverse problem.
- 27
What does the Bayesian quantity P(θ∣Y) mean in a brain-connectivity problem?
Model answer
It is the probability distribution over a connectivity value θ given the observed brain data Y.
Explanation
The data are the premise, and the connectivity hypothesis is the conclusion.
- 28
What does a normal distribution over a connectivity parameter specify?
Model answer
It specifies the probability distribution's mean, μ, and variance, σ2, for the connectivity parameter.
Explanation
The mean indicates the central estimate and the variance indicates uncertainty around it.
- 29
How are causes and effects used to reinterpret premises and hypotheses in biological systems?
Model answer
Observed data are treated as effects, while unobserved neural sources or connectivity parameters are treated as possible causes of those data.
Explanation
This causal interpretation is especially useful when analyzing brain recordings.
- 30
What do EEG recordings represent in the neural-source example?
Model answer
EEG recordings represent observed electrical activity measured at sensors on the scalp.
Explanation
Different sensor activities reflect the neural activity generated by underlying brain sources.
- 31
What are neural sources in the EEG example?
Model answer
Neural sources are brain areas or networks whose activity generates the EEG signals observed at the sensors.
Explanation
The example includes multiple connected sources contributing to the recorded data.
- 32
Why is inferring neural causes from observed brain data an ill-posed problem?
Model answer
It is ill-posed because multiple different neural configurations or connectivity patterns can produce the same or similar observed data, so there is no unique solution.
Explanation
The mapping from causes to effects is not one-to-one.
- 33
What is the difference between a forward probability and an inverse probability?
Model answer
A forward probability describes an effect given a cause, P(B∣A), whereas an inverse probability describes a cause given an observed effect, P(A∣B).
Explanation
Bayes' theorem connects these two directions of probabilistic reasoning.
- 34
Why might several neural configurations produce the same pattern of brain data?
Model answer
Different combinations of neural sources and interactions can generate similar activity patterns, such as similar frontal or occipital rhythms.
Explanation
This many-to-one relationship creates ambiguity when inferring causes from effects.
- 35
What does the joint probability P(A,B) represent?
Model answer
It represents the probability that outcomes A and B occur together.
Explanation
The joint probability is the basis for expressing conditional probabilities through the product rule.
- 36
What does the normalization rule state?
Model answer
The probabilities of all mutually exclusive and exhaustive outcomes sum to 1, or 100%.
Explanation
For example, the probabilities of all possible weather outcomes for tomorrow must total one.
- 37
What does the sum rule, or marginalization, state?
Model answer
The probability of B is obtained by summing the joint probability over all possible values of A: P(B)=∑AP(A,B).
Explanation
Marginalization removes the variable A while retaining the probability of B.
- 38
How does the clothing-and-destination example illustrate marginalization?
Model answer
The probability of going to work is found by summing the probabilities of going to work while wearing every possible type of clothing.
Explanation
All clothing outcomes are combined to obtain the marginal probability of the destination.
- 39
State the product rule for two events in both equivalent forms.
Model answer
The joint probability can be written as P(A,B)=P(A∣B)P(B) or as P(A,B)=P(B∣A)P(A).
Explanation
The product rule expresses a joint probability as a conditional probability multiplied by a marginal probability.
- 40
What does the notation P(A∣B) mean?
Model answer
It means the probability of A given that B is known or assumed to have occurred.
Explanation
A conditional probability differs from the marginal probability P(A) because it incorporates information about B.
- 41
How can Bayes' theorem be derived from the product rule?
Model answer
Equating the two product-rule expressions for P(A,B) and rearranging gives P(A∣B)=P(B)P(B∣A)P(A).
Explanation
Bayes' theorem reverses the conditioning direction from P(B∣A) to P(A∣B).
- 42
How is the evidence term P(B) expanded using the sum and product rules?
Model answer
It can be expanded as P(B)=∑AP(A,B)=∑AP(B∣A)P(A).
Explanation
The evidence sums the likelihood-weighted prior over every possible value of A.
- 43
What role does the evidence term play in Bayes' theorem?
Model answer
The evidence normalizes the prior multiplied by the likelihood so that the resulting posterior is a valid probability distribution.
Explanation
It accounts for the probability of the observed data across all possible hypotheses.
- 44
What is the probabilistic measurement model y=β+e intended to represent?
Model answer
It represents an observation y as a true value or parameter β plus measurement noise e.
Explanation
For example, a thermometer reading approximates the true temperature with some error.
- 45
What assumptions are made about the prior in the Gaussian updating example?
Model answer
The prior over β is Gaussian with mean μp and variance αp1.
Explanation
The prior summarizes the initial belief about the true state or temperature.
- 46
What assumptions are made about the likelihood in the Gaussian updating example?
Model answer
The likelihood P(y∣β) is Gaussian over the observation y, with mean β and variance αe1, where the variance represents observation noise.
Explanation
The likelihood describes the uncertainty in measuring y when the true value is β.
- 47
How is the posterior mean formed when the prior and likelihood are Gaussian?
Model answer
The posterior mean is a precision-weighted combination of the prior mean and the observed data: μ=α1(αey+αpμp).
Explanation
A source with greater precision, or inverse variance, has greater influence on the posterior estimate.
- 48
How is posterior precision obtained in the Gaussian updating example?
Model answer
The posterior precision is the sum of the prior and observation precisions: α=αp+αe.
Explanation
Combining independent sources of information increases total precision.
- 49
What does the posterior Gaussian represent in the temperature example?
Model answer
It represents the updated probability distribution for the true temperature β after combining the prior belief with the recorded measurement y.
Explanation
The posterior incorporates both prior uncertainty and measurement uncertainty.
- 50
Why does the more precise of the prior and measurement have greater influence on the posterior mean?
Model answer
Precision is inverse variance, so a smaller uncertainty produces a larger precision weight in the posterior mean.
Explanation
The weighting formula gives more influence to information considered more reliable.
- 51
What is the general linear model used in the numerical example?
Model answer
The model is Y=Xβˉ+ϵ, where Y is the data, X is the design matrix, βˉ is the parameter vector, and ϵ is noise.
Explanation
The design matrix and parameters determine the model prediction, while the noise captures deviations from that prediction.
- 52
What does the design matrix represent in the general linear model?
Model answer
The design matrix contains predictors or covariates used to explain the data; in the example, its first column contains ones for an overall mean and its second column contains varying covariate values.
Explanation
Multiplying the design matrix by the parameter vector produces the model's predicted data.
- 53
What do the two parameters β1 and β2 represent in the two-predictor GLM?
Model answer
They are the two model coefficients associated with the overall-mean predictor and the second covariate in the design matrix.
Explanation
Together, the coefficients determine the line or predicted relationship represented by Xβˉ.
- 54
What does the noise term ϵ represent in the GLM?
Model answer
The noise term represents the deviations or distances between observed data points and the model prediction, and it is assumed to be normally distributed with mean zero and variance σ2.
Explanation
Noise accounts for unexplained variation in the observations.
- 55
What prior is assigned to the parameter vector in the GLM example?
Model answer
The prior is a normal distribution with mean zero for both parameters and a diagonal covariance matrix with variance 1, indicating no prior interaction between the parameters.
Explanation
A diagonal covariance matrix represents independent prior uncertainty for the coefficients.
- 56
What likelihood is assigned to the data in the GLM example?
Model answer
The likelihood is a normal distribution P(Y∣βˉ) with mean Xβˉ and a covariance matrix whose diagonal entries are σ2.
Explanation
The likelihood states that the model predictions explain the data with normally distributed noise.
- 57
Why can the GLM posterior be calculated analytically but approximate inference is still introduced?
Model answer
Because the GLM uses Gaussian densities, its posterior can be derived with pen-and-paper calculations; approximate inference is introduced because the same direct calculation is generally unavailable for nonlinear models.
Explanation
The approximate method is useful beyond the special conjugate Gaussian case.
- 58
What is the main computational difficulty in Bayesian inference for nonlinear models?
Model answer
The evidence integral in the denominator, P(Y), is often intractable and cannot be computed explicitly.
Explanation
Nonlinear models can make marginalizing parameters from the joint density mathematically difficult.
- 59
What is variational Bayes?
Model answer
Variational Bayes is an approximate Bayesian inference method that uses a tractable variational density, such as q(β), to approximate the true posterior.
Explanation
It replaces an intractable posterior calculation with an optimization or approximation problem.
- 60
Why is the logarithm of the model evidence used in approximate inference?
Model answer
The logarithm is used for mathematical and computational convenience when calculating the model evidence.
Explanation
Working with log probabilities often simplifies products and improves numerical handling.
- 61
What is free energy in the context of variational Bayesian inference?
Model answer
Free energy is a lower-bound approximation to the log model evidence.
Explanation
It provides a computable quantity when exact model evidence is unavailable.
- 62
Why is free energy useful for model comparison?
Model answer
Free energy approximates model evidence, allowing alternative models or neural architectures to be compared according to how well they explain the data while accounting for model complexity.
Explanation
In dynamic causal modeling, it can help compare alternative neurobiological mechanisms that may generate observed brain data.
- 63
What does the SPM nonlinear system-identification routine implement?
Model answer
The
SPM NLSI-GNroutine implements approximate Bayesian inference using a variational Bayes algorithm for nonlinear system identification.Explanation
It provides a numerical alternative when Bayes' theorem cannot be evaluated directly by hand.
- 64
What kinds of models can the approximate SPM inference approach handle?
Model answer
It can handle nonlinear models, including dynamic causal models, in addition to general linear models.
Explanation
Its main advantage is applicability beyond cases where exact Gaussian calculations are easy.
- 65
What quantities must be specified when setting up the SPM inference model?
Model answer
The model, data, parameter priors, prior covariance, design matrix, and noise term must be specified.
Explanation
These elements define the likelihood and prior needed for Bayesian inference.
- 66
What is the purpose of the prior mean and prior covariance in the SPM model?
Model answer
The prior mean specifies the initial parameter values, while the prior covariance specifies the uncertainty and possible interactions among those parameters.
Explanation
Together they define the prior probability distribution over the model parameters.
- 67
What does iterative convergence mean in the SPM variational Bayes procedure?
Model answer
It means that successive updates produce changes in free energy below a specified threshold, so the iterative estimation process is stopped.
Explanation
Convergence indicates that the approximate posterior and model evidence estimate have stabilized.
- 68
What are the main outputs of the SPM inference routine?
Model answer
The routine produces approximate posterior estimates for the model parameters and an estimate of free energy or approximate model evidence.
Explanation
These outputs summarize parameter inference and the model's explanatory performance.
- 69
What does the EM label indicate in the SPM output?
Model answer
EM indicates the expectation-maximization form or flavor of the variational Bayes algorithm being used.
Explanation
The algorithm updates estimates through multiple iterative steps.
- 70
How should the posterior parameter values displayed by SPM be interpreted?
Model answer
They are parameter estimates obtained by combining the specified priors with the likelihood supplied by the observed or simulated data.
Explanation
For example, displayed values for the two coefficients are approximate posterior estimates of those parameters.
- 71
What information is shown in the upper SPM plot?
Model answer
The upper plot shows the observed data and the model prediction, which become aligned as the iterative fitting procedure progresses.
Explanation
Agreement between the curves indicates that the model is fitting the data.
- 72
What information is shown in the lower SPM plot?
Model answer
The lower plot displays the posterior values of the model parameters, with separate bars for the two coefficients and their deviations from the prior values.
Explanation
The plot provides a graphical summary of how inference updated the parameters.

Ask anything
We've read this whole study set, so questions about it get the best answers.