-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2015 Market Data Incorrect #68
Comments
I'm pretty sure the data is pulled from http://www.econ.yale.edu/~shiller/data.htm if you want to take a stab at updating the market data. |
Will do. I'll get the pull request to you by tomorrow. |
I think it's more than just 2015 that's wrong. I've downloaded the "U.S. Stock Markets 1871-Present and CAPE Ratio" spreadsheet from that link. Where exactly are the numbers in the code coming from? Some are obvious. For example, the code's "fixed_income" for 2012, 2013, and 2014 are 0.0197, 0.0191, and 0.0286, respectively, whereas the spreadsheet's "Long Interest Rate GS10" for January 2012, January 2013, and January 2014 are 1.97, 1.91, and 2.86, respectively. But others are not at all obvious to me. For example I don't see anything about gold at all, but more importantly (to me) I haven't yet been able to figure out where the code's "growth" came from. I've been playing around doing things like dividing the January Year N+1 "S&P Comp. P" from the spreadsheet by the January Year N "S&P Comp. P", or other months, or using the spreadsheet's "Real Price" rather than its "S&P Comp. P". But nothing that I've tried seems to completely match up with the spreadsheet's "growth" for year N (or year N+1). Let's take a few specific examples. According to the code, the "growth" for several recent years: 2011: 0.01400259 Meanwhile the spreadsheet's "S&P Comp. P" ratio for January of the next year to January of the specified year: 2011: 1300.58 / 1282.62 = 1.01400259 So 2011 and 2012 match up perfectly. But 2013 is off by almost a percent, and 2014 is off (in the other direction) by nearly two and a half percent. I am guessing that perhaps either the methodology used to create the numbers in the code has become inconsistent with what it had been, or else perhaps they were based on some sort of "preliminary" numbers from Shiller that he has since modified in his spreadsheet. In any case: Where exactly are the numbers coming from? |
Good looking out. I'll refrain from fixing the last year for now so this doesn't get closed. I don't think the last year is going to affect anyone's simulations anyway, but the other issue is more interesting. |
I think I've figured out the inconsistencies with the 2013 and 2014 growth numbers (it's a different inconsistency in each case). 2011 growth = Jan. 2012 divided by Jan. 2011 Just for kicks, I then went back to the first entry in the code: 1871 growth = Jan. 1872 divided by Jan. 1871 Which would be consistent with 2011 and 2012. To be clear, I have not checked any other years, but I guess it's probably something like that the file was created based on data available through January of 2013, then later updated in various inconsistent ways for 2013, 2014, and 2015. |
Whoops, no, still not sure about 2014; too many digits too similar, along with flipping back and forth between windows and tabs and such, made me think I was looking at the same number. But it's very close: 2014 growth = 1369433 I haven't yet been able to find a pair of numbers that matches 2014 growth. |
In https://github.com/boknows/cFIREsim-open/blob/master/js/marketData.js
2015 Market Data is a copy of 2014. At least CPI is wrong, probably all of it. You can check at this website with a stupid url: http://www.usinflationcalculator.com/inflation/consumer-price-index-and-annual-percent-changes-from-1913-to-2008/
The text was updated successfully, but these errors were encountered: