*related to change over time
#1 assume seasonality
#1 assume seasonality
Or maybe it's just November
#1 assume seasonality
#1 assume seasonality
So... if everybody takes a 1 week summer vacation during the 10 weeks of summer...
#1 assume seasonality
..that's ~10% fewer commuters per week
#1 assume seasonality
Sunrise in Boston in early November: ~7:20am
#1 assume seasonality
Sunrise in Boston in summer: ~5:30am
#1 assume seasonality
#1 assume seasonality
#1 assume seasonality
- Wikipedia
what is seasonality
what is seasonality
what is seasonality
Time is a Dimension: Fong Qi Wei
what is seasonality
what is seasonality
what is seasonality
what is seasonality
what is seasonality
what is seasonality
what is seasonality
what is seasonality
what is seasonality
what is seasonality
what is seasonality
what is seasonality
what is seasonality
what is seasonality
what is seasonality
384 babies were born at 9:31am on Saturdays during 2014
Saturdays
what is seasonality
Saturdays
Mondays
what is seasonality
what is seasonality
8am
what is seasonality
8am
12:45pm
8am
12:45pm
what is seasonality
8am
12:45pm
5:30pm
what is seasonality
what is seasonality
what is seasonality
Minute/Hour of Day
Day of Week
Week of the Year
what is seasonality
Minute/Hour of Day
Day of Week
Week of the Year
what is seasonality
Minute/Hour of Day
Day of Week
Week of the Year
what is seasonality
aggregate meaningfully
photo by Dominic Alves
aggregate meaningfully
aggregate meaningfully
$4000 per day
Really boring line chart!
aggregate meaningfully
aggregate meaningfully
$4001.20 on
Fri Jan 11, 2013
aggregate meaningfully
$4064.10 on
Fri Jan 10, 2014
1.6% y/y growth
aggregate meaningfully
aggregate meaningfully
$3619 on Sat May 11th
$4826 on Sun May 12th
aggregate meaningfully
still 1.6% y/y growth: comparing summer to summer
aggregate meaningfully
aggregate meaningfully
aggregate meaningfully
Just one month!
aggregate meaningfully
Closed Mondays: no revenue
aggregate meaningfully
Big weekends! Dinner & Brunch
aggregate meaningfully
aggregate meaningfully
aggregate meaningfully
aggregate meaningfully
aggregate meaningfully
5% bump in March/April
aggregate meaningfully
aggregate meaningfully
aggregate meaningfully
aggregate meaningfully
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Mon
Tues
Wed
Thurs
Fri
Sat
Sun
closed
weekend
extra days!
aggregate meaningfully
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Mon
Tues
Wed
Thurs
Fri
Sat
Sun
closed
weekend
extra days!
aggregate meaningfully
aggregate meaningfully
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 |
Mon
Tues
Wed
Thurs
Fri
Sat
Sun
closed
weekend
extra days!
aggregate meaningfully
aggregate meaningfully
1.6% y/y growth
consistent day of week pattern
consistent week of year pattern
No random variation.
No holidays.
No variation due to weather.
No decreases due to a bad review.
No short or long-term variation due to marketing campaigns, good press, or a new chef.
No change in trend, day of week seasonality, or week of year seasonality.
aggregate meaningfully
aggregate meaningfully
compare apples to apples
compare apples to apples
Compares to a calendar year,
instead of 364 days back
compare apples to apples
Just change it!
compare apples to apples
If calculating daily or weekly year/year growth, compare 364 days back.
compare apples to apples
"
"
seasonality is the story
seasonality is the story
harvesting
planting
11am-noon
4pm to 5pm
Deaths by Location
Deaths by Hour
Deaths by Month
Deaths by Age
seasonality is the story
" "
Expected: Holidays, Sales, Events
Unexpected, but common: Weather
Unexpected and uncommon: Natural disaster, Terrorism, death of CEO, mergers
Effect? Short-term? Long-term?
account for seasonality
account for seasonality
account for seasonality
account for seasonality
Look at the Time Series
account for seasonality
account for seasonality
account for seasonality
Gregor Aisch and Josh Keller
account for seasonality
Gregor Aisch and Josh Keller
Gregor Aisch
account for seasonality
#1. Look at year over year growth (-364 days!)
#2. Isolate seasonal component:
account for seasonality
Long Term Trend
Month of Year Seasonality
Disruptions
Decomposed Time Series:
account for seasonality
Decomposed Time Series:
account for seasonality
Long Term Trend
account for seasonality
Long Term Trend
account for seasonality
Long Term Trend
Question: How have gun sales changed over the last 15 years?
account for seasonality
Month of Year Seasonality
account for seasonality
2002
2004
2006
2008
2010
Month of Year Seasonality
account for seasonality
Month of Year Seasonality
Question: During which months are the most guns sold? And the least?
account for seasonality
Is this changing?
Remainder, Disruptions, Irregular, One-off Events
account for seasonality
Remainder, Disruptions, Irregular, One-off Events
account for seasonality
Question: When did gun sales spike or dip unusually? And by how much?
account for seasonality
Remainder, Disruptions, Irregular, One-off Events
Remainder, Disruptions, Irregular, One-off Events
account for seasonality
Decomposed Time Series:
account for seasonality
Describe a scenario in which ignoring the seasonality of a subset of the data would lead to misinterpreting the aggregate data.
seasonality is a subset
Hint 1: different seasonality? different growth rate?
Hint 2: seasonality in a component defined by Principal Component Analysis
different seasonalities
Football
Nails, Screws, Tacks, or Bolts
different seasonalities
different seasonalities
different seasonalities
different seasonalities
" "
different seasonalities
different seasonalities
different seasonalities
different seasonalities
different seasonalities
" "