Time series and bivariate data
Time-series graphs, trend and seasonal patterns, bivariate data, explanatory and response variables, scatter plots and describing correlation by direction, form and strength.
So far each data set has had one variable, such as test scores. This section looks at two kinds of data where we want to see a relationship: one variable changing over time, and two variables measured on the same people or objects. The question is always "what pattern is there, and what might explain it?"
Time-series data
A time series records the same variable at regular times: daily temperatures, monthly sales, yearly population. It is graphed with time on the horizontal axis and the points joined by line segments.
| Feature | What to look for |
|---|---|
| Trend | The long-term direction: upward, downward or roughly flat. |
| Seasonal pattern | A rise and fall that repeats at the same time each year (or week, or day). |
| Irregular change | A one-off spike or drop with a special cause, such as a storm or a sale. |
A café's quarterly ice-cream sales (in hundreds) for two years are:
| Summer | Autumn | Winter | Spring | |
|---|---|---|---|---|
| Year 1 | $42$ | $25$ | $12$ | $30$ |
| Year 2 | $48$ | $29$ | $15$ | $35$ |
Describe the pattern.
Bivariate data
Bivariate data has two variables measured on each subject, such as the height and arm span of each student. We usually expect one variable to help explain the other.
- The explanatory (independent) variable goes on the $x$-axis.
- The response (dependent) variable goes on the $y$-axis.
In "hours of study and test score", hours of study is explanatory, since we expect study to affect the score, not the other way round.
Describing correlation
On a scatter plot, describe the relationship with three words:
| Feature | Choices | Meaning |
|---|---|---|
| Direction | positive / negative / none | Positive: as $x$ goes up, $y$ tends to go up. Negative: as $x$ goes up, $y$ tends to go down. |
| Form | linear / non-linear | Do the points follow a straight line or a curve? |
| Strength | strong / moderate / weak | How closely the points hug that line or curve. |
For example, "the number of hours a heater runs and the outside temperature show a strong, negative, linear correlation."
Your turn
A town's population was $5200$ in 2018 and $6700$ in 2023. Assuming a steady trend, what was the average increase per year, and what would you predict for 2025?
Show the working
The increase over $5$ years is $6700 - 5200 = 1500$, so about $1500 \div 5 = 300$ per year. Two more years gives $6700 + 2 \times 300 = 7300$. This assumes the trend continues, which is less certain the further ahead you predict.
A study looks at hours of practice and the number of free throws scored. The explanatory variable is:
Practice is expected to affect scoring, so practice is explanatory and goes on the $x$-axis.
As outside temperature rises, sales of heaters fall. This is:
One variable goes up while the other goes down: negative correlation.
A household's electricity use peaks every July and drops every January. This is:
It rises and falls at the same time each year, so it is seasonal.
A shop's sales over four quarters were $120, 135, 150, 165$. If the trend continues, predict the next quarter's sales.
Sales rise by $15$ each quarter, so the next is $165 + 15 = 180$.
A population grew from $5200$ in 2018 to $6700$ in 2023. Find the average increase per year.
$6700 - 5200 = 1500$ over $5$ years. $1500 \div 5 = 300$ per year.
Points on a scatter plot lie very close to a straight line sloping down to the right. The correlation is:
Close to a line means strong and linear. Sloping down means negative.
Which pair of variables is most likely to show no correlation?
Shoe size has no reason to be linked to maths marks for students of the same age. The others are clearly related.
Cities with more police officers have more crimes. What is the best conclusion?
Population size is a lurking variable: bigger cities have more police and more crime. Correlation does not show causation.
Challenge: sales over five years were $40, 52, 47, 61, 60$. Find the average yearly change from the first year to the last.
From year 1 to year 5 is $4$ steps. Change $= 60 - 40 = 20$. Average $= 20 \div 4 = 5$ per year.
Challenge: in Example 1, find the mean increase from Year 1 to Year 2 across the four seasons, in hundreds.
The increases are $48 - 42 = 6$, $29 - 25 = 4$, $15 - 12 = 3$ and $35 - 30 = 5$. They total $18$, so the mean increase is $18 \div 4 = 4.5$ hundred.
Coaching Centre