T Test Formula Correlation. Corrttest r size tails the p value of the one sample test of the correlation coefficient using theorem 1 where r is the observed correlation coefficient based on a sample of the stated size. T score r n 2 1 r 2 displaystyle t text score frac r sqrt n 2 sqrt 1 r 2 where r is the pearson correlation coefficient.
It turns out that the two sample analysis using the t test is equivalent to the analysis of the correlation coefficient using the t test. The value of the test statistic t is shown in the computer or calculator output along with the p value. T score r n 2 1 r 2 displaystyle t text score frac r sqrt n 2 sqrt 1 r 2 where r is the pearson correlation coefficient.
It turns out that the two sample analysis using the t test is equivalent to the analysis of the correlation coefficient using the t test.
2 tailed 017 n 10 10 type school type pearson correlation 728 1 sig. Calculate the correlation coefficient r for x and y as above using the data in example 2 of two sample t test with equal variances and then test the null hypothesis h 0. The formula for the two sample t test a k a. T test value is calculated using the formula given below.