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

Study methods

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

Bayesian Statistics Introduction

  • 20Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Frequentist vs Bayesian

In Bayesian statistics, what is the primary difference from the frequentist approach regarding the treatment of parameters?

20 questions

  1. 1

    In Bayesian statistics, what is the primary difference from the frequentist approach regarding the treatment of parameters?

    1. A

      Parameters are assumed to be normally distributed across all models.

    2. B

      Parameters are estimated by maximizing the likelihood function.

    3. C

      Parameters are considered fixed but unknown constants.

    4. D

      Parameters are considered random variables with a prior distribution.

    Correct answer
    D

    Parameters are considered random variables with a prior distribution.

    Explanation

    In Bayesian statistics, parameters are treated as random variables with a prior distribution, whereas in frequentist statistics, parameters are fixed but unknown. The other options describe frequentist or general estimation concepts.

  2. 2

    What does the prior distribution represent in Bayesian inference?

    1. A

      The distribution of the parameter after observing data.

    2. B

      The distribution of the data given the parameter.

    3. C

      The belief about the parameter before observing data.

    4. D

      The probability of the data marginalized over the parameter.

    Correct answer
    C

    The belief about the parameter before observing data.

    Explanation

    The prior distribution encodes the initial belief about the parameter before data are observed. The other options refer to the likelihood, posterior, and marginal likelihood respectively.

  3. 3

    What is the posterior distribution in Bayesian statistics?

    1. A

      The distribution of the data before any parameters are considered.

    2. B

      The distribution of the parameter after incorporating observed data.

    3. C

      The distribution of the parameter before seeing any data.

    4. D

      The distribution of future observations given the parameter.

    Correct answer
    B

    The distribution of the parameter after incorporating observed data.

    Explanation

    The posterior distribution updates the prior with data via Bayes' theorem, reflecting the revised belief about the parameter after observing data.

  4. 4

    In Bayesian statistics, what does the term 'conjugate prior' mean?

    1. A

      A prior that is identical to the likelihood function.

    2. B

      A prior that has no influence on the posterior distribution.

    3. C

      A prior that is always uniform over the parameter space.

    4. D

      A prior that makes the posterior belong to the same family as the prior.

    Correct answer
    D

    A prior that makes the posterior belong to the same family as the prior.

    Explanation

    A conjugate prior ensures that the posterior distribution is of the same family as the prior, making computations convenient. For example, a beta prior for Bernoulli data yields a beta posterior.

  5. 5

    Which distribution is a conjugate prior for the parameter of a Bernoulli distribution?

    1. A

      Beta distribution

    2. B

      Gamma distribution

    3. C

      Poisson distribution

    4. D

      Gaussian distribution

    Correct answer
    A

    Beta distribution

    Explanation

    The beta distribution is conjugate for the Bernoulli likelihood, because the posterior is also a beta distribution. The other distributions are not conjugate for Bernoulli.

  6. 6

    If the prior for a Bernoulli probability p is Beta(a, b), and we observe n iid Bernoulli data with sum S = sum of Xi, what is the posterior distribution of p?

    1. A

      Beta(a + S, b + n - S)

    2. B

      Beta(a + n - S, b + S)

    3. C

      Beta(S + 1, n - S + 1)

    4. D

      Beta(a + n, b + S)

    Correct answer
    A

    Beta(a + S, b + n - S)

    Explanation

    The posterior is Beta(a + S, b + n - S) because the likelihood is p^S (1-p)^(n-S) and the prior is proportional to p^(a-1)(1-p)^(b-1), leading to the posterior parameters a+S and b+n-S.

  7. 7

    Which formula is central to updating the prior to the posterior in Bayesian inference?

    1. A

      Central limit theorem

    2. B

      Law of large numbers

    3. C

      Bayes' theorem

    4. D

      Chebyshev's inequality

    Correct answer
    C

    Bayes' theorem

    Explanation

    Bayes' theorem directly relates the posterior to the prior and the likelihood, forming the core of Bayesian inference.

  8. 8

    In the Bayesian context, what does the marginal likelihood (or evidence) represent?

    1. A

      The likelihood evaluated at the posterior mode.

    2. B

      The probability of the parameter given the data.

    3. C

      The integral of the likelihood times the prior over the parameter space.

    4. D

      The maximum value of the likelihood function.

    Correct answer
    C

    The integral of the likelihood times the prior over the parameter space.

    Explanation

    The marginal likelihood is the denominator in Bayes' rule, obtained by integrating the joint distribution (likelihood times prior) over the parameter, ensuring the posterior integrates to one.

  9. 9

    What is the posterior distribution proportional to?

    1. A

      Likelihood alone

    2. B

      Prior alone

    3. C

      Likelihood divided by prior

    4. D

      Likelihood times prior

    Correct answer
    D

    Likelihood times prior

    Explanation

    The posterior is proportional to the product of the likelihood and the prior. The normalizing constant (marginal likelihood) does not depend on the parameter, so for many purposes it can be ignored.

  10. 10

    In the lecture, what is the posterior distribution for the mean theta of iid N(theta,1) data when using an improper uniform prior?

    1. A

      N(0, 1/n)

    2. B

      N(0, 1)

    3. C

      N(Xn_bar, 1)

    4. D

      N(Xn_bar, 1/n)

    Correct answer
    D

    N(Xn_bar, 1/n)

    Explanation

    With an improper uniform prior, the posterior is N(Xn_bar, 1/n), derived by completing the square in the likelihood.

  11. 11

    What is a Maximum a Posteriori (MAP) estimate?

    1. A

      The mean of the posterior distribution.

    2. B

      The mode of the posterior distribution.

    3. C

      The median of the posterior distribution.

    4. D

      The maximum likelihood estimate.

    Correct answer
    B

    The mode of the posterior distribution.

    Explanation

    The MAP estimate is the value of theta that maximizes the posterior density, analogous to the MLE but incorporating the prior.

  12. 12

    What is an uninformative (or non-informative) prior?

    1. A

      A prior that exactly matches the likelihood function.

    2. B

      A prior that attempts to minimize influence on the posterior.

    3. C

      A prior that is always a uniform distribution.

    4. D

      A prior that concentrates all mass at a single value.

    Correct answer
    B

    A prior that attempts to minimize influence on the posterior.

    Explanation

    An uninformative prior is designed to be as objective as possible, exerting minimal influence on the posterior. Uniform priors are one example, but improper priors can also be used.

  13. 13

    When is a prior called 'improper'?

    1. A

      When it is a conjugate prior.

    2. B

      When its integral over the parameter space does not converge to a finite value.

    3. C

      When it is not based on any actual belief.

    4. D

      When it assigns zero probability to all parameter values.

    Correct answer
    B

    When its integral over the parameter space does not converge to a finite value.

    Explanation

    An improper prior is a non-negative function that does not integrate to a finite number (e.g., constant over the real line). It can still yield a proper posterior if the likelihood integrates to a finite value.

  14. 14

    For a Bernoulli parameter p with a uniform prior on [0,1], what is the posterior distribution after observing S successes in n trials?

    1. A

      Beta(S, n-S)

    2. B

      Beta(n-S+1, S+1)

    3. C

      Uniform(0,1)

    4. D

      Beta(S+1, n-S+1)

    Correct answer
    D

    Beta(S+1, n-S+1)

    Explanation

    The uniform prior is Beta(1,1). The posterior is Beta(1+S, 1+n-S) = Beta(S+1, n-S+1).

  15. 15

    What is Jeffrey's prior?

    1. A

      A prior that maximizes the Kullback-Leibler divergence.

    2. B

      A prior proportional to the square root of the Fisher information.

    3. C

      A prior that is conjugate for all exponential families.

    4. D

      A prior that is always uniform.

    Correct answer
    B

    A prior proportional to the square root of the Fisher information.

    Explanation

    Jeffrey's prior is defined as proportional to sqrt(det(I(theta))), where I(theta) is the Fisher information. It is designed to be non-informative and invariant under reparameterization.

  16. 16

    Which property makes Jeffrey's prior especially attractive?

    1. A

      It minimizes the variance of the posterior.

    2. B

      It always yields a proper posterior.

    3. C

      It is the same as a uniform prior in all models.

    4. D

      Invariance under reparameterization.

    Correct answer
    D

    Invariance under reparameterization.

    Explanation

    Jeffrey's prior is invariant under one-to-one transformations of the parameter, so the prior for a transformed parameter is also Jeffrey's prior for that parameterization. This is not true for uniform priors.

  17. 17

    For the Bernoulli model, what is Jeffrey's prior proportional to?

    1. A

      1p(1−p)\frac{1}{\sqrt{p(1-p)}}p(1−p)​1​

    2. B

      1p(1−p)\frac{1}{p(1-p)}p(1−p)1​

    3. C

      p(1−p)p(1-p)p(1−p)

    4. D

      p(1−p)\sqrt{p(1-p)}p(1−p)​

    Correct answer
    A

    1p(1−p)\frac{1}{\sqrt{p(1-p)}}p(1−p)​1​

    Explanation

    The Fisher information for Bernoulli is 1p(1−p)\frac{1}{p(1-p)}p(1−p)1​, so Jeffrey's prior is 1p(1−p)=1p(1−p)\sqrt{\frac{1}{p(1-p)}} = \frac{1}{\sqrt{p(1-p)}}p(1−p)1​​=p(1−p)​1​.

  18. 18

    In the lecture, what is the role of the parameter A in the conjugate beta prior for Bernoulli?

    1. A

      It determines the sample size of the prior.

    2. B

      It sets the prior mean to exactly 0.5.

    3. C

      It is the number of successes observed in the data.

    4. D

      It controls both the location and spread of the prior.

    Correct answer
    D

    It controls both the location and spread of the prior.

    Explanation

    In a Beta(A,A) prior, A controls both the mean (which is 0.5) and the variance; larger A gives a more concentrated prior around 0.5. It does not directly correspond to data counts but influences the prior's shape and strength.

  19. 19

    What does 'completing the square' refer to in Bayesian computation for Gaussian models?

    1. A

      Rewriting the exponent of the product of likelihood and prior to identify a normal posterior.

    2. B

      Finding the mode of the posterior by taking derivatives.

    3. C

      Computing the marginal likelihood by integration.

    4. D

      Deriving the Fisher information matrix.

    Correct answer
    A

    Rewriting the exponent of the product of likelihood and prior to identify a normal posterior.

    Explanation

    Completing the square is used to express the product of Gaussian likelihood and prior as a quadratic form in theta, which reveals the posterior is Gaussian with specific mean and variance.

  20. 20

    In Bayesian inference, what is a key advantage of having a conjugate prior?

    1. A

      The likelihood function becomes linear.

    2. B

      The posterior distribution has a known closed form.

    3. C

      The posterior mode equals the maximum likelihood estimate.

    4. D

      The prior becomes uninformative automatically.

    Correct answer
    B

    The posterior distribution has a known closed form.

    Explanation

    Conjugate priors lead to a posterior that is in the same family, simplifying computation and interpretation. They do not guarantee equivalence to MLE or make priors uninformative.

Question 1 of 20
Question 1 of 20

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent