All courses › Statistics

BETA Many questions in this subject are new and not yet reviewed by a teacher, so mistakes can occur · added 16.10.2026.

Statistics: free practice, theory and problems

Descriptive statistics summarise data with a few numbers: where is the centre, and how much do the data spread?

4 parts49 problemsPractice examFree
Start practising for free →

Contents

  1. Descriptive statistics
  2. Probability distributions
  3. Confidence intervals
  4. Hypothesis testing

1. Descriptive statistics

What is it about?

Descriptive statistics summarise data with a few numbers: where is the centre, and how much do the data spread?

In short

Data and variables

Statistics starts with data: observations of one or more variables. It helps to distinguish between

Also distinguish the population (all the units you want to say something about) from the sample (those you actually measured). Descriptive statistics summarises the sample; inference (confidence intervals, hypothesis tests) generalises to the population.

Measures of centre

For right-skewed distributions (such as income and house prices: many low values and a few very high ones) the mean is larger than the median.

Measures of spread

Box plots and outliers

A box plot shows the minimum, Q1Q_1, median, Q3Q_3 and maximum. Values more than 1.5⋅(Q3−Q1)1.5 \cdot (Q_3 - Q_1) outside the box are often marked as outliers. Investigate them: a measurement error, or a real and interesting observation?

Relationships between two variables

A scatter plot shows the relationship between two numerical variables. The correlation coefficient rr lies between −1 and 1 and measures how strong the linear relationship is. rr near 0 means no linear relationship (but maybe a curved one). Remember: correlation is not causation – ice-cream sales and drownings correlate because both rise in summer.

Always report both centre and spread: an average salary of 600,000 NOK says little unless you know whether nearly everyone earns that, or a few earn millions.

Example

Salaries 400, 450, 500, 520 and 2000 (thousand NOK): mean 774, median 500. One high salary pulls the mean up.

Median for skewed data, mean for symmetric data.

Practise descriptive statistics in the app →

2. Probability distributions

🔗 Shared curriculum with Mathematics S2. The questions are the same, but your progress counts separately for each subject.

What is it about?

A probability distribution tells you how likely each possible outcome is. With the expected value and the standard deviation you describe the "centre" and the "spread". The two most important distributions are the binomial distribution and the normal distribution.

Concepts and formulas

Random variables

A random variable XX is a number that depends on the outcome of a random experiment – e.g. the number of sixes in ten throws, or defective items in a box. A probability distribution shows which values XX can take and the probability of each.

Expectation and standard deviation

In a lottery where a ticket costs 20 kr and the expected prize is 12 kr, you lose 8 kr per ticket on average.

The binomial distribution

Used when an experiment is repeated nn independent times, each with only two outcomes (success/failure) and the same probability pp of success:

P(X=k)=(nk)pk(1−p)n−kP(X = k) = \binom{n}{k}p^k(1-p)^{n-k}

with E(X)=npE(X) = np and σ=np(1−p)\sigma = \sqrt{np(1-p)}.

Worked example

10% of a machine's items are defective. You take 20. The probability that none are defective is 0.920≈0.120.9^{20} \approx 0.12, and of at least one is 1−0.12=0.881 - 0.12 = 0.88. The expected number of defects is 20⋅0.1=220\cdot 0.1 = 2.

The hypergeometric distribution

When you draw without replacement from a small group (e.g. 5 cards from a deck), the probability changes with each draw. Then we use the hypergeometric distribution:

P(X=k)=(Mk)(N−Mn−k)(Nn)P(X = k) = \frac{\binom{M}{k}\binom{N-M}{n-k}}{\binom{N}{n}}

where NN is the total, MM the number of 'special' items and nn the number drawn.

The normal distribution

Many measurements – height, measurement error, test scores – follow a bell-shaped curve, the normal distribution, defined by μ\mu and σ\sigma:

To find probabilities we standardise: Z=X−μσZ = \dfrac{X - \mu}{\sigma} and use a table or GeoGebra's probability calculator.

Worked example

Heights of 18-year-old boys are normally distributed with μ=180\mu = 180 cm and σ=7\sigma = 7 cm. The share above 194 cm: Z=194−1807=2Z = \tfrac{194 - 180}{7} = 2, and P(Z>2)≈2.3%P(Z > 2) \approx 2.3\%.

The central limit theorem

The mean of many independent measurements is approximately normally distributed, whatever the distribution of the individual measurements. That's why the normal distribution is so important in statistics – and a binomial distribution with large nn can be approximated by a normal distribution.

Example

The height of 18-year-olds is N(175,7)N(175, 7) cm. The share below 182 cm is Φ ⁣(182−1757)=Φ(1)≈0.841\Phi\!\left(\dfrac{182 - 175}{7}\right) = \Phi(1) \approx 0.841.

Binomial: count successes in a fixed number of trials. Normal: measurements clustering around an average.

Practise probability distributions in the app →

3. Confidence intervals

What is it about?

A sample gives an estimate, but how certain is it? A confidence interval gives a range that, with a given confidence (often 95 %), contains the true value.

In short

