采纳的回答

Tom Lane
Tom Lane 2012-5-8

0 个投票

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.

类别

帮助中心File Exchange 中查找有关 Descriptive Statistics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by