The Stone in the Lake: What I Learned Trying to Forecast London’s NO2

· Source: Machine Learning on Medium · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Data Science & Analytics · Depth: Novice, medium

Summary

An analysis of daily NO2 data from London's Kensington and Chelsea area (2010-2023) details a forecasting project. The process involved extensive data cleaning, addressing negative values, 2,952 initial missing readings, duplicates, and outliers, using interpolation for gaps under three days. Decomposition revealed a significant NO2 trend decline from 2016 and strong yearly seasonality. Autocorrelation Function (ACF) analysis confirmed both yearly and subtle weekly seasonality. The project compared baseline models (Naive, Seasonal Naive, Mean, Drift) against more complex SARIMA (1,d,1)(1,1,1,7) and (2,d,2)(1,1,1,7) models, and Meta's Prophet. Evaluation using 5-fold cross-validation with 60-day test windows showed Prophet as the most stable model, maintaining errors in the 7-9.5 range, while SARIMA models were less consistent and did not always outperform the simpler Seasonal Naive baseline.

Key takeaway

For data scientists and AI students tackling time series forecasting, prioritize rigorous data cleaning and establish strong baseline models before deploying complex algorithms. Your models, even advanced ones like SARIMA, may not consistently outperform simple baselines, and their stability across diverse test periods is as crucial as their average error. Always use cross-validation to assess true performance and avoid misleading conclusions from single test sets, ensuring your predictions are reliable and robust.

Key insights

Complex time series models do not automatically outperform simpler baselines, and stability across test periods is critical.

Principles

Method

Clean time series data by addressing missing values and outliers, decompose into components, establish baselines, and evaluate models using cross-validation for robust comparison.

In practice

Topics

Best for: AI Student, Data Scientist

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning on Medium.