Skip to content

Commit

Permalink
bugfix Cum. Active Returns with cumprod
Browse files Browse the repository at this point in the history
  • Loading branch information
Liming Xie committed May 23, 2021
1 parent 8bc0bb0 commit 0b2d02f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/AIExample.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,7 @@
}
],
"source": [
"asset[[\"PCTRET_1\", \"ACTRET_1\"]].cumsum().plot(figsize=(16, 3), kind=\"area\", stacked=False, color=colors(\"GyOr\"), title=\"B&H vs. Cum. Active Returns\", alpha=.4, grid=True).axhline(0, color=\"black\")"
"((asset[[\"PCTRET_1\", \"ACTRET_1\"]]+1).cumprod()-1).plot(figsize=(16, 3), kind=\"area\", stacked=False, color=colors(\"GyOr\"), title=\"B&H vs. Cum. Active Returns\", alpha=.4, grid=True).axhline(0, color=\"black\")"
]
},
{
Expand Down

0 comments on commit 0b2d02f

Please sign in to comment.