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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 🧠 Student Habits vs Academic Performance
|
| 2 |
+
|
| 3 |
+
This project explores how students’ daily habits — such as **study hours, sleep, social media use, part-time work, and internet quality** — affect their **exam performance**.
|
| 4 |
+
The dataset contains **1,000 simulated student records** and combines both numerical and categorical variables, allowing for rich exploratory and regression analysis.
|
| 5 |
+
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
## 🎯 Research Question
|
| 9 |
+
**How do students’ daily habits (study hours, sleep, social media use, and lifestyle factors) affect their exam performance?**
|
| 10 |
+
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
## 🧩 Sub-Questions (8 Total)
|
| 14 |
+
|
| 15 |
+
1️⃣ Does studying more hours per day improve exam performance?
|
| 16 |
+
2️⃣ Does sleeping longer lead to higher grades?
|
| 17 |
+
3️⃣ Does more time on social media reduce exam results?
|
| 18 |
+
4️⃣ Does better internet quality correlate with better exam performance?
|
| 19 |
+
5️⃣ Do students with part-time jobs perform differently compared to those without jobs?
|
| 20 |
+
6️⃣ Does gender influence the relationship between study habits and exam performance?
|
| 21 |
+
7️⃣ Does combining good sleep and good study habits lead to stronger results?
|
| 22 |
+
8️⃣ Which factor (study time, sleep, social media, or internet quality) is the strongest predictor of exam performance?
|
| 23 |
+
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
## 📊 Dataset Overview
|
| 27 |
+
|
| 28 |
+
| Feature | Description |
|
| 29 |
+
|----------|-------------|
|
| 30 |
+
| `age` | Age of the student |
|
| 31 |
+
| `gender` | Gender (Male/Female/Other) |
|
| 32 |
+
| `study_hours_per_day` | Average study hours per day |
|
| 33 |
+
| `sleep_hours` | Average sleep hours per night |
|
| 34 |
+
| `social_media_hours` | Time spent daily on social media |
|
| 35 |
+
| `part_time_job` | Whether the student works part-time |
|
| 36 |
+
| `internet_quality` | Quality of home internet (Good/Average/Poor) |
|
| 37 |
+
| `exam_score` | Final exam score (0 – 100) |
|
| 38 |
+
|
| 39 |
+
---
|
| 40 |
+
|
| 41 |
+
## 🔍 Exploratory Data Analysis (EDA)
|
| 42 |
+
|
| 43 |
+
### Q1: Study Hours vs Exam Score
|
| 44 |
+
📈 Students who studied more achieved higher scores, showing a **strong positive correlation** between study time and exam performance.
|
| 45 |
+
|
| 46 |
+

|
| 47 |
+

|
| 48 |
+
|
| 49 |
+
| Study Hours | Average Exam Score |
|
| 50 |
+
|--------------|--------------------|
|
| 51 |
+
| 0–2 | 46.97 |
|
| 52 |
+
| 2–4 | 65.96 |
|
| 53 |
+
| 4–6 | 82.05 |
|
| 54 |
+
| 6–8 | 97.66 |
|
| 55 |
+
| 8–10 | 100.00 |
|
| 56 |
+
|
| 57 |
+
---
|
| 58 |
+
|
| 59 |
+
### Q2: Sleep Hours vs Exam Score
|
| 60 |
+
📊 A mild positive relationship appears between **sleep duration and exam scores** — students sleeping 7–8 hours tend to perform slightly better. Too much sleep doesn’t necessarily improve performance.
|
| 61 |
+
|
| 62 |
+

|
| 63 |
+
|
| 64 |
+
---
|
| 65 |
+
|
| 66 |
+
### Q3: Social Media Use vs Exam Score
|
| 67 |
+
📉 Clear **negative trend** — higher social media use correlates with lower exam scores.
|
| 68 |
+
|
| 69 |
+

|
| 70 |
+

|
| 71 |
+
|
| 72 |
+
| Social Media Use | Average Exam Score |
|
| 73 |
+
|------------------|--------------------|
|
| 74 |
+
| Low (≤2 h) | 72.79 |
|
| 75 |
+
| Moderate (2–4 h) | 68.38 |
|
| 76 |
+
| High (4–6 h) | 64.95 |
|
| 77 |
+
| Excessive (>6 h) | 60.57 |
|
| 78 |
+
|
| 79 |
+
---
|
| 80 |
+
|
| 81 |
+
### Q4: Internet Quality vs Exam Score
|
| 82 |
+
🕸️ Internet quality shows **no significant impact** — students with “Good,” “Average,” or “Poor” connections scored similarly.
|
| 83 |
+
|
| 84 |
+