From sample to population

We want to know a parameter of the population – for example the average purchase μ\mu among all customers, or the share pp who will vote for a party. We cannot ask everyone, so we draw a random sample and calculate an estimator: xˉ\bar{x} for μ\mu, p^\hat{p} for pp. A new sample would give a slightly different answer. This sampling variation is why we report an interval instead of a single number.

The central limit theorem

If the sample is large enough (rule of thumb n≥30n \geq 30), xˉ\bar{x} is approximately normally distributed with mean μ\mu and standard deviation σn\dfrac{\sigma}{\sqrt{n}} – whatever the distribution of the data themselves. σn\dfrac{\sigma}{\sqrt{n}} is called the standard error. It shrinks with the square root of nn: to halve the uncertainty you need a sample four times as large.

The interval for a mean

xˉ±z⋅sn.\bar{x} \pm z \cdot \frac{s}{\sqrt{n}}.

The interval for a proportion

p^±zp^(1−p^)n.\hat{p} \pm z \sqrt{\frac{\hat{p}(1 - \hat{p})}{n}}.

Example: in a poll of 1000 people, 25 % say they will vote for a party. The margin of error is 1.960.25⋅0.75/1000≈0.0271.96\sqrt{0.25 \cdot 0.75 / 1000} \approx 0.027, giving the 95 % interval 22.3 % to 27.7 %. That is why changes of one or two percentage points between polls are often just noise.

How to interpret a confidence interval

Right: "The method gives intervals that capture the true value 95 % of the time." If we repeated the survey 100 times, about 95 of the intervals would contain μ\mu. Wrong: "There is a 95 % probability that μ\mu lies in exactly this interval" – μ\mu is a fixed number; it is the interval that varies.

What affects the width?

A confidence interval only accounts for random sampling variation – not for biased samples, non-response or leading questions.

Example

A poll of 1000 people gives 30 % support. Margin of error: 1.960.3⋅0.7/1000=0.0281.96\sqrt{0.3 \cdot 0.7/1000} = 0.028, i.e. 30 % ± 2.8 percentage points.

Larger sample → narrower interval, but only with the square root.

Practise confidence intervals in the app →

4. Hypothesis testing

🔗 Shared curriculum with Mathematics S2. The questions are the same, but your progress counts separately for each subject.

What is it about?

A hypothesis test decides whether data give enough reason to reject a claim. Is a coin biased? Does a new medicine work? Has a new teaching method raised the average grade?

Concepts and formulas

The idea

In a hypothesis test we use data from a sample to decide whether there is reason to believe something has changed or is different from what is claimed. The reasoning is like a trial: we assume 'innocence' until the evidence is strong enough.

The hypotheses

The hypotheses must be stated before looking at the data.

Significance level and p-value

Worked example (binomial)

A manufacturer claims only 5% of items are defective. You check 50 and find 6 defective. Test at α=0.05\alpha = 0.05 whether the rate is higher.

Types of error

A lower α\alpha gives fewer type I but more type II errors. A larger sample reduces both.

Testing a mean

For measurements (weight, time, grades) we often test whether the mean μ\mu has changed, using the normal distribution (or the t-distribution when the standard deviation is unknown and the sample small). The test statistic is

Z=xˉ−μ0σ/nZ = \frac{\bar x - \mu_0}{\sigma/\sqrt n}

Statistical and practical significance

A result can be statistically significant without being important in practice – with large samples even tiny differences become significant. Always consider how large the effect is, and whether the sample is random and representative.

Example

A coin gives 60 heads in 100 tosses. H0:p=0.5H_0: p = 0.5, H1:p>0.5H_1: p > 0.5. Z=60−50100⋅0.5⋅0.5=105=2Z = \dfrac{60 - 50}{\sqrt{100 \cdot 0.5 \cdot 0.5}} = \dfrac{10}{5} = 2. The p-value is 1−Φ(2)≈0.023<0.051 - \Phi(2) \approx 0.023 < 0.05, so we reject H0H_0: the coin appears to be biased.

Small p-value → the result is unlikely if H0H_0 holds → reject H0H_0.

Practise hypothesis testing in the app →

Example problems with solutions

Here are some of the problems in statistics. In the app, calculation problems get new numbers every time, so you can practise until it sticks – and take a practice exam with an indicative grade as you prepare for the exam.

Descriptive statistics: What is the median of 3, 7, 2, 9, 5?

Answer: 5

Sorted: 2, 3, 5, 7, 9. The middle one is 5.

Probability distributions: What is the expected value when you roll one die?

Answer: 3.5

1+2+3+4+5+66=3.5\dfrac{1 + 2 + 3 + 4 + 5 + 6}{6} = 3.5.

Confidence intervals: How much larger must the sample be to halve the margin of error?

Answer: 4 times

The margin of error is proportional to 1/n1/\sqrt n, and 4=2\sqrt 4 = 2.

Hypothesis testing: What is the p-value?

Answer: The probability of a result at least as extreme if H0H_0 is true

The p-value is calculated assuming that H0H_0 holds.

Practise all the problems →