Stochastic Volatility Model with PyMC


Thomas Wiecki



Asset prices have time-varying volatility (variance of day over day returns). In some periods, returns are highly variable, while in others very stable. Stochastic volatility models model this with a latent volatility variable, modeled as a stochastic process. In this example, we compute the time-varying volatility based on daily returns of the S&P 500.

For the full example, see:
Stochastic Volatility Model with PyMC

Work with us

PyMC Labs is a Bayesian consulting and research company. If you have a tough data science problem that you need help solving, email We look forward to hearing from you.