alistair-marshall / cFIREsim-open

An forked version of the popular retirement calculator (cFIREsim.com) completely in javascript and open-source.
https://alistair-marshall.github.io/cFIREsim-open/
Apache License 2.0
30 stars 12 forks source link

Market data is 4 years out of date #5

Closed alistair-marshall closed 4 years ago

alistair-marshall commented 4 years ago

Update market data file to include 2016 to 2019.

Use data from Shiller: http://www.econ.yale.edu/~shiller/data.htm I am not sure where the gold prices are obtained from.

It would be good to document the data sources and possibly have a method to auto generate it rather than risking human error when calculating future years.

AS137430 commented 4 years ago

"cpi": https://www.multpl.com/cpi/table/by-year "dividends": 0.0213028, "fixed_income": https://www.multpl.com/10-year-treasury-rate/table/by-year "gold": -0.276, "growth": 0.22114293, "cape": https://www.multpl.com/shiller-pe/table/by-year

and https://github.com/boknows/cFIREsim-open/issues/68

iLiviu commented 4 years ago

It seems average daily close prices for the year is used to compute gold growth rate (however it seems growth rate for previous year is calculated, however for equities current year growth is used). 1793-2015 prices can be found here: https://onlygold.com/gold-prices/historical-gold-prices/ for more recent years (1925-2019): https://www.redlakemuseum.com/gold-prices.html I also found a human error for gold price in 2012, which makes future years data incorrect. Maybe to avoid human errors, actual prices should be used for both equities and gold instead of growth rate?