Skip to content

DerrickStuckey/sp500-gs10-modeling

Repository files navigation

sp500-gs10-modeling

R and python scripts to model price changes and returns for the S&P 500 and 10-year treasury bonds, against various data sources (primarily from FRED)

Dataprep

Schiller S&P 500 monthly returns data

prepared_data/schiller_sp_data_withreturns.tsv

  • download Schiller S&P 500 monthly data from http://www.econ.yale.edu/~shiller/data/ie_data.xls
    • save 'data' tab as tab-delimited text
    • move to ./raw_data/schiller_sp_data.txt
  • run dataprep/format_schiller_returns.py
  • run dataprep/calculate_schiller_returns.py

Treasury Yield Curve (10y vs 3mo)

prepared_data/yield_curve_10y_3mo.tsv

AAII Sentiment Data

prepared_data/sentiment_data_formatted.tsv

About

Modeling on S&P 500 and 10-year treasury prices and returns

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors