RegressionCommon`
RegressionCommon`

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.

Details

  • 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.

Examples

Basic Examples  (1)

Sample data:

RSquared for a linear regression:

Wolfram Research (2007), RSquared, Wolfram Language function, https://reference.wolfram.com/language/RegressionCommon/ref/RSquared.html.

Text

Wolfram Research (2007), RSquared, Wolfram Language function, https://reference.wolfram.com/language/RegressionCommon/ref/RSquared.html.

BibTeX

@misc{reference.wolfram_2021_rsquared, author="Wolfram Research", title="{RSquared}", year="2007", howpublished="\url{https://reference.wolfram.com/language/RegressionCommon/ref/RSquared.html}", note=[Accessed: 05-August-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_rsquared, organization={Wolfram Research}, title={RSquared}, year={2007}, url={https://reference.wolfram.com/language/RegressionCommon/ref/RSquared.html}, note=[Accessed: 05-August-2021 ]}

CMS

Wolfram Language. 2007. "RSquared." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/RegressionCommon/ref/RSquared.html.

APA

Wolfram Language. (2007). RSquared. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/RegressionCommon/ref/RSquared.html