[scilab-Users] Linear regression and R-squared

Paul CARRICO paul.carrico at free.fr
Mon Dec 6 21:37:30 CET 2010


Hi

 

I do as follow … but maybe there’s another way !

 

                F_mean = mean(experience(:,2));

 

                SSE = 0;

                SST = 0;

                SSE = norm ((F_fit(:,2) - experience(:,2))^2) ;     ……. you can use sum instead of norm

                SST = norm((F_mean - experience(:,2))^2) ;

 

                R_square = 1 - (SSE / SST);

 

Where “experience” are the experimental data / F_fit are the results from you’re

 

Paul

 

 

De : XMMS2010 at web.de [mailto:XMMS2010 at web.de] 
Envoyé : lundi 6 décembre 2010 21:20
À : users at lists.scilab.org
Objet : [scilab-Users] Linear regression and R-squared

 

Hi,

using "reglin" or "regress" a linear regression of measurement data can be done. But how is it possible to get R-squared of the regression as a parameter for the "goodness of fit"? Is there another function for doing this?

Thanks

XMMS2010 

  


  <https://img.web.de/p.gif> 


WEB.DE DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt auch mit    
gratis Notebook-Flat!  <http://produkte.web.de/go/DSL_Doppel_Flatrate/2> http://produkte.web.de/go/DSL_Doppel_Flatrate/2

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20101206/45549373/attachment.htm>


More information about the users mailing list