ci_twosample_tpaired(A, B, cl)
Computes a confidence interval for the difference of two means (paired samples). Arrays A and B store the samples and cl is the confidence level.
Assumes samples are paired and differences are normal or samples are large.
See also ci_twosample_pro ci_twosample_tnonpooled ci_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 )
ci_twosample_tpaired(a,b,.9)
Two-Sample Paired-T Test.
Confidence interval for the difference of two means.
Confidence level : 0.9 (90%)
Results:
md : 0.6599999999999996
std : 0.44271887242357294
df : 9
Interval : (0.4033641894281392, 0.9166358105718599 )
Margin of error : 0.2566358105718604
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.