uninstall nginx
sudo apt-get purge nginx nginx-common
uninstall nginx
sudo apt-get purge nginx nginx-common
rolling half life mean reversion
z_lag = np.roll(z_array,1)
z_lag[0] = 0
z_ret = z_array - z_lag
z_ret[0] = 0
#adds intercept terms to X variable for regression
z_lag2 = sm.add_constant(z_lag)
model = sm.OLS(z_ret,z_lag2)
res = model.fit()
halflife = -log(2) / res.params[1]
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us