Answers the question: with what confidence can I say that the means of these two columns of data are different? apop_paired_t_test
answers the question: with what confidence can I say that the mean difference between the two columns is zero?
If apop_opts.verbose
is >=1, then display some information to stdout, like the mean/var/count for both vectors and the t statistic.
- Parameters
-
- Returns
- an apop_data set with the following elements: mean left - right: the difference in means; if positive, first vector has larger mean, and one-tailed test is testing
, else reverse if negative.
t statistic: used for the test
df: degrees of freedom
p value, 1 tail: the p-value for a one-tailed test that one vector mean is greater than the other. confidence, 1 tail: 1- p value. p value, 2 tail: the p-value for the two-tailed test that left mean = right mean. confidence, 2 tail: 1-p value