Finding Seasonal Trends in Time-Series Data with Python by Spencer Hayes Towards Data Science
Finding Seasonal Trends in Time-Series Data with Python by Spencer Hayes Towards Data Science
Finding Seasonal
Trends in Time-Series
Data with Python
A guide to understanding the different
kinds of seasonality and how to
decompose the time series into trends and
seasons
Listen Share
Getting Started
Quick note: For this article, I’ll be using data
published by the Quebec Professional
Association of Real Estate Brokers. The
association publishes monthly real estate stats.
For convenience, I’ve put the monthly median
condo prices for the Province of Quebec and
the Montreal Metropolitan Area into a CSV
file, available here:
https://drive.google.com/file/d/1SMrkZPAa0a
Al-ZhnHLLFbmdgYmtXgpAb/view?
usp=sharing
Image by author
Image by author
Additive Seasonality
It’s pretty rare for actual time series to have
constant crest and trough values and
instead, we typically see some kind of
general trend like an increase or a
decrease over time. In our sales price plot,
for example, the median price tends to go
up over time.
Image by author
Multiplicative Seasonality
The other type of seasonality that you may
encounter in your time-series data is
multiplicative. In this type, the amplitude
of our seasonality becomes larger or
smaller based on the trend. An example of
multiplicative seasonality is given below.
Image by author
Conclusion
From our decomposition, we can see the
model picked up on a 5% difference
between the seasons. If you’re looking to
sell your house, you should probably list it
in mid to late spring instead of mid-winter
if you want to get top dollar!
295 7
Python
295 7
Follow
Sep 29 1.3K 17
Aug 29 1.4K 15
Arief Wicaksono
Apr 19 100
Lists
ChatGPT prompts
49 stories · 2063 saves
Chris Yan
Understanding SARIMAX: An
Seasonal Time Series Forecasting…
Technique
SARIMAX, or Seasonal AutoRegressive
Integrated Moving Average with eXogenous…
factors, is a powerful extension of the ARIMA
model that…
Aug 5 55
Pelin Okutan