corrcoef - p-value calculation
古いコメントを表示
Hi, I have read the description. "The p-value is computed by transforming the correlation to create a t statistic having n-2 degrees of freedom, where n is the number of rows of X."
But is this the same as saying significance of correlation was determined using t-test?
Thanks, S
採用された回答
その他の回答 (1 件)
sas0701
2015 年 2 月 10 日
0 投票
1 件のコメント
Peter Perkins
2015 年 2 月 10 日
The p-values from corrcoef use a statistic that is (approximately) t-distributed, but this almost completely unrelated to the t-test that you're thinking of. The latter is a test for the null hypothesis
H0: two variables are from distributions that have the same mean (and equal variance)
whwereas the p-values from corrcoef are for the null hypothesis
H0: two variables are uncorrelated.
I'm sure Wikipedia has a description, and the doc for corrceof does actually say it:
"... a matrix of p-values for testing the hypothesis of no correlation. Each p-value is the probability of getting a correlation as large as the observed value by random chance, when the true correlation is zero."
カテゴリ
ヘルプ センター および File Exchange で Hypothesis Tests についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!