Variational inference vs MCMC.
hardAnswer
- VI: approximate posterior with a simpler family q_φ(θ) (e.g. mean-field Gaussian) by maximizing .
- Advantages: much faster, scales to big data (SVI, mini-batches), differentiable → fits on GPU.
- Weaknesses: biased (limited by family); mean-field VI under-covers uncertainty and drops correlations.
- Use for large-scale problems where speed > accuracy.
- Modern: normalizing flows for richer q.
Check yourself — multiple choice
- Random
- VI: fit simpler q_φ(θ) by maximizing ELBO → fast + scalable + differentiable; biased (limited family, mean-field under-covers); MCMC accurate but slow
- Same as MCMC
- Only for regression
VI: maximize ELBO in family q_φ; fast + biased vs MCMC accurate + slow.
#bayesian#mcmc
Practise Statistics Fundamentals
215 interview questions in this topic.