11
Stat 100 • Read Chapter 14

Stat 100 Read Chapter 14. Time Series A collection of measurements of a variable made at a sequence of time points

Embed Size (px)

Citation preview

Page 1: Stat 100 Read Chapter 14. Time Series A collection of measurements of a variable made at a sequence of time points

Stat 100

• Read Chapter 14

Page 2: Stat 100 Read Chapter 14. Time Series A collection of measurements of a variable made at a sequence of time points

Time Series

• A collection of measurements of a variable made at a sequence of time points

Page 3: Stat 100 Read Chapter 14. Time Series A collection of measurements of a variable made at a sequence of time points

Albuquerque BATmobile• Albuquerque, NM – began aggressive

program of Breathalyzer Testing for DUI

• Police had several vans (BATmobiles) equipped to do testing

• Analyzed quarterly counts of fatal and injury accidents

• 29 quarters before BATmobiles and 23 after

Page 4: Stat 100 Read Chapter 14. Time Series A collection of measurements of a variable made at a sequence of time points

50403020100

400

300

200

QTR

AC

CQuarterly Data ; Red = BAT periodAlberquerque Fatal and Injury Accidents

Page 5: Stat 100 Read Chapter 14. Time Series A collection of measurements of a variable made at a sequence of time points

Feature of Data

• Seasonal - always more accidents in the third quarter

• Upward Trend prior to BAT program

• Perhaps reduction after the BAT program

Page 6: Stat 100 Read Chapter 14. Time Series A collection of measurements of a variable made at a sequence of time points

Seasonally Adjusted Data

• Seasonally adjusted =data adjusted to take away seasonal effects

• Use seasonally adjusted data to see trend more clearly

Page 7: Stat 100 Read Chapter 14. Time Series A collection of measurements of a variable made at a sequence of time points

50403020100

340

320

300

280

260

240

220

200

Time

Mov

. Avg

Trend Based on Four Quarter Moving Averages

Red = BAT Period

Page 8: Stat 100 Read Chapter 14. Time Series A collection of measurements of a variable made at a sequence of time points

Observational or Experiment?

• Is the comparison of the BATmobile time to the pre BATmobile time an observational study or an experiment?

Page 9: Stat 100 Read Chapter 14. Time Series A collection of measurements of a variable made at a sequence of time points

It’s an experiment (but not a good one)

• “Researchers” created two different situations.

• But, there easily could be confounding in a time series experiment.

• Additional safety factors could have changed during the BATmobile period

Page 10: Stat 100 Read Chapter 14. Time Series A collection of measurements of a variable made at a sequence of time points

Important Components of Time Series

• Trend - overall up or down pattern

• Seasonality - pattern related to seasons of the year

• Random Fluctuation - completely random effects

Page 11: Stat 100 Read Chapter 14. Time Series A collection of measurements of a variable made at a sequence of time points

Note about detecting seasonal patterns

• It’s necessary to collect data on a seasonal basis

• We could not detect seasonal effects in amount of auto travel in Pennsylvania from a time series of annual amounts of travel