Back

Backtest Statistics

Hi there, 

Is there somewhere to find out how all of the statistics are calculated? For example, I would like to know if the beta calculated is a percentage or is the real figure. So if the beta reads 25, does that mean the beta is 25 or 0.25? 

Is there somewhere that I can find out how all of the results are calculated? 

Thanks for any help. 

Update Backtest







Hi Alex,

The beta is calculated here: 

https://github.com/QuantConnect/Lean/blob/master/Common/Statistics/PortfolioStatistics.cs#L190

I'm not sure exactly what you mean by your question. If the beta is 0.25, it means your strategy experienced only 25% of the volatility of the benchmark over that period.

0

Hi Douglas, 

I am confused because I am getting a Beta of approximately 20, this doesn't seem realistic to me. Maybe I am wrong

0

I initially though that the beta of 20 implied 20%. Would this be correct?

0

The benchmark its comparing to is a straight line of constant return.

SetBenchmark("SPY") will give you the beta with S&P500.

0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Hi, Jared Broad

How would I implement this? Is it in initialise? self.SetBenchmark("SPY"), I am still getting the same beta value with or without the benchmark on the results panel.

0

Update Backtest





0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Loading...

This discussion is closed

 
";