By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.
Forecasting predicts future values (e.g., sales, demand, stock prices) using historical data and statistical or machine learning models. Businesses use it to reduce uncertainty, optimize inventory, allocate resources, and plan budgets.
Poor forecasting leads to lost revenue, wasted resources, or missed opportunities.
Example Workflow:
Historical Sales → Clean → Train ARIMA Model → Predict Next Quarter → Adjust Inventory
import pandas as pd from statsmodels.tsa.arima.model import ARIMA from sklearn.metrics import mean_absolute_error # Load data (e.g., monthly sales) data = pd.read_csv("sales.csv", parse_dates=["date"], index_col="date") # Split into train/test (last 12 months for testing) train = data.iloc[:-12] test = data.iloc[-12:] # Fit ARIMA model (p=1, d=1, q=1) model = ARIMA(train, order=(1, 1, 1)) model_fit = model.fit() # Forecast next 12 months forecast = model_fit.forecast(steps=12) # Evaluate mae = mean_absolute_error(test, forecast) print(f"MAE: {mae:.2f}")
Expected Outcome:- A forecast for the next 12 months.- MAE score (e.g., MAE: 12.34 means predictions are off by ~$12.34 on average).
MAE: 12.34
Fix: Use SARIMA or Prophet, which handle seasonality explicitly.
Overfitting
Fix: Start with simple models (e.g., exponential smoothing) or use cross-validation.
Leaking Future Data
Fix: Split data first, then preprocess each subset separately.
Assuming Stationarity
Fix: Test for stationarity (e.g., Augmented Dickey-Fuller test) and transform if needed.
Ignoring External Factors
TimeSeriesSplit
Solution: Use Prophet to predict daily sales, incorporating holidays and promotions.
Energy Load Forecasting
Solution: LSTMs trained on historical weather and consumption data.
Supply Chain Inventory Optimization
You’re forecasting monthly ice cream sales. Which model is least suitable if the data shows strong seasonality (higher sales in summer)?
A) ARIMA B) SARIMA C) Prophet D) Exponential Smoothing with seasonality
Correct Answer: A Explanation: ARIMA doesn’t natively handle seasonality. SARIMA, Prophet, and seasonal exponential smoothing are designed for it.Why the Distractors Are Tempting:- B: SARIMA is a seasonal version of ARIMA, but learners might confuse the two.- C: Prophet is less familiar to beginners.- D: Exponential smoothing is simple but can include seasonality.
Your forecast’s MAE is 50, and the actual values range from 100 to 1000. Is this error acceptable?
A) Yes, because 50 is a small number.B) No, because MAE should be compared to the scale of the data.C) Yes, because MAE is always a percentage.D) No, because RMSE would be higher.
Correct Answer: B Explanation: MAE must be evaluated relative to the data’s scale. Here, 50 is 5–50% of actual values, which may or may not be acceptable.Why the Distractors Are Tempting:- A: Absolute error values can mislead without context.- C: MAE is not a percentage (MAPE is).- D: RMSE is irrelevant to this question.
You’re building a forecast for a new product with no historical data. Which approach is most appropriate?
A) Train an ARIMA model on similar products’ data.B) Use a moving average of the last 3 months (even if they don’t exist).C) Apply a regression model with external variables (e.g., marketing spend).D) Assume sales will match the industry average.
Correct Answer: C Explanation: Without historical data, leverage external factors (e.g., marketing, competitor data) in a regression model.Why the Distractors Are Tempting:- A: ARIMA needs historical data.- B: Moving averages require past data.- D: Industry averages may not reflect the product’s unique factors.
Build simple ARIMA models in Python (Statsmodels).
Intermediate:
Evaluate models using MAE, RMSE, and cross-validation.
Advanced:
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.