Implement the volatility computation.