I have an X-Y Scatter plot of some data and have added a linear trendline. When I set the intercept to zero (bottom chart pictured) I get a higher R-squared value than when I let Excel determine it (top chart pictured).
I thought that Excel optimised the intercept and slope for the highest R-squared value. Either I'm wrong about that or Excel is misbehaving.
I suspect the former (i.e. I'm wrong). If so, this become more a statistics question than an Excel question per se... What is Excel's method for determining intercept and slope of a linear trendline, and is that more justified than optimising for R-squared?
I'm using Excel 365.
Screenshot 2023-07-21 093229.png
Bookmarks