How are the critical value (F statistic) and the p-value in regress calculated?
    9 ビュー (過去 30 日間)
  
       古いコメントを表示
    
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!
0 件のコメント
採用された回答
  the cyclist
      
      
 2012 年 3 月 26 日
        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 件のコメント
  the cyclist
      
      
 2012 年 3 月 26 日
				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.
その他の回答 (0 件)
参考
カテゴリ
				Help Center および File Exchange で Linear Regression についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


