Skip to content
Helper

Inferential Statistics: From a Sample to the Whole Population

Using a sample to estimate and test facts about a whole population

Class 12 to collegeWorked tests Checked 23 Nov

Inferential statistics reasons from a sample to a larger population, and attaches a measure of how reliable those conclusions are. Opinion polls, quality checks in factories and medicine trials all rely on it.

Here you will find the key words (population, sample, parameter, statistic), a side by side table of descriptive and inferential statistics, confidence intervals for a mean and a proportion, and a full hypothesis test, each worked with numbers.

Juice bottles set aside for checking, a sample used in inferential statistics
A few bottles checked can speak for the whole batch.

At a glance

  • Starts from

    A random sample
  • Standard error

    σ ÷ √n
  • 95% interval

    x̄ ± 1.96 × SE
  • Test statistic

    z = (x̄ - μ) ÷ SE
  • Usual level

    5%
  • Main tools

    Estimation, testing

What is inferential statistics

Measuring everyone is usually impossible. A juice company cannot open every bottle it makes, and a survey team cannot visit every home in a state. So we study a sample, a smaller group picked from the population, and use it to say something about the whole. That step from part to whole is inference.

Because a sample never matches the population exactly, every inference carries some uncertainty. The real skill of inferential statistics is to measure that uncertainty and report it honestly, for example "between 60 and 64, with 95% confidence", rather than one bare number. Probability is the language used for this, which is why the two subjects are taught together on probability and statistics.

Population, sample, parameter and statistic

Four words that appear in every inference question
WordMeaningSymbolExample
PopulationThe whole group you care aboutN for its sizeEvery one of 1200 pupils in a school
SampleThe part you actually measuren for its size60 names drawn from a hat
ParameterFixed but usually unknown truthμ, σ, pTrue mean height of all 1200
StatisticThe figure computed from the measured groupx̄, s, p̂Mean height of the 60

To remember which is which, pair the words by first letter: the two P words belong together, and so do the two S words. Inference takes the figure you computed and uses it as an estimate of the real one.

Difference between descriptive and inferential statistics

Descriptive and inferential statistics compared
PointDescriptiveInferential
AimSummarise data in handReach a verdict on a wider group
Data usedWhole group or one sample, described as it isA sample, treated as a window on the population
Typical outputMean, median, graphs, SDEstimates, confidence intervals, test results
UncertaintyNone stated, the figures are exact for that dataAlways stated, as a margin of error or p value
ExampleThe 60 sampled students averaged 152 cmAll 1200 students probably average 150 to 154 cm

Descriptive and inferential statistics work as a pair. The sample gets described before anything else, because its mean and spread are the raw material for the inference. Our descriptive statistics page covers that first stage in full.

Estimation: point estimates and confidence intervals

A point estimate is one number, such as the sample mean, offered as the best guess of the parameter. A confidence interval adds a margin around it. For a large sample, the 95% interval for a mean is:

x̄ ± 1.96 × σ ÷ √n

The quantity σ ÷ √n is the standard error. It shrinks as the sample grows, so bigger samples give narrower, more precise intervals.

Example 1. A random sample of 100 workers has a mean daily travel time of 62 minutes. The standard deviation is known to be 10 minutes. Give a 95% confidence interval for the mean of all workers.

  1. Standard error = 10 ÷ √100 = 10 ÷ 10 = 1.
  2. Margin = 1.96 × 1 = 1.96.
  3. Interval = 62 - 1.96 to 62 + 1.96 = 60.04 to 63.96 minutes.

With 400 workers instead, the standard error would be 10 ÷ 20 = 0.5, and the interval half as wide.

Example 2. In a survey, 220 of 400 voters favour a new bus route. Estimate the share of all voters who favour it, with a 95% interval.

  1. Sample proportion p̂ = 220 ÷ 400 = 0.55.
  2. Standard error = √(0.55 × 0.45 ÷ 400) = 0.0249 (to 4 places).
  3. Margin = 1.96 × 0.0249 = 0.0488.
  4. Interval: 0.55 ± 0.0488, about 50.1% to 59.9%.

So a majority is likely, though the lower end is close to half.

Hypothesis testing in four steps

  1. State the null hypothesis H0 (no change, no difference) and the alternative H1.
  2. Choose a significance level, usually 5%.
  3. Work out a test statistic from the sample, such as z = (x̄ - μ) ÷ (σ ÷ √n).
  4. Compare it with the critical value, or find its p value, and decide whether to reject H0.

Example 3. A machine should fill packets with 500 g. A sample of 36 packets has a mean of 497 g, and σ = 6 g. Is the filling off target? Use a 5% significance level.

  1. H0: μ = 500. H1: μ ≠ 500.
  2. Standard error = 6 ÷ √36 = 1.
  3. z = (497 - 500) ÷ 1 = -3.
  4. For a two-sided test at 5%, reject H0 when |z| > 1.96. Here |z| = 3, so reject.

The machine needs checking. A p value gives the same decision in a different form; see p value in statistics.

How the sample is chosen matters most

  • Simple random sampling: each person in the population is as likely to be picked as any other; slips with roll numbers shaken in a tin do the job.
  • Stratified sampling: first divide everyone into layers, for instance by class from 6 up to 12, then pick randomly inside every layer.
  • Systematic sampling: begin at a random point on the register and take each 20th entry after it.
  • Cluster sampling: pick whole groups, such as a few villages, and survey everyone in them.

No formula can rescue a biased sample. A phone survey misses homes without phones; asking only students in the library overstates study hours. Random selection is what makes the margin of error meaningful.

Errors in inference

Even with a perfect method, a sample may mislead by chance. This is sampling error, and confidence intervals measure it. In testing there are two specific errors:

  • Type I error: rejecting H0 when it is actually true. Its chance equals the significance level, such as 5%.
  • Type II error: failing to reject H0 when it is actually false. Larger samples reduce it.

These ideas are central in college courses; the statistics for data science page shows where they are used in practice, and what is statistics places this branch in the subject as a whole.

Frequently asked questions

What is inferential statistics in simple words?

This branch takes a sample and uses it to reach conclusions about a whole population. It also measures how sure we can be, through margins of error and tests.

What is the difference between descriptive and inferential statistics?

Descriptive statistics summarises data you already have, with no claim beyond it. Inferential statistics uses a sample to estimate or test facts about a larger population, and states the uncertainty.

What are examples of inferential statistics?

Estimating a state's average income from a survey, predicting an election from an opinion poll, and testing whether a new fertiliser raises yield are all inferential.

Why is 1.96 used in a 95% confidence interval?

In a normal distribution, 95% of values lie within 1.96 standard deviations of the mean. Using 1.96 standard errors around the sample mean therefore gives a 95% interval for large samples.

Does a bigger sample always help?

A bigger random sample shrinks the standard error and narrows the interval. A bigger biased sample does not help, because the bias stays however many people you ask.

Is a 95% confidence interval 95% sure to contain the true value?

Strictly, it means that if you repeated the sampling many times, about 95% of the intervals built this way would contain the true value. For school answers, saying we are 95% confident is accepted.