Update README.md
Browse files
README.md
CHANGED
|
@@ -1,176 +1,210 @@
|
|
| 1 |
-
#
|
|
|
|
| 2 |
|
| 3 |
-
This project explores how students’ daily habits
|
| 4 |
-
|
| 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 |
-
#
|
| 14 |
|
| 15 |
-
|
| 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 |
-
##
|
| 27 |
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
---
|
| 40 |
|
| 41 |
-
##
|
| 42 |
|
| 43 |
-
|
| 44 |
-
📈 Students who studied more achieved higher scores, showing a **strong positive correlation** between study time and exam performance.
|
| 45 |
|
| 46 |
-
|
| 47 |
-

|
| 48 |
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
|
| 57 |
---
|
| 58 |
|
| 59 |
-
##
|
| 60 |
-
|
|
|
|
| 61 |
|
| 62 |
-
|
|
|
|
| 63 |
|
| 64 |
---
|
| 65 |
|
| 66 |
-
#
|
| 67 |
-
📉 Clear **negative trend** — higher social media use correlates with lower exam scores.
|
| 68 |
|
| 69 |
-
|
| 70 |
-

|
| 71 |
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
|
|
|
| 78 |
|
| 79 |
---
|
| 80 |
|
| 81 |
-
##
|
| 82 |
-
🕸️ Internet quality shows **no significant impact** — students with “Good,” “Average,” or “Poor” connections scored similarly.
|
| 83 |
|
| 84 |
-

|
| 23 |
+
|
| 24 |
+
Students who study more hours show a **strong positive correlation** with exam performance.
|
| 25 |
+
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
## **Q2: Does sleeping longer lead to higher grades?**
|
| 29 |
+
|
| 30 |
+

|
| 31 |
+
|
| 32 |
+
Sleep shows a **weak but positive** relationship with exam score.
|
| 33 |
+
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
## **Q3: Does more time on social media reduce exam results?**
|
| 37 |
+
|
| 38 |
+

|
| 39 |
+
|
| 40 |
+
Higher social-media usage is linked to **consistently lower scores**.
|
| 41 |
+
|
| 42 |
+
---
|
| 43 |
+
|
| 44 |
+
## **Q4: Does better internet quality correlate with better exam performance?**
|
| 45 |
+
|
| 46 |
+

|
| 47 |
+
|
| 48 |
+
Internet quality has a **minor effect**, not a strong predictor.
|
| 49 |
+
|
| 50 |
+
---
|
| 51 |
+
|
| 52 |
+
## **Q5: Do students with part-time jobs perform differently?**
|
| 53 |
+
|
| 54 |
+

|
| 55 |
+
|
| 56 |
+
Students with part-time jobs perform **slightly lower**, but the difference is small.
|
| 57 |
|
| 58 |
---
|
| 59 |
|
| 60 |
+
## **Q6: Does gender influence the relationship between study habits and performance?**
|
| 61 |
|
| 62 |
+

|
|
|
|
| 63 |
|
| 64 |
+
Correlations between habits and performance are **almost identical** across genders.
|
|
|
|
| 65 |
|
| 66 |
+
---
|
| 67 |
+
|
| 68 |
+
## **Q7: Does combining good sleep and good study habits lead to stronger results?**
|
| 69 |
+
|
| 70 |
+

|
| 71 |
+
|
| 72 |
+
Students who sleep well **and** study well achieve the **highest scores** overall.
|
| 73 |
|
| 74 |
---
|
| 75 |
|
| 76 |
+
## **Q8: Which factor is the strongest predictor of exam score?**
|
| 77 |
+
|
| 78 |
+

|
| 79 |
|
| 80 |
+
**Study hours per day** is the strongest predictor
|
| 81 |
+
followed by mental health → sleep → exercise → internet quality → social media (negative).
|
| 82 |
|
| 83 |
---
|
| 84 |
|
| 85 |
+
# 🔥 Additional Sub-Questions (New)
|
|
|
|
| 86 |
|
| 87 |
+
These questions analyze additional categories in the dataset:
|
|
|
|
| 88 |
|
| 89 |
+
---
|
| 90 |
+
|
| 91 |
+
## **Q9: Does better mental health predict higher exam performance?**
|
| 92 |
+
|
| 93 |
+

|
| 94 |
+
|
| 95 |
+
Clear **positive relationship** — better mental health = higher academic success.
|
| 96 |
|
| 97 |
---
|
| 98 |
|
| 99 |
+
## **Q10: Does diet quality affect exam performance?**
|
|
|
|
| 100 |
|
| 101 |
+

|
| 102 |
|
| 103 |
+
Students with **Fair/Good diets** perform only slightly better than those with Poor.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
|
| 105 |
---
|
| 106 |
|
| 107 |
+
## **Q11: Do students who exercise more achieve higher exam scores?**
|
|
|
|
| 108 |
|
| 109 |
+

|
| 110 |
|
| 111 |
+
Exercise frequency has a **small but consistent positive effect**.
|
|
|
|
|
|
|
|
|
|
| 112 |
|
| 113 |
---
|
| 114 |
|
| 115 |
+
## **Q12: Is higher class attendance linked to better exam results?**
|
|
|
|
| 116 |
|
| 117 |
+

