corrcoef - p-value calculation

조회 수: 11 (최근 30일)
sas0701
sas0701 2015년 2월 9일
댓글: Peter Perkins 2015년 2월 10일
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

채택된 답변

John D'Errico
John D'Errico 2015년 2월 9일
편집: John D'Errico 2015년 2월 9일
Is it the same as ... ? A t statistic was used in that computation. But that does not imply equivalence.
For example, I (together with a friend) built a table recently in my shop. As part of that effort, we used a saw, a chisel, a rasp, sandpaper, screwdriver, drill, router, as well as MANY other tools. Would it be correct to say that the table was built using a saw? The latter statement implies that only a saw was used. In fact, many other tools were necessary.
Similarly, when you choose to state that a t-test was used to determine significance, you leave out information that was crucial. In fact, a specific transformation was necessary, and without that transformation, a t-test would be meaningless. That t-test was not applied directly to a correlation coefficient, but to a transformation thereof.
There are limits of course. Is it necessary to state that algebra or even arithmetic was employed? I think not.

추가 답변 (1개)

sas0701
sas0701 2015년 2월 10일
Hi, I understand. this is for a paper. I want to describe in one sentence how the significance was calculated for the correlation values. I.e. I use the p value <0.05. But I need to decribe it.
What do you suggest?
  댓글 수: 1
Peter Perkins
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."

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Hypothesis Tests에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by