MEAN REVERSION HURST
Kernel: SageMath (stable)
Testing Mean Reversion Code
In [7]:
In [8]:
In [9]:
In [10]:
In [11]:
In [12]:
Out[12]:
/ext/anaconda3/lib/python3.5/site-packages/statsmodels/compat/pandas.py:56: FutureWarning: The pandas.core.datetools module is deprecated and will be removed in a future version. Please use the pandas.tseries module instead.
from pandas.core import datetools
In [13]:
In [14]:
In [15]:
In [16]:
In [17]:
In [18]:
In [19]:
In [20]:
Out[20]:
In [21]:
In [22]:
Out[22]:
<class 'pandas.core.frame.DataFrame'>
In [23]:
Out[23]:
Populating the interactive namespace from numpy and matplotlib
/ext/anaconda3/lib/python3.5/site-packages/IPython/core/magics/pylab.py:160: UserWarning: pylab import has clobbered these variables: ['datetime']
`%matplotlib` prevents importing * from pylab and numpy
"\n`%matplotlib` prevents importing * from pylab and numpy"
<matplotlib.axes._subplots.AxesSubplot at 0x7fb0b21b54e0>
WARNING: Some output was deleted.
In [24]:
Out[24]:
<matplotlib.axes._subplots.AxesSubplot at 0x7fb0b1de2320>
WARNING: Some output was deleted.
In [25]:
Out[25]:
<matplotlib.axes._subplots.AxesSubplot at 0x7fb0b1ff3470>
WARNING: Some output was deleted.
In [26]:
Out[26]:
<matplotlib.axes._subplots.AxesSubplot at 0x7fb0b1f56908>
WARNING: Some output was deleted.
In [27]:
In [28]:
In [29]:
Out[29]:
-0.029860508371503839
In [30]:
Out[30]:
<matplotlib.axes._subplots.AxesSubplot at 0x7fb0b1df9278>
WARNING: Some output was deleted.
In [31]:
In [32]:
In [34]:
Out[34]:
0.0010023252339726358
In [35]:
In [36]:
Out[36]:
Date
2000-08-31 2.935255
2000-09-01 3.055676
2000-09-05 3.007508
2000-09-06 2.814835
2000-09-07 2.986434
Name: AAPL, dtype: float64
In [37]:
Out[37]:
Date
2008-08-25 16.622875
2008-08-26 16.727882
2008-08-27 16.827114
2008-08-28 16.737513
2008-08-29 16.331944
Name: AAPL, dtype: float64
In [38]:
Out[38]:
0.00350593165566435
In [39]:
In [40]:
Out[40]:
-0.0052954428489820054
In [41]:
Out[41]:
WARNING: Some output was deleted.
In [42]:
In [43]:
Out[43]:
-0.0067036462086532758
In [0]: