This project studies rainfall prediction and broader weather pattern analysis using climate data, dimensionality reduction, clustering, and machine learning.
The final workflow combines exploratory data analysis, feature engineering, PCA, SVD, K-Means clustering, and predictive modeling to understand climate structure and improve rainfall prediction performance.
The project addresses an important climate analytics question: how can high-dimensional weather data be simplified without losing critical predictive information, and how effectively can that reduced representation support rainfall prediction?
The report emphasizes:
- rainfall prediction using climate variables
- dimensionality reduction with PCA and SVD
- pattern discovery through K-Means clustering
- classification and regression modeling
- interpretability through visual analysis and comparative evaluation
- missing-value handling
- feature engineering
- label encoding for rainfall-related categorical variables
- interaction features such as rainfall and humidity terms
- lag-based features for rainfall and temperature trends
- Principal Component Analysis (PCA)
- Singular Value Decomposition (SVD)
- K-Means clustering
- elbow-method-based cluster selection
- Random Forest
- Logistic Regression
- Decision Tree
- Support Vector Machine
- K-Nearest Neighbors
- XGBoost
- Linear Regression
- Gradient Boosting Regressor
- accuracy
- F1-score
- ROC-AUC
- Cohen's kappa
- confusion matrix
- regression comparison plots
- PCA reduced feature complexity effectively while retaining over 95% of the variance noted in the final report.
- PCA performed better than SVD in the final comparison for this project.
- K-Means clustering identified three meaningful weather-pattern groupings in the reduced space.
- The clusters reflected distinct climate behaviors such as high-rainfall/high-humidity and lower-rainfall regimes.
- Seasonal and interaction-based features improved model performance.
- Rainfall showed interpretable relationships with sunshine, temperature, wind, and geography.
- Ensemble methods delivered strong predictive performance, while reduced-dimension modeling improved interpretability.
This repository emphasizes the polished final artifacts from the project:
reports/final-report.pdf: primary written deliverablereports/final-merged-code.pdf: merged final code artifactslides/final-presentation.pptx: final slide decknotebooks/: original notebook-based working files, preserved with minimal modification
The project is based on an Australian weather dataset used for rainfall prediction and weather-pattern analysis.
Included data files:
data/raw/weatherAUS.csvdata/processed/data.csvdata/processed/df2.csvdata/processed/weatherAUS2.csv
climate-data-analysis-rainfall-prediction/
README.md
index.html
.gitignore
assets/
images/
data/
README.md
raw/
processed/
notebooks/
reports/
final-report.pdf
final-report-source.doc
final-merged-code.pdf
slides/
final-presentation.pptx
latex/
draft-report.tex
final-report.tex
- The notebook and code artifacts are kept close to the original project files, per request, with minimal intervention.
- The public-facing emphasis is intentionally placed on the final report, merged code document, presentation, and clear project documentation.
- The landing page is included as a portfolio-friendly project overview page that can also be used for GitHub Pages if desired.

