In the regress function what is the estimate of the error variance returned within stats

I am using the regress function from the Statistics Toolbox. It returns a parameter called stats, which includes "an estimate of the error variance", according to the documentation. I want to know how this "estimate of the error variance" is calculated. Also is this the RMS?
Thank you very much
Cheers
Patricia Pérez González

 Accepted Answer

Error variance is the square of the root mean square error (RMSE). So, to be clear, it is RMSE^2.
You can verify this for yourself by typing
edit regress
and seeing the calculation of s2, which is the last element of the stats vector.

Tags

Community Treasure Hunt

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

Start Hunting!