Seksjon 1. Kapittel 10
single
Challenge: ARIMA Forecasting on Real Data
Sveip for å vise menyen
In this chapter, you will apply your knowledge of ARIMA modeling to a real-world time series dataset. You will load a dataset, fit an ARIMA model, and evaluate its forecasting performance using metrics such as mean absolute error (MAE) and mean squared error (MSE). The process involves:
- Preparing the data;
- Splitting it into training and testing sets;
- Fitting the ARIMA model;
- Generating forecasts;
- Computing the evaluation metrics.
This hands-on challenge will reinforce your understanding of how ARIMA models are used in practice and how to interpret their performance.
Oppgave
Swipe to start coding
Practice forecasting future values by fitting an ARIMA model and evaluating its accuracy using standard error metrics.
- Instantiate an
ARIMAmodel using thetraindata and the providedorder. - Fit the instantiated model to the training data.
- Generate a forecast for the duration of the test set by passing
test_sizeto thestepsparameter. - Calculate the Mean Absolute Error (
mae) and Mean Squared Error (mse) by comparing the actualtestvalues against yourforecast.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 10
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår