Accepted Answer

Tom Lane
Tom Lane on 8 May 2012

0 votes

You can get R^2 (multiple correlation) from various Statistics Toolbox routines. If you don't have the toolbox or you need to do it yourself, you could use backslash to carry out a regression, then compare the sum of squared deviations from the mean of both the y variable and the residuals from the regression. Alternatively you could use corrcoef to compute the correlation between the y variable and the fitted values.
My guess is that a book on regression will give you a better explanation than that wikipedia page.

More Answers (1)

Categories

Asked:

on 7 May 2012

Edited:

on 12 Jun 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!