Describe a time series forecasting problem you worked on and explain the difference between RMSE and MAE.
Using actual_values and forecast_values, write a SQL query that calculates both error metrics for each forecasting model. Exclude observations where either the actual or forecast value is missing.
model_name, observations_used, mae, and rmsermse ascending, then model_name ascending| Column | Type | Description |
|---|---|---|
| actual_idPK | INT | Unique actual observation identifier |
| observation_date | DATE | Date of the observed value |
| actual_value | NUMERIC(12,2) | Observed value for the date |
| Column | Type | Description |
|---|---|---|
| forecast_idPK | INT | Unique forecast identifier |
| model_name | VARCHAR(40) | Name of the forecasting model |
| forecast_date | DATE | Date being forecast |
| forecast_value | NUMERIC(12,2) | Predicted value for the date |