1. Home
  2. Explore
  3. Statistics
  4. Bayesian Inference

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Bayesian Inference

  • 84Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Bayesian Foundations
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What is inference?

Tap to flipClick to flipspace

Inference is the process of reaching a conclusion about the likelihood of an event or the value of an observable.

Or swipe the card

84 cards

  1. What is inference?

    Inference is the process of reaching a conclusion about the likelihood of an event or the value of an observable.

  2. What is Bayesian inference?

    Bayesian inference is inference based on Bayes' theorem, which updates prior beliefs using observed data.

  3. What are the three main components of Bayes' theorem?

    The prior, the likelihood, and the posterior.

  4. What is a prior probability?

    A prior probability is the belief about a hypothesis or event before incorporating new observations.

  5. What is a likelihood in Bayesian inference?

    The likelihood is the probability of observing the data under a particular hypothesis or parameter value.

  6. What is a posterior probability?

    A posterior probability is the updated probability obtained by combining a prior belief with observed data through Bayes' theorem.

  7. How does Bayesian belief updating work over time?

    A posterior from one time point becomes the prior for the next time point, where it is combined with new likelihood information.

  8. How does Bayesian inference apply to receiving a tennis ball?

    A player combines a prior prediction about the ball's location with sensory evidence about its current trajectory to form a posterior estimate.

  9. What do the green, red, and dark-outlined ellipsoids represent in the tennis example?

    The green ellipsoid represents the prior, the red ellipsoid represents the likelihood, and the dark-outlined ellipsoid represents the posterior.

  10. What is Bayesian belief updating?

    It is the process in which a previous posterior becomes the new prior and is combined with new evidence to produce another posterior.

  11. How are Bayesian ideas used in predictive coding and Bayesian brain theories?

    These theories propose that predictions and sensory likelihoods are combined to calculate prediction errors and minimize them.

  12. What is the relationship between chocolate consumption and Nobel laureates in the example?

    The example reports a correlation between national per-capita chocolate consumption and the number of Nobel laureates per 101010 million inhabitants.

  13. Why cannot deductive logic determine whether eating chocolate increases the chance of receiving a Nobel Prize?

    The question concerns hypotheses, estimates, and probabilities rather than a logically certain deduction.

  14. What distinction must be made in the chocolate example?

    Eating chocolate is the presumed cause or premise, while receiving a Nobel Prize is the possible hypothesis or conclusion.

  15. How is probability defined as a ratio?

    Probability is the number of times an event is observed divided by the total number of trials covering all possible outcomes.

  16. What is the probability of obtaining one particular side when rolling a fair six-sided die?

    16\frac{1}{6}61​.

  17. What is the probability of heads or tails when flipping a fair coin?

    Each outcome has probability 50%50\%50%, or 12\frac{1}{2}21​.

  18. How can frequentist probability be expressed mathematically?

    It is defined as the limiting relative frequency of an outcome as the number of trials NNN approaches infinity.

  19. Why is the infinite-trial definition of probability impractical in some situations?

    Experiments cannot literally be repeated infinitely, and some events, such as tomorrow's weather, may only provide one relevant trial.

  20. What does frequentist probability quantify?

    Frequentist probability quantifies the variability or frequency of an outcome across an infinite ensemble of repeated trials.

  21. What does Bayesian probability quantify?

    Bayesian probability quantifies uncertainty about whether a conclusion or hypothesis is true given particular premises or assumptions.

  22. What is a random variable?

    A random variable is a function that maps outcomes in a sample space to real numbers.

  23. What is a sample space?

    A sample space, commonly denoted by Ω\OmegaΩ, is the set of all possible outcomes of a random process.

  24. How can repeated coin flipping illustrate a random variable and sample space?

    Coin flipping is the random process, Ω={heads,tails}\Omega = \{\text{heads}, \text{tails}\}Ω={heads,tails} is the sample space, and each observed outcome is mapped to a real-valued probability.

  25. What are the two broad types of random variables?

    Random variables can be discrete or continuous.

  26. How can brain connectivity be treated as a random variable?

    A connectivity parameter, such as the connection between frontal and parietal areas, can be assigned a probability distribution.

  27. In a Bayesian brain-connectivity example, what do YYY and θ\thetaθ represent?

    YYY represents observed brain data, while θ\thetaθ represents an unknown brain-connectivity parameter.

  28. What does the expression p(θ∣Y)p(\theta \mid Y)p(θ∣Y) mean?

    It means the probability distribution of connectivity parameter θ\thetaθ given observed brain data YYY.

  29. What does a normal distribution over a connectivity parameter specify?

    It specifies a mean μ\muμ and variance σ2\sigma^2σ2 for the uncertainty about that parameter.

  30. How are causes and effects used in Bayesian inference for biological systems?

    Neural sources and their connectivity are treated as causes, while recorded brain activity is treated as the effect.

  31. What do EEG recordings represent in the neural-source example?

    EEG recordings YYY represent observed electrical activity measured at sensors on the scalp.

  32. What are neural sources in the EEG example?

    Neural sources are interacting brain areas whose activity and connectivity generate the observed EEG data.

  33. What is the inverse problem in brain modeling?

    It is the problem of inferring hidden neural causes or connectivity from observed brain data.

  34. What is the forward probability?

    The forward probability is the probability of an effect given a specified cause, written as p(B∣A)p(B \mid A)p(B∣A).

  35. What is the inverse probability?

    The inverse probability is the probability of a cause given an observed effect, written as p(A∣B)p(A \mid B)p(A∣B).

  36. Why is inferring neural causes from brain data an ill-posed problem?

    Multiple different neural configurations can produce the same or very similar observed data, so there is no unique solution.

  37. How does a multidimensional connectivity variable differ from a single connectivity variable?

    A multidimensional variable can include several parameters, such as forward and backward connections θ1\theta_1θ1​ and θ2\theta_2θ2​ between two areas.

  38. What is the normalization rule of probability?

    The probabilities of all mutually exclusive and exhaustive outcomes sum to 111.

  39. What is the sum rule, or marginalization rule?

    The probability of BBB is obtained by summing the joint probability over all possible values of AAA: p(B)=∑Ap(A,B)p(B)=\sum_A p(A,B)p(B)=∑A​p(A,B).

  40. How does the clothing-and-work example illustrate marginalization?

    The probability of going to work is the sum of the probabilities of going to work while wearing every possible type of clothing.

  41. What is the product rule of probability?

    The joint probability can be written as p(A,B)=p(A∣B)p(B)=p(B∣A)p(A)p(A,B)=p(A\mid B)p(B)=p(B\mid A)p(A)p(A,B)=p(A∣B)p(B)=p(B∣A)p(A).

  42. What does conditional probability p(A∣B)p(A\mid B)p(A∣B) mean?

    It is the probability of AAA given that BBB is known to be true.

  43. How does Bayes' theorem follow from the product rule?

    Equating the two product-rule expressions for p(A,B)p(A,B)p(A,B) gives p(A∣B)p(B)=p(B∣A)p(A)p(A\mid B)p(B)=p(B\mid A)p(A)p(A∣B)p(B)=p(B∣A)p(A), which can be rearranged to obtain Bayes' theorem.

  44. What is Bayes' theorem in terms of a hypothesis AAA and evidence BBB?

    p(A∣B)=p(B∣A)p(A)p(B)p(A\mid B)=\frac{p(B\mid A)p(A)}{p(B)}p(A∣B)=p(B)p(B∣A)p(A)​

  45. How can the denominator in Bayes' theorem be expanded using marginalization?

    p(B)=∑Ap(A,B)=∑Ap(B∣A)p(A)p(B)=\sum_A p(A,B)=\sum_A p(B\mid A)p(A)p(B)=∑A​p(A,B)=∑A​p(B∣A)p(A)

  46. Which Bayes' theorem term is also called the evidence or model evidence?

    The denominator p(B)p(B)p(B) is the evidence, or marginal likelihood.

  47. How are the prior, likelihood, and posterior identified in p(A∣B)=p(B∣A)p(A)p(B)p(A\mid B)=\frac{p(B\mid A)p(A)}{p(B)}p(A∣B)=p(B)p(B∣A)p(A)​?

    p(A)p(A)p(A) is the prior, p(B∣A)p(B\mid A)p(B∣A) is the likelihood, p(A∣B)p(A\mid B)p(A∣B) is the posterior, and p(B)p(B)p(B) is the evidence.

  48. In the chocolate example, what could serve as the likelihood?

    The amount of chocolate consumed given that a person or country has a Nobel Prize winner.

  49. What is the general measurement model used for the Gaussian update?

    y=β+ey=\beta+ey=β+e, where β\betaβ is the underlying value and eee is measurement noise.

  50. What does the parameter β\betaβ represent in the temperature example?

    β\betaβ represents the true temperature or underlying state being estimated.

  51. What does the noise term eee represent?

    eee represents random observation or measurement error.

  52. What distribution is assumed for the prior over β\betaβ?

    A Gaussian distribution with mean μp\mu_pμp​ and variance 1αp\frac{1}{\alpha_p}αp​1​.

  53. What distribution is assumed for the likelihood p(y∣β)p(y\mid\beta)p(y∣β)?

    A Gaussian distribution over yyy with mean β\betaβ and variance 1αe\frac{1}{\alpha_e}αe​1​.

  54. What does precision mean in the Gaussian model?

    Precision is the inverse of variance; the prior and noise precisions are represented by αp\alpha_pαp​ and αe\alpha_eαe​.

  55. What is the posterior distribution in the Gaussian update?

    The posterior p(β∣y)p(\beta\mid y)p(β∣y) is also Gaussian, with mean μ\muμ and variance 1α\frac{1}{\alpha}α1​.

  56. How is posterior precision calculated in the Gaussian update?

    α=αe+αp\alpha=\alpha_e+\alpha_pα=αe​+αp​

  57. How is the posterior mean calculated in the Gaussian update?

    μ=1α(αey+αpμp)\mu=\frac{1}{\alpha}\left(\alpha_e y+\alpha_p\mu_p\right)μ=α1​(αe​y+αp​μp​)

  58. How does precision affect the Gaussian posterior mean?

    The source with greater precision contributes more strongly to the posterior mean.

  59. What is the general linear model used in the numerical example?

    Y=Xβˉ+ϵY=X\bar{\beta}+\epsilonY=Xβˉ​+ϵ

  60. What do the terms in the general linear model represent?

    YYY is the data, XXX is the design matrix, βˉ\bar{\beta}βˉ​ is the parameter vector, and ϵ\epsilonϵ is random noise.

  61. What is the role of the design matrix in a GLM?

    The design matrix contains predictors or covariates that are linearly combined with model parameters to generate predictions.

  62. What does the noise distribution in the GLM specify?

    The noise is normally distributed with mean 000 and variance σ2\sigma^2σ2.

  63. What do the two parameters β1\beta_1β1​ and β2\beta_2β2​ represent in the two-predictor GLM?

    They are the two model parameters associated with the two columns of the design matrix.

  64. What prior is used for the GLM parameter vector?

    A normal prior with mean zero for both parameters and a diagonal covariance matrix with variance 111 and no parameter interaction.

  65. What likelihood is used for the GLM data?

    The likelihood p(Y∣βˉ)p(Y\mid\bar{\beta})p(Y∣βˉ​) is normal with mean XβˉX\bar{\beta}Xβˉ​ and an observation-noise covariance based on σ2\sigma^2σ2.

  66. Why might approximate Bayesian inference be needed for nonlinear models?

    The evidence integral in the denominator of Bayes' theorem may be intractable and cannot be computed explicitly.

  67. What is variational Bayesian inference?

    It is an approximate inference method that uses a tractable variational density to approximate an otherwise difficult posterior distribution.

  68. What does the variational density q(β)q(\beta)q(β) approximate?

    It approximates the posterior distribution over the parameters, such as p(β∣Y)p(\beta\mid Y)p(β∣Y).

  69. Why are logarithms used in approximate Bayesian inference?

    The logarithm of the evidence is used for mathematical and computational convenience.

  70. What is free energy in this Bayesian context?

    Free energy is a lower-bound approximation to the log model evidence.

  71. Why is free energy useful in dynamic causal modeling?

    It can be used for model comparison and for evaluating alternative neural architectures or neurobiological mechanisms.

  72. What is the main computational challenge in applying Bayes' theorem to nonlinear models?

    Computing the denominator p(Y)p(Y)p(Y) requires marginalizing parameters from the joint distribution, which may be intractable.

  73. What algorithmic approach does SPM use for approximate Bayesian inference?

    SPM uses variational Bayes, including an expectation-maximization-style iterative algorithm.

  74. What does the SPM routine spm_nlsi_GN implement?

    It implements nonlinear system identification using a Gauss-Newton variant of variational Bayesian inference.

  75. What model inputs must be specified for the SPM variational Bayes routine?

    The model, data, prior means, and prior covariance or variance must be specified.

  76. How is the GLM model specified in the SPM example?

    The model prediction is generated by multiplying the design matrix XXX by the parameter vector, with noise added to produce YYY.

  77. What does the simulated design matrix contain in the SPM example?

    It contains a column of ones representing an overall mean and a second column of random covariate values.

  78. What does the SPM routine return after approximate inference?

    It returns posterior estimates for the model parameters and an approximate model evidence called free energy.

  79. Why are multiple steps shown when SPM runs the inference algorithm?

    Variational Bayes is applied iteratively, with each step updating the parameter estimates and free-energy value.

  80. How is convergence identified in the SPM algorithm?

    Convergence occurs when the change in free energy becomes sufficiently small and falls below a specified threshold.

  81. What do the posterior parameter values reported by SPM represent?

    They are approximate Bayesian estimates of the model parameters after combining the prior information with the observed data.

  82. What is shown in the upper SPM output plot?

    The upper plot shows the observed data and the model prediction across iterations or time points.

  83. What is shown in the lower SPM output plot?

    The lower plot shows posterior values for the model parameters as bars.

  84. Why can the SPM approximate-inference approach be useful beyond linear models?

    The approach can be applied to nonlinear models, including dynamic causal models, where direct Bayesian calculations are difficult.

Card 1 of 84
Card 1 of 84

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent