l Hypothesis Testing for a proportion Calculator
Enter x (# of successes) Enter n (sample size) Enter H0 Enter α
p
 

100 randomly selected items were tested. It was found that 35 of the items tested positive.
Test the hypothesis that exactly 40% of the items tested positive at α = 0.05

State the null and alternative hypothesis:

H0:  p = 0.4
HA:  p ≠ 0.4

Compute

p^  =  x
  n

p^  =  35
  100

p^ = 0.35

Calculate our test statistic z:

z  =  p^ - p
  p(1 - p)/n

z  =  0.35 - 0.4
  0.4(1 - 0.4)/100

z  =  -0.05
  0.4(0.6)/100

z  =  -0.05
  0.0024

z  =  -0.05
  0.048989794855664

z = -1.0206207261597

Checking our table of z-scores for α = 0.05%, we get:

Z = 1.6449

Our rejection region is Z > 1.6449

h