HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Statistics & Data Science
  2. /Statistics Basics
  3. /Learning from Samples

Learning from Samples

Statistics & Data Science · High School (9–10) · 3 courses, 30 worked problems, 100 practice questions

We rarely measure a whole population, so we learn about it from a sample. A sample mean will differ a little from sample to sample. The sampling distribution describes how it varies, and the standard error measures that variation. A confidence interval gives a range of likely values for the population mean. A hypothesis test asks if a sample result is too unusual to be chance alone. It uses a null hypothesis, a test statistic and a significance level, such as 5%5\%5%. Medical trials and quality checks on a production line use these methods.

With practice you will be able to

  • Find the standard error of a sample mean
  • Build and interpret a confidence interval for a mean
  • Carry out a hypothesis test and state the conclusion in words

On the syllabus of

  • SAT
  • AP
  • IB
  • A-Level

Lessons

  • Sampling Variability and Sample SizeWhy do four times as many people only halve the error? Does a big country need a bigger sample?High School (9–10)
  • Confidence Intervals for Proportions and MeansWhere does a poll's "plus or minus 3 points" come from? What does 95% confident really mean?High School (9–10)
  • Testing an Idea with Simulation34 heads in 50 tosses: is the coin unfair? Why does testing 40 foods nearly always find something?High School (9–10)

Practice questions

Choose an answer, then check it. Each one shows a full explanation.

The waiting times at a clinic are strongly right-skewed, with mean 30 min and standard deviation 25 min. Samples of nnn waiting times are taken at random. Use a Normal model for the sampling distribution of the sample mean xˉ\bar{x}xˉ. What is the smallest nnn for which P(xˉ>38 min)P(\bar{x}>38\text{ min})P(xˉ>38 min) is less than 0.01?

A random sample X1,X2,X3,X4,X5X_1, X_2, X_3, X_4, X_5X1​,X2​,X3​,X4​,X5​ is taken from a population with mean μ>0\mu>0μ>0 and standard deviation σ\sigmaσ. Which estimator of μ\muμ is biased but has a smaller variance than the sample mean Xˉ\bar{X}Xˉ?

In a large population, 8% of items are faulty. A random sample of 60 items is taken, and p^\hat{p}p^​ is the proportion of the sample that is faulty. Which statement about using a Normal model for p^\hat{p}p^​ is correct? Each statement also gives a value for P(p^≤0.05)P(\hat{p}\le0.05)P(p^​≤0.05). Take the correct value to be the exact binomial probability of at most 3 faulty items in the sample.

Worked problems

Each one has a hint, the key idea and a full worked solution.

  • A made-up street has 5 households. They keep 0, 1, 1, 3 and 5 pets…Easy
  • In a made-up town, 60% of the adults walk for at least half an hour every day…Easy
  • Six students in a made-up study group score 4, 6, 7, 9, 10 and 12 marks in a short quiz…Medium
  • A machine fills bags of rice. The masses of single bags have a standard deviation of 15 g…Easy

Python labs

  • Many samples, many means
  • The square root rule by simulation
  • An interval for a proportion
  • How often do the intervals catch the truth?
  • Testing a coin
  • A shuffling test

Related topics

  • Statistics Basics
  • Data and Sampling
  • Tables and Graphs
  • Averages: Mean, Median and Mode
  • Spread of Data
  • Probability and Chance
  • Study Design and Experiments
  • Random Variables and Distributions
  • Correlation and Regression

Crates in a large depot come from two suppliers. 70% come from supplier X and have mass with mean 50 kg and standard deviation 4 kg. 30% come from supplier Y and have mass with mean 60 kg and standard deviation 6 kg. A random sample of 25 crates is taken. Use the central limit theorem. What is the probability that the sample mean mass is more than 54 kg?

A manufacturer claims that at most 8% of its switches are faulty. An inspector tests H0:p=0.08H_0:p=0.08H0​:p=0.08 against Ha:p>0.08H_a:p>0.08Ha​:p>0.08. In a random sample of 250 switches, 28 are faulty. The conditions for inference are met. What is the PPP-value of the one-proportion zzz test?

A one-proportion zzz confidence interval from a random sample of 210 people is (0.321, 0.439)(0.321,\ 0.439)(0.321, 0.439). To the nearest whole percent, what is the confidence level?

Two groups of equal size nnn are to be surveyed, to give a 90% confidence interval for p1−p2p_1-p_2p1​−p2​ with a margin of error of at most 0.04. There is no earlier estimate of either proportion, so use p^1=p^2=0.5\hat{p}_1=\hat{p}_2=0.5p^​1​=p^​2​=0.5. What is the smallest nnn for each group?

A food company tests whether a new recipe is preferred. Forty tasters each compare the new recipe with the old one, and the company will say that the new recipe is preferred if at least 26 of the 40 choose it. Tasters choose independently. Suppose that in truth 70% of all tasters prefer the new recipe. What is the probability of a Type II error?

A two-sample zzz interval for p1−p2p_1-p_2p1​−p2​ needs two independent random samples, each at most 10% of its population, and at least 10 yes and 10 no answers in each sample. For which survey are all these conditions met?

A scientist wants a 98% confidence interval for the mean mass of a species of beetle, with a margin of error of at most 1.5 g. A pilot study suggests a standard deviation of about 5.8 g. Use the Normal critical value. What is the smallest sample size?

All 100 practice questions on Learning from Samples →

Three fair dice are thrown, and x is the mean of the three faces…
Medium
  • A spinner shows 1, 2 or 6, each with the same chance…Medium
  • The times that patients wait at a made-up clinic have mean 50 minutes and standard deviation 12…Hard
  • A coin is fair, so the true share of heads is 0.5…Easy
  • A library expects that about 30% of the members of a large club read a newspaper every day…Medium
  • A researcher takes a random sample of 400 adults, without replacement, in a made-up town of 5000…Hard
  • A made-up poll asks 900 parents, chosen at random, whether they want school uniforms…Easy
  • A news report says: "In a random poll, 45% of voters back the new road, with a margin of error of 4…Easy
  • All 30 worked problems on Learning from Samples →