MLCrack

    PROBABILITY & STATISTICS Β· INTERVIEW QUESTION

    What are conjugate priors? Give examples in Bayesian ML.

    πŸ”΄ advanced Β· Probability Theory

    Hint: The posterior has the same family as the prior when combined with a specific likelihood.

    Answer

    A conjugate prior is a prior distribution that, when combined with a particular likelihood, produces a posterior in the same distribution family. This enables closed-form Bayesian updates.

    Examples:

    1. Beta prior + Binomial likelihood β†’ Beta posterior (A/B testing)
    2. Gaussian prior + Gaussian likelihood β†’ Gaussian posterior (Bayesian linear regression)
    3. Dirichlet prior + Multinomial likelihood β†’ Dirichlet posterior (topic models, LDA)
    4. Gamma prior + Poisson likelihood β†’ Gamma posterior (count data).

    Benefits: analytical tractability, no MCMC needed.

    Limitations: conjugate priors may not represent true beliefs. Non-conjugate cases require variational inference or MCMC. In deep learning, fully Bayesian approaches are rare; MAP with Gaussian prior (= L2 regularization) is common.