# ๐ŸŽ“ Student Dropout Prediction Dataset โ€” EDA Assignment > **By Tomer Bash** | Data Science Course โ€” Assignment #1 --- ## ๐Ÿ“น Presentation Video Presentation Video link - https://youtu.be/KyafBx9W7Qg --- ## ๐Ÿ“Œ Dataset Overview | Property | Details | |----------|---------| | **Source** | Kaggle | | **Rows** | 4,424 students | | **Features** | 35 columns | | **Target Variable** | `Target` โ€” `Graduate`, `Enrolled`, `Dropout` | | **Task Type** | Multi-class Classification | The dataset contains demographic, financial, academic, and application-related information about students at a Portuguese higher education institution. The primary goal is to understand and predict **student dropout before first-year academic results are available**. --- ## ๐ŸŽฏ Research Goal > **Can we predict whether a student will drop out โ€” early, before first-year grades are available?** --- ## ๐Ÿงน Part 1: Data Cleaning & Preparation - **No missing values** โ€” `df.isnull().sum()` returned 0 for all columns. - **No duplicate rows** โ€” `df.duplicated().sum()` returned 0. - All 35 features are numeric (int/float) โ€” verified with `df.info()`. - Target column contains exactly 3 classes: `Graduate`, `Enrolled`, `Dropout`. - **Class imbalance noted:** - Graduate: 2,209 - Dropout: 1,421 - Enrolled: 794 - **Outlier detection:** Age at enrollment shows right-skewed distribution with outliers at high ages โ€” identified using a boxplot. - **Grade anomaly detected:** Significant spike at grade = 0 in 1st semester grades โ€” investigated and documented below. --- ## ๐Ÿ“Š Part 2: Exploratory Data Analysis ### ๐Ÿ“ˆ Target Distribution The dataset is imbalanced. Graduate is the majority class, followed by Dropout, and Enrolled is the smallest group. This imbalance must be handled carefully in any downstream modeling. --- ### ๐Ÿ‘ค Age at Enrollment - Distribution is **right-skewed** โ€” most students enroll young, but a long tail of older students exists. - Boxplot reveals several **outliers at high ages** (up to ~70). - **The Dropout group has a higher average age** than the Graduate group โ€” age at enrollment is a risk factor. | Group | Avg Age at Enrollment | |---|---| | Graduate | ~22 | | Enrolled | ~23 | | Dropout | ~26 | --- ### ๐Ÿ“š 1st Semester Grades โ€” The 0-Grade Anomaly - Grades follow a near-normal distribution overall. - A **massive spike at grade = 0** was detected โ€” far more students received exactly 0 than expected. - Upon investigation: some students with grade = 0 **still graduated**. - **Conclusion:** The 0-grade entries likely represent administrative records (late withdrawals, course deregistrations), not pure academic failure. This is a data quality issue to flag for modeling. - The anomaly is **concentrated in Course 2 (Animation degree)**, though the proportion is consistent with class sizes. --- ### ๐Ÿ’ฐ Financial Factors โ€” Primary Predictor Financial health is the strongest non-academic predictor of student outcomes. | Financial Factor | Effect on Dropout | |---|---| | **Tuition fees not up to date** | Overwhelmingly **high** dropout rate | | **Scholarship holder** | Drastically **reduces** dropout risk | | **University debtor** | Significantly **increases** dropout risk | > Students not keeping up with tuition fees show the single highest dropout signal in the entire dataset. --- ### โšง Gender - **Female students (0)** show a slightly higher graduation rate and lower dropout rate than male students (1). - The difference is modest but consistent across the dataset. --- ### ๐Ÿ›๏ธ Application Mode - Top 5 most common application modes were analyzed. - **Application Mode 12 (Over 23 years old)** has the highest dropout rate โ€” consistent with the age finding above. - Standard routes (1st phase general contingent) perform best overall. --- ### ๐Ÿ”ฅ Correlation Heatmap Features analyzed: Age at enrollment, Tuition fees up to date, Scholarship holder, 1st & 2nd semester grades, GDP, Target (encoded 0=Dropout, 1=Enrolled, 2=Graduate). **Key findings:** - โœ… **Grades** and **financial stability** are the strongest positive predictors of graduation. - โŒ **Age at enrollment** correlates negatively with graduation. - ๐Ÿ“‰ **GDP** shows almost no direct linear impact โ€” individual finances matter more than the macro economy. --- ## ๐Ÿ Conclusion ### 1. ๐Ÿ’ฐ Financial Stability โ€” Primary Predictor Scholarships drastically reduce dropout. Unpaid tuition and university debt dramatically raise it. Crucially, these signals exist **before** first-year grades are available โ€” enabling early identification of at-risk students. ### 2. ๐Ÿ“š Grades & the 0-Grade Anomaly High grades are a strong positive predictor of graduation. The spike at grade = 0 is likely administrative, not academic โ€” some 0-grade students still graduated. ### 3. ๐ŸŽ‚ Older Students Are at Higher Risk Age at enrollment correlates negatively with graduation. Students admitted via Mode 12 ("Over 23") have the highest dropout rates โ€” likely due to work and family pressures. ### 4. ๐ŸŒ Macro Economy Has No Direct Linear Effect National GDP shows near-zero correlation with the target. Individual financial circumstances matter far more. --- ## ๐Ÿ“ Repository Contents | File | Description | |------|-------------| | `dataset.csv` | The full student dataset (4,424 ร— 35) | | `Assignment_1_EDA_Tomer_Bash.ipynb` | Full EDA notebook with code & visualizations | | `README.md` | This file | | `presentation.mp4` | Video walkthrough (2โ€“3 min) | --- ## ๐Ÿ› ๏ธ Technologies Used `Python 3` ยท `pandas` ยท `numpy` ยท `matplotlib` ยท `seaborn` ยท `Jupyter Notebook` --- *Dataset originally sourced from Kaggle. Uploaded to HuggingFace as part of Data Science Course Assignment #1.*