01 / 21

Time Series
Plots

Learn to read, interpret, and analyze data collected over time: identify trends, seasonal patterns, and irregular fluctuations in biostatistics.

Biostatistics

What Is a Time Series?

A time series is a sequence of data points collected or recorded at successive, equally spaced points in time. In biostatistics, we track variables such as patient heart rate, weekly flu cases, or annual mortality rates.

Observation
A single data value recorded at a specific time point, denoted \( y_t \).
Time Index
The variable \( t \) representing when each observation was recorded (e.g., day, month, year).

Anatomy of a Time Series Plot

0 50 100 150 Jan Mar May Jul Sep Time (months) Flu Cases Trend

Why Time Series Matter in Biostatistics

Health data is inherently temporal. Tracking how measurements change over time lets researchers detect outbreaks, evaluate treatments, and forecast future health outcomes.

Disease Surveillance
Monitor weekly case counts to detect the start of an epidemic.
Clinical Trials
Track patient outcomes at each follow-up visit over months or years.
Public Health Policy
Evaluate if an intervention reduced hospital admissions over time.

Four Components of a Time Series

Every time series can be decomposed into four fundamental components. The classical additive model is:

Trend \( T_t \)
Long-term increase or decrease in the data over an extended period.
Seasonal \( S_t \)
Regular, repeating pattern within a fixed period (e.g., flu peaks every winter).
Cyclical \( C_t \)
Longer wavelike fluctuations without a fixed period (e.g., multi-year disease cycles).
Irregular \( I_t \)
Random, unpredictable noise that cannot be attributed to the other components.

Identifying the Trend

2015 2017 2019 2021 2023 Trend Year Vaccination Rate (%)

The trend is the overall direction of the data over time. Here, vaccination rates show a clear downward trend. You can estimate the trend by mentally drawing a straight line through the center of the data, or by computing a moving average.

Recognizing Seasonality

J F M A M J J A S O N D J F M A M J J A S Peak Peak Trough Trough Year 1 Year 2

Seasonality is a repeating pattern with a fixed, known period. Flu cases, for instance, peak every winter and trough every summer. The pattern repeats each year with roughly the same shape.

Seasonal vs Cyclical

Students often confuse these two components. The critical difference is whether the period is fixed and predictable.

Seasonal Cyclical
Period Fixed (e.g., 12 months, 7 days) Variable, not predetermined
Predictability Highly predictable Difficult to predict
Duration < 1 year typically Usually > 1 year
Example Flu peaks every January Multi-year disease outbreaks
Cause Calendar-driven (weather, holidays) Economic, ecological factors

How to Read a Time Series Plot

1
Check the axes. Identify what variable is measured (\( y \)-axis) and the time scale (\( x \)-axis). Note the units.
2
Look for the overall trend. Is the data rising, falling, or flat over the entire time span?
3
Spot seasonal patterns. Do peaks and troughs repeat at regular intervals?
4
Identify outliers or irregularities. Are there sudden spikes or drops that break the pattern?
5
Summarize in context. Describe findings using the actual variable names and units, not just "it goes up."

Example 1: Hospital Admissions

0 200 400 600 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 2021 2022 2023 Q1 (Winter Peak) Q3 (Summer Low)

Example 2: Blood Glucose Monitoring

80 120 160 200 6 AM 9 AM 12 PM 3 PM 6 PM 9 PM Time of Day Glucose (mg/dL) Normal High Breakfast Lunch spike Dinner spike

Example 3: Spotting an Outlier

60 70 80 90 Day 1 Day 3 Day 5 Day 7 Day 9 Day 11 Days Post-Surgery Heart Rate (bpm) Outlier: 95 bpm Expected

Smoothing with Moving Averages

A moving average smooths out short-term fluctuations to reveal the underlying trend. For a \( k \)-point moving average:

Small \( k \) (e.g., 3)
Follows the data closely, retains short-term variation.
Large \( k \) (e.g., 12)
Very smooth curve: good for seeing long-term trend, but slow to react to changes.

What the Slope Tells You

The slope between two points on a time series plot represents the rate of change. Between times \( t_1 \) and \( t_2 \):

Steep Positive
Rapid increase: e.g., disease cases doubling weekly during an outbreak.
Flat
Stability: e.g., patient blood pressure staying constant over months.
Steep Negative
Rapid decrease: e.g., infection rate dropping after a vaccination campaign.

Common Mistakes

✕ Ignoring the Scale
A graph with a truncated \( y \)-axis can make small changes look dramatic. Always check where the axis starts.
✕ Confusing Correlation with Causation
Two time series moving together does not prove one causes the other. Look for confounding variables.
✕ Seasonal vs Cyclical Mix-up
Calling any repeating pattern "seasonal" when the period varies. True seasonality has a fixed, calendar-based period.

Quick Reference Summary

Feature What to Look For Example
Trend Overall upward, downward, or flat direction Rising vaccination rates over years
Seasonality Regular peaks/troughs at fixed intervals Flu cases peaking every winter
Cyclical Longer waves, variable period Multi-year disease outbreaks
Irregular Sudden spikes or drops breaking pattern Post-surgery heart rate spike
Rate of Change Steepness of the line between points Cases doubling per week

Question 1 of 5

A time series of monthly hospital admissions shows values rising steadily from 200 to 600 over 5 years with no repeating pattern. Which component is most prominent?

Question 2 of 5

A researcher plots daily COVID-19 cases over 2 years and observes peaks every December-January. This pattern is best described as:

Question 3 of 5

In the additive decomposition model \( Y_t = T_t + S_t + C_t + I_t \), which component represents unpredictable, random variation?

Question 4 of 5

A patient's blood pressure readings over 10 days are mostly stable around 120 mmHg, but on Day 6 the reading jumps to 180 mmHg before returning to 120. What should you suspect?

Question 5 of 5

A time series graph shows the \( y \)-axis starting at 95 instead of 0. Between January and June, the value rises from 97 to 103. How should you interpret this?