T Test Pearson R. A confidence interval for the mean appropriate to the specified alternative hypothesis. The t-test compares two means making some assumptions.
CorrTTestr 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. N is the sample size ie size of d. Statistics STATA and Other Statistical Software.
Therefore the Pearson correlation coefficient between the two stocks is -09088.
T r n 2 1 r 2 0939 170 2 1 0939 2 3539 To obtain the P -value we need to compare the test statistic to a t -distribution with 168 degrees of freedom since 170 - 2 168. The independent samples t test tends to be used in situations where you want to test whether the means of two groups differ significantly. May 14 2020 By default the ttest function runs a welch test which is a parametric test. CorrTTestr 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.
