David Andrés 🤖📈🐍 Profile picture
Dec 12 10 tweets 2 min read Twitter logo Read on Twitter
ARIMA models are essential in Time Series forecasting.

You can add multiple components to make them fit your particular data:

go from a basic AR model to a complex SARIMAX model! 🧵 👇 Image
🔴 S (Seasonal):

• Represents recurring patterns or variations at fixed intervals in time series data.
• When to consider: when there are predictable, repetitive cycles, such as monthly or yearly patterns.
🟢 AR (Auto-Regressive):

• Reflects the relationship between the current observation and its past values at lag intervals.
• When to consider: when there's a correlation between the current and past observations, indicating temporal dependence.
🟡 I (Integrated):

• Represents the number of differences needed to make a time series stationary.
• When to consider: to achieve stationarity, especially in the presence of trends or seasonality.
🔵 MA (Moving Average):

• Describes the relationship between the current observation and residual errors from a moving average model applied to lagged observations.
• When to consider: when there is evidence of residual correlations after differencing.
🟣 X (eXogenous):

• Represents additional variables external to the time series that can influence it.
• When to consider: when there are external factors impacting the time series but not inherently part of it.
⚠️ But be careful!

Don't use components that you don't need or you may overfit your data!
If you liked this you must definitely check yesterday's thread 👇
Join more than 4k 💊MLPills subscribers and enjoy free Machine Learning and Data Science content straight to your email every Thursday!

mlpills.dev/subscribe/
You should also join our newsletter, DSBoost🚀

Every week we share:
🔹Interviews
🔹Podcast notes
🔹Learning resources
🔹Interesting collections of content

Subscribe for free👇👇
dsboost.dev

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with David Andrés 🤖📈🐍

David Andrés 🤖📈🐍 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @daansan_ml

Dec 13
Build an optimal ARIMA model efficiently.

That's what you can achieve with the Box-Jenkins method.

From raw data to a production-ready model step-by-step 🧵👇 Image
It consists of 3 steps:

1️⃣ Identification
2️⃣ Estimation
3️⃣ Model diagnostics

It will allow us to fit an ARIMA-like model to our data efficiently 👈
1️⃣ Identification:

In this step, we explore and characterize the data to find some form of it that is appropriate to ARIMA modeling.
Read 9 tweets
Dec 11
ARIMA is really useful for time series forecasting, however you can only forecast 1 variable at a time...

VAR (Vector AutoRegression) solves this problem!

Discover more 🧵 👇 Image
▶️ VAR handles multiple interdependent time series.

It's like a network where each series is forecasted based on its own history and the history of others, revealing the interconnected nature of variables.
▶️ ARIMA is tailored for individual series, adept at capturing and predicting patterns when data shows trends or seasonality.

It's the go-to model for detailed single-variable forecasting.
Read 7 tweets
Dec 10
Your data is possibly too noisy!

You can try these 2️⃣ techniques to discover its trend, seasonality or even outliers! 🧵 👇 Image
Today I'll introduce another 2 popular techniques:

1️⃣ Resampling

2️⃣ Spline interpolation

👇 👇
Read 15 tweets
Dec 9
🚨Your data may be hiding a trend, seasonality or even outliers !!

Let's learn 2️⃣ basic techniques to smooth your data and get rid of the noise 🧵 👇 Image
But, first...

• What is data smoothing?
• Why you may need it?

You can read about it on this thread 👇
The following are 2 popular techniques to smooth your data:

1️⃣ Moving averages

2️⃣ Exponential smoothing

👇 👇
Read 13 tweets
Dec 6
What is data smoothing?

...and why may you need it? 🤔

Read this thread to learn more about it!

🧵 👇 Image
Smoothing data in a time series refers to the process of removing short-term fluctuations or noise from the data in order to reveal underlying trends, patterns, or long-term variations.

There are several reasons why you may need to smooth your data in a time series 👇👇👇
1️⃣ Noise reduction:

Time series data often contain random variations or noise that can make it difficult to discern the underlying patterns or trends.

👉Smoothing techniques help reduce this noise, making it easier to identify meaningful patterns and relationships.
Read 11 tweets
Dec 4
Do you know that you can separate trend and seasonality in your time series data?

Two popular decomposition methods are Seasonal Decompose and STL (Seasonal-Trend decomposition using LOESS).

Let's find out more about them 🧵👇 Image
1️⃣ Seasonal Decompose is a straightforward method that splits a time series into trend, seasonality, and noise. It uses Moving Averages to do so.

Best for datasets with clear and consistent seasonal patterns. It assumes that the seasonal component repeats identically over time.
However, Seasonal Decompose has its limitations... It often struggles with edge data points due to its reliance on moving averages, which can result in missing information at the beginning and end of the series.

Also, it is not capable to extract changing seasonality and trends.
Read 8 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(