Steply

95% confidence interval: 33 of 150 are left-handed

Step by step, with the reason for every step · Confidence interval for a proportion · University Statistics

Step by step

The question

Question: in a sample of 150, 33 are left-handed: find the 95% confidence interval for the true proportion.

95% interval for p: 33 of 150 are left-handed

1 Name the numbers

p prime is the part of the sample that says yes: x divided by n.

p′ = the part of the sample: x ÷ n

33 divided by 150 is 0.22.

p′ = 33150 = 0.22

q prime is the rest: 1 minus 0.22 is 0.78.

q′ = 1 − 0.22 = 0.78

Careful!

p prime is the fraction 0.22, not the count 33.

Careful: p′ is a part of 1: 33 ÷ 150, not 33

Both counts, 33 and 117, are at least 5.

So the normal bell works here.

n × p′ = 33, n × q′ = 117: both at least 5

2 Find z*

95 percent of the bell is in the middle.

That leaves 5 percent: 2.5 percent in each end.

95% in the middle: 5% left over, 2.5% in each end

z* marks the cut between the middle and the ends.

Left of z* are the middle and one end: 0.95 plus 0.025 is 0.9750.

left of z* = 0.95 + 0.025 = 0.9750

Now we look for 0.9750 inside the table.

0.9750 is in the table: row 1.9, column .06.

So z = 1.96.

z* = 1.96

3 Error bound

The error bound for a proportion: z* times the square root of p prime times q prime over n.

EBP = z* × √p′ q′n

0.22 times 0.78 is 0.1716.

Divided by 150: 0.001144.

p′ q′n = 0.22 × 0.78150 = 0.1716150 = 0.001144

The square root of that is about 0.0338.

√p′ q′n = √0.001144 ≈ 0.0338

Times 1.96: about 0.0663.

EBP = 1.96 × 0.0338 ≈ 0.0663

4 The interval

Take the error bound away from the middle: 0.22 minus 0.0663 is 0.1537.

= p′ − EBP = 0.22 − 0.0663 = 0.1537

And add it: 0.22 plus 0.0663 is 0.2863.

= p′ + EBP = 0.22 + 0.0663 = 0.2863

The 95 percent confidence interval is (0.1537, 0.2863).

= (0.1537, 0.2863)

5 Say it in words

In words: we are 95 percent confident that the true proportion is between 15.37% and 28.63%.

95% confident: between 15.37% and 28.63%

6 Check

Let's check: the middle of the interval should be 0.22.

0.1537 plus 0.2863, divided by 2, is 0.22.

middle: (0.1537 + 0.2863) ÷ 2 = 0.22

Half the width should be the error bound: 0.2863 minus 0.1537, divided by 2, is 0.0663.

So it is right!

half the width: (0.2863 − 0.1537) ÷ 2 = 0.0663

Let's look back.

First: name the numbers.

Then: find z*.

Then: error bound.

Then: the interval.

Then: say it in words.

Last: check.

Answer
= (0.1537, 0.2863)

Your turn

Try this one yourself, then check:

95% interval for p: 200 of 500 are left-handed
Show the answer
(0.3571, 0.4429)

More from Confidence interval for a proportion

The whole lesson: Confidence interval for a proportion →