ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   RSQ function gives incorrect result (https://www.excelbanter.com/excel-worksheet-functions/53696-rsq-function-gives-incorrect-result.html)

imurch

RSQ function gives incorrect result
 
The RSQ function in my version of Excel (the 'About Excel' tab says it's
Version 11.2 (050714)) appears not to work properly.

For a set of numbers in cells I3:J9, I entered the following into cell J18:
=RSQ(J3:J9,I3:I9)
and got a result of -0.8804265 which is clearly wrong since R^2 cannot be
negative.
Interestingly =CORREL(J3:J9,I3:I9) gives exactly the same result, implying
that the implementation of this function lacks the step of squaring the
result!! (Minor oversight!!)
This is in agreement with the fact that graphing these points and displaying
the R^2 value on the chart gives a value of 0.7752, which is equal to
(-0.8804265)^2.

This is especially amusing since according to Microsoft Support articles,
the RSQ function has been 'fixed' in Versions 2003 and 2004 so that it does
not give negative numbers!

Jerry W. Lewis

RSQ function gives incorrect result
 
Please post your data.

Jerry

imurch wrote:

The RSQ function in my version of Excel (the 'About Excel' tab says it's
Version 11.2 (050714)) appears not to work properly.

For a set of numbers in cells I3:J9, I entered the following into cell J18:
=RSQ(J3:J9,I3:I9)
and got a result of -0.8804265 which is clearly wrong since R^2 cannot be
negative.
Interestingly =CORREL(J3:J9,I3:I9) gives exactly the same result, implying
that the implementation of this function lacks the step of squaring the
result!! (Minor oversight!!)
This is in agreement with the fact that graphing these points and displaying
the R^2 value on the chart gives a value of 0.7752, which is equal to
(-0.8804265)^2.

This is especially amusing since according to Microsoft Support articles,
the RSQ function has been 'fixed' in Versions 2003 and 2004 so that it does
not give negative numbers!




All times are GMT +1. The time now is 04:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com