Descriptive and inferential statistics review
Studying this course? Keep your progress in one place.
Revised this already? Try an exam question and get it marked free
Key facts
- Mean, median and mode show the typical score; range and standard deviation show the spread.
- A normal distribution is symmetrical, with the mean, median and mode the same; a skewed one is not.
- Choose the test from the type of question, the design and the level of measurement: Wilcoxon, Spearman's or chi-squared.
- Compare the observed value with the critical value. Wilcoxon needs observed ≤ critical; Spearman's and chi-squared need observed ≥ critical.
- A Type I error is rejecting a true null hypothesis. A Type II error is keeping a false one.
Central tendency and dispersion
Measures of central tendency give the typical score. Measures of dispersion show how spread out the scores are. You need both to describe data properly.
Mean: add all scores, divide by how many there are. Median: the middle score when ordered (with an even number, the mean of the middle two). Mode: the most common score.
Range: highest minus lowest. Standard deviation: the typical distance of scores from the mean, so a bigger value means more spread.
Percentages let you compare groups of different sizes. Always sense check your answer: the mean must lie between the lowest and highest score, and percentages for categories that cover the whole group once should add up to 100.
- 1
Mean
total 35, divided by 5 scores = 7
- 2
Median
ordered 4, 6, 6, 7, 12: the middle score is 6
- 3
Mode
6, because it appears twice
- 4
Range
12 minus 4 = 8
In the data 4, 6, 6, 7, 12, why is the median a better "typical" score than the mean?
Graphs and distributions
The right graph shows the pattern in data. The shape of a distribution tells you which measure of central tendency to trust.
A bar chart shows separate categories, with gaps between the bars. A histogram shows continuous data, with bars touching. A scatter diagram plots two variables for each person, to show a correlation.
In a normal distribution the curve is symmetrical and bell shaped, and the mean, median and mode are all the same. In a skewed distribution most scores bunch to one side. A positive skew has a tail of high scores and a negative skew a tail of low scores, which pulls the mean towards the tail.
A distribution has a long tail of low scores. Which skew is this?
Levels of measurement and choosing a test
The test depends on three decisions: are you looking for a difference or a correlation, what is the design, and what is the level of measurement of the data.
Nominal data are categories or frequencies. Ordinal data can be ranked but the gaps are not equal. Interval data have equal gaps, such as seconds or marks.
Wilcoxon: a difference, with related data (repeated measures or matched pairs), at least ordinal.
Spearman's: a correlation, at least ordinal.
Chi-squared: a difference or association, with independent groups, using nominal data in frequencies.
The design and level of data must fit the test, which is why you say them when you justify your choice.
- 1
Difference or correlation?
a correlation points to Spearman's
- 2
For a difference: what design?
related (repeated measures or matched pairs) points to Wilcoxon
- 3
Independent groups, frequencies?
nominal data in categories point to chi-squared
- 4
Check the level
Wilcoxon and Spearman's need at least ordinal data
A researcher counts how many boys and how many girls chose each of three revision methods. Which test fits?
Hypotheses, tails and critical values
You compare the value you calculated (observed) with a value from a table (critical). The rule for the comparison depends on which test you used.
A directional (one-tailed) hypothesis predicts the direction of a difference or correlation. A non-directional (two-tailed) one predicts only that there is a difference or correlation. A two-tailed test needs a more extreme result.
To find the critical value use the table for your test, the number of scores (N, or degrees of freedom for chi-squared), the significance level and whether the test is one- or two-tailed.
Wilcoxon: significant if observed ≤ critical. Spearman's and chi-squared: significant if observed ≥ critical.
- 1
Calculate the observed value
T, rho or chi-squared
- 2
Choose the level and tails
usually p ≤ 0.05, one- or two-tailed
- 3
Find the critical value
from the table, using N or degrees of freedom
- 4
Compare
Wilcoxon: observed ≤ critical. Spearman's and chi-squared: observed ≥ critical
- 5
Decide
if significant, reject the null hypothesis and accept the alternative
A Spearman's observed value is 0.68 and the critical value is 0.60. Is it significant?
Significance levels and errors
The significance level is the probability that the result is due to chance. A stricter level lowers the risk of a Type I error but raises the risk of a Type II error.
A result at p ≤ 0.05 means there is a 5% or smaller probability that it is due to chance. p ≤ 0.01 is stricter (1%). p ≤ 0.10 is more lenient. The smaller the p value, the stronger the evidence.
A Type I error is rejecting a true null hypothesis (a false positive). A Type II error is keeping a false null hypothesis (missing a real effect).
A stricter level, such as 0.01, makes Type I less likely and Type II more likely. Use 0.01 when a wrong claim would be costly.
- 1
Choose a stricter level
for example p ≤ 0.01 instead of p ≤ 0.05
- 2
Type I error falls
less chance of claiming an effect that is not real
- 3
Type II error rises
more chance of missing an effect that is real
A researcher keeps the null hypothesis although the therapy does work. What type of error is this?
Worked example: the Wilcoxon test
Find each difference, drop zeros, rank the sizes ignoring signs, then add up the ranks of the less common sign. That total is T.
Example data: nine students' differences in scores are +2, +5, -1, 0, +3, +4, +6, +2, +7.
Drop the 0, so N = 8. Rank the sizes ignoring signs: 1, 2, 2, 3, 4, 5, 6, 7. The two 2s share ranks 2 and 3, so each gets 2.5. The ranks are 1, 2.5, 2.5, 4, 5, 6, 7, 8.
Only one difference is negative (-1, rank 1), so T = 1. For N = 8, one-tailed, p ≤ 0.05, the critical value is 5. As 1 ≤ 5, the result is significant.
- 1
Differences
after minus before for each participant
- 2
Drop zeros
N is the number of non-zero differences
- 3
Rank by size
ignore signs, and share ranks equally for ties
- 4
Sum the ranks of the less common sign
this total is T
- 5
Compare
T is significant if it is equal to or less than the critical value
In the worked example, what happens to the participant whose difference was 0?
Try an exam question
A researcher compares each participant's anxiety score (ordinal data) before and after therapy. Explain why the Wilcoxon test is suitable, and how she decides whether the result is significant.
[4 marks]
- [1]She is testing for a difference.
- [1]The design is related (repeated measures) and the data are at least ordinal, which suits the Wilcoxon test.
- [1]She compares the observed value of T with the critical value for N and the chosen level of significance.
- [1]The result is significant if the observed T is equal to or less than the critical value.
That's the notes covered.
Carry on to the next subtopic.
Try a question
Identify the mode of the hours of sleep.
1 mark, marked against the mark scheme
Identify the mode of the hours of sleep.
1 mark, marked against the mark scheme
