Skip to content

Commit c96c8bc

Browse files
committed
not needed/to be deleted
1 parent fda79da commit c96c8bc

15 files changed

Lines changed: 6289 additions & 29 deletions

Confidence Intervals.ipynb

Lines changed: 698 additions & 0 deletions
Large diffs are not rendered by default.

Expected Value and Standard Deviation.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,21 +206,21 @@
206206
],
207207
"metadata": {
208208
"kernelspec": {
209-
"display_name": "Python 3",
209+
"display_name": "Python 2",
210210
"language": "python",
211-
"name": "python3"
211+
"name": "python2"
212212
},
213213
"language_info": {
214214
"codemirror_mode": {
215215
"name": "ipython",
216-
"version": 3
216+
"version": 2
217217
},
218218
"file_extension": ".py",
219219
"mimetype": "text/x-python",
220220
"name": "python",
221221
"nbconvert_exporter": "python",
222-
"pygments_lexer": "ipython3",
223-
"version": "3.4.4"
222+
"pygments_lexer": "ipython2",
223+
"version": "2.7.13"
224224
}
225225
},
226226
"nbformat": 4,

Integration, Cointegration, and Stationarity.ipynb

Lines changed: 1053 additions & 0 deletions
Large diffs are not rendered by default.

Linear Correlation Analysis.ipynb

Lines changed: 534 additions & 0 deletions
Large diffs are not rendered by default.

Long-Short Strategies using Ranking.ipynb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@
639639
},
640640
{
641641
"cell_type": "code",
642-
"execution_count": 133,
642+
"execution_count": 141,
643643
"metadata": {
644644
"collapsed": false
645645
},
@@ -655,7 +655,8 @@
655655
"name": "stdout",
656656
"output_type": "stream",
657657
"text": [
658-
"Total Returns: 5.71%\n"
658+
"Annual Returns: 0.00%\n",
659+
"1.0\n"
659660
]
660661
}
661662
],
@@ -666,7 +667,10 @@
666667
" basket_returns = compute_basket_returns(mscores, monthly_returns, number_of_baskets, m)\n",
667668
" strategy_returns[m-1] = basket_returns[0]-basket_returns[ number_of_baskets-1]\n",
668669
"\n",
669-
"print('Total Returns: %.2f%%'%strategy_returns.sum())"
670+
"total_return = strategy_returns.sum()\n",
671+
"ann_return = 100*((1 + total_return)**(12 / l)-1)\n",
672+
"print('Annual Returns: %.2f%%'%ann_return)\n",
673+
"print(float(6.7**(1/5)))"
670674
]
671675
},
672676
{

0 commit comments

Comments
 (0)