GARCH Models in Python
Chelsea Yang
Data Science Instructor
a measure of stock volatility in relation to the general market
the portion of the risk that cannot be diversified away
_Gauge investment risk _
Market Beta = 1: used as benchmark
Beta > 1: the stock bears more risks than the general market
Beta < 1: the stock bears less risks than the general market
CAPM: Capital Asset Pricing Model
$E(R_s)$ = $R_f$ + $\beta $($E(R_m)- R_f$)
$Beta$ = $\rho$ * $\sigma$_stock / $\sigma$__market
1). Compute correlation between S&P500 and stock
resid_stock = stock_gm.resid / stock_gm.conditional_volatility
resid_sp500 = sp500_gm.resid / sp500_gm.conditional_volatility
correlation = numpy.corrcoef(resid_stock, resid_sp500)[0, 1]
2). Compute dynamic Beta for the stock
stock_beta = correlation * (stock_gm.conditional_volatility /
sp500_gm.conditional_volatility)
GARCH Models in Python