Part of the attached notebook is based on the Numpy Tutorial on this site.
Random price series were generated using a normal distribution with a 3% standard deviation over 1, 2, 5, 10, and 20 years to show the impact of trading over the long term. Such a strategy will breakdown over time. In the beginning, it might not be that visible, but as the time interval increases, it becomes more and more apparent since return degradation is technically built-in.
Some alpha is then added to the mix to compensate for the strategy's breakdown as part of the available compensation measures. The impact is shown to be considerable over the long term even with a small alpha.
Run the program a few times, change the initial settings, especially with a long-term horizon.
This presentation is based on the portfolio payoff matrix as I've discussed before. See, for instance, my posts in the following threads should you wish to dig deeper.
What I Have Seen Over The Past Few Weeks
New Strategy - Presenting the “Quality Companies in an Uptrend” Model
[Added] Since the formulas and there are some do not display correctly, here is the notebook's HTML equivalent:
https://alphapowertrading.com/quantopian/Long-Term_Game_Part_1.html