How are the critical value (F statistic) and the p-value in regress calculated?

8 visualizzazioni (ultimi 30 giorni)
Hi. I am running a multiple regression analysis with [b,bint,r,rint,stats] = regress(y,X). Regarding 'stats' I have the following questions: 1) What is the critical value (alpha) for the F statistic? I mean which value does Matlab 'assume' (e.g. alpha=0.01, alpha=0.05...)? 2) How does Matlab compute the p-value? The p-value(which should be smaller than the critical value of the F statistic in order to have a significant test) is normally the area beneath the right tail of the f distribution at the F-value, if I understood the concept correctly. With respect to the regress command - does Matlab simply calculate this area or does it calculate the p-value differently?
Thank you!

Risposta accettata

the cyclist
the cyclist il 26 Mar 2012
As stated in "help regress", the default test is at the 95% confidence level (i.e. alpha=0.05). You can also use a third input argument to specify a different value of alpha.
Yes, MATLAB calculates the area under the F cumulative distribution function.
  4 Commenti
the cyclist
the cyclist il 26 Mar 2012
Using random x and y values,
[b,bint,r,rint,stats] = regress(rand(3,1),[ones(3,1),rand(3,1)],0.01)
will calculate intervals with alpha=0.01.
Alwin
Alwin il 26 Mar 2012
Great. Sorry for not accepting the answer earlier, but I am kind of new here and with Matlab.

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by