191. Two-Sample Z-Test for Proportion

Example

Your friend is convinced studying doesn’t help. You believe it does, so you take 2 simple random samples of your Stat course: one for students who studied > 4 hrs and one for those who studied < 4 hrs. Of the 120 students who studied > 4 hrs, 103 passed. Of the 80 who studied less, 57 passed. At a = 0.05 test your claim.

𝐻0:𝑝>4𝑝<40𝐻𝑎:𝑝>4𝑝<4>0𝑧=𝑝̂>4𝑝̂<4𝑝̂𝑐(1𝑝̂𝑐)(1𝑛>4+1𝑛<4)

Where:

  • 𝑝̂>4=103120=0.8583

  • 𝑝̂<4=5780=0.7125

  • 𝑛>4=120

  • 𝑛<4=80

  • 𝑝̂𝑐=𝑥>4+𝑥<4𝑛>4+𝑛<4=103+57120+80=0.8

𝑧=0.85830.71250.8(10.8)(1120+180)=2.5253𝑝̂>4𝑝̂<4=0.85830.7125=0.1458𝑃(𝑧2.5253)=0.0058𝑧-value>critical-value2.5253>1.6449𝑝-value<𝛼-value0.0058<0.05

Reject 𝐻0. At 𝛼=0.05 there is sufficient evidence that students who studied more than 4 hours passed at a higher rate.