This project explores long-term climate trends using a global warming dataset and applies:
- data cleaning and preprocessing
- exploratory data analysis (EDA)
- statistical testing
- probability distribution analysis
- machine learning for temperature prediction
- policy and urbanization impact analysis
The repository contains two runnable Python scripts that cover similar workflows at different levels of detail.
The analysis is designed around practical climate questions:
- How are temperature anomalies and emissions changing over time?
- Which climate indicators are most correlated with temperature change?
- Did CO2 emissions significantly change after 1980?
- Can average temperature be predicted from emission and policy-related variables?
- How do policy scores vary across emission categories?
- How does urbanization relate to environmental impact indicators?
global_warming_dataset.csv- Source dataset used in all analyses.global_warming_project.py- Main, well-structured end-to-end analysis pipeline.INTPRO.py- Extended version with additional objective blocks (including urbanization analysis).README.md- Project documentation.
- Python 3.9+
- NumPy
- Pandas
- Matplotlib
- Seaborn
- SciPy
- scikit-learn
- Clone or download this repository.
- Open the project folder in VS Code (or your terminal).
- Install required packages:
pip install numpy pandas matplotlib seaborn scipy scikit-learnRun either script from the project root:
python global_warming_project.pyor
python INTPRO.pyBoth scripts will:
- print analysis output in the terminal
- generate multiple visualizations (line plots, histograms, heatmaps, boxplots, and model diagnostics)
- Loads climate data from CSV
- Checks data types and missing values
- Creates helper features such as era/decade and emission categories
- Temperature anomaly trend over years
- CO2 emissions distribution
- Feature correlation heatmap
- Emission-category boxplots
- Summary statistics, skewness, covariance
- Outlier detection using IQR fences
- Independent two-sample t-test (Pre-1980 vs Post-1980 CO2)
- Normal distribution fit for temperature anomaly
- Linear Regression model to predict
Average_Temperature - Train/test split with feature scaling
- Evaluation via MSE, RMSE, and R2
- Coefficient interpretation for climate features
- Policy score comparison across emission groups
- Urbanization level grouping and impact comparison
- Make sure
global_warming_dataset.csvis present in the same folder as the scripts before running. - If plots do not appear, verify that your Python environment supports GUI plotting (or run in an environment like VS Code with plotting support).
- Add a
requirements.txtfile for reproducible setup - Add model comparison (Random Forest, XGBoost, etc.)
- Include time-series forecasting methods
- Export charts/results to a report folder automatically
Created as a climate analytics and machine learning project for academic and learning purposes.