![]() |
CORREL versus r-squared
Why do I get different values for the same arrays when I
run CORREL and ad r-squared value to a scatter plot? |
Shell -
Why do I get different values for the same arrays when I run CORREL and ad r-squared value to a scatter plot? < First, CORREL is R, and R-squared from Add Trendline (or from worksheet function RSQ) is R*R. Second, as I recall, depending on the version of Excel, there may or may not be an adjustment for the number of observations (degrees of freedom), but maybe that was only for COVAR. Third, adjusted R square, from the Regression tool of the Analysis ToolPak, also adjusts for the number of explanatory X variables. - Mike www.mikemiddleton.com |
Michael R Middleton wrote:
.... Second, as I recall, depending on the version of Excel, there may or may not be an adjustment for the number of observations (degrees of freedom), but maybe that was only for COVAR. .... I do not recall that. As best I recall, CORREL has used a numerically stable 2-pass algorithm in all versions, where RSQ and PEARSON only switched to that in 2003. Prior to 2003, the R-squared value from LINEST was wrong if no intercept was fit. Jerry |
Jerry -
Yes, CORREL has not changed. After further recollection and investigation, I realize that my faulty recall was related only to differences in COVAR and the Analysis ToolPak's Covariance tool. - Mike "Jerry W. Lewis" wrote in message ... Michael R Middleton wrote: ... Second, as I recall, depending on the version of Excel, there may or may not be an adjustment for the number of observations (degrees of freedom), but maybe that was only for COVAR. ... I do not recall that. As best I recall, CORREL has used a numerically stable 2-pass algorithm in all versions, where RSQ and PEARSON only switched to that in 2003. Prior to 2003, the R-squared value from LINEST was wrong if no intercept was fit. Jerry |
All times are GMT +1. The time now is 05:27 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com