Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Using as beta as a factor with alphalens

I was researching how beta of stock could be used as an investment factor but ran into an issue implementing it.

Would appreciate any help or a workaround.

2 responses

Comment out :
betamarket = StaticAssets(symbols(['SPY']))
And just change beta to this:
beta = SimpleBeta(target=sid(8554), regression_length=260)
See if it works.

Thanks James!

You were on the right track it this ending up working.

beta = SimpleBeta(target=symbols(8554)  , regression_length=260)