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:
- Beta prior + Binomial likelihood β Beta posterior (A/B testing)
- Gaussian prior + Gaussian likelihood β Gaussian posterior (Bayesian linear regression)
- Dirichlet prior + Multinomial likelihood β Dirichlet posterior (topic models, LDA)
- 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.
Related questions
- Explain Bayes' theorem and give an ML application.
- What is the Law of Large Numbers? How does it relate to ML?
- Explain the Central Limit Theorem and its assumptions. Why is it important in data science?
- Explain conditional probability and independence. How are they used in Naive Bayes?
- What is the difference between Type I and Type II errors? How do they relate to precision and recall?