APPLICATION OF LOGISTIC REGRESSION IN PREDICTING STUDENTS’ CHOICE OF STEM AND NON-STEM TRACKS
Faculty of Science, University of Kragujevac, Serbia
Abstract
This paper examines the possibility of predicting students’ choice of STEM and non-STEM tracks in grammar school by applying logistic regression to data collected through a questionnaire-based survey. The analysis was conducted on a dataset comprising 1044 students from four grammar schools in Kragujevac and Novi Sad. The target variable was defined as a binary classification of students into STEM and non-STEM track groups, while the input features included socio-demographic data, data on academic achievement, and students’ responses related to school experiences and subject preferences. After data preprocessing, which included the transformation of categorical features, the treatment of missing values, and standardization, logistic regression was applied as an interpretable binary classification model. The results showed that the model successfully distinguishes between students in STEM and non-STEM tracks, with accuracy, precision, recall, F1-score, and AUC-ROC values of 0.823, 0.784, 0.793, 0.789, and 0.898, respectively. The analysis of the model coefficients also made it possible to identify the features that contribute most strongly to the classification. The findings point to the importance of school context, certain educational characteristics, and subject preferences in understanding students’ choice of STEM and non-STEM tracks.
1. INTRODUCTION
STEM education plays an increasingly important role in contemporary educational systems, as it is associated with scientific and technological development, innovation, economic competitiveness, and the preparation of young people for future careers. However, despite the broad social and educational importance of STEM fields, students’ interest in these areas is not evenly developed, nor can their choice of a STEM educational pathway be explained by a single factor. Previous research has shown that STEM aspirations and choices are associated with attitudes toward STEM subjects, self-efficacy, motivation, social support, positive experiences related to STEM content, as well as the broader family and school environment (Wiebe, Unfried, & Faber, 2018; Sellami, Al-Ali, Allouh, & Alhazbi, 2023; Zhou & Shirazi, 2025).
It is particularly important that the literature consistently presents STEM orientation as the result of the combined influence of individual and contextual factors. Wiebe, Unfried, and Faber (2018) demonstrated an association between students’ attitudes toward STEM subjects and their interest in STEM careers, with such differences emerging already at earlier educational stages. De las Cuevas, Garcia-Arenas, and Rico (2022) emphasize the importance of the gender dimension and show that the gender gap in STEM fields cannot be reduced solely to school achievement, while Sellami et al. (2023) indicate that predictors of STEM interest may also include gender, nationality, as well as parents’ education and occupation. In a similar vein, Ketenci, Leroux, and Renken (2020) show that STEM career attainment depends not only on student characteristics, but also on school context, socioeconomic status, and the urbanity of the environment. A recent systematic review by Zhou and Shirazi (2025) further confirms that self-motivation, social support, self-efficacy, personal utility, and positive STEM experiences are among the factors most frequently identified as influencing STEM aspirations and choices.
