Mcmc
Terms
-MCMC: class of algorithms that draw samples form a probability distribution.
- Markov Chain: stochastic process that describes a series of events where each event is dependent entirely on the event preceding it.
- Moment: (of a function) quantitative measures related to a function's graph (like x,y graph). So in probability it could have the first moment as the expected value, then the second moment as the variance, and the third moment as the skewness.
- Credible interval: Interval that characterizes probability distribution. Example: where is the probability that a value falls within a range. So if is a value with probability to be between (35,45): the credible interval would be .
- Posterior probability: By applying Baye's rule to update the prior probability. So the posterior probability would everything that can be known about an uncertain proposition (like a scientific hypothesis).
Markov Chain Monte Carlo (wikipedia)
MCMC create samples from a random variable, that have a probability density proportional to the known function.
Mathematical setting
Applications
Bayesian statistics
MCMC is used in bayesian stats to calculate moments and credible intervals of posterior probability distributions.
MCMC (medium article)
Why MCMC exists at all
Generates a sequence of correlated samples from a target distribution. This helps with understanding complex probability distributions
The metropolis intuition
MCMC algorithms are built around a key idea: take a random path over the probability landscape. This starts at a random point, the algorithm will revisit higher probability regions more over time.
The metropolis algorithm is the predecessor to the MCMC methodology. Relying solely on density at each point.
Metropolis-Hastings
This algorithm improves the metropolis algorithm by allowing asymmetric proposal distributions. So the proposal can match the geometry of the problem. So can be applied to:
- Hierarchical bayesian models
- guassian processes
- deep probabilistic neural networks
Scaling MCMC to the real world
tensorflow and others use an adaptive MCMC that automatically tunes the step sizes and learns the distribution during the warmup phase.