Pymc3 migration - Sharpe Ratio Example

That’s the variance, but sharpe wants the std. You can use std * pt.sqrt(nu / (nu - 2))

PS: This is why it’s not ideal to give the parameters moment names. In the normal case you have sigma = std, but here we don’t.

1 Like