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

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

In Bayesian statistics, how is the parameter θ treated differently from frequentist statistics?

17 questions

  1. 1

    In Bayesian statistics, how is the parameter θ treated differently from frequentist statistics?

    Model answer

    In frequentist statistics, θ is unknown but fixed; in Bayesian statistics, θ is treated as random with a prior distribution.

    Explanation

    This fundamental difference allows Bayesians to incorporate prior beliefs and update them with data to form a posterior distribution.

  2. 2

    State Bayes' theorem in the context of Bayesian inference, identifying the prior, likelihood, and posterior.

    Model answer

    The posterior is proportional to the likelihood times the prior: π(θ∣X)∝p(X∣θ)π(θ)\pi(\theta|X) \propto p(X|\theta) \pi(\theta)π(θ∣X)∝p(X∣θ)π(θ).

    Explanation

    This formula shows how prior beliefs are updated with observed data to form the posterior distribution.

  3. 3

    What is a conjugate prior? Give an example from the lecture.

    Model answer

    A conjugate prior is a prior distribution such that the posterior belongs to the same family. For Bernoulli data, the beta prior is conjugate; the posterior is also beta.

    Explanation

    Conjugate priors simplify computation because the posterior is known to be in the same family, only the parameters change.

  4. 4

    If X1,…,XnX_1,\ldots,X_nX1​,…,Xn​ are iid Bernoulli(p)(p)(p) and p∼Beta(a,a)p \sim \text{Beta}(a,a)p∼Beta(a,a), what are the parameters of the posterior distribution of ppp?

    Model answer

    The posterior is Beta(a+∑Xi, a+n−∑Xi)\text{Beta}(a + \sum X_i,\, a + n - \sum X_i)Beta(a+∑Xi​,a+n−∑Xi​).

    Explanation

    The update adds the number of ones to the first parameter and the number of zeros to the second parameter.

  5. 5

    Write the density of a Beta(a,b)(a,b)(a,b) distribution up to a normalizing constant.

    Model answer

    f(x)∝xa−1(1−x)b−1f(x) \propto x^{a-1}(1-x)^{b-1}f(x)∝xa−1(1−x)b−1 for x∈[0,1]x\in[0,1]x∈[0,1].

    Explanation

    This form is convenient for multiplication with the Bernoulli likelihood, leading to a beta posterior.

  6. 6

    In a Gaussian model with X1,…,Xn∼N(θ,1)X_1,\ldots,X_n \sim \mathcal{N}(\theta,1)X1​,…,Xn​∼N(θ,1) and an uninformative prior (improper uniform), what is the posterior distribution of θ\thetaθ?

    Model answer

    The posterior is N(Xˉn,1/n)\mathcal{N}(\bar{X}_n, 1/n)N(Xˉn​,1/n).

    Explanation

    Completing the square in the exponent shows the posterior is Gaussian centered at the sample mean with variance 1/n1/n1/n.

  7. 7

    If the prior for θ\thetaθ in the Gaussian model is N(μ,1)\mathcal{N}(\mu,1)N(μ,1), what is the posterior?

    Model answer

    The posterior is Gaussian with mean nXˉn+μn+1\frac{n\bar{X}_n + \mu}{n+1}n+1nXˉn​+μ​ and variance 1/(n+1)1/(n+1)1/(n+1).

    Explanation

    This is like adding μ\muμ as an extra observation, so the posterior mean is a weighted average of the sample mean and the prior mean.

  8. 8

    What is an uninformative prior? When might it be improper?

    Model answer

    An uninformative prior gives no preference to any parameter value. It can be improper when it does not integrate to a finite number, e.g., a constant over an unbounded space like R\mathbb{R}R.

    Explanation

    Improper priors are allowed as long as the posterior is proper (normalizable).

  9. 9

    For Bernoulli data with a uniform prior on [0,1][0,1][0,1], what is the posterior distribution?

    Model answer

    The posterior is Beta(1+∑Xi, 1+n−∑Xi)\text{Beta}(1+\sum X_i,\, 1+n-\sum X_i)Beta(1+∑Xi​,1+n−∑Xi​).

    Explanation

    The uniform prior is Beta(1,1), so the posterior updates to Beta with 1 added to the counts.

  10. 10

    How does the posterior mean for Bernoulli data with a uniform prior differ from the MLE?

    Model answer

    The posterior mean is ∑Xi+1n+2\frac{\sum X_i + 1}{n+2}n+2∑Xi​+1​, while the MLE is Xˉn\bar{X}_nXˉn​. The posterior mean adds one success and one failure, avoiding extreme estimates when counts are zero.

    Explanation

    This shrinkage effect is a natural consequence of the prior, preventing estimates of 0 or 1 when data are sparse.

  11. 11

    Define Jeffrey's prior for a parameter θ\thetaθ.

    Model answer

    Jeffrey's prior is proportional to det⁡I(θ)\sqrt{\det I(\theta)}detI(θ)​, where I(θ)I(\theta)I(θ) is the Fisher information.

    Explanation

    It is a systematic, non-informative prior that is invariant under reparameterization.

  12. 12

    What is Jeffrey's prior for a Bernoulli parameter ppp?

    Model answer

    π(p)∝1p(1−p)\pi(p) \propto \frac{1}{\sqrt{p(1-p)}}π(p)∝p(1−p)​1​.

    Explanation

    This prior puts more weight near the boundaries (0 and 1) where the Fisher information is larger.

  13. 13

    Why is Jeffrey's prior called invariant?

    Model answer

    If a model is reparameterized by a one-to-one transformation η=g(θ)\eta = g(\theta)η=g(θ), the Jeffrey's prior for η\etaη is also det⁡I(η)\sqrt{\det I(\eta)}detI(η)​, ensuring consistent inference under different parameterizations.

    Explanation

    This property makes Jeffrey's prior an objective choice that doesn't depend on the arbitrary parameterization.

  14. 14

    In the Gaussian model Xi∼N(θ,1)X_i \sim \mathcal{N}(\theta,1)Xi​∼N(θ,1), what is Jeffrey's prior for θ\thetaθ?

    Model answer

    Jeffrey's prior is constant (improper uniform), because the Fisher information is 111, so 1=1\sqrt{1}=11​=1.

    Explanation

    Thus Jeffrey's prior coincides with the uninformative improper prior in this case.

  15. 15

    What is the MAP estimator? How does it relate to the MLE?

    Model answer

    The MAP estimator is the mode of the posterior distribution. It maximizes π(θ∣X)∝p(X∣θ)π(θ)\pi(\theta|X) \propto p(X|\theta)\pi(\theta)π(θ∣X)∝p(X∣θ)π(θ). When the prior is uniform, MAP equals MLE.

    Explanation

    MAP is a Bayesian point estimator that incorporates prior information.

  16. 16

    Why might a Bayesian prefer to use the entire posterior distribution rather than a single point estimate?

    Model answer

    The posterior captures uncertainty about θ\thetaθ, allowing construction of credible intervals and other summaries beyond a point estimate.

    Explanation

    For example, a wide posterior indicates high uncertainty, while a narrow posterior indicates confidence.

  17. 17

    What role does MCMC play in Bayesian statistics?

    Model answer

    MCMC methods sample from the posterior distribution without computing the normalizing integral, useful when the posterior is complex.

    Explanation

    They exploit ratios of posterior densities, which cancel the normalizing constant.

1 of 17
Question 1 of 17

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent