Weather Trend: Global and Local
Introduction
This project was completed as part of the course requirements of Udacity’s Data Analyst Nanodegree certification.
The complete code and analysis rationale can be found in this browser friendly version or the actual jupyter notebook or this .
Overview
The global and local weather data were made available in a database, requiring some SQL commands to select and extract data for the desired locations. This project explores the correlation of local and global weather, as well as their trend over the past century.
Technologies
- Python:
- Pandas, Numpy, Matplotlib, Statmodels, Jupyter Notebook
- SQL
Key Findings
- London, UK is consistently hotter than the Global average, with a mean temperature of 9.5 and 8.3 degrees Celsius, respectively
- London presents the same trend as the Global average temperature: they both seem to be getting warmer recently.
- There is a pattern of ups and downs in the average temperature every 10 years… up until around 1920. After this, the average temperature presents an overall trend of actual warming. This becomes quite clear after 1970, when the Global average temperature pretty much grows linearly!
- A simple Linear Regression using only data after 1920 yielded a good model (R-value of 94%) that can be used to predict London’s temperature. With a slope of 1.1 and an intercept of only 0.09, it basically means that London is usually 10% hotter than the Global yearly average temperature
- The same warming trend holds true for Houston and Rio de Janeiro. As expected, Rio and “Hell-stoun” are significantly warmer than London and the Global average, with 23.8 and 20.2 mean degrees Celsius, respectively.
As always, constructive feedback is appreciated. Feel free to leave any questions/suggestions in the comments section below!