0
0
ML Pythonml~20 mins

Why time series has unique challenges in ML Python - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Time Series Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Why is stationarity important in time series analysis?

In time series data, why do many models require the data to be stationary?

ABecause stationary data contains no noise, so models perform better.
BBecause stationary data has constant mean and variance over time, making patterns easier to model.
CBecause stationary data always has increasing trends that models can learn.
DBecause stationary data has random values that change unpredictably.
Attempts:
2 left
💡 Hint

Think about what it means for data to have consistent behavior over time.

Predict Output
intermediate
2:00remaining
Output of lag feature creation in time series

What is the output of the following Python code that creates a lag feature?

ML Python
import pandas as pd

data = pd.Series([10, 20, 30, 40, 50])
lag_1 = data.shift(1)
print(lag_1.tolist())
A[0, 10, 20, 30, 40]
B[10, 20, 30, 40, 50]
C[20.0, 30.0, 40.0, 50.0, None]
D[nan, 10.0, 20.0, 30.0, 40.0]
Attempts:
2 left
💡 Hint

Recall that shift(1) moves data down by one position, introducing a missing value at the start.

Model Choice
advanced
2:00remaining
Best model choice for seasonal time series data

You have monthly sales data with clear yearly seasonality. Which model is best suited to capture this pattern?

AARIMA model with seasonal components (SARIMA)
BLinear Regression without any seasonal terms
CK-Means clustering
DDecision Tree classifier
Attempts:
2 left
💡 Hint

Consider models designed to handle seasonality in time series.

Metrics
advanced
2:00remaining
Choosing the right error metric for time series forecasting

Which error metric is most appropriate when you want to measure the average percentage error in time series forecasts?

AMean Absolute Error (MAE)
BRoot Mean Squared Error (RMSE)
CMean Absolute Percentage Error (MAPE)
DAccuracy Score
Attempts:
2 left
💡 Hint

Think about which metric expresses error as a percentage.

🔧 Debug
expert
2:00remaining
Identifying the cause of poor time series model performance

A time series model trained on daily temperature data shows poor predictions on recent data. Which issue is most likely causing this?

AThe model was trained on stationary data but recent data has a sudden trend change (concept drift).
BThe model used too many lag features causing overfitting.
CThe model was trained with too few epochs.
DThe model used a wrong activation function.
Attempts:
2 left
💡 Hint

Consider what happens when the data pattern changes after training.