|
| 118 |
|
| 119 |
+
Attendance shows only a **very small positive effect** on scores.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
|
| 121 |
---
|
| 122 |
|
| 123 |
+
## **Q13: Does watching more Netflix affect exam performance?**
|
|
|
|
| 124 |
|
| 125 |
+

|
| 126 |
|
| 127 |
+
Netflix hours show a **clear negative correlation** with exam score.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
|
| 129 |
---
|
| 130 |
|
| 131 |
+
# 🔥 Full Correlation Table (New)
|
| 132 |
+
|
| 133 |
+

|
| 134 |
+
|
| 135 |
+
Top correlations with exam score:
|
| 136 |
+
- **Study hours** (+0.83)
|
| 137 |
+
- **Mental health rating** (+0.32)
|
| 138 |
+
- **Exercise frequency** (+0.16)
|
| 139 |
+
- **Netflix hours** (–0.17)
|
| 140 |
+
- **Social media hours** (–0.17)
|
| 141 |
+
|
| 142 |
+
---
|
| 143 |
|
| 144 |
+
# 🔥 Correlation Heatmap (All Variables)
|
| 145 |
|
| 146 |
+

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
|
| 148 |
+
Shows full Pearson correlation between all numeric variables.
|
|
|
|
|
|
|
|
|
|
| 149 |
|
| 150 |
---
|
| 151 |
|
| 152 |
+
# 🧠 Key Insights
|
| 153 |
|
| 154 |
+
### 📌 1. Study hours are by far the **strongest driver of exam score**.
|
| 155 |
+
### 📌 2. Mental health is the **second strongest** and highly important.
|
| 156 |
+
### 📌 3. Social media and Netflix negatively affect exam performance.
|
| 157 |
+
### 📌 4. Exercise helps slightly; diet has almost no effect.
|
| 158 |
+
### 📌 5. Attendance matters less than expected.
|
| 159 |
+
### 📌 6. Good sleep + good study habits = **top performance group**.
|
| 160 |
+
### 📌 7. Gender differences are minimal — habits matter more than demographics.
|
| 161 |
|
| 162 |
---
|
| 163 |
|
| 164 |
+
# 📂 Data Dictionary
|
| 165 |
+
|
| 166 |
+
| Column Name | Description |
|
| 167 |
+
|------------------------|-------------|
|
| 168 |
+
| student_id | Unique student identifier |
|
| 169 |
+
| age | Student age |
|
| 170 |
+
| gender | Male / Female / Other |
|
| 171 |
+
| study_hours_per_day | Daily study time (numeric) |
|
| 172 |
+
| social_media_hours | Daily SM usage hours |
|
| 173 |
+
| netflix_hours | Daily Netflix usage hours |
|
| 174 |
+
| part_time | Works part-time? Yes/No |
|
| 175 |
+
| attendance_percentage | Class attendance (0–100) |
|
| 176 |
+
| sleep_hours | Sleep hours per night |
|
| 177 |
+
| diet_quality | Poor / Fair / Good |
|
| 178 |
+
| exercise_frequency | Exercise times per week |
|
| 179 |
+
| parental_education | Parent’s highest education |
|
| 180 |
+
| internet_quality | Home internet quality |
|
| 181 |
+
| mental_health_rating | Self-rated mental health (1–10) |
|
| 182 |
+
| extracurricular | Participates in extracurricular activities? |
|
| 183 |
+
| exam_score | Final grade (0–100) |
|
| 184 |
|
| 185 |
---
|
| 186 |
|
| 187 |
+
# 🧬 Code Snippet – Data Dictionary Extraction
|
| 188 |
+
|
| 189 |
+
```python
|
| 190 |
+
data_dictionary = {
|
| 191 |
+
"student_id": "Unique student identifier",
|
| 192 |
+
"age": "Student age",
|
| 193 |
+
"gender": "Male / Female / Other",
|
| 194 |
+
"study_hours_per_day": "Daily study time",
|
| 195 |
+
"social_media_hours": "Daily time on social networks",
|
| 196 |
+
"netflix_hours": "Daily Netflix watching hours",
|
| 197 |
+
"part_time": "Whether the student works part-time",
|
| 198 |
+
"attendance_percentage": "Percentage of attendance (0-100)",
|
| 199 |
+
"sleep_hours": "Sleep hours per night",
|
| 200 |
+
"diet_quality": "Self-rated diet quality (Poor/Fair/Good)",
|
| 201 |
+
"exercise_frequency": "Exercise sessions per week",
|
| 202 |
+
"parental_education": "Parent highest education level",
|
| 203 |
+
"internet_quality": "Home internet quality",
|
| 204 |
+
"mental_health_rating": "Self-rated mental health (1-10)",
|
| 205 |
+
"extracurricular": "Participates in extracurricular activities? (Yes/No)",
|
| 206 |
+
"exam_score": "Final exam score (0-100)"
|
| 207 |
+
}
|
| 208 |
+
|
| 209 |
+
data_dictionary
|
| 210 |
|