ExamSaathi learning library · Government exams · SSC CGL quantitative foundations; published syllabus labelled 2024 · Quantitative aptitude
Confidence intervals: estimating a mean or a proportion with a margin
Turn a sample result into a confidence interval, an estimate plus or minus a margin: z intervals for a mean from a large sample, t intervals for a small one, intervals for a proportion, and what 95 percent confidence does and does not mean.
Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.
You will learn to
- Build a 95 or 99 percent confidence interval for a population mean from a large sample as the sample mean plus or minus z x SD / sqrt(n).
- Construct a small-sample confidence interval for a mean with the t value for n - 1 degrees of freedom.
- Find a confidence interval for a population proportion, such as the share of households with an LPG connection.
- Recover the estimate and the margin of error from two confidence limits, and explain how the interval width changes with the confidence level, the SD and the sample size.
- Explain what 95 percent confidence means, and what it does not mean, for a single confidence interval.
Before you start
A sample mean, or the share of a sample with some feature, is one best guess for the matching population figure. It is called a point estimate. Another sample would give a slightly different guess, and a single number does not show how far off it could be. A confidence interval fixes that by giving a range of believable values. You need the mean, the SD, square roots and the normal table. Notation: n is the sample size; mu and sigma are the population mean and SD; s is the sample SD found with divisor n - 1; p is the sample proportion and q = 1 - p. The standard error SD / sqrt(n) is used here without deriving it again. Here x always means multiply, and every data set is invented for practice.
The core idea: estimate plus or minus a margin
Every interval in this lesson has one shape: point estimate - margin up to point estimate + margin. The two ends are called the lower and upper confidence limits. The margin of error is a multiplier times the standard error. For the mean of a large sample (n of 30 or more) the interval is sample mean +/- z x SD / sqrt(n), where SD is sigma when it is known and the sample SD s otherwise. The multiplier comes from the normal table. The area between 0 and 1.96 is 0.4750, so 0.95 of the whole area lies between -1.96 and 1.96; that is why z = 1.96 gives 95 percent confidence. The area between 0 and 2.58 is 0.4951, so the middle area is 0.9902, about 99 percent, and z = 2.58 gives 99 percent confidence. The width of an interval, upper limit minus lower limit, is twice the margin.
Small samples: the multiplier becomes t
With a small sample (usually below 30) from a roughly normal population whose sigma is unknown, s is itself only an estimate, so the interval has to be made wider. Use sample mean +/- t x s / sqrt(n), with s found using divisor n - 1 and t read for n - 1 degrees of freedom. For 95 percent confidence take the t value that leaves 2.5 percent in each tail (the two-tailed 5 percent column): 2.776 for 4 degrees of freedom, 2.571 for 5, 2.365 for 7, 2.306 for 8 and 2.262 for 9. For 99 percent confidence take the two-tailed 1 percent column, for example 3.250 for 9 degrees of freedom. Every one of these is bigger than 1.96, and the gap narrows as the degrees of freedom grow: the 95 percent value is 2.042 for 30. Do not use the one-tailed 5 percent value, such as 1.860 for 8 degrees of freedom; it leaves 5 percent in each tail and would give only a 90 percent interval.
A further case: an interval for a proportion
For a share, such as the fraction of households that have an LPG connection, the point estimate is p = (number with the feature) / n, and q = 1 - p. The interval is p +/- z x sqrt(p x q / n), with z = 1.96 for 95 percent and z = 2.58 for 99 percent as before. Keep p and q as decimals inside the square root and change the limits to percentages at the end. The method needs a large sample with plenty of cases on both sides: a common rule asks for n x p and n x q to be at least 5 each, and some books ask for 10. To get a feel for the size of the margin: with p = 0.5 and n = 100, sqrt(0.25 / 100) = 0.05, so the 95 percent margin is 1.96 x 0.05 = 0.098, nearly 10 percentage points either side.
Reading an interval: meaning, width and end points
The 95 percent describes the method. Picture drawing sample after sample of the same size and building an interval from each one in the same way: about 95 of every 100 such intervals would catch the population mean, and about 5 would miss it. A single interval that has already been worked out carries no chance at all, because the population mean is a fixed number: it is simply inside those limits or outside them. The interval is also about the mean, not about individuals; it does not say that 95 percent of people lie inside it. The width, 2 x multiplier x SD / sqrt(n), grows with the confidence level (a bigger multiplier) and with the SD, and shrinks as n grows, but only through sqrt(n): four times as many observations halve the width. Given only the limits L and U, the estimate is the centre (L + U) / 2 and the margin is (U - L) / 2. Limits of 46.04 and 49.96, for example, give an estimate of 48 and a margin of 1.96.
Common mistakes
Using z = 1.96 with a small sample whose sigma is unknown, where t is needed. Reading t at n degrees of freedom instead of n - 1, or from the one-tailed column. Finding s with divisor n. Dividing the SD by n instead of by sqrt(n). Mixing a percentage and a decimal inside sqrt(p x q / n), such as p = 80 with q = 0.2. Reporting the full width as the margin; the margin is half the width. Saying that an interval already worked out has a 95 percent chance of holding the true mean, or that 95 percent of individual values lie in it. Expecting a 99 percent interval to be narrower than a 95 percent one; more confidence needs a wider interval.
A routine for any interval
1. Decide what is being estimated: a mean or a proportion. 2. Work out the point estimate: the sample mean, or p = count / n. 3. Work out the standard error: SD / sqrt(n) for a large sample, s / sqrt(n) with divisor n - 1 for a small one, or sqrt(p x q / n) for a share. 4. Write down the multiplier: z = 1.96 or 2.58, or t for n - 1 degrees of freedom from the two-tailed column. 5. Margin = multiplier x standard error. 6. Limits = estimate - margin and estimate + margin, with units. 7. Check that the centre of the two limits is the estimate and that half the width is the margin.
Worked examples
A random sample of 100 college students in Pune shows an average mobile data use of 18.4 GB a month, with an SD of 5 GB. Find the 95 percent confidence interval for the mean monthly data use of all college students in Pune, using z = 1.96.
- The sample is large (n = 100), so use sample mean +/- z x SD / sqrt(n). The normal table gives 0.4750 as the area between 0 and 1.96, which is why z = 1.96 suits 95 percent.
- Standard error = 5 / sqrt(100) = 5 / 10 = 0.5 GB.
- Margin of error = 1.96 x 0.5 = 0.98 GB.
- Lower limit = 18.4 - 0.98 = 17.42 GB. Upper limit = 18.4 + 0.98 = 19.38 GB.
- For comparison, 99 percent confidence uses 2.58 x 0.5 = 1.29 GB and gives 17.11 to 19.69 GB, a wider interval.
Answer: The 95 percent confidence interval is 17.42 GB to 19.38 GB, that is 18.4 +/- 0.98 GB.
Nine office workers in Hyderabad, chosen at random, note their one-way commuting times in minutes: 36, 44, 40, 38, 44, 40, 36, 42, 40. Treating the times as roughly normal, find a 95 percent confidence interval for the mean commuting time. For 8 degrees of freedom, the t value that leaves 2.5 percent in each tail is 2.306.
- Sum = 360, so the sample mean = 360 / 9 = 40 minutes.
- Deviations from 40: -4, 4, 0, -2, 4, 0, -4, 2, 0. Squares: 16, 16, 0, 4, 16, 0, 16, 4, 0. Sum of squares = 72.
- s^2 = 72 / (9 - 1) = 9, so s = 3 minutes, and the standard error = 3 / sqrt(9) = 1 minute.
- The sample is small and sigma is unknown, so the multiplier is t for 9 - 1 = 8 degrees of freedom: 2.306.
- Margin = 2.306 x 1 = 2.306 minutes. Limits: 40 - 2.306 = 37.694 and 40 + 2.306 = 42.306.
Answer: The 95 percent confidence interval is about 37.69 to 42.31 minutes, that is 40 +/- 2.306 minutes.
In a random survey of 400 households in Koraput district, Odisha, 320 have an LPG connection. Find the 95 percent confidence interval for the share of all households in the district with an LPG connection, using z = 1.96.
- p = 320 / 400 = 0.8 and q = 1 - 0.8 = 0.2. Here n x p = 320 and n x q = 80, both large.
- Standard error = sqrt(0.8 x 0.2 / 400) = sqrt(0.0004) = 0.02.
- Margin = 1.96 x 0.02 = 0.0392.
- Limits: 0.8 - 0.0392 = 0.7608 and 0.8 + 0.0392 = 0.8392.
Answer: The 95 percent confidence interval is 0.7608 to 0.8392, that is 76.08 percent to 83.92 percent of households.
Practice checks
- From a large random sample of Alphonso mangoes picked in a Ratnagiri orchard, the 95 percent confidence interval for the mean weight is 246.08 g to 253.92 g. Using the same sample, what is the 99 percent interval? Take z = 1.96 for 95 percent and z = 2.58 for 99 percent.
- In a random sample of 600 households in a Lucknow ward, 360 pay their electricity bill through UPI. Find the 99 percent confidence interval for the share of all households in the ward that do so, using z = 2.58.
- Four e-rickshaws of a new model are tested in Indore and give a mean distance of 92 km per full charge, with s = 6 km (divisor n - 1). Treating the distances as roughly normal, find the 95 percent confidence interval for the mean distance of this model. The t values leaving 2.5 percent in each tail are 3.182 for 3 degrees of freedom and 2.776 for 4 degrees of freedom.
- A 95 percent confidence interval for the mean monthly electricity bill of flats in Thane, based on a random sample of 100 flats, is Rs. 240 wide. If 400 flats had been sampled and the SD stayed the same, how wide would the interval be?
- The 95 percent confidence interval for the mean monthly data use of Pune college students worked out to 17.42 GB to 19.38 GB. Which statement about it is correct?
Sources checked
- SSC CGL Scheme and Syllabus, labelled 2024 — Tier-II Paper-II Statistics (Statistical Inference: interval estimation, confidence intervals); not verified as the full 2026-cycle syllabus
- NIST/SEMATECH e-Handbook of Statistical Methods — Section 1.3.5.2, Confidence Limits for the Mean: the interval sample mean +/- t x s / sqrt(N) with N - 1 degrees of freedom and what such an interval means; mathematical relationships only
- OpenStax, Introductory Statistics 2e — Section 8.1, a confidence interval for a population mean when the population standard deviation is known: sample mean +/- z x sigma / sqrt(n), the error bound, and its interpretation; mathematical relationships only
- OpenStax, Introductory Statistics 2e — Section 8.3, a confidence interval for a population proportion, sample proportion +/- z x sqrt(p q / n); mathematical relationships only