Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Enhancement on the Quantopian Lecture on Linear Regression

The attached notebook regresses a benchmark index (SPX) in the X axis, against a hedged portfolio (SPY-SPXU) in the Y axis--validating that the portfolio was beta neutral in June of 2017.