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

  • 67Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Bayesian Foundations

What is inference?

67 questions

  1. 1

    What is inference?

    1. A

      The process of repeating an experiment infinitely many times

    2. B

      The process of reaching a conclusion about an event or observable

    3. C

      The process of assigning causes without using any evidence

    4. D

      The process of recording only directly measurable quantities

    Correct answer
    B

    The process of reaching a conclusion about an event or observable

    Explanation

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

  2. 2

    What distinguishes Bayesian inference from inference in general?

    1. A

      It uses Bayes' theorem to update probabilities

    2. B

      It can only be applied to normally distributed variables

    3. C

      It requires that every experiment be repeated infinitely

    4. D

      It avoids using observations when forming conclusions

    Correct answer
    A

    It uses Bayes' theorem to update probabilities

    Explanation

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

  3. 3

    In Bayesian inference, what is a prior probability?

    1. A

      A probability calculated only after all data are collected

    2. B

      A measurement error associated with an observation

    3. C

      A belief about an event before incorporating new data

    4. D

      A probability obtained by summing over all possible outcomes

    Correct answer
    C

    A belief about an event before incorporating new data

    Explanation

    The prior represents the belief about an event before it is updated with current observations.

  4. 4

    What role does the likelihood play in Bayes' theorem?

    1. A

      It represents the initial belief before any observations are available

    2. B

      It represents the sum of probabilities over every possible hypothesis

    3. C

      It represents the final updated belief about the hypothesis

    4. D

      It represents how probable the observed data are under a hypothesis

    Correct answer
    D

    It represents how probable the observed data are under a hypothesis

    Explanation

    The likelihood is the probability of the observed data given a particular hypothesis or parameter value.

  5. 5

    What is the posterior probability?

    1. A

      The probability of an outcome before any experiment is conducted

    2. B

      The updated probability obtained after combining prior beliefs with data

    3. C

      The frequency of an outcome across infinitely many repeated trials

    4. D

      The probability assigned to the measurement noise alone

    Correct answer
    B

    The updated probability obtained after combining prior beliefs with data

    Explanation

    The posterior is the updated belief produced by combining the prior with the likelihood according to Bayes' rule.

  6. 6

    In the tennis example, which information contributes to a player's prior belief about the ball's location?

    1. A

      Weather, time of day, lighting, opponent knowledge, and tactics

    2. B

      The exact posterior computed after the ball has been returned

    3. C

      Only the ball's current sensory position and speed

    4. D

      Only the player's final decision about where to hit

    Correct answer
    A

    Weather, time of day, lighting, opponent knowledge, and tactics

    Explanation

    The prior may reflect contextual knowledge such as weather, lighting, time of day, familiarity with the opponent, and the opponent's tactics.

  7. 7

    In the tennis example, what does the red ellipsoid represent?

    1. A

      The posterior carried forward from an earlier time point

    2. B

      The likelihood based on current sensory evidence

    3. C

      The prior based on long-term contextual experience

    4. D

      The uncertainty caused by the player's motor response

    Correct answer
    B

    The likelihood based on current sensory evidence

    Explanation

    The red ellipsoid represents the likelihood formed from sensory data about the approaching ball.

  8. 8

    What does the dark-outlined ellipsoid in the tennis example represent?

    1. A

      The set of all possible locations of the opponent

    2. B

      The posterior estimate after combining prior and sensory information

    3. C

      The prior estimate before the opponent hits the ball

    4. D

      The raw sensory measurement without prior information

    Correct answer
    B

    The posterior estimate after combining prior and sensory information

    Explanation

    The dark-outlined ellipsoid is the posterior produced by combining the green prior and red likelihood.

  9. 9

    How does Bayesian belief updating operate across successive tennis snapshots?

    1. A

      The posterior is discarded after each individual sensory observation

    2. B

      The posterior from one time point becomes the prior for the next

    3. C

      The likelihood from one time point replaces all later observations

    4. D

      The prior remains fixed while only the opponent's strategy changes

    Correct answer
    B

    The posterior from one time point becomes the prior for the next

    Explanation

    Bayesian updating is iterative: each posterior becomes the prior that is combined with new sensory evidence at the next time point.

  10. 10

    According to predictive-coding and Bayesian-brain theories, what role may Bayesian inference play in neural processing?

    1. A

      It may help combine predictions and likelihoods to calculate and minimize errors

    2. B

      It may guarantee that every neural representation is directly observable

    3. C

      It may prevent neurons from responding to unexpected sensory input

    4. D

      It may replace all sensory input with fixed long-term expectations

    Correct answer
    A

    It may help combine predictions and likelihoods to calculate and minimize errors

    Explanation

    These theories propose that predictions and sensory likelihoods are combined to calculate errors, minimize them, and produce efficient, stable neural representations.

  11. 11

    What relationship was observed in the chocolate-consumption example?

    1. A

      Individuals who won Nobel Prizes were proven to eat more chocolate

    2. B

      Countries with fewer Nobel laureates consumed more chocolate per capita

    3. C

      Chocolate consumption and Nobel laureate numbers showed no association

    4. D

      Countries with greater chocolate consumption had more Nobel laureates per capita

    Correct answer
    D

    Countries with greater chocolate consumption had more Nobel laureates per capita

    Explanation

    The example described a correlation between annual per-capita chocolate consumption and the number of Nobel laureates per 10 million inhabitants.

  12. 12

    What limitation applies to the chocolate-consumption correlation?

    1. A

      It can establish causation through deductive logic alone

    2. B

      It shows that Nobel Prize success prevents chocolate consumption

    3. C

      It does not by itself establish that chocolate causes Nobel Prize success

    4. D

      It proves that chocolate is the only cause of Nobel Prize success

    Correct answer
    C

    It does not by itself establish that chocolate causes Nobel Prize success

    Explanation

    A correlation does not establish a causal relationship. The question of whether chocolate increases Nobel Prize success requires hypotheses, estimates, and probabilities rather than deductive logic alone.

  13. 13

    What is the basic frequentist definition of probability?

    1. A

      The prior belief multiplied by the observed measurement

    2. B

      The number of observed occurrences divided by the total number of trials

    3. C

      The number of possible causes divided by the number of effects

    4. D

      The strength of a conclusion given a particular premise

    Correct answer
    B

    The number of observed occurrences divided by the total number of trials

    Explanation

    Probability can be defined as the ratio of the number of times an event occurs to the total number of trials covering possible outcomes.

  14. 14

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

    1. A

      13\frac{1}{3}31​

    2. B

      12\frac{1}{2}21​

    3. C

      16\frac{1}{6}61​

    4. D

      56\frac{5}{6}65​

    Correct answer
    C

    16\frac{1}{6}61​

    Explanation

    A fair die has six equally likely sides, so the probability of one specified side is 16\frac{1}{6}61​.

  15. 15

    What is the probability of obtaining heads when flipping a fair coin?

    1. A

      25%25\%25%

    2. B

      100%100\%100%

    3. C

      75%75\%75%

    4. D

      50%50\%50%

    Correct answer
    D

    50%50\%50%

    Explanation

    A fair coin has two equally likely outcomes, so heads has probability 12\frac{1}{2}21​, or 50%50\%50%.

  16. 16

    Why is the limit as the number of trials approaches infinity included in a rigorous frequentist definition of probability?

    1. A

      It defines probability through long-run relative frequency

    2. B

      It ensures that Bayesian priors are always equal to likelihoods

    3. C

      It removes the need to specify possible outcomes

    4. D

      It guarantees that every real-world event can be observed infinitely

    Correct answer
    A

    It defines probability through long-run relative frequency

    Explanation

    The frequentist definition treats probability as the limiting relative frequency obtained over an indefinitely large ensemble of trials.

  17. 17

    Why can the frequentist definition be difficult to apply to whether it will rain tomorrow?

    1. A

      Tomorrow's weather may provide only one practically available trial

    2. B

      Weather outcomes cannot be represented as random variables

    3. C

      Frequentist probability requires that the outcome be a neural cause

    4. D

      Rain and snow cannot be included among possible events

    Correct answer
    A

    Tomorrow's weather may provide only one practically available trial

    Explanation

    For a one-time event such as tomorrow's weather, it is not practically possible to repeat the identical experiment infinitely many times.

  18. 18

    What does frequentist probability quantify?

    1. A

      The causal influence of one neural source on another

    2. B

      Variability in outcomes across an infinite ensemble of trials

    3. C

      The precision-weighted average of two Gaussian means

    4. D

      Uncertainty about a conclusion given stated premises

    Correct answer
    B

    Variability in outcomes across an infinite ensemble of trials

    Explanation

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

  19. 19

    What does Bayesian probability quantify?

    1. A

      The exact frequency of an outcome in an infinite ensemble

    2. B

      Uncertainty about a hypothesis given assumptions or premises

    3. C

      The number of outcomes in a sample space before an experiment

    4. D

      The measurement error of an observation independent of a model

    Correct answer
    B

    Uncertainty about a hypothesis given assumptions or premises

    Explanation

    Bayesian probability expresses how certain or uncertain a conclusion or hypothesis is given premises or assumptions.

  20. 20

    What is a random variable?

    1. A

      A fixed number that remains unchanged across every random process

    2. B

      A graphical display of a probability distribution without outcomes

    3. C

      A hypothesis that is accepted whenever an observation is made

    4. D

      A function that assigns a real number to an outcome of a random process

    Correct answer
    D

    A function that assigns a real number to an outcome of a random process

    Explanation

    A random variable maps outcomes in a sample space associated with a random process to real numbers.

  21. 21

    In repeated coin flipping, what is the sample space?

    1. A

      The average of all numerical measurements from the coin

    2. B

      The set containing only the probability of heads

    3. C

      The set containing heads and tails

    4. D

      The number of times the coin is flipped

    Correct answer
    C

    The set containing heads and tails

    Explanation

    For a coin flip, the sample space consists of the possible outcomes heads and tails.

  22. 22

    Which statement correctly compares discrete and continuous random variables?

    1. A

      A discrete variable must always be normally distributed, unlike a continuous variable

    2. B

      A random variable may represent countable outcomes or values over a continuum

    3. C

      A discrete variable cannot be assigned probabilities because it has numerical values

    4. D

      A continuous variable can take only heads-or-tails outcomes, unlike a discrete variable

    Correct answer
    B

    A random variable may represent countable outcomes or values over a continuum

    Explanation

    Random variables can be discrete, with countable outcomes, or continuous, with values across a continuum.

  23. 23

    In dynamic causal modeling, what can be treated as a random variable?

    1. A

      Only the names of the brain regions

    2. B

      Connectivity between brain regions

    3. C

      The fixed number of sensors used to record EEG

    4. D

      The color used to display neural activity

    Correct answer
    B

    Connectivity between brain regions

    Explanation

    Connectivity parameters, such as communication between frontal and parietal areas, can be modeled as random variables.

  24. 24

    In a Bayesian brain-connectivity model, what does P(θ∣Y)P(\theta \mid Y)P(θ∣Y) represent?

    1. A

      The probability of observing YYY before any model is specified

    2. B

      The probability of connectivity parameter θ\thetaθ given brain data YYY

    3. C

      The probability of brain data YYY given no connectivity parameter

    4. D

      The probability that all possible connectivity parameters are identical

    Correct answer
    B

    The probability of connectivity parameter θ\thetaθ given brain data YYY

    Explanation

    The notation P(θ∣Y)P(\theta \mid Y)P(θ∣Y) denotes the Bayesian probability of a connectivity value θ\thetaθ conditional on observed brain data YYY.

  25. 25

    In the brain example, which quantities are analogous to causes and effects?

    1. A

      Both connectivity parameters and recorded data are only measurement errors

    2. B

      Recorded brain data are causes, and connectivity parameters are effects

    3. C

      Neither connectivity parameters nor recorded data can enter a causal model

    4. D

      Connectivity parameters are causes, and recorded brain data are effects

    Correct answer
    D

    Connectivity parameters are causes, and recorded brain data are effects

    Explanation

    Neural connectivity describes the underlying causes or sources, while EEG or other recordings are observable effects generated by those sources.

  26. 26

    Why is inferring neural connectivity from observed brain data often ill-posed?

    1. A

      Neural connectivity is always directly visible in the recorded signal

    2. B

      Multiple neural configurations can produce the same observed data

    3. C

      The data contain no information about neural activity under any model

    4. D

      Every observed pattern has exactly one possible neural configuration

    Correct answer
    B

    Multiple neural configurations can produce the same observed data

    Explanation

    The inverse problem is ill-posed because different configurations of interacting neural sources may generate similar or identical data patterns.

  27. 27

    What does a multidimensional random variable such as θˉ\bar{\theta}θˉ represent in the two-node brain example?

    1. A

      A variable that eliminates uncertainty about all neural connections

    2. B

      A variable containing both forward and backward connection parameters

    3. C

      A variable containing only the observed EEG signal amplitudes

    4. D

      A variable containing only the mean of one connection parameter

    Correct answer
    B

    A variable containing both forward and backward connection parameters

    Explanation

    The multidimensional variable θˉ\bar{\theta}θˉ includes parameters such as the forward connection θ1\theta_1θ1​ and backward connection θ2\theta_2θ2​.

  28. 28

    What is the normalization rule for probabilities?

    1. A

      The probability of every individual outcome must equal 111

    2. B

      The conditional probability must always exceed the marginal probability

    3. C

      The joint probability of two outcomes must always equal 000

    4. D

      The probabilities of all mutually exclusive possible outcomes sum to 111

    Correct answer
    D

    The probabilities of all mutually exclusive possible outcomes sum to 111

    Explanation

    Normalization requires that the probabilities of all possible outcomes together sum to 111, or 100%100\%100%.

  29. 29

    What does the sum rule, or marginalization, accomplish?

    1. A

      It converts every conditional probability into a causal relationship

    2. B

      It obtains the probability of one variable by summing over another variable

    3. C

      It removes the need to define a sample space

    4. D

      It obtains a joint probability by multiplying two unrelated probabilities

    Correct answer
    B

    It obtains the probability of one variable by summing over another variable

    Explanation

    Marginalization obtains a probability such as P(B)P(B)P(B) by summing the joint probability P(A,B)P(A,B)P(A,B) over all possible values of AAA.

  30. 30

    If AAA represents clothing and BBB represents going to work, what does P(B)=∑AP(A,B)P(B)=\sum_A P(A,B)P(B)=∑A​P(A,B) mean?

    1. A

      The probability of going to work is calculated only for wearing jeans

    2. B

      The probability of going to work is independent of every clothing choice

    3. C

      The probability of going to work sums over all possible clothing choices

    4. D

      The probability of each clothing choice equals the probability of going to work

    Correct answer
    C

    The probability of going to work sums over all possible clothing choices

    Explanation

    Summing P(A,B)P(A,B)P(A,B) over all clothing outcomes removes AAA and yields the marginal probability of going to work, P(B)P(B)P(B).

  31. 31

    Which equation expresses the product rule for a joint probability?

    1. A

      P(A,B)=P(A)−P(B)P(A,B)=P(A)-P(B)P(A,B)=P(A)−P(B)

    2. B

      P(A,B)=P(A∣B)+P(B)P(A,B)=P(A\mid B)+P(B)P(A,B)=P(A∣B)+P(B)

    3. C

      P(A,B)=P(A∣B)P(B)P(A,B)=P(A\mid B)P(B)P(A,B)=P(A∣B)P(B)

    4. D

      P(A,B)=P(A)P(B∣A)+1P(A,B)=P(A)P(B\mid A)+1P(A,B)=P(A)P(B∣A)+1

    Correct answer
    C

    P(A,B)=P(A∣B)P(B)P(A,B)=P(A\mid B)P(B)P(A,B)=P(A∣B)P(B)

    Explanation

    The product rule states that P(A,B)=P(A∣B)P(B)P(A,B)=P(A\mid B)P(B)P(A,B)=P(A∣B)P(B), and equivalently P(A,B)=P(B∣A)P(A)P(A,B)=P(B\mid A)P(A)P(A,B)=P(B∣A)P(A).

  32. 32

    What does the vertical bar in P(A∣B)P(A\mid B)P(A∣B) mean?

    1. A

      The probability of AAA independent of BBB

    2. B

      The sum of probabilities for AAA and BBB

    3. C

      The probability of AAA conditional on BBB

    4. D

      The difference between the probabilities of AAA and BBB

    Correct answer
    C

    The probability of AAA conditional on BBB

    Explanation

    The vertical bar means “given,” so P(A∣B)P(A\mid B)P(A∣B) is the probability of AAA given BBB.

  33. 33

    How does a conditional probability differ from a marginal probability?

    1. A

      A conditional probability always describes an unconditional frequency

    2. B

      A marginal probability must contain two variables separated by a vertical bar

    3. C

      A conditional probability depends on another specified event or variable

    4. D

      A marginal probability can only be used for continuous variables

    Correct answer
    C

    A conditional probability depends on another specified event or variable

    Explanation

    A conditional probability, such as P(A∣B)P(A\mid B)P(A∣B), is evaluated given another event, whereas a marginal probability such as P(A)P(A)P(A) is not conditioned on that event.

  34. 34

    Which expression is Bayes' theorem for reversing a conditional probability?

    1. A

      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)​

    2. B

      P(A∣B)=P(B∣A)−P(A)−P(B)P(A\mid B)=P(B\mid A)-P(A)-P(B)P(A∣B)=P(B∣A)−P(A)−P(B)

    3. C

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

    4. D

      P(A∣B)=P(A)+P(B∣A)+P(B)P(A\mid B)=P(A)+P(B\mid A)+P(B)P(A∣B)=P(A)+P(B∣A)+P(B)

    Correct answer
    A

    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)​

    Explanation

    Bayes' theorem follows from the product rule and is given by 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)​.

  35. 35

    How can the denominator P(B)P(B)P(B) in Bayes' theorem be expressed using marginalization?

    1. A

      P(B)=∑AP(B)+P(A)P(B)=\sum_A P(B)+P(A)P(B)=∑A​P(B)+P(A)

    2. B

      P(B)=∏AP(B∣A)P(B)=\prod_A P(B\mid A)P(B)=∏A​P(B∣A)

    3. C

      P(B)=P(A∣B)P(A)P(B)=P(A\mid B)P(A)P(B)=P(A∣B)P(A)

    4. D

      P(B)=∑AP(B∣A)P(A)P(B)=\sum_A P(B\mid A)P(A)P(B)=∑A​P(B∣A)P(A)

    Correct answer
    D

    P(B)=∑AP(B∣A)P(A)P(B)=\sum_A P(B\mid A)P(A)P(B)=∑A​P(B∣A)P(A)

    Explanation

    Using the sum and product rules, 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).

  36. 36

    In Bayes' theorem, what does the denominator generally do?

    1. A

      It removes the likelihood from the posterior calculation

    2. B

      It represents only the measurement noise in the data

    3. C

      It supplies the prior belief before any data are observed

    4. D

      It normalizes the updated probabilities across possible hypotheses

    Correct answer
    D

    It normalizes the updated probabilities across possible hypotheses

    Explanation

    The denominator P(B)P(B)P(B) is the marginal probability of the evidence and ensures that the posterior distribution is properly normalized.

  37. 37

    In the chocolate example, what would P(chocolate∣Nobel)P(\text{chocolate} \mid \text{Nobel})P(chocolate∣Nobel) represent?

    1. A

      The likelihood of chocolate consumption given Nobel Prize status

    2. B

      The prior probability of winning a Nobel Prize before any information

    3. C

      The posterior probability of Nobel Prize status given chocolate consumption

    4. D

      The probability that chocolate consumption and Nobel status are unrelated

    Correct answer
    A

    The likelihood of chocolate consumption given Nobel Prize status

    Explanation

    As described, asking Nobel Prize winners about their chocolate consumption would estimate the likelihood of chocolate consumption given Nobel Prize status.

  38. 38

    In the Gaussian measurement model y=β+ey=\beta+ey=β+e, what does eee represent?

    1. A

      Random observation noise around the underlying value

    2. B

      The design matrix used to explain the measurement

    3. C

      The prior mean of the underlying temperature

    4. D

      The posterior precision of the parameter

    Correct answer
    A

    Random observation noise around the underlying value

    Explanation

    The term eee is random measurement noise, representing the deviation of the recorded value from the underlying parameter β\betaβ.

  39. 39

    In the thermometer example, what does the recorded value represent?

    1. A

      The exact true temperature without any uncertainty

    2. B

      An approximation of the true temperature with measurement error

    3. C

      A prior belief that is independent of the thermometer

    4. D

      A value determined only by the model's design matrix

    Correct answer
    B

    An approximation of the true temperature with measurement error

    Explanation

    A thermometer recording approximates the true temperature, with some error associated with the measurement device.

  40. 40

    What happens when a Gaussian prior is combined with a Gaussian likelihood in the described model?

    1. A

      The posterior must become uniform

    2. B

      The posterior is also Gaussian

    3. C

      The posterior cannot be computed even in the linear case

    4. D

      The posterior becomes a discrete probability over clothing choices

    Correct answer
    B

    The posterior is also Gaussian

    Explanation

    Under the stated Gaussian assumptions, applying Bayes' rule produces another Gaussian distribution for the posterior.

  41. 41

    How is the posterior mean described in the Gaussian updating example?

    1. A

      As a precision-weighted combination of the prior mean and data mean

    2. B

      As the difference between the likelihood variance and prior variance

    3. C

      As the prior mean regardless of the observed data

    4. D

      As the unweighted sum of the prior mean and data mean

    Correct answer
    A

    As a precision-weighted combination of the prior mean and data mean

    Explanation

    The posterior mean combines the prior mean and observed data using their precisions as weights.

  42. 42

    In the Gaussian updating equations, what is precision?

    1. A

      The sum of all possible observations

    2. B

      The probability of the parameter given the data

    3. C

      The square of the mean

    4. D

      The reciprocal of variance

    Correct answer
    D

    The reciprocal of variance

    Explanation

    Precision is represented as the reciprocal of variance, such as 1α\frac{1}{\alpha}α1​ for a variance parameterized by precision α\alphaα.

  43. 43

    Which expression gives the posterior precision in the one-parameter Gaussian example?

    1. A

      α=αe−αp\alpha=\alpha_e-\alpha_pα=αe​−αp​

    2. B

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

    3. C

      α=1αe+αp\alpha=\frac{1}{\alpha_e+\alpha_p}α=αe​+αp​1​

    4. D

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

    Correct answer
    D

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

    Explanation

    The posterior precision is the sum of the likelihood or noise precision and the prior precision: α=αe+αp\alpha=\alpha_e+\alpha_pα=αe​+αp​.

  44. 44

    Which expression describes the posterior mean in the Gaussian example?

    1. A

      μ=1α(y+μp)\mu=\frac{1}{\alpha}(y+\mu_p)μ=α1​(y+μp​)

    2. B

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

    3. C

      μ=αey−αpμp\mu=\alpha_e y-\alpha_p\mu_pμ=αe​y−αp​μp​

    4. D

      μ=α(αey+αpμp)\mu=\alpha(\alpha_e y+\alpha_p\mu_p)μ=α(αe​y+αp​μp​)

    Correct answer
    B

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

    Explanation

    The posterior mean is μ=1α(αey+αpμp)\mu=\frac{1}{\alpha}(\alpha_e y+\alpha_p\mu_p)μ=α1​(αe​y+αp​μp​), a precision-weighted combination of the observation and prior mean.

  45. 45

    What does a larger precision for one source of information imply in the Gaussian update?

    1. A

      That source is ignored because its uncertainty is too small

    2. B

      That source becomes the posterior without normalization

    3. C

      That source forces the posterior variance to increase

    4. D

      That source receives greater weight in determining the posterior mean

    Correct answer
    D

    That source receives greater weight in determining the posterior mean

    Explanation

    Because precision is used as a weight, information with greater precision contributes more strongly to the posterior mean.

  46. 46

    What is the general linear model described in the presentation?

    1. A

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

    2. B

      Y=ϵ−XβˉY=\epsilon-X\bar{\beta}Y=ϵ−Xβˉ​

    3. C

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

    4. D

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

    Correct answer
    C

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

    Explanation

    The general linear model expresses data as Y=Xβˉ+ϵY=X\bar{\beta}+\epsilonY=Xβˉ​+ϵ, where XXX is the design matrix, βˉ\bar{\beta}βˉ​ contains parameters, and ϵ\epsilonϵ is noise.

  47. 47

    In the general linear model, what does XβˉX\bar{\beta}Xβˉ​ represent?

    1. A

      The random measurement noise around each point

    2. B

      The marginal probability of observing the data

    3. C

      The posterior covariance of the parameters

    4. D

      The model's predicted data or linear mean

    Correct answer
    D

    The model's predicted data or linear mean

    Explanation

    The product XβˉX\bar{\beta}Xβˉ​ is the linear model prediction, such as the blue line in the plotted example.

  48. 48

    What does the noise term ϵ\epsilonϵ represent geometrically in the plotted linear model?

    1. A

      The prior mean of both model parameters

    2. B

      The deviation or distance from a data point to the model line

    3. C

      The overall mean represented by the first design-matrix column

    4. D

      The number of observations in the simulated dataset

    Correct answer
    B

    The deviation or distance from a data point to the model line

    Explanation

    The random term ϵ\epsilonϵ represents the deviation of each observed data point from the model's predicted line.

  49. 49

    What distribution is assumed for the noise in the general linear model?

    1. A

      A uniform distribution with mean σ2\sigma^2σ2 and variance zero

    2. B

      A discrete distribution with exactly two possible outcomes

    3. C

      A normal distribution with mean zero and variance σ2\sigma^2σ2

    4. D

      A normal distribution with mean one and variance zero

    Correct answer
    C

    A normal distribution with mean zero and variance σ2\sigma^2σ2

    Explanation

    The model assumes ϵ\epsilonϵ is normally distributed with mean zero and variance σ2\sigma^2σ2.

  50. 50

    What does the first column of the design matrix typically represent in the example?

    1. A

      The observation noise for each participant

    2. B

      The inverse of the likelihood function

    3. C

      An intercept or overall mean

    4. D

      The posterior covariance between parameters

    Correct answer
    C

    An intercept or overall mean

    Explanation

    The first column contains ones and can represent the model's overall mean or intercept.

  51. 51

    What is the purpose of a prior covariance matrix with diagonal entries and zero off-diagonal entries?

    1. A

      It specifies individual parameter uncertainties without prior interaction

    2. B

      It forces all parameters to have identical posterior values

    3. C

      It makes the observations independent of the design matrix

    4. D

      It specifies that every parameter has zero uncertainty

    Correct answer
    A

    It specifies individual parameter uncertainties without prior interaction

    Explanation

    A diagonal covariance matrix indicates separate parameter variances and no prior covariance or interaction between parameters.

  52. 52

    Why is approximate Bayesian inference useful for nonlinear models?

    1. A

      Nonlinear models do not require priors or likelihoods

    2. B

      The evidence integral may be intractable and lack a closed-form calculation

    3. C

      Nonlinear models always have exactly one possible parameter value

    4. D

      Bayes' theorem applies only when variables are discrete

    Correct answer
    B

    The evidence integral may be intractable and lack a closed-form calculation

    Explanation

    For nonlinear models such as dynamic causal models, integrating over parameters to obtain the evidence can be difficult or impossible analytically.

  53. 53

    What is the evidence integral in Bayesian inference?

    1. A

      The likelihood of parameters without reference to observations

    2. B

      The prior probability of parameters before observing data

    3. C

      The marginal probability of the observed data after integrating out parameters

    4. D

      The difference between posterior and prior means

    Correct answer
    C

    The marginal probability of the observed data after integrating out parameters

    Explanation

    The model evidence P(Y)P(Y)P(Y) is obtained by marginalizing the joint probability over parameter values, using an integral for continuous parameters.

  54. 54

    What does variational Bayesian inference do?

    1. A

      It replaces all probabilities with observed frequencies from one trial

    2. B

      It guarantees an exact posterior for every nonlinear model

    3. C

      It computes only the prior and ignores the likelihood

    4. D

      It uses an approximating density to represent an otherwise difficult posterior

    Correct answer
    D

    It uses an approximating density to represent an otherwise difficult posterior

    Explanation

    Variational methods introduce a tractable density, such as q(β)q(\beta)q(β), to approximate the posterior when direct calculation is difficult.

  55. 55

    What is the role of the density q(β)q(\beta)q(β) in variational inference?

    1. A

      It represents only the measurement noise distribution

    2. B

      It is the exact marginal likelihood of the observed data

    3. C

      It specifies the design matrix for a general linear model

    4. D

      It approximates the posterior distribution over the parameter vector

    Correct answer
    D

    It approximates the posterior distribution over the parameter vector

    Explanation

    The variational density q(β)q(\beta)q(β) is chosen to approximate the posterior distribution over parameters.

  56. 56

    Why are logarithms used when calculating approximate model evidence?

    1. A

      They convert every posterior into a frequentist probability

    2. B

      They guarantee that the evidence integral becomes exactly zero

    3. C

      They eliminate the need to specify a likelihood

    4. D

      They make the computations mathematically more convenient

    Correct answer
    D

    They make the computations mathematically more convenient

    Explanation

    The presentation describes taking the logarithm of the evidence for mathematical and computational convenience.

  57. 57

    What is free energy in the described variational framework?

    1. A

      The exact prior probability of the model parameters

    2. B

      The sum of all posterior parameter values

    3. C

      A lower bound or approximation to the log model evidence

    4. D

      The raw measurement noise before model fitting

    Correct answer
    C

    A lower bound or approximation to the log model evidence

    Explanation

    Free energy is described as a lower bound on, and approximation to, the log model evidence.

  58. 58

    Why is free energy useful in dynamic causal modeling?

    1. A

      It proves that one neural configuration is causally true

    2. B

      It replaces all model parameters with fixed random values

    3. C

      It can support model comparison and selection among neural architectures

    4. D

      It removes the need to collect brain data

    Correct answer
    C

    It can support model comparison and selection among neural architectures

    Explanation

    Free energy provides an approximate model evidence that can be used to compare alternative neural architectures or mechanisms.

  59. 59

    What does the SPM routine spm_nlsi_GN implement in the described workflow?

    1. A

      Only the plotting of raw EEG sensor measurements

    2. B

      The construction of a design matrix without parameter estimation

    3. C

      Frequentist probability estimation from coin-flipping trials

    4. D

      Approximate Bayesian inference for nonlinear system identification

    Correct answer
    D

    Approximate Bayesian inference for nonlinear system identification

    Explanation

    The routine is identified as a nonlinear system-identification routine used to implement approximate Bayesian inference with a variational Bayesian algorithm.

  60. 60

    What information must be specified for the model before running the SPM inference routine?

    1. A

      Only the final posterior values and the free-energy threshold

    2. B

      A model function, data, priors, and prior covariance information

    3. C

      A list of conclusions without any likelihood or prior specification

    4. D

      Only the number of observations and the plotting colors

    Correct answer
    B

    A model function, data, priors, and prior covariance information

    Explanation

    The workflow defines the model, observed data, prior parameter values, and prior covariance or uncertainty before running the inference routine.

  61. 61

    In the simulated general linear model, what does the second column of the design matrix represent?

    1. A

      A column of ones representing the overall mean

    2. B

      The posterior probability of each model parameter

    3. C

      A covariate such as age or another demographic measure

    4. D

      The random error associated with every observation

    Correct answer
    C

    A covariate such as age or another demographic measure

    Explanation

    The second column contains covariate values, which could represent age, another demographic variable, or a similar predictor.

  62. 62

    What outputs does the SPM variational inference routine provide?

    1. A

      The exact causal structure without uncertainty estimates

    2. B

      Only the prior means without any updated estimates

    3. C

      Approximate parameter posteriors and free-energy values

    4. D

      Only the original data and the design matrix

    Correct answer
    C

    Approximate parameter posteriors and free-energy values

    Explanation

    The routine produces posterior estimates for model parameters and approximate model evidence represented by free energy.

  63. 63

    Why are multiple iteration steps shown in the SPM command-window output?

    1. A

      The software must repeat the same prior without using new calculations

    2. B

      The model is converted from Bayesian to purely deductive reasoning

    3. C

      Each step represents a different independent experiment with no shared parameters

    4. D

      The variational or expectation-maximization procedure updates estimates iteratively

    Correct answer
    D

    The variational or expectation-maximization procedure updates estimates iteratively

    Explanation

    The algorithm uses an iterative procedure, described as an expectation-maximization flavor of variational Bayes, to update estimates across steps.

  64. 64

    When does the iterative inference procedure converge?

    1. A

      When the likelihood is discarded from the calculation

    2. B

      When the free energy and its change fall below a specified threshold

    3. C

      When every parameter has the same posterior value

    4. D

      When the prior covariance becomes exactly zero

    Correct answer
    B

    When the free energy and its change fall below a specified threshold

    Explanation

    Convergence occurs when the free energy and its change reach sufficiently small values below a chosen threshold.

  65. 65

    What do the reported posterior values such as −0.2595-0.2595−0.2595 and 0.61280.61280.6128 represent?

    1. A

      The prior variances of the two parameters before updating

    2. B

      Estimated values of the model parameters after using priors and data

    3. C

      The number of observations assigned to each participant

    4. D

      The coordinates of the two axes in the plotted data

    Correct answer
    B

    Estimated values of the model parameters after using priors and data

    Explanation

    These values are approximate posterior estimates for the model parameters, obtained from the specified priors and observed data.

  66. 66

    What does the upper plot in the SPM graphical output display?

    1. A

      The posterior probability of every possible neural architecture

    2. B

      Only the prior covariance matrix for the parameters

    3. C

      The likelihood of clothing choices under different work outcomes

    4. D

      The observed data and the model predictions across iterations

    Correct answer
    D

    The observed data and the model predictions across iterations

    Explanation

    The upper plot shows the data and model predictions, which converge and coincide after sufficient iterations in the example.

  67. 67

    What does the lower plot in the SPM graphical output display?

    1. A

      The raw EEG recordings from all sensors

    2. B

      Posterior values for the model parameters relative to their priors

    3. C

      The residual distance from every data point to the model line

    4. D

      The marginal likelihood for every possible observation

    Correct answer
    B

    Posterior values for the model parameters relative to their priors

    Explanation

    The lower plot displays bars for the posterior parameter values or their deviations from the prior values.

Question 1 of 67
Question 1 of 67

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent