Skip to content

This project describes the step-by-step method for forecasting the mean temperature of Spain through the application of various predictive methods (ARIMA, SARIMA, SARIMAX y PROPHET).

License

Notifications You must be signed in to change notification settings

Cintia-Perez-Battistessa/A-Complete-Guide-to-Weather-Forecasting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

A Complete Guide to Weather Forecasting

Captura de Pantalla 2024-01-30 a la(s) 21 05 37

_Figure 1: This graph compares actual and predicted average temperatures in Spain using the SARIMAX model. The shaded region around the predicted values represents the uncertainty range.

Table of Contents

1. About the Project

This project describes the step-by-step method for forecasting the mean temperature of Spain through the application of various predictive methods.

The project begins by explaining essential insights into time series and prediction concepts. Following this, details of the preprocessing required to prepare the data for applying prediction algorithms are provided. Subsequently, various prediction methods, including ARIMA, SARIMA, SARIMAX, and PROPHET, are used, validated, and evaluated through relevant metrics.

2. Project objectives

The project objectives were:

  • Prepare mean temperature data for Spain to forecast it.
  • Predict mean temperature using different methods such as ARIMA, SARIMA, SARIMAX, and Prophet
  • Evaluate and compare the prediction models.

3. Project Data

In this project, daily weather data from 1963 to 2022 for each capital of Spain is used to estimate and predict the average weather data for Spain. This dataset, obtained through the Open-Meteo API, was originally collected and processed in a prior GitHub project titled "Climate Change in Spain with Animation.

4. Conclusion

The metrics for the various predictive models are summarized in the table below.

_Table 1: Comparison table of predictive model metrics.

Captura de Pantalla 2024-01-30 a la(s) 21 06 43

The ARIMA model exhibits the lowest performance, as it does not consider the seasonality inherent in the data. On the other hand, SARIMA, which incorporates stationarity, significantly improves precision by capturing data patterns better. The introduction of exogenous variables (maximum wind speed and total precipitation) in the SARIMAX model results in an improved R2 metric. While both SARIMA and SARIMAX effectively capture data patterns, the presence of overfitting signals is indicated by model residuals. The simpler Prophet model successfully captures data patterns but achieves comparatively lower precision than SARIMA and SARIMAX.

A notable observation is that none of the models accounts for the increasing trend in temperature over the years.

5. License

This project is licensed under the Apache License. Please take a look at the LICENSE file for more information.

6. Give it a Star! ⭐

If you find this helpful, please star it. Thanks!

About

This project describes the step-by-step method for forecasting the mean temperature of Spain through the application of various predictive methods (ARIMA, SARIMA, SARIMAX y PROPHET).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published