Update README.md
Browse files
README.md
CHANGED
|
@@ -4,6 +4,54 @@ Dataset & Analysis by Lipaz Levy
|
|
| 4 |
This project explores how students’ daily habits — including study hours, sleep, social media use, lifestyle factors, mental health, exercise, diet quality, and more — influence their academic performance.
|
| 5 |
|
| 6 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
# **Main Research Question**
|
| 9 |
**How do students’ daily habits affect their exam performance?**
|
|
|
|
| 4 |
This project explores how students’ daily habits — including study hours, sleep, social media use, lifestyle factors, mental health, exercise, diet quality, and more — influence their academic performance.
|
| 5 |
|
| 6 |
---
|
| 7 |
+
We used a dataset of **500 students**, each with lifestyle habits, well-being indicators, and exam scores.
|
| 8 |
+
The goal was to answer:
|
| 9 |
+
|
| 10 |
+
📌 **How do students’ daily habits affect their exam performance?**
|
| 11 |
+
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# 🧹 Data Cleaning & Preprocessing
|
| 15 |
+
|
| 16 |
+
Before performing analysis, several preprocessing steps were required to clean and prepare the dataset.
|
| 17 |
+
|
| 18 |
+
## ✔ 1. Checked for missing values
|
| 19 |
+
- No missing values were found.
|
| 20 |
+
|
| 21 |
+
## ✔ 2. Fixed formatting issues
|
| 22 |
+
- Trimmed spaces from categorical values (“ Yes” → “Yes”).
|
| 23 |
+
|
| 24 |
+
## ✔ 3. Encoded categorical variables for correlations & regressions
|
| 25 |
+
Added encoded columns:
|
| 26 |
+
|
| 27 |
+
- **diet_quality_encoded**
|
| 28 |
+
- Poor → 0
|
| 29 |
+
- Fair → 1
|
| 30 |
+
- Good → 2
|
| 31 |
+
|
| 32 |
+
- **internet_quality_encoded**
|
| 33 |
+
- Poor → 0
|
| 34 |
+
- Average → 1
|
| 35 |
+
- Good → 2
|
| 36 |
+
|
| 37 |
+
## ✔ 4. Converted columns to numeric
|
| 38 |
+
Ensured all measurement columns were floats:
|
| 39 |
+
- study_hours_per_day
|
| 40 |
+
- sleep_hours
|
| 41 |
+
- social_media_hours
|
| 42 |
+
- netflix_hours
|
| 43 |
+
- exercise_frequency
|
| 44 |
+
- attendance_percentage
|
| 45 |
+
- exam_score
|
| 46 |
+
|
| 47 |
+
## ✔ 5. Dataset shape
|
| 48 |
+
- **Original:** 500 rows × 16 columns
|
| 49 |
+
- **After encoding:** 500 rows × 18 columns
|
| 50 |
+
|
| 51 |
+
## ✔ 6. Outlier check
|
| 52 |
+
- All values were within valid human ranges.
|
| 53 |
+
- No rows were removed.
|
| 54 |
+
|
| 55 |
|
| 56 |
# **Main Research Question**
|
| 57 |
**How do students’ daily habits affect their exam performance?**
|