Re: R Square?



I have equations like:
x y ypred
1 11 12.879
2 5.5 123.5346
3 1 253.64
4 23 379.48
5 4 495.078
6 5 612.2066
where I get ypred from excel and add trendline I've got:
ypred = 0.7396x4 - 11.35x3 + 59.337x2 - 120.43x + 83.583
Rsquare = 0.3797

I want to know how Excel find it.
First I square the pearson correlation (this is define as function
rsq(x,y) in excel)
Instead of using rsq(x,y) I use rsq(y, ypred), I've got:
Rsquare = 0.00507954 (not the same as above)

Second I try to calculate Rsquare using
Rsq = 1 - SS(regression)/SS(total)
I've got:
Rsquare = -2594.624977 (not the same as above)

I wonder how excel trendline find the Rsquare ?

Best Regards,
pujo

.



Relevant Pages

  • Re: Polynomial Trendline Equation Changes After Copy Paste
    ... match the line drawn by the trendline function. ... equation generated by Excel 2003, ... this is not the only "improvement" in the 2007 chart ... coefficient estimates and see how it compares to the curve plotted by adding ...
    (microsoft.public.excel.charting)
  • Re: Adding new trendlines?
    ... gives an example where pre-2003 LINEST gives no correct figures for any ... In Excel 2003, LINEST is much more numerically accurate, but coefficients of ... LINEST in Excel 2007 resolves this problem, but the chart trendline in 2007 ...
    (microsoft.public.excel)
  • Re: Trendlines
    ... When you make a line chart, Excel assigns category labels to ... Jon Peltier, Microsoft Excel MVP ... > You can have more than one trendline in a chart. ...
    (microsoft.public.excel.charting)
  • Re: Trendlines
    ... Excel can calculate a trendline from a charted series, ... series in the chart, choose Source Data from the Chart menu, and click ... Jon Peltier, Microsoft Excel MVP ... Bob Barnes wrote: ...
    (microsoft.public.excel.charting)
  • Re: Trendline Extract
    ... XL will suppress the constant term if it is truly zero or if you've ... forced it to be zero (Double-click the trendline, ... Excel is not providing a third term ...
    (microsoft.public.excel.charting)