4C

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.

FeatureWhat to look for
TrendThe long-term direction: upward, downward or roughly flat.
Seasonal patternA rise and fall that repeats at the same time each year (or week, or day).
Irregular changeA one-off spike or drop with a special cause, such as a storm or a sale.
Example 1●

A café's quarterly ice-cream sales (in hundreds) for two years are:

SummerAutumnWinterSpring
Year 1$42$$25$$12$$30$
Year 2$48$$29$$15$$35$

Describe the pattern.

Seasonal: sales peak in summer and are lowest in winter.
Look along each row: the same high and low quarters appear each year.
Trend: an upward trend, with each season up by about $3$ to $6$ hundred.
Compare the same season across years: every quarter in Year 2 is higher than in Year 1.

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:

FeatureChoicesMeaning
Directionpositive / negative / nonePositive: as $x$ goes up, $y$ tends to go up. Negative: as $x$ goes up, $y$ tends to go down.
Formlinear / non-linearDo the points follow a straight line or a curve?
Strengthstrong / moderate / weakHow 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.

Flashcards
Explanatory variable
The one that helps explain the other. It goes on the $x$-axis.
Three words for correlation
Direction, form, strength.
Seasonal pattern
A rise and fall that repeats at the same time each period.
Practice
  1. A study looks at hours of practice and the number of free throws scored. The explanatory variable is:

  2. As outside temperature rises, sales of heaters fall. This is:

  3. A household's electricity use peaks every July and drops every January. This is:

  4. A shop's sales over four quarters were $120, 135, 150, 165$. If the trend continues, predict the next quarter's sales.

  5. A population grew from $5200$ in 2018 to $6700$ in 2023. Find the average increase per year.

  6. Points on a scatter plot lie very close to a straight line sloping down to the right. The correlation is:

  7. Which pair of variables is most likely to show no correlation?

  8. Cities with more police officers have more crimes. What is the best conclusion?

  9. Challenge: sales over five years were $40, 52, 47, 61, 60$. Find the average yearly change from the first year to the last.

  10. Challenge: in Example 1, find the mean increase from Year 1 to Year 2 across the four seasons, in hundreds.

Formula sheet