ht_onesample_t(A, m, alpha, type)

Hypothesis test for one population mean with unknown standard deviation. Array A stores the sample, m is the test mean, and the significance level is alpha. Parameter type can be 0 (left tail), 1 (right tail), or 2 (both tails).


See also ht_onesample_pro ht_onesample_z ht_onesample_std 


Example


(See NOTE below)

a=(7.2, 7.3, 5.7, 7.3, 6.3, 6.9, 6.1, 5.5, 6.7, 6.9, 6.3, 7.9, 6.6, 6.5, 5.8)

( 7.2 7.3 5.7 7.3 6.3 6.9 6.1 5.5 6.7 6.9 6.3 7.9 6.6 6.5 5.8 )


ht_onesample_t(a, 6, .05, 1)


One-Sample T-Test.

Hypothesis test for one population mean. Unknown standard deviation.

Ho : m1==6.0

Ha : m1>6.0

Significance level : 0.05 (5.0%)

Results:

Test statistics T : 3.4586160984497365

Critical right value found is 1.7613101357748762

P value is : 0.0019191606907199565

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.