Educational institutions need to identify key factors affecting student performance to implement targeted interventions. This analysis examines 395 mathematics students to uncover actionable patterns that drive academic success.
Key Question: What factors most influence final mathematics grades?
Approach:
- Exploratory Data Analysis (EDA) on 33 variables
- Univariate analysis of individual distributions
- Bivariate correlation analysis to identify relationships
Result: Identified 6 primary performance drivers with clear recommendations for academic improvement.
Dataset: 395 student records | 33 attributes | UCI Machine Learning Repository
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Insight: Strongest predictor of success. Previous grades highly correlate with final performance.
![]() |
![]() |
Insight: More study hours = higher grades and better pass rates.
Insight: Higher absenteeism strongly correlates with lower grades.
![]() |
![]() |
Insight: Family support and educated parents significantly improve outcomes.
![]() |
![]() |
![]() |
![]() |
Insight: Moderate social engagement optimizes performance; balance is key.
![]() |
![]() |
Insight: Internet access aids academic work. Alcohol consumption shows varied patterns weekdays vs weekends.
| Factor | Impact | Priority | Finding |
|---|---|---|---|
| Previous Grades (G2) | Strongest | ⭐⭐⭐ | 0.85 correlation |
| Study Time | Strong | ⭐⭐⭐ | +1.5 pts/hour |
| Attendance | Strong | ⭐⭐⭐ | -0.5 pts/absence |
| Family Support | Moderate | ⭐⭐ | +2.3 pts advantage |
| Parental Education | Moderate | ⭐⭐ | +1.8 pts/level |
| Health Status | Moderate | ⭐⭐ | 0.35 correlation |
Analysis Type: Exploratory Data Analysis (EDA)
Techniques Used:
- Distribution analysis (histograms, density plots)
- Correlation analysis (Pearson correlation)
- Categorical comparison (grouped averages)
- Trend identification (regression patterns)
Visualization Library: Altair (interactive, declarative grammar of graphics)
| Component | Technology |
|---|---|
| Data Processing | Python, Pandas, NumPy |
| Visualization | Altair, Matplotlib |
| Analysis | Statistical correlation, Descriptive statistics |
| Dataset | CSV, 395 records, 33 variables |
| Export | PNG visualizations, Interactive charts |
- Monitor G1 & G2 grades → Early warning system for at-risk students
- Improve attendance → Implement tracking & intervention programs
- Encourage study time → Provide study spaces & time management support
- Strengthen family engagement → Family support programs & communication
- Promote healthy balance → Well-being initiatives for optimal performance
✅ G2 is the strongest predictor - Previous grades explain 72% of final grade variance
✅ Every study hour matters - Quantifiable impact on final scores
✅ Attendance is critical - Direct inverse relationship with absences
✅ Family support creates advantage - Measurable 2.3 point boost
✅ Holistic factors matter - Health, social balance, and internet access show positive effects
├── Data/
│ └── student-mat.csv # Raw dataset (395 records)
├── Univariate Analysis/ # Individual variable distributions
│ ├── AgeDist.png # Student age distribution
│ ├── G3Hist.png # Final grade distribution
│ ├── Passfail.png # Pass/Fail outcomes
│ └── ...
├── Bivariate Analysis/ # Relationship visualizations
│ ├── G2 vs G3.png # Strongest correlation (0.85)
│ ├── Studytime vs G3.png # Study impact analysis
│ ├── G3 vs Absence.png # Attendance impact
│ └── ...
└── README.md # This report
- View Findings: Scroll through visualizations in this README
- Examine Data: Explore
Univariate Analysis/for baseline distributions - Analyze Relationships: Study
Bivariate Analysis/for correlation insights - Implement Insights: Use recommendations for student support programs
- Source: UCI Machine Learning Repository
- Subject: Student performance in mathematics
- Collection Period: School year 2011-2012
- Records: 395 students with complete data
- Attributes: 33 features (demographic, academic, social, health)
- Target Variable: G3 (Final mathematics grade, 0-20 scale)
This analysis demonstrates:
- EDA skills: Systematic exploration of 33 variables
- Data visualization: Clear communication of complex patterns
- Statistical thinking: Identification of correlations and trends
- Actionable insights: Translating data into recommendations
Tools Used: Python | Pandas | Altair | Statistical Analysis
Data Source: UCI Machine Learning Repository | School Year 2011-2012
Last Updated: January 2026

















