All courses › Statistics
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?
Contents
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?
Concepts and formulas
- Mean: .
- Median: the middle value when the data are sorted. Little affected by extreme values.
- Mode: the most frequent value.
- Range: largest minus smallest value.
- Sample standard deviation: .
- For skewed distributions (for example income) the median is often more representative than the mean.
Example
Salaries 400, 450, 500, 520 and 2000 (thousand NOK): mean 774, median 500. One high salary pulls the mean up.
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
- Expected value: . For a die: .
- Variance , standard deviation .
- Binomial distribution ( independent trials, probability of success): , , .
- The normal distribution : bell-shaped. About 68 % lies within , 95 % within and 99.7 % within .
- Standardisation: , and . Key values: , .
- The central limit theorem: sums and averages of many independent variables become approximately normally distributed.
Example
The height of 18-year-olds is cm. The share below 182 cm is .
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.
Concepts and formulas
- 95 % confidence interval for a mean (known or large sample): .
- For a proportion : .
- The margin of error halves when the sample becomes four times as large.
- 95 % means: if we repeat the survey many times, about 95 % of the intervals contain the true value.
Example
A poll of 1000 people gives 30 % support. Margin of error: , i.e. 30 % ± 2.8 percentage points.
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 null hypothesis : "no change", for example .
- The alternative hypothesis : what we want to show, for example (one-sided) or (two-sided).
- Significance level : usually 5 %. It is the probability of rejecting even though it is true (type I error).
- P-value: the probability of a result at least as extreme as the one observed, **given that is true**.
- Decision: if the p-value is less than , we reject . Otherwise we do not have enough evidence (that does not mean is proved).
- Test statistic for a mean: . For a proportion: .
- One-sided test at the 5 % level: reject when . Two-sided: when .
Example
A coin gives 60 heads in 100 tosses. , . . The p-value is , so we reject : the coin appears to be biased.
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 graded practice exam before the real one.
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
.
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 , and .
Hypothesis testing: What is the p-value?
Answer: The probability of a result at least as extreme if is true
The p-value is calculated assuming that holds.