|
21 | 21 | },
|
22 | 22 | {
|
23 | 23 | "cell_type": "code",
|
24 |
| - "execution_count": 1, |
| 24 | + "execution_count": null, |
25 | 25 | "metadata": {
|
26 | 26 | "colab": {
|
27 | 27 | "base_uri": "https://localhost:8080/"
|
|
77 | 77 | },
|
78 | 78 | {
|
79 | 79 | "cell_type": "code",
|
80 |
| - "execution_count": 2, |
| 80 | + "execution_count": null, |
81 | 81 | "metadata": {
|
82 | 82 | "colab": {
|
83 | 83 | "base_uri": "https://localhost:8080/",
|
|
486 | 486 | "id": "meowEBs-PwtB",
|
487 | 487 | "outputId": "c2a28036-734c-4768-bac3-9bf2cfb3cf7e"
|
488 | 488 | },
|
489 |
| - "execution_count": 3, |
| 489 | + "execution_count": null, |
490 | 490 | "outputs": [
|
491 | 491 | {
|
492 | 492 | "output_type": "stream",
|
|
510 | 510 | },
|
511 | 511 | {
|
512 | 512 | "cell_type": "code",
|
513 |
| - "execution_count": 4, |
| 513 | + "execution_count": null, |
514 | 514 | "metadata": {
|
515 | 515 | "colab": {
|
516 | 516 | "base_uri": "https://localhost:8080/",
|
|
582 | 582 | },
|
583 | 583 | {
|
584 | 584 | "cell_type": "code",
|
585 |
| - "execution_count": 5, |
| 585 | + "execution_count": null, |
586 | 586 | "metadata": {
|
587 | 587 | "colab": {
|
588 | 588 | "base_uri": "https://localhost:8080/",
|
|
1238 | 1238 | },
|
1239 | 1239 | {
|
1240 | 1240 | "cell_type": "code",
|
1241 |
| - "execution_count": 6, |
| 1241 | + "execution_count": null, |
1242 | 1242 | "metadata": {
|
1243 | 1243 | "colab": {
|
1244 | 1244 | "base_uri": "https://localhost:8080/",
|
|
1301 | 1301 | },
|
1302 | 1302 | {
|
1303 | 1303 | "cell_type": "code",
|
1304 |
| - "execution_count": 7, |
| 1304 | + "execution_count": null, |
1305 | 1305 | "metadata": {
|
1306 | 1306 | "colab": {
|
1307 | 1307 | "base_uri": "https://localhost:8080/",
|
|
1345 | 1345 | },
|
1346 | 1346 | {
|
1347 | 1347 | "cell_type": "code",
|
1348 |
| - "execution_count": 8, |
| 1348 | + "execution_count": null, |
1349 | 1349 | "metadata": {
|
1350 | 1350 | "colab": {
|
1351 | 1351 | "base_uri": "https://localhost:8080/",
|
|
1387 | 1387 | },
|
1388 | 1388 | {
|
1389 | 1389 | "cell_type": "code",
|
1390 |
| - "execution_count": 9, |
| 1390 | + "execution_count": null, |
1391 | 1391 | "metadata": {
|
1392 | 1392 | "colab": {
|
1393 | 1393 | "base_uri": "https://localhost:8080/",
|
|
1464 | 1464 | "id": "0nm5VBXy4UBK",
|
1465 | 1465 | "outputId": "ea7fd355-e3f1-49ee-b485-463b1c7cfbe7"
|
1466 | 1466 | },
|
1467 |
| - "execution_count": 10, |
| 1467 | + "execution_count": null, |
1468 | 1468 | "outputs": [
|
1469 | 1469 | {
|
1470 | 1470 | "output_type": "stream",
|
|
1509 | 1509 | },
|
1510 | 1510 | {
|
1511 | 1511 | "cell_type": "code",
|
1512 |
| - "execution_count": 11, |
| 1512 | + "execution_count": null, |
1513 | 1513 | "metadata": {
|
1514 | 1514 | "id": "1fZmZVFuyu-T",
|
1515 | 1515 | "colab": {
|
|
1564 | 1564 | },
|
1565 | 1565 | {
|
1566 | 1566 | "cell_type": "code",
|
1567 |
| - "execution_count": 12, |
| 1567 | + "execution_count": null, |
1568 | 1568 | "metadata": {
|
1569 | 1569 | "colab": {
|
1570 | 1570 | "base_uri": "https://localhost:8080/",
|
|
1639 | 1639 | },
|
1640 | 1640 | {
|
1641 | 1641 | "cell_type": "code",
|
1642 |
| - "execution_count": 13, |
| 1642 | + "execution_count": null, |
1643 | 1643 | "metadata": {
|
1644 | 1644 | "colab": {
|
1645 | 1645 | "base_uri": "https://localhost:8080/",
|
|
1713 | 1713 | },
|
1714 | 1714 | {
|
1715 | 1715 | "cell_type": "code",
|
1716 |
| - "execution_count": 14, |
| 1716 | + "execution_count": null, |
1717 | 1717 | "metadata": {
|
1718 | 1718 | "colab": {
|
1719 | 1719 | "base_uri": "https://localhost:8080/",
|
|
2158 | 2158 | },
|
2159 | 2159 | {
|
2160 | 2160 | "cell_type": "code",
|
2161 |
| - "execution_count": 15, |
| 2161 | + "execution_count": null, |
2162 | 2162 | "metadata": {
|
2163 | 2163 | "colab": {
|
2164 | 2164 | "base_uri": "https://localhost:8080/",
|
|
2239 | 2239 | },
|
2240 | 2240 | {
|
2241 | 2241 | "cell_type": "code",
|
2242 |
| - "execution_count": 16, |
| 2242 | + "execution_count": null, |
2243 | 2243 | "metadata": {
|
2244 | 2244 | "colab": {
|
2245 | 2245 | "base_uri": "https://localhost:8080/",
|
|
2290 | 2290 | },
|
2291 | 2291 | {
|
2292 | 2292 | "cell_type": "code",
|
2293 |
| - "execution_count": 17, |
| 2293 | + "execution_count": null, |
2294 | 2294 | "metadata": {
|
2295 | 2295 | "colab": {
|
2296 | 2296 | "base_uri": "https://localhost:8080/",
|
|
2623 | 2623 | },
|
2624 | 2624 | {
|
2625 | 2625 | "cell_type": "code",
|
2626 |
| - "execution_count": 18, |
| 2626 | + "execution_count": null, |
2627 | 2627 | "metadata": {
|
2628 | 2628 | "colab": {
|
2629 | 2629 | "base_uri": "https://localhost:8080/",
|
|
2721 | 2721 | "id": "76IGP1UGnzNW",
|
2722 | 2722 | "outputId": "203424ad-7c67-4a3b-aa09-5fd255c68a35"
|
2723 | 2723 | },
|
2724 |
| - "execution_count": 19, |
| 2724 | + "execution_count": null, |
2725 | 2725 | "outputs": [
|
2726 | 2726 | {
|
2727 | 2727 | "output_type": "stream",
|
|
2763 | 2763 | },
|
2764 | 2764 | {
|
2765 | 2765 | "cell_type": "code",
|
2766 |
| - "execution_count": 20, |
| 2766 | + "execution_count": null, |
2767 | 2767 | "metadata": {
|
2768 | 2768 | "colab": {
|
2769 | 2769 | "base_uri": "https://localhost:8080/",
|
|
3165 | 3165 | "for col in group_neutral_cols:\n",
|
3166 | 3166 | " corr_mean = group_neutral_corr[col].mean()\n",
|
3167 | 3167 | " corr_std = group_neutral_corr[col].std()\n",
|
3168 |
| - " corr_sharpe = mean / std\n", |
| 3168 | + " corr_sharpe = corr_mean / corr_std\n", |
3169 | 3169 | " corr_rolling_max = group_neutral_cumsum[col].expanding(min_periods=1).max()\n",
|
3170 | 3170 | " corr_max_drawdown = (corr_rolling_max - group_neutral_cumsum[col]).max()\n",
|
3171 | 3171 | " mmc_mean = per_era_mmc[col].mean()\n",
|
3172 | 3172 | " mmc_std = per_era_mmc[col].std()\n",
|
3173 |
| - " mmc_sharpe = mean / std\n", |
| 3173 | + " mmc_sharpe = mmc_mean / mmc_std\n", |
3174 | 3174 | " mmc_rolling_max = cumsum_mmc[col].expanding(min_periods=1).max()\n",
|
3175 | 3175 | " mmc_max_drawdown = (rolling_max - cumsum_mmc[col]).max()\n",
|
3176 | 3176 | " group_neutral_summary_metrics[col] = {\n",
|
|
3254 | 3254 | "metadata": {
|
3255 | 3255 | "id": "ds3HPim6M-s5"
|
3256 | 3256 | },
|
3257 |
| - "execution_count": 21, |
| 3257 | + "execution_count": null, |
3258 | 3258 | "outputs": []
|
3259 | 3259 | },
|
3260 | 3260 | {
|
3261 | 3261 | "cell_type": "code",
|
3262 |
| - "execution_count": 27, |
| 3262 | + "execution_count": null, |
3263 | 3263 | "metadata": {
|
3264 | 3264 | "id": "PMGoxkbuyu-c"
|
3265 | 3265 | },
|
|
3279 | 3279 | },
|
3280 | 3280 | {
|
3281 | 3281 | "cell_type": "code",
|
3282 |
| - "execution_count": 28, |
| 3282 | + "execution_count": null, |
3283 | 3283 | "metadata": {
|
3284 | 3284 | "colab": {
|
3285 | 3285 | "base_uri": "https://localhost:8080/",
|
|
3609 | 3609 | },
|
3610 | 3610 | {
|
3611 | 3611 | "cell_type": "code",
|
3612 |
| - "execution_count": 29, |
| 3612 | + "execution_count": null, |
3613 | 3613 | "metadata": {
|
3614 | 3614 | "id": "g5A5r1ZFyu-c"
|
3615 | 3615 | },
|
|
3624 | 3624 | },
|
3625 | 3625 | {
|
3626 | 3626 | "cell_type": "code",
|
3627 |
| - "execution_count": 30, |
| 3627 | + "execution_count": null, |
3628 | 3628 | "metadata": {
|
3629 | 3629 | "colab": {
|
3630 | 3630 | "base_uri": "https://localhost:8080/",
|
|
0 commit comments