Skip to content

Instantly share code, notes, and snippets.

View unterseeboot88's full-sized avatar
unterseeboot kommandant

unterseeboot unterseeboot88

unterseeboot kommandant
View GitHub Profile
@unterseeboot88
unterseeboot88 / Volatility.py
Created December 19, 2019 08:37 — forked from StuartGordonReid/Volatility.py
Volatility Risk Metrics
import numpy
import numpy.random as nrand
def vol(returns):
# Return the standard deviation of returns
return numpy.std(returns)
def beta(returns, market):
@unterseeboot88
unterseeboot88 / Volatility.py
Created December 19, 2019 08:37 — forked from StuartGordonReid/Volatility.py
Volatility Risk Metrics
import numpy
import numpy.random as nrand
def vol(returns):
# Return the standard deviation of returns
return numpy.std(returns)
def beta(returns, market):