← Back to portfolio

Case Study • Data Analysis

Australia Weather Data Analysis

Data cleaning, statistical exploration, and modeling under the CRISP-DM methodology to identify key drivers for next-day rainfall prediction.

RoleData Analyst / ML Explorer
MethodologyCRISP-DM
StackPython, Pandas, Seaborn, Scikit-learn

1. Challenge & Context

Australia's climate shows high geographic and seasonal variability. The objective was to take a historical dataset with outliers and missing values, build a consistent cleaning pipeline, and determine which atmospheric variables carry the strongest predictive weight for next-day rain (RainTomorrow).

2. Visual Evidence & Key Findings

Three visual milestones across the workflow: from diagnosing initial class imbalance to validating the final classification model.

Distribution of rainy vs. non-rainy days
CRISP-DM Phase: Data Understanding

Class imbalance diagnosis (77.6% vs. 22.4%)

Dry days far outnumber rainy days. A naive model would hit ~78% accuracy by always predicting "No," making Recall and ROC-AUC essential evaluation metrics.

Correlation matrix across numerical variables
CRISP-DM Phase: Data Preparation

Multicollinearity analysis & feature filtering

The matrix exposed extreme collinearity (Pressure9am vs. Pressure3pm = 0.96) and confirmed that afternoon relative humidity (Humidity3pm) and solar radiation are primary rainfall signals.

Normalized and raw confusion matrix of the model
CRISP-DM Phase: Evaluation

Final performance: 78.65% effective rainfall detection

The final model correctly identified 78.65% of actual rain events (5,014 true positives) and 81.11% of dry days, delivering balanced, decision-ready classification.

3. Applied Workflow (CRISP-DM)

01

Data Understanding

Audited data types, outlier spread, and missing-value patterns.

02

Data Preparation

Applied regional median imputation and encoded wind-direction categories.

03

Modeling & Evaluation

Trained baseline classifiers prioritizing Recall and ROC-AUC metrics.

Key Takeaways

  • Data prep over modeling: Region-aware handling of missing values substantially reduced predictive bias compared to naive global imputation.
  • High-leverage signals: Afternoon atmospheric pressure paired with temperature spread accounts for 70% of discriminative power in linear models.