RSquared

As of Version 7.0, RSquared has become a property of LinearModelFit.

RSquared
is a possible value for the RegressionReport option for Regress and DesignedRegress which represents the coefficient of determination R2.

DetailsDetails

  • To use RSquared, you first need to load the Regression Common Functions Package. You can do this by using Needs["LinearRegression`"], which will automatically load the Regression Common Functions Package, or you can load the package directly by using Needs["RegressionCommon`"].
  • RSquared is the ratio of the model sum of squares to the total sum of squares.
  • RSquared gives the fraction of the variation of the response that is predicted by the model.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

In[1]:=
Click for copyable input

Sample data:

In[2]:=
Click for copyable input

RSquared for a linear regression:

In[3]:=
Click for copyable input
Out[3]=