Data collected over a period of time

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Data collected over a period of time

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which best describes time-series data?
A One value recorded a single time with no date
B Values recorded repeatedly over time, each with a timestamp
2. A school records the temperature at 9:00 am every day for a year. What type of data is this?
A Time-series data
B A one-off snapshot
3. Why is a timestamp needed in time-series data?
A It makes each value more accurate
B It shows when each value was recorded
4. Which is an example of a regular collection interval?
A A sensor logging heart rate every 5 minutes
B A student checking their phone whenever they feel like it
5. Monthly sales rise steadily over three years. What is this pattern called?
A A trend
B A seasonal pattern

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1timestamp AThe collection intervals are irregular. Readings should be taken at regular times, such as every hour, to compare changes fairly.
2interval = 1 hour BThe values have no timestamps, so you cannot tell when each was recorded. It is not time-series data.
3Each reading in time-series data is stored with the time it was recorded CJan: 38, Apr: 22, Jul: 12, Oct: 21, Jan: 37
4A seasonal pattern is a rise or fall that repeats at the same time each year D2024-03-01 09:00, 24.5
5Temp: 21, 23, 25, 24, 22 EThe date and time attached to each recorded value so you know when it was collected
69:00, 10:00, 10:05, 14:00, 17:30 FA regular collection interval: a new value is recorded every hour

Definitions

time-series data

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
_________,temp_c 2024-06-01 09:00,14.2 2024-06-01 10:00,15.1
2.
=___(B2:B13)
3.
2024-06-01 09:00,14.2 2024-06-01 _____,15.1 2024-06-01 11:00,15.9
4.
=_____(A2)
5.
=B3_B2

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A Date,Temp_C
B 2024-01-01,28
C 2024-01-01,31
D 2024-01-03,29
Question 2
A Time,Steps
B 09:00,120
C 10:00,95
D 11:45,140
Question 3
A Station,Rainfall_mm
B 2024-06-01 09:00,2.4
C 2024-06-01 10:00,0.0
D 2024-06-01 11:00,1.2
Question 4
A interval <- 60
B IF logging = TRUE
C value <- ReadSensor()
D SAVE value, Now()
E WAIT interval
Question 5
A SET first TO 120, last TO 180
B IF last < first THEN
C OUTPUT 'Trend: rising'

Answer Key

Data collected over a period of time
Section A: Quick Questions
Q1
B — Values recorded repeatedly over time, each with a timestamp
Q2
A — Time-series data
Q3
B — It shows when each value was recorded
Q4
A — A sensor logging heart rate every 5 minutes
Q5
A — A trend
Section B: Match the Pairs
Q1
timestamp → The date and time attached to each recorded value so you know when it was collected
Q2
interval = 1 hour → A regular collection interval: a new value is recorded every hour
Q3
Each reading in time-series data is stored with the time it was recorded → 2024-03-01 09:00, 24.5
Q4
A seasonal pattern is a rise or fall that repeats at the same time each year → Jan: 38, Apr: 22, Jul: 12, Oct: 21, Jan: 37
Q5
Temp: 21, 23, 25, 24, 22 → The values have no timestamps, so you cannot tell when each was recorded. It is not time-series data.
Q6
9:00, 10:00, 10:05, 14:00, 17:30 → The collection intervals are irregular. Readings should be taken at regular times, such as every hour, to compare changes fairly.
Section C: Definitions
Q1
time-series data — Data recorded repeatedly over time, each value with a timestamp, usually at regular intervals, so you can see how values change and spot trends and seasonal patterns.
Section D: Fill in the Blanks
Q1
timestamp,temp_c 2024-06-01 09:00,14.2 2024-06-01 10:00,15.1
Q2
=MAX(B2:B13)
Q3
2024-06-01 09:00,14.2 2024-06-01 10:00,15.1 2024-06-01 11:00,15.9
Q4
=MONTH(A2)
Q5
=B3-B2
Section E: Spot the Error
Q1
C — Each reading in time-series data needs its own timestamp in order. The date 2024-01-01 is repeated. This row should be 2024-01-02,31.
Q2
D — Time-series data is usually collected at regular intervals. These readings are hourly, so the last timestamp should be 11:00, not 11:45.
Q3
A — Time-series data needs a timestamp column. The header labels the first column Station, but it holds date-times. It should be Timestamp,Rainfall_mm.
Q4
B — An IF runs only once, so the data would not be recorded repeatedly over time. A WHILE loop keeps collecting readings at each interval, so line 2 should be WHILE logging = TRUE.
Q5
B — The values went from 120 up to 180, so the trend is rising. The test should be last > first. With < the program would label a rising trend as falling.