students_data$sex <- NULL
students_data$age <- NULL
students_data$address_type <- NULL
students_data$family_size <- NULL
students_data$parent_status <- NULL
students_data$mother_education <- NULL
students_data$father_education <- NULL
students_data$mother_job <- NULL
students_data$father_job <- NULL
students_data$reason <- NULL
students_data$guardian <- NULL
students_data$travel_time <- NULL
students_data$class_failures <- NULL
students_data$activities <- NULL
students_data$nursery_school <- NULL
students_data$extra_paid_classes <- NULL
students_data$internet_access <- NULLSince the original dataset has 2 different alcohol columns (one for weekdays and another for weekends)
students_data_new <- students_data_new |>
mutate(alcohol_level = case_when(
weekly_alcohol_consump >= 0 & weekly_alcohol_consump <= 4 ~ "Drink little",
weekly_alcohol_consump >= 5 & weekly_alcohol_consump <= 6 ~ "Drink regularly",
weekly_alcohol_consump >= 7 & weekly_alcohol_consump <= 10 ~ "Drink a lot",
TRUE ~ "Unknown" # Add a default category for other values
))The visualizations yielded surprising results. Weekly study time and final grades exhibited minimal differences, challenging assumptions about study habits. Family relationship quality showed no significant impact on performance, contradicting expectations. Health status and fewer absences correlated with higher grades, supporting intuitive expectations. Contrary to assumptions, increased alcohol consumption did not significantly affect academic performance. Overall, these findings emphasize the role of attendance and health-related factors in academic success, challenging common beliefs about the influence of study time and alcohol consumption on final grades.