ht_onesample_pro(x, n, p0, alpha, type)

Hypothesis test for one population proportion. x is a frequency, n is the sample size, p0 is a proportion, and alpha is the significance level. Parameter type can be 0 (left tail), 1 (right tail), or 2 (both tails).
Assumes that n*p0 and n*(1-p0) are bigger or equal than 5.


See also ht_onesample_std ht_onesample_z ht_onesample_t 


Example


(See NOTE below)


ht_onesample_pro(650, 1250, .50, .05, 1)


Z Test for a Population Proportion.

Hypothesis test for one sample.

Ho : p1==0.5

Ha : p1>0.5

Significance level : 0.05 (5.0%)

Results:

Test statistics Z : 1.4142135623730963

Critical right value found is 1.6448536056633432

P value is : 0.07864960352514239

Do not 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.