Hi everyone,

I ran a backtest of SPY's total return from 1/31/1999 to 1/31/2021. I benchmarked it against SPY itself (please see my code).

According to my understanding, the generated beta should've been 1 (since you're benchmarking against the ETF itself). Is there a reason why this backtest is showing that the beta is -0.089? 

The plotted graph benchmark is correct (i.e. the prices are already adjusted), but the statistics don't look right to me.

Unless, for some reason, the benchmark used in calculating statistics are based on SPY's raw/unadjusted prices (as opposed to adjusted prices). If so, is there a way to get statistics that are based on SPY's adjusted prices?

Thanks.