Jump into concepts and practice - no test required
or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Recall & Review
beginner
What is Mean Absolute Error (MAE) in time series evaluation?
MAE measures the average absolute difference between predicted and actual values. It shows how far predictions are from true values on average, using simple absolute differences.
Click to reveal answer
beginner
Explain Mean Squared Error (MSE) and why it is used.
MSE calculates the average of squared differences between predicted and actual values. Squaring emphasizes larger errors, making MSE sensitive to big mistakes.
Click to reveal answer
beginner
What does Root Mean Squared Error (RMSE) represent?
RMSE is the square root of MSE. It gives error in the same units as the data, making it easier to understand how far predictions are from actual values.
Click to reveal answer
intermediate
Describe Mean Absolute Percentage Error (MAPE) and its limitation.
MAPE shows average absolute error as a percentage of actual values. It is easy to interpret but can be misleading if actual values are near zero, causing very high or undefined percentages.
Click to reveal answer
intermediate
Why is R-squared (Coefficient of Determination) used in time series evaluation?
R-squared measures how well the model explains the variation in the data. A value close to 1 means predictions fit the data well, while values near 0 mean poor fit.
Click to reveal answer
Which metric gives error in the same units as the original data?
AMean Squared Error (MSE)
BRoot Mean Squared Error (RMSE)
CMean Absolute Error (MAE)
DMean Absolute Percentage Error (MAPE)
✗ Incorrect
RMSE is the square root of MSE, so it has the same units as the original data, making it easier to interpret.
Which metric can be misleading when actual values are close to zero?
AMAPE
BR-squared
CRMSE
DMAE
✗ Incorrect
MAPE divides by actual values, so when actual values are near zero, it can produce very large or undefined percentages.
What does a high R-squared value indicate in time series evaluation?
AOverfitting
BPoor model fit
CHigh error
DGood model fit
✗ Incorrect
A high R-squared means the model explains most of the variation in the data, indicating good fit.
Which metric penalizes larger errors more heavily?
AMAE
BMAPE
CMSE
DR-squared
✗ Incorrect
MSE squares the errors, so larger errors have a bigger impact on the metric.
Which metric is best to use when you want an error measure easy to understand as a percentage?
AMAPE
BRMSE
CMAE
DMSE
✗ Incorrect
MAPE expresses error as a percentage, making it easy to understand relative error size.
Describe the main differences between MAE, MSE, and RMSE for evaluating time series predictions.
Think about how each metric treats errors and their units.
You got /3 concepts.
Explain why MAPE can be problematic with certain time series data and when you might avoid using it.
Consider what happens when dividing by numbers close to zero.
You got /3 concepts.
Practice
(1/5)
1. Which metric measures the average absolute difference between predicted and actual values in time series forecasting?
easy
A. Mean Squared Error (MSE)
B. Mean Absolute Error (MAE)
C. Root Mean Squared Error (RMSE)
D. R-squared (Coefficient of Determination)
Solution
Step 1: Understand the definition of MAE
MAE calculates the average of the absolute differences between predicted and actual values, showing average error size.
Step 2: Compare with other metrics
MSE and RMSE square errors, while R-squared measures variance explained, not average error.
Final Answer:
Mean Absolute Error (MAE) -> Option B
Quick Check:
Average absolute difference = MAE [OK]
Hint: MAE uses absolute differences, no squaring involved [OK]
Common Mistakes:
Confusing MAE with MSE or RMSE
Thinking R-squared measures error size
Assuming RMSE is the same as MAE
2. Which of the following is the correct formula for Root Mean Squared Error (RMSE) given errors \(e_i = y_i - \hat{y}_i\) for \(n\) points?
easy
A. RMSE = \(\sum_{i=1}^n e_i^2\)
B. RMSE = \(\frac{1}{n} \sum_{i=1}^n |e_i|\)
C. RMSE = \(\frac{1}{n} \sum_{i=1}^n e_i\)
D. RMSE = \(\sqrt{\frac{1}{n} \sum_{i=1}^n e_i^2}\)
Solution
Step 1: Recall RMSE formula
RMSE is the square root of the average of squared errors, so it must include squaring, averaging, then square root.
Step 2: Check each option
RMSE = \(\sqrt{\frac{1}{n} \sum_{i=1}^n e_i^2}\): \(\sqrt{\frac{1}{n} \sum_{i=1}^n e_i^2}\) matches the formula exactly. RMSE = \(\sum_{i=1}^n e_i^2\) misses averaging and root. RMSE = \(\frac{1}{n} \sum_{i=1}^n |e_i|\) is MAE. RMSE = \(\frac{1}{n} \sum_{i=1}^n e_i\) is mean error (not squared).
Final Answer:
RMSE = \(\sqrt{\frac{1}{n} \sum_{i=1}^n e_i^2}\) -> Option D
Quick Check:
RMSE = sqrt(mean squared errors) [OK]
Hint: RMSE = square root of average squared errors [OK]
Common Mistakes:
Forgetting to take square root
Using absolute errors instead of squared
Not dividing by number of points
3. Given actual values \([3, 5, 2, 7]\) and predicted values \([2, 5, 4, 8]\), what is the Mean Squared Error (MSE)?
Hint: Square errors, sum, then divide by count [OK]
Common Mistakes:
Using absolute errors instead of squared
Forgetting to average over all points
Mixing predicted and actual values
4. Identify the error in this Python code calculating MAE for time series predictions:
def mae(actual, predicted):
errors = [a - p for a, p in zip(actual, predicted)]
return sum(errors) / len(errors)
medium
A. Use multiplication instead of subtraction in errors
B. Divide by sum of errors instead of length
C. Errors should be absolute values before summing
D. No error, code is correct
Solution
Step 1: Analyze error calculation
The code calculates errors as differences but does not take absolute values, which MAE requires.
Step 2: Understand MAE definition
MAE is mean of absolute errors, so errors must be wrapped with abs() before summing.
Final Answer:
Errors should be absolute values before summing -> Option C
Quick Check:
MAE needs absolute errors [OK]
Hint: MAE sums absolute errors, not raw differences [OK]
Common Mistakes:
Skipping absolute value in error calculation
Dividing by wrong denominator
Confusing MAE with MSE
5. You have two forecasting models evaluated on the same dataset. Model A has MAE=2.5 and RMSE=3.0, Model B has MAE=2.0 and RMSE=3.5. Which model is generally better and why?
hard
A. Model A, because lower RMSE means fewer large errors
B. Model B, because higher RMSE indicates better fit
C. Model B, because lower MAE means better average error
D. Model A, because MAE and RMSE must be equal for best model
Solution
Step 1: Interpret MAE and RMSE values
Model B has lower MAE but higher RMSE, meaning it has better average error but more large errors. Model A has lower RMSE, indicating fewer large errors.
Step 2: Decide which metric matters more
RMSE penalizes large errors more, so lower RMSE often means more reliable predictions without big mistakes.
Final Answer:
Model A, because lower RMSE means fewer large errors -> Option A
Quick Check:
Lower RMSE means fewer big errors [OK]
Hint: Lower RMSE means fewer big errors; prefer it if large errors matter [OK]