|
| 85 |
+
|
| 86 |
+
| Internet Quality | Avg Exam Score |
|
| 87 |
+
|------------------|----------------|
|
| 88 |
+
| Average | 70.64 |
|
| 89 |
+
| Good | 68.65 |
|
| 90 |
+
| Poor | 69.72 |
|
| 91 |
+
|
| 92 |
+
---
|
| 93 |
+
|
| 94 |
+
### Q5: Part-Time Job vs Exam Score
|
| 95 |
+
💼 Having a part-time job has **minimal effect** — students with jobs scored almost the same as those without.
|
| 96 |
+
|
| 97 |
+

|
| 98 |
+
|
| 99 |
+
| Status | Avg Exam Score |
|
| 100 |
+
|---------|----------------|
|
| 101 |
+
| No Job | 69.84 |
|
| 102 |
+
| Yes | 68.74 |
|
| 103 |
+
|
| 104 |
+
---
|
| 105 |
+
|
| 106 |
+
### Q6: Gender and Study Habits
|
| 107 |
+
⚖️ The relationship between study hours and exam performance is consistent across genders.
|
| 108 |
+
|
| 109 |
+

|
| 110 |
+
|
| 111 |
+
| Gender | Correlation (Study Hours ↔ Exam Score) |
|
| 112 |
+
|---------|----------------------------------------|
|
| 113 |
+
| Female | 0.824 |
|
| 114 |
+
| Male | 0.827 |
|
| 115 |
+
| Other | 0.818 |
|
| 116 |
+
|
| 117 |
+
---
|
| 118 |
+
|
| 119 |
+
### Q7: Combined Habits — Sleep + Study
|
| 120 |
+
💡 Students who both **study well and sleep well** achieve the highest average scores.
|
| 121 |
+
|
| 122 |
+

|
| 123 |
+
|
| 124 |
+
| Habit Group | Avg Exam Score |
|
| 125 |
+
|--------------|----------------|
|
| 126 |
+
| Good Sleep Only | 63.64 |
|
| 127 |
+
| Good Study + Good Sleep | 86.66 |
|
| 128 |
+
| Good Study Only | 81.94 |
|
| 129 |
+
| Neither | 59.40 |
|
| 130 |
+
|
| 131 |
+
---
|
| 132 |
+
|
| 133 |
+
### Q8: Strongest Predictor (Regression Analysis)
|
| 134 |
+
🧮 Multiple Linear Regression results show:
|
| 135 |
+
|
| 136 |
+

|
| 137 |
+
|
| 138 |
+
| Predictor | Coefficient | p-value |
|
| 139 |
+
|------------|-------------|---------|
|
| 140 |
+
| Study Hours | **+9.59** | 0.000 |
|
| 141 |
+
| Sleep Hours | +2.04 | 0.000 |
|
| 142 |
+
| Social Media Hours | **–2.66** | 0.000 |
|
| 143 |
+
| Internet Quality | –0.97 | 0.010 |
|
| 144 |
+
|
| 145 |
+
📊 Interpretation:
|
| 146 |
+
- **Study hours per day** are the **strongest positive predictor** of exam performance.
|
| 147 |
+
- **Social media hours** show the strongest **negative impact**.
|
| 148 |
+
- Sleep has a smaller but positive effect, while internet quality is relatively minor.
|
| 149 |
+
|
| 150 |
+
---
|
| 151 |
+
|
| 152 |
+
## 💡 Key Insights
|
| 153 |
+
|
| 154 |
+
- Study time is the **most important factor** for higher exam performance.
|
| 155 |
+
- Sleep contributes moderately — balance is key (7–8 hours optimal).
|
| 156 |
+
- Social media use negatively impacts academic results.
|
| 157 |
+
- Internet quality and part-time work have only minor effects.
|
| 158 |
+
- Combining good sleep and study habits yields the best outcomes.
|
| 159 |
+
|
| 160 |
+
---
|
| 161 |
+
|
| 162 |
+
## 🗂️ Files Included
|
| 163 |
+
- `student_habits_performance.csv` — original dataset
|
| 164 |
+
- `student_analysis.ipynb` — Colab notebook with full analysis
|
| 165 |
+
- `README.md` — this file
|
| 166 |
+
- Image files:
|
| 167 |
+
`study_vs_exam_scatter.png`, `study_vs_exam_bar.png`, `sleep_vs_exam_scatter.png`,
|
| 168 |
+
`social_media_vs_exam_scatter.png`, `social_media_vs_exam_bar.png`,
|
| 169 |
+
`internet_quality_vs_exam_bar.png`, `part_time_job_vs_exam_bar.png`,
|
| 170 |
+
`gender_correlation.png`, `combined_habits_vs_exam_bar.png`, `regression_summary.png`
|
| 171 |
+
|
| 172 |
+
---
|
| 173 |
+
|
| 174 |
+
## 📜 License
|
| 175 |
+
Dataset and analysis created for **educational and research purposes only**.
|