Back to AI Math Mind Map
中文·English
📐 AI MathID: bayesian-inference

Bayesian Inference

贝叶斯推断
🎯Core Definition
Bayesian inference treats the parameter θ\theta as a random variable and combines the prior p(θ)p(\theta) with the likelihood p(xθ)p(x|\theta) into a posterior distribution: p(θx)=p(xθ)p(θ)p(x)=p(xθ)p(θ)p(xθ)p(θ)dθp(\theta|x) = \frac{p(x|\theta)p(\theta)}{p(x)} = \frac{p(x|\theta)p(\theta)}{\int p(x|\theta)p(\theta)\,d\theta}, i.e. posterior \propto likelihood ×\times prior, where the evidence p(x)p(x) is merely a normalizing constant. Conjugate priors keep the posterior in the same family and analytically tractable: Beta prior + Binomial likelihood → Beta posterior; Normal prior + Normal likelihood → Normal posterior; Gamma prior + Poisson likelihood → Gamma posterior.
💡Use Cases
small-sample estimation, online learning (sequentially reusing the posterior as the next prior), uncertainty quantification (posterior variance = parameter uncertainty), Bayesian neural networks and Bayesian optimization; interviews typically open with the MLE / MAP / posterior comparison.
Key Problems Solved
the frequentist framework only yields point estimates and confidence intervals, with no way to inject prior knowledge or express parameter uncertainty; Bayes gives a full posterior distribution where the prior regularizes small-sample estimates against overfitting. The cost: the posterior integral usually has no closed form — requiring conjugate priors, MCMC, or variational approximations.
🎯5 High-Frequency Exam Points
1
Write the Bayesian posterior formula and explain each term? How does the posterior change with data size?
2
Differences among MLE, MAP and Bayesian inference? What does MAP estimate from the posterior?
3
What is a conjugate prior? Give the Beta-Binomial and Normal-Normal examples.
4
Bayesian advantages over MLE with small samples? How does the prior act as regularization?
5
Approximation methods when the posterior is intractable (MCMC, variational inference, Laplace approximation)?
Updated 2026-08-12
🎯
Test Your Knowledge: Practice Questions for "Bayesian Inference"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardMutual InformationNext CardVariational Inference & ELBO

🔗 More AI Math Knowledge Cards

Adam/AdamW MathBias-Variance DecompositionBootstrapCausal Inference (Rubin)