I’m glad you wrote this! Movement-building is an important complement to financial investing, and can benefit the future in many of the same ways.
Maximizing the number of longtermists at time t may require periods of spending alternated with periods of investment.
I believe your model gives this result because of the constraint that you have to either spend or invest all of your salary in each period. If you allow spending greater than 0% or less than 100% of your salary, I believe you will get the result that you maximize the number of longtermists by spending some fixed proportion of your salary in each period. Alternating between periods is a way of approximating this.
I’m glad you wrote this! Movement-building is an important complement to financial investing, and can benefit the future in many of the same ways.
I believe your model gives this result because of the constraint that you have to either spend or invest all of your salary in each period. If you allow spending greater than 0% or less than 100% of your salary, I believe you will get the result that you maximize the number of longtermists by spending some fixed proportion of your salary in each period. Alternating between periods is a way of approximating this.
I added related functionality to your script here: https://github.com/michaeldickens/public-scripts/blob/master/movement-building-model.py
Also, there is a bug in the
invest
function,money += (money + salary) * market_rate
should bemoney = (money + salary) * market_rate
.This is awesome, you’re completely right and I’m totally updating my post with your model.