ht_twosample_tpaired(A, B, alpha, type)

Paired T-test for two population means. Hypothesis test for the mean of paired samples A and B. The significance level is alpha. Parameter type can be 0 (left tail), 1 (right tail), or 2 (both tails).
Assumes samples are paired and that differences are normal or samples are large.


See also ht_twosample_std ht_twosample_tnonpooled ht_twosample_tpooled 


Example


(See NOTE below)


a=(25.7, 20., 28.4, 13.7, 18.8, 12.5, 28.4, 8.1, 23.1, 10.4)

( 25.7 20.0 28.4 13.7 18.8 12.5 28.4 8.1 23.1 10.4 )


b=(24.9, 18.8, 27.7, 13., 17.8, 11.3, 27.8, 8.2, 23.1, 9.9)

( 24.9 18.8 27.7 13.0 17.8 11.3 27.8 8.2 23.1 9.9 )


ht_twosample_tpaired(a, b, .05, 1)


Two-sample Paired T Test.

Hypothesis test for the mean of paired samples.

Ho : m1==m2

Ha : m1>m2

Significance level : 0.05 (5.0%)

Results:

Test statistics T : 4.7142857142857135

Critical right value found is 1.8331129326561466

P value is : 5.489370821960549E-4

Reject the null hypothesis.





NOTE: The data used in this example was taken from the textbook Introductory Statistics 6th Ed. by Neil A. Weiss with kind permission of Addison Wesly Longman, Inc. (AWL). AWL does not endorse nor it supports the Calcugator.