Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Death_rate.csv
Example_Output.png
README.md
broke_rates.csv
death_and_bankruptcy_graph.py
make_broke_rate_file.py
shiller_data_formatted2.csv

README.md

dead_broke

Requires matplotlib

By modifying make_broke_rate_file.py one can change withdrawal rates, portfolio composition, and even implement more complex withdrawal strategies. Run this code to generate a new "broke_rates.csv" file.

python make_broke_rate_file.py > broke_rates.csv

Then run death and bankrupty graph.py. The main variables you can change in this script are age and gender, which are used together to determine risk of death in each year.

python death_and_bankruptcy_graph.py

This will generate the final output which is formatted like this:

alt tag

You can’t perform that action at this time.