Open-access Using machine learning techniques for predicting the dropout of undergraduate students in Brazilian courses of statistics

Abstract

This research aims to propose a machine learning approach to classify dropout outcomes among students in Statistics undergraduate programs in Brazil, identifying the most important factors associated with this phenomenon. This study uses microdata from the National Institute for Educational Studies and Research Anísio Teixeira (INEP) Higher Education Census to analyze the experiences of 10,387 undergraduate students who began their bachelor’s degrees between 2009 and 2014 in Brazil and were monitored until the end of 2017. Approximately 65% of these students dropped out, highlighting the critical dropout challenge in Brazilian Statistics programs. The outcome of interest is the student’s final status in the census data, either completion or dropout. Logistic regression, random forest , and support vector machine algorithms were fitted in the learning stage. For each algorithm, the best model was evaluated on test data. Results indicate that the logistic regression model outperforms the others, achieving an accuracy of 86.1% and offering greater interpretability compared to the other models. The study reveals that the duration of enrollment is a key predictor of dropout likelihood. Moreover, receiving social support and participating in complementary activities are significant factors in reducing dropout rates.

Key words
attrition; dropout; logistic regression; machine learning; random forest; student retention

Introduction

The students’ dropout, or attrition, is a concept related to the active behavior of the students who decide to drop out of the education system (Bueno 1993). Regarding higher education, dropping out represents a waste of talent and human potential (Ferrão & Almeida 2019). It also has economic implications due to its high cost to the universities, leading to the underutilization of professors, employees, equipment, and physical space (Silva-Filho et al. 2007). Therefore, it is necessary to obtain information that allows Higher Education Institutions (HEIs) to understand this phenomenon and plan institutional strategies to reduce the dropout rate in their courses (Ribeiro et al. 2022).

The determinants of dropout in HEIs have been substantially discussed in the literature (Li & Carroll 2020). Tinto 1975 theorized that dropping out is a deliberate decision, largely motivated by inadequate social integration within a new academic environment and poor academic performance. Bean 1980 argued that dropout is influenced by the student’s background, including socioeconomic status, place of residence, and organizational factors, such as the institution’s quality, the opportunity cost of study, and staff-student relationships. In this context, De Cos 2005 classified the predominant causes of this phenomenon into four clusters, which are: 1) school-related factors, i.e., limited opportunities for academic success; 2) job-related factors; 3) family and student-related factors; and 4) community-related factors.

Note that machine learning (ML) techniques can be a useful tool to verify which of these factors are relevant and to formulate predictive models based on large-scale data from HEIs (Palacios et al. 2021). We can refer to Fahd et al. 2022 and Tete et al. 2022 for literature reviews regarding applications of ML techniques in higher education data developed between 2010 and 2020. These studies revealed the high potential of ML in HEIs to predict the dropout of undergraduate students.

In addition, various recent studies have used ML algorithms for these purposes. For example, Palacios et al. 2021 conducted a study using decision trees, k-nearest neighbors, logistic regression, naive Bayes, random forest, and support vector machine (SVM) to develop models for predicting student retention in Chile. They verified that secondary educational score and the community poverty index are important predictive variables. Cannistrà et al. 2022 conducted a study in Italy that combined a theory-based model with a data-driven approach to create an Early Warning System that successfully identifies students who are at higher risk of dropping out. The model employs advanced multilevel statistical and ML techniques. Waheed et al. 2023 examined the effectiveness of a popular deep learning method to identify students who are at risk of failing a self-paced online course.

Despite the great potential of these techniques, this research topic is still in its early stages regarding Brazilian higher education. We can observe from Fahd et al. 2022 and Tete et al. 2022 that there is a small number of studies using ML with data from Brazilian HEIs. In this context, this study aims to develop a predictive model for dropout rates among students in Bachelor’s Degree courses in Statistics in Brazil. We use ML techniques to identify the most important predictors of dropout and classify the students according to this outcome. The dataset used in the study comes from the National Institute for Educational Studies and Research Anísio Teixeira (INEP, Instituto Nacional de Estudos e Pesquisas Educacionais Anísio Teixeira) and includes students who began the program between 2009 and 2014. These students were followed until 2017.

Identifying factors contributing to dropout rates in statistics courses gains substantial importance due to the increasing demand for proficient statisticians (Awe et al. 2022). This career has immense potential to drive data-driven development and play a vital role in solving problems and supporting decision-making for both governments and companies (Awe et al. 2022). Therefore, this study can serve as a foundation for evidence-based interventions to help reduce dropout rates of statistics students, increasing the supply of qualified professionals to work in this highly demanded area.

The rest of the work is structured as follows. Section Machine Learning Techniques describes the ML methods considered in this work. Section Data Source and Preprocessing details the preprocessing steps applied to the data. Section Results and Discussion presents a descriptive analysis of the dropout variable, its relationship with the predictors, and all further results and discussions, and Section Concluding Remarks concludes the work.

Machine Learning Techniques

The ML techniques comprise a broad group of tools designed to understand the behavior of data, focusing on modeling and prediction, through two types of learning: supervised or unsupervised (Hastie et al. 2009). In unsupervised learning, the objective is to find similarities among observations or to identify the existence of groups. In supervised learning, the machine is trained with a dataset in which the outcome of interest is known, and the other variables are used as predictors or explanatory variables. It is possible to identify two subgroups of supervised learning: regression and classification, which differ according to the type of response variable. In regression problems, the dropout variable is quantitative, while in classification problems, this output variable is categorical or qualitative (Hastie et al. 2009).

Let (X1,Y1),...,(Xn,Yn) be a sample with n independent observations, where Xi=X(i,1),...,X(i,p), i=1,...,n and p is the number of explanatory variables. The classification problem consists in finding the best classification function, g(X), among those provided by machine learning, which is used to predict values that are as close as possible to Y, based on the observed values in X. The best classification function g is the one that minimizes the expected predictive error (Hastie et al. 2009).

In this study, logistic regression, random forest, and SVM are the ML methods considered. They were selected due to their widespread use as classification techniques. As discussed in James et al. 2021 (Chapter 4), logistic regression is one of the most widely used classifiers. The book also presents random forest (Chapter 8) and SVM (Chapter 9) as more computer-intensive alternatives. Additionally, these methods have been applied in various fields. For example, Kumar et al. 2020 and Baxani & Edinburgh 2022 provide comparative analyses of these three methods in fraud detection and heart disease prediction, respectively. In the remainder of this section, we describe each of these methods along with the R packages used to implement them, as all analyses in this study were carried out using the R programming language (version 4.5.0).

Logistic Regression

The logistic regression model enables the assessment of the probability associated with the occurrence of a binary event, based on a set of independent variables. According to Hosmer et al. 2013, this method has become a standardized approach for regression analysis involving dichotomous variables. The logistic regression model can be expressed using the following equation:

P(Y=1|𝐱)=11+e−h(𝐱),(1)
where h(x)=β0+β1x1+...+βpxp and the coefficients β0,β1,...,βp are estimated through the maximum likelihood method (McCullagh & Nelder 1989).

In the context of machine learning, logistic regression uses an approach known as a plug-in classifier, because it “plugs in” the estimator of the conditional probability into the formula for h. Thus, under this approach, creating a binary classifier comes down to estimating P(Y=1|x), as well as its complementary probability.

Beyond directly estimating the probabilities of occurrence of each category of Y, another advantage of the logistic model is the interpretability of parameters in terms of the likelihood of the event of interest occurring. Through this classifier, it is possible to identify the impact of the predictor variables on the event’s chance of occurrence. The model was fitted using the glm function from the base stats package (version 4.5.0), available in the R software (R Core Team 2022).

Random Forest

The random forest method is built by aggregating decision tree classifiers applied to random subgroups of the input data, and it uses the combination of these results for prediction (Breiman 2001). A decision tree has a structure similar to a branching diagram, consisting of nodes and leaves. A node represents a split, where a decision is made—based on a criterion involving a characteristic x—to determine the next node. A leaf appears at the end of these splits and defines the predicted output value (James et al. 2021).

To fit a random forest model, it is necessary to define several hyperparameters that control the flexibility of the algorithm (Santos et al. 2019). One such hyperparameter is the number of decision trees, B, considered in the optimization process. In general, the larger the value of B, the better the prediction. However, increasing this number is not always beneficial, as there is a point beyond which the gain in accuracy plateaus and further increases only lead to higher computational costs (Santos et al. 2019).

Another important hyperparameter is the number of available covariates at each decision tree node, denoted by m. In other words, instead of selecting from all p covariates at each node, a random subset of m<p covariates is drawn for the split. In this study, the randomForest package (version 4.7.1.2) (Liaw & Wiener 2002), available in R (R Core Team 2022), was used to fit the random forest models. The package sets m=p as the default for classification problems.

Support Vector Machine

The SVM method employs support vectors and kernel-based transformations to tackle both classification and regression challenges. Since it was first introduced by Vapnik 1999, it has gained widespread use for managing complex, nonlinear decision boundaries in classification tasks (James et al. 2021), and has been effectively extended to regression problems, where it is referred to as Support Vector Regression (Svane et al. 2023). The fundamental concept lies in transforming the input variables into a higher-dimensional space via a nonlinear function, enabling the application of linear regression techniques in that space. This transformation makes it possible to model nonlinear relationships when interpreted back in the original input space (Svane et al. 2023). In this work, the e1071 package (version 1.7.16) (Liaw & Wiener 2002), implemented in R (R Core Team 2022), was employed to fit the SVM model. This package includes the svm function, which uses the radial kernel as its default setting. The SVM model with a radial basis function kernel was fitted using the train function with the svmRadial method from the caret package (version 7.0.1) (Kuhn 2008) implemented in R (R Core Team 2022).

Evaluation of models’ performance

In machine learning, it is common to use data splitting, which consists of dividing the dataset to estimate the risk associated with a classification method. In this study, the data were randomly divided into a training and validation set (70% of the observations) and a test set (30% of the observations). The test data were reserved for evaluating the final model.

For the logistic regression model, the fitting process was conducted using the training and validation data combined. The final model was selected based on the stepwise algorithm, residual analysis, and the significance of the variables. For both the random forest and support vector machine algorithms, the training set was used to train the classifier g, while the validation set was used to estimate the prediction error using the proportion of errors in the validation data, following the k-fold cross-validation method, with k=10.

Once the appropriate model was selected for each classifier, a cutoff point of p=0.5 was adopted for classifying observations. That is, if the estimated probability of dropout was greater than 0.5, the student was classified as having dropped out; if it was equal to or less than 0.5, the student was classified as graduated. Given the classification obtained from the cutoff point, it is common to use confusion matrices to evaluate the final model (Congalton 1991). The interpretation of this matrix is provided in Table I.

Table I
Confusion matrix for a dichotomous variable.

The proportion of students who dropped out, correctly identified, is named Sensitiveness, and it is given by S=VP⁄(VP+FN). The proportion of graduated students, correctly identified, is given by E=VN⁄(VN+FP), and it is named Specificity. Among the students who were classified as dropout, the proportion of students that are correctly identified is given by VPP=VP⁄(VP+FP) and is called the positive predictive value. Among the students who were classified as graduated, the proportion of students that are correctly identified is given by VPN=VN⁄(VN+FN) and is called the negative predictive value. In short, a model that presents high sensitiveness is one that accurately classifies as “dropout” the students who actually dropped out of the course. Similarly, high specificity is related to the classification of graduated students, correctly labeling as “graduated” those who actually graduated from the course. In this work, accuracy was also calculated, which provides the overall average correctness across all output classes, and it is given by ACC=(VP+VN)⁄N, where N represents the total number of samples evaluated by the classifier.

Another tool used to evaluate sensitiveness and specificity at all thresholds is the Receiver Operating Characteristic curve (ROC). The ROC curve is a graphical representation obtained by plotting the pairs of points (x,y)=(1−E,S) at various threshold levels. A model with perfect discrimination is one that achieves high values of both sensitiveness and specificity, ideally reaching the point (x,y)=(0,1). The area under the ROC curve (AUC) is a measure that estimates the overall performance of a classifier. The larger the AUC, the better the model’s performance. This metric is useful for comparing two models that come from different algorithms.

Data Source and Preprocessing

This section provides a comprehensive overview of the data sources and preprocessing techniques utilized to facilitate the analysis conducted in this study. The dataset utilized in this study originates from the Brazilian census of higher education, an annual survey conducted by the INEP (CENSO2019?). The target public was the students who entered, between 2009 and 2014, in bachelor’s degree in Statistics, in Brazil, and who were tracked in subsequent editions of the Census up to 2017. The follow-up was made possible by a unique identification code, the variable CO_STUDENT, generated by INEP and included in the Census database, which allows each student to be consistently identified across different years of the Census. For example, by filtering the Census data by a specific CO_STUDENT value (e.g., CO_STUDENT = 123456789), it is possible to retrieve all records corresponding to that student across different years (e.g., 2010, 2011, ..., 2017). Each record contains information such as the course code, institution, enrollment status, date of entry, and reference year, enabling the construction of a longitudinal profile of the student’s academic trajectory. The latest date for ingress (2014) was defined to allow sufficient time for course completion.

For further analysis, three main files were employed: the Students, the HEIs, and the Courses files. The Students file contains a database with over 90 variables on the students’ socio-demographic and academic profile, while the HEIs file includes more than 40 variables describing the characteristics and infrastructure of the HEIs, and the Courses file provides information on the characteristics of the programs. Data filtering was performed using the R programming language, and the potential predictors of dropout in higher education were identified based on relevant literature (Behr et al. 2020, DA SILVA et al. 2020, Lima et al. 2020). The variables used in the study correspond to the last Census in which each student was enrolled, and they are described in Table II. In addition to the variables obtained directly from the INEP files, new variables were created using existing ones in the database. The subsequent sections of this study will elaborate on the specific treatments applied to the database.

The variable CO_STUDENT_SITUATION corresponds to the student’s situation at the time of the Census. This variable classifies the students as probable undergraduate, coursing, withdrawn enrollment, unlinked from the course, transferred to another course from the same HEI, graduated, or deceased. This variable made it possible to track each student’s situation in the course each year and, by cross-referencing with the ingress date, to determine the duration of their time in the program.

The variable SITUATION was created through CO_STUDENT_SITUATION. The students were re-classified into three categories:

  1. Drop Out: students whose last enrollment is under the situation “unlinked from the course” or “transferred to another course from the same HEI”. It is worth highlighting that the situation “unlinked from the course” refers to those students who left the course before graduating, not only because of personal decisions, but also due to institutional reasons (such as repeated failures or expulsion). Also, students under the situation “transferred to another course from the same HEI” are considered as drop out, because the objective was to study the drop out from the course, and not from the institution.

  2. Graduated: students who completed their degree.

  3. Censorship: students whose last enrollment is under the situation “dead”, “withdrawn enrollment”, “probable undergraduate” or “coursing”. These students were considered as censored observations because the outcome (dropout or graduation) could not be observed, and they were not considered in the classification models.

The variable TIME_LENGTH is defined by the difference between the reference year of the student’s ingress and the reference year of the outcome, whether dropout or graduation. IN_COMPLEMENTARY_ACTIVITY is a dummy indicating whether the student participates in any educational activity, such as non-mandatory coursework, tutoring, research, or extension activities, all of which are further divided into remunerated and non-remunerated categories. These activities are dummy variables present in the database; however, to reduce dimensionality, they were grouped into the variable IN_COMPLEMENTARY_ACTIVITY.

Similarly, the variable IN_SOCIAL_SUPPORT is a dummy that indicates whether the student receives any kind of social support, such as: permanence scholarship, job scholarship, meal support, housing support, and transportation support. These are also dummy variables available in the database, but for dimensionality reduction purposes, the variable IN_SOCIAL_SUPPORT indicates the presence of at least one type of support. Figure 1 exhibits a diagram summarizing the data preparation and preprocessing scheme employed in this work. All data transformations were performed using the R language (R Core Team 2022), with the dplyr package (version 1.1.4), and dummy variable creation was carried out using the fastDummies package (version 1.7.5).

Figure 1
Data preprocessing workflow used in the study. The figure illustrates the sequential steps of data preprocessing applied to the HEI Census 2014–2019 data. The process begins with data collection from student and institutional records, followed by filtering to include only students enrolled in Statistics Bachelor’s programs between 2009 and 2014. Next, relevant variables are selected and new ones are generated. The data then undergoes cleaning to address missing values and inconsistencies. Finally, all processed datasets are consolidated into a unified dataset prepared for analysis.

It is worth highlighting that INEP data does not include information on students’ academic performance throughout the course, such as the subjects they have taken and their grades. Therefore, only socio-demographic and institutional factors were considered in this study. Also, it was not possible to check the semester in which a change in the student’s situation occurred, since the census only provides annual information.

Table II
Description and source of the variables used in this study.

Results and Discussion

In this section, the results obtained from the INEP data are presented. Firstly, a descriptive analysis of the considered variables is carried out, focusing on the dropout rate in undergraduate Statistics courses in Brazil. Then, the classifier models are introduced, and a comparison of their performance is conducted.

Descriptive analysis

After filtering the database, it was identified that between 2009 and 2014, 10,387 students entered in-person undergraduate Statistics courses. By the end of 2017, it was verified that 6,806 students were classified as dropouts. In contrast, only 1,909 students were classified as graduates, and 1,672 as censored. The observed dropout rate in Statistics courses was 65.52% over the entire study period. When censorship is not considered, this rate reaches 78.1%. Figure 2 displays the distribution of student outcomes (Censorship, Evaded, Graduated) by age (b), study shift (c), and sex (d), while panel (a) provides an overview of the overall outcome distribution and respective proportions.

Figure 2
Marginal relationships between the target variable (Situation) and selected predictors.

Regarding student age, the youngest student was 16 years old at the time of outcome, and the oldest was 67, with a mean age of 24 years and a range of 51 years.

Through Figure 2(b), it can be observed that the highest number of graduates falls within the 20–30 age group. Although the dropout proportion in this group is high, it is more balanced compared to other age groups. No students graduate before the age of 20. Conversely, among students older than 30, graduation rates are low, and most students in this group drop out.

Regarding shifts, most students (4,380) attend night classes, followed by full-time students (3,416 in the morning, 185 in the afternoon). For 54 students, the shift was not specified. Figure 2(c) presents the distribution of student outcomes by shift. A higher dropout percentage is observed among night students, along with a lower graduation rate for the same shift. The afternoon shift shows the most balanced outcomes, with dropout and graduation percentages being nearly equal.

The majority of Statistics students (6,363) are male, compared to 4,024 female students. Figure 2(d) relates gender (M/F) to student outcomes, showing that male students tend to drop out more frequently and graduate less often.

Table III
Situation of Statistics’ undergraduate students, according to the year.

Table III details annual dropout, graduation, and censoring rates. These results indicate that, regardless of enrollment year, dropouts occur most frequently in the early years of the program. A similar pattern was noted by Silva-Filho et al. 2007, who found that first-year dropout rates are typically two to three times higher than in subsequent years. Dias et al. 2010 also observed this trend in Accounting programs, aligning with our findings in Statistics. The authors cite potential contributing factors, including gaps in secondary education, academic failure, demotivation, immaturity, changing career interests, and socioeconomic challenges.

In addition to high dropout rates, Statistics students exhibit prolonged retention, defined as taking significantly longer than expected to graduate (Pereira et al. 2015). The highest graduation rates occur between the 5th and 7th years. Notably, 4.28% of students enrolled in 2009 and 7.76% from 2010 remain active undergraduates.

This study confirms that Statistics programs face dual challenges: dropout and prolonged retention. Only 17% of enrolled students ultimately graduate (Figure 2(a). Table III also reveals consistent censoring across years. Censored observations, defined as students whose final status remained undefined (e.g., still enrolled, with withdrawn enrollment, or in temporary suspension), were excluded from the predictive modeling stage, as classification algorithms require a clearly defined outcome variable.

As supplementary material to this work, there is a dashboard that provides detailed descriptions from the perspective of Statistics programs currently offered in Brazil. The dashboard is intended to provide an overview of dropout patterns in Statistics programs, stratified by university. It can be particularly useful for course coordinators and institutional decision-makers seeking to understand whether the dropout patterns observed locally are also present in other programs within the same field. This comparative perspective may support the development of strategies to address student retention. We also highlight an ongoing research line focused on modeling dropout rates using unit distributions, as previously explored in related studies using unit distributions to model dropout rates in Brazilian undergraduate programs (Peña-Ramírez 2023, Ribeiro et al. 2022).

The material is available at https://github.com/andressalss/studenstsdropout, and Figure 3 displays the dashboard. It reveals that, in the studied period, there were 33 HEIs offering Statistics courses, which are registered by MEC. Among these, the Federal University of Pará stands out positively, as it presented the lowest dropout rate (28%), with 30% of graduates and 42% of censored cases. Next, we highlight the Federal University of Juiz de Fora, with a 30% dropout rate and 36% of graduates. The Capital University Center had the highest graduation rate, with 44% of graduates, but this institution no longer enrolls undergraduate students.

Figure 3
Dashboard with the geographical distribution of dropout rates in Statistics courses. Interactive maps display the number of Higher Education Institutions (HEIs) and dropout rates by state. Source: https://andressalss.github.io/.

On the other hand, the Federal University of Campina Grande had the highest percentage of dropout, with 88% of students who left the course in this period and only 11% of graduates. Next is the Federal University of Piauí, with 81% dropout and 13% graduation rates. The Federal University of Sergipe, the Federal University Foundation of Rondônia, and the Federal University of Mato Grosso have the lowest percentages of graduates, with about 7% of the total in the period.

For the Federal University of Santa Maria (UFSM), Hoffmann et al. 2019 observed that the Statistics course was among the top ten with the highest dropout rates between 2009 and 2014. On the other hand, among the 33 HEIs with active Statistics courses, UFSM’s program ranks 22nd in the ascending dropout ranking developed in this study. This fact illustrates the importance of studies like this one, which help identify the main reasons for Statistics students’ dropout and, thus, enable the development of intervention strategies to prevent its occurrence. According to Silva-Filho et al. 2007, dropout is a systematic problem in higher education, which generates unnecessary expenses, wastes time and resources on professors, equipment, and facilities, necessitating the implementation of measures to combat it.

Learning stage

During the learning phase, we utilized the predictive models presented in Section Machine Learning Techniques. These models were applied to a database comprising students who had reached definitive outcomes within the observed period, specifically those who either dropped out or graduated. We remind the reader that censored cases were excluded from classifier training, as their final status was undetermined during the study period. Therefore, the sample used for the predictive models consisted of 8,715 students, including 6,806 dropouts and 1,909 graduates. We randomly selected 70% of this data as a training set and 30% as a test set. The chosen analysis was performed on the training data.

We used the variables presented in Table II, excluding the identifier variables: CO_HEI, CO_STUDENT, ENROLLMENT_YEAR, and LAST_CENSUS_YEAR. The variable SITUATION is defined as a binary indicator, where a value of 1 represents dropout and 0 represents graduation. Regarding the predictive variables, it is important to note that the variable CO_STUDENT_SHIFT was converted into dummy variables, using the morning shift as the reference category. The variable TIME_LENGTH was also transformed into dummy variables labeled T1 through T9, where T1 indicates one year of enrollment, T2 indicates two years, and so forth, with T9 serving as the reference category. This resulted in a total of 22 input variables.

The logistic regression model was fitted to the training data. The best model was selected using a stepwise algorithm, retaining only variables significant at the 5% level. The final logistic model is shown in Table 4. As can be observed, 11 significant variables remained. The model’s adequacy was verified through the RESET test (Ramsey 1969, Ramsey & Schmidt 1976), deviance residuals, and a simulated envelope. The final model exhibited neither influential values nor outliers. Thus, the logistic regression model in Table 4 represents an appropriate classifier for predicting dropout in Statistics programs.

Variables with positive estimates in Table 4 increase the likelihood of dropout, while those with negative estimates reduce this likelihood (i.e., promote course completion). The analysis reveals that attending night classes, being male, and increasing age are factors associated with higher dropout risk. Time-related variables also significantly affect outcomes, showing that dropout risk is highest in the early years of the program. Conversely, participation in complementary educational activities and receiving institutional social support are associated with reduced dropout likelihood.

Notably, the adjusted odds ratio for night shift students is 2.23 (compared to other shifts), indicating substantially higher dropout risk. Students not engaged in monitoring, research, extension, or apprenticeship activities (paid or unpaid) face 19.34 times higher dropout odds than their engaged peers, after adjustment. Receiving any form of institutional social support increases retention odds by a factor of 1.28, when controlling for other variables.

Table IV
Estimated coefficients of the logistic classifier fitted on the training data.

The random forest model was applied to the training data, considering k=10 in the k-fold method for cross-validation. In the learning process, different values of m were tested, and the one that yielded the best model accuracy was selected. As a result, the values m=4 and B=500 were obtained. After the training and validation, the importance level of each variable was assessed, and filtering was performed by selecting the 11 most important variables. The random forest model was then applied again to the training dataset, which resulted in the final model used.

The support vector machine with a radial basis function kernel was applied to the training dataset. Prior to model training, the continuous variable NU_STUDENT_AGE was normalized as part of the preprocessing step. Model evaluation was conducted using k-fold cross-validation with k=10. The learning process involved searching for the optimal combination of the hyperparameters C (cost) and σ (sigma), exploring 5 distinct configurations. The performance metric used for model optimization was the Area Under the ROC Curve (AUC). The best fitted model was identified with σ=0.042 and C=0.25.

Furthermore, during the training stage, all three classifiers demonstrated good predictive performance. The logistic regression classifier achieved the highest AUC-ROC of 0.907, followed by the support vector machine classifier with 0.902, and the random forest classifier with 0.900.

Table V
Most important predictors by classifier applied to the the training data.

By the end of the learning stage, a ranked list of variable importance was generated for each predictive model, as shown in Table V. A similarity in the selected predictors was observed across the three models, although their ranking positions varied. For the logistic regression model, the predictors IN_COMPLEMENTARY_ACTIVITY and T2 occupied the top positions. In the random forest model, T1 and T2 were ranked first and second, respectively. For the support vector machine classifier, IN_COMPLEMENTARY_ACTIVITY and T2 were also the top predictors, but in reverse order compared to the logistic regression model. This indicates a strong agreement between the logistic and SVM models regarding the relevance of these variables, despite the inversion in their ranking..

The predictors IN_STUDENT_SEX and IN_SOCIAL_SUPPORT appear among the most important variables in the random forest model, but they are not present in the logistic regression model. Conversely, the logistic regression model includes predictors such as T7 and IN_STUDENT_DISABILITY, which are not among the top predictors in the random forest model. Regarding the support vector machine model, it shares several predictors with both logistic regression and random forest, such as T1, T2, and CO_NIGHT_SHIFT, but does not include IN_SOCIAL_SUPPORT or IN_STUDENT_DISABILITY. These results corroborate the patterns observed in the descriptive analysis.

Regarding the identified predictors, similar aspects were also observed by Saccaro et al. 2019 in courses in the fields of Science, Mathematics, Computing, and Production Engineering. The authors found that being male and getting older are factors that decrease the duration of stay among students who eventually drop out of these courses. Furthermore, Saccaro et al. 2019 observed that students who received financial support showed a higher probability of remaining in the course.

Another factor to be highlighted in the analysis is that not all predictors of dropout are modifiable. For instance, sex and age are biological factors. However, regarding sex, HEIs could implement gender-sensitive policies aimed at reducing inequalities in academic persistence, as well as promote discussions and dialogue circles to address possible causes of dropout.

As for study shift, the higher dropout rates among night students may be related to the fact that many of them need to work during the day, which makes it challenging to persist in their studies Costa et al. 2018. Nonetheless, the expansion of night courses was a result of achievements driven by popular demand to meet the needs of a population largely composed of workers (Nascimento et al. 2021). Therefore, it is important to discuss the need to improve institutional support for this specific group.

Testing stage

In this section, the results concerning performance measures on the test data are presented, based on the models adjusted during the training stage. This stage was conducted with 2,613 students, and the results for each classifier are described through confusion matrices. The confusion matrices for each classifier are presented in Table VI, allowing for a direct comparison of the predictive performance across models. Among the 572 students who graduated, the logistic regression model correctly classified 341 cases, while the support vector machine correctly classified 282 instances, and the random forest model correctly identified 280. Regarding dropout cases, the support vector machine achieved the highest accuracy, correctly classifying 1,955 out of 2,041 students, followed by the random forest with 1,947 and the logistic regression with 1,910 correct classifications. The results presented in Table VI thus highlight the superior overall performance of the logistic regression model during the testing phase.

Table VI
Confusion matrices for each classifier applied to the test set.

Regarding AUC, the logistic regression model achieved the highest value (0.902), followed by the support vector machine (0.888) and the random forest model (0.886). This superior performance of the logistic regression model is also reflected in its accuracy (0.861), which surpasses that of both the SVM (0.856) and the random forest (0.852). While the support vector machine demonstrated the highest sensitivity (0.958), the logistic regression model outperformed the others in terms of specificity (0.596). The value 1−S, which reflects the proportion of graduates incorrectly classified as dropouts, was 0.510 for the random forest and 0.404 for logistic regression, indicating better performance of the latter in identifying students who graduated.

Therefore, logistic regression appears to be the most suitable model for predicting student dropout in undergraduate Statistics programs in Brazil, as it achieved the highest accuracy (0.861), specificity (0.596), and AUC (0.902), reflecting strong overall performance and reliable identification of students likely to graduate. Nevertheless, the other models also demonstrated valuable characteristics: the support vector machine attained the highest sensitivity (0.958), making it particularly effective in identifying students at risk of dropping out, while the random forest model also showed high sensitivity (0.954) and competitive overall performance. Additionally, logistic regression may be preferable when the goal is to estimate the probability of dropout while adjusting for the influence of covariates. Hence, depending on the specific objectives within the educational context, it is important to consider a balance between predictive performance and model interpretability. This consideration becomes even more relevant given the practical challenges of applying predictive models in real-world educational settings, especially where longitudinal data on students are scarce and microdata from the Higher Education Census are no longer publicly available.

Concluding Remarks

This work aimed to propose a predictive model for the outcome of dropout of students in Statistics courses in Brazil, as well as to identify the most important predictors. The database corresponds to students who entered these courses between 2009 and 2014, and was obtained from the Higher Education Census, which is held annually by INEP. The response variable was defined based on the student’s situation in their last census. The students were classified as dropouts or graduates, and those who, by the end of the period, were still studying or had withdrawn enrollment, were classified as censored. This decision was made because classification algorithms require a clearly defined outcome variable. However, we acknowledge that excluding these cases may introduce bias if the censored group differs systematically from those with observed outcomes. In particular, it may affect the generalizability of the model to students who remain in the program longer or exhibit non-terminal statuses. Future studies may benefit from the use of survival analysis methods, which are better suited to handle time-to-event data and right-censoring, allowing for more nuanced modeling of dropout dynamics over time.

After preprocessing, 22 variables related to the student’s profile, the course, and the teaching institution were considered as possible predictors. Initially, a descriptive analysis of the data was carried out, followed by the application of machine learning techniques for prediction. Among these, logistic regression, support vector machine and random forest models were fitted. For each algorithm, the best model during the training phase was selected and later evaluated using the testing data. The area under the ROC curve and related metrics were used to assess the performance of both models.

Through this descriptive analysis, it was possible to observe that the average dropout rate exceeded 65%. Around 18% of students completed the course within the analyzed period, and approximately 16% were still studying or had withdrawn enrollment. Within this total, it was observed that older students had lower graduation rates and were more likely to drop out. It was also noted that dropout rates were higher among male students and those who studied in the night. Some HEIs were negatively highlighted, reaching dropout rates above 80%, such as the Federal University of Campina Grande and the Federal University of Piauí. In contrast, the Federal University of Pará and the Federal University of Juiz de Fora were positively highlighted, with dropout rates below 30%. According to the findings, dropout is a recurring issue in undergraduate Statistics courses in Brazil.

Beyond individual-level modeling, future work may also explore dropout behavior at the institutional level. In particular, the use of unit distributions to model dropout rates across programs offers a promising direction. This approach allows the estimation of dropout proportions as a function of structural and contextual variables, providing insights into the broader educational landscape. Applying such models to the Statistics domain may help identify systemic vulnerabilities and support policy interventions.

Regarding the predictive modeling, it was observed that machine learning techniques are effective in predicting dropout among this target population. The logistic regression model offered advantages in terms of result interpretability and also provided the best overall fit, achieving an accuracy of 86.1% and correctly identifying 93.6% of dropout cases in the testing data. Additionally, the fitted models indicated that the time spent in the course is a relevant factor in dropout occurrence. This highlights the importance of implementing institutional actions targeting students in their early years at university. It was also found that social support and participation in complementary activities help to prevent dropout. These results may be relevant for course coordinators and should be taken into consideration when developing strategies to reduce dropout rates.

ACKNOWLEDGMENTS

We gratefully acknowledge the partial financial support provided by the Serrapilheira Institute (Grant No. Serra-2211-41692), FAPERGS (Grant No. 23/2551-0001595-1), and the Federal University of Santa Maria through the PRPGP/UFSM 013/2022 call for funding the English translation. Author Renata Rojas Guerra also acknowledges support from Conselho Nacional de Desenvolvimento Científico e Tecnológico (CNPq, Grant No. 306274/2022-1).

Data Availability

Data will be made available upon reasonable request.

References

  • AWE OO, LOVE K & VANCE EA. 2022. Promoting Statistical Practice and Collaboration in Developing Countries. 1st ed., New York: Chapman and Hall/CRC.
  • BAXANI R & EDINBURGH M. 2022. Heart Disease Prediction Using Machine Learning Algorithms: Logistic Regression, Support Vector Machine and Random Forest Classification Techniques. https://ssrn.com/abstract=4151423.doi:10.2139/ssrn.4151423
    » https://ssrn.com/abstract=4151423.doi:10.2139/ssrn.4151423
  • BEAN JP. 1980. Dropouts and turnover: The synthesis and test of a causal model of student attrition. Res Higher Educ 12: 155-187. https://doi.org/10.1007/BF00976194.
  • BEHR A, GIESE M, TEGUIM KAMDJOU HD & THEUNE K. 2020. Dropping out of university: a literature review. Rev Educ 8: 614-652. doi:10.1002/rev3.3202.
  • BRAZIL. 2019. Higher Education Census by National Institute of Studies and Educational Surveys Anísio Teixeira (INEP). http://portal.inep.gov.br/basica-levantamentos-acessar Accessed on June 18th, 2019.
    » http://portal.inep.gov.br/basica-levantamentos-acessar
  • BREIMAN L. 2001. Random forests. Machine Learning 45: 5-32. doi:10.1023/A:1010933404324.
  • BUENO JLO. 1993. A evasão de alunos. Paidéia (Ribeirão Preto) 5: 9-16. doi:10.1590/S0103-863X1993000200002.
  • CANNISTRÀ M, MASCI C, IEVA F, AGASISTI T & PAGANONI AM. 2022. Early-predicting dropout of university students: an application of innovative multilevel machine learning and statistical techniques. Stud Higher Educ 47: 1935-1956. https://doi.org/10.1080/03075079.2021.2018415.
  • CONGALTON RG. 1991. A review of assessing the accuracy of classifications of remotely sensed data. Remote Sens Environ 37: 35-46. doi:10.1016/0034-4257(91)90048-B.
  • DA COSTA FJ, DE SOUZA BISPO M & DE CÁSSIA DE FARIA PEREIRA R. 2018. Dropout and retention of undergraduate students in management: a study at a Brazilian Federal University. RAUSP Manag J 53: 74-85. doi:10.1016/j.rauspm.2017.12.007.
  • DA SILVA IJA, NASU VH, LEAL EA & MIRANDA GJ. 2020. Determinant factors of dropout in accounting programs in Brazil. Revista Gestão Universitária na América Latina - GUAL 13: 48-69. doi:10.1590/0102-4698186332.
  • DE COS P. 2005. High school dropouts, enrollment, and graduation rates in California. California: California Research Bureau, California State Library.
  • DIAS ECM, THEÓPHILO CR & LOPES MAS. 2010. Evasão no ensino superior: estudo dos fatores causadores da evasão no curso de Ciências Contábeis da Universidade Estadual de Montes Claros–Unimontes–MG. In: Congresso USP de Iniciação Científica em Contabilidade, São Paulo, SP. Vol. 7.
  • FAHD K, VENKATRAMAN S, MIAH SJ & AHMED K. 2022. Application of machine learning in higher education to assess student academic performance, at-risk, and attrition: A meta-analysis of literature. Education and Information Technologies 27: 3743-3775. doi:10.1007/s10639-021-10741-7.
  • FERRÃO M & ALMEIDA L. 2019. Differential effect of university entrance score on first-year students’ academic performance in Portugal. Assess Eval Higher Ed 44: 610-622. doi:10.1080/02602938.2018.1525602.
  • HASTIE T, TIBSHIRANI R & FRIEDMAN J. 2009. The elements of statistical learning: data mining, inference, and prediction. 2nd ed., New York: Springer, 745 p.
  • HOFFMANN IL, NUNES RC & MULLER FM. 2019. The information of a Higher Education Census in the implementation of organizational knowledge management on school dropout. Gestão e Produção 26: e2852. doi:10.1590/0104-530X-2852-19.
  • HOSMER DW, LEMESHOW S & STURDIVANT RX. 2013. The Multiple Logistic Regression Model. chap. 2, p. 35-47. John Wiley & Sons, Ltd.
  • JAMES G, WITTEN D, HASTIE T & TIBSHIRANI R. 2021. An Introduction to Statistical Learning: with Applications in R. Springer Texts in Statistics. 2nd ed., Springer. https://www.statlearning.com/
    » https://www.statlearning.com/
  • KUHN M. 2008. Building Predictive Models in R Using the caret Package. J Stat Softw 28: 1-26. doi:10.18637/jss.v028.i05.
  • KUMAR Y, SAINI S & PAYAL R. 2020. Comparative Analysis for Fraud Detection Using Logistic Regression, Random Forest and Support Vector Machine. doi:10.2139/ssrn.3751339.
  • LI IW & CARROLL DR. 2020. Factors influencing dropout and academic performance: an Australian higher education equity perspective. J Higher Educ Pol Manag 42(1): 14-30. doi:10.1080/1360080X.2019.1649993.
  • LIAW A & WIENER M. 2002. Classification and regression by randomForest. R News https://journal.r-project.org/articles/RN-2002-022/
    » https://journal.r-project.org/articles/RN-2002-022/
  • LIMA M, SOARES W, SILVA I & FAGUNDES R. 2020. A Combined Model based on Clustering and Regression to Predicting School Dropout in Higher Education Institution. Int J Comput Appl 176: 1-8. doi:10.5120/ijca2020920396.
  • MCCULLAGH P & NELDER JA. 1989. Generalized linear models, 2nd ed., London: Chapman and Hall.
  • NASCIMENTO MDCD, VIEIRA PMDR, CARVALHO FMTD, FIGUEIRA MASD & GODOY GP. 2021. Perception of graduates about the quality of the night course in dentistry at a public institution in northeastern Brazil. Revista da ABENO 21: 1044. doi:10.30979/revabeno.v21i1.1044.
  • PALACIOS CA, REYES-SUÁREZ JA, BEARZOTTI LA, LEIVA V & MARCHANT C. 2021. Knowledge Discovery for Higher Education Student Retention Based on Data Mining: Machine Learning Algorithms and Case Study in Chile. Entropy 23: 485. doi:10.3390/e23040485.
  • PEÑA RAMÍREZ FA, GUERRA RR & MAFALDA CP. 2023. The unit ratio-extended Weibull family and the dropout rate in Brazilian undergraduate courses. PLoS ONE 18(11): 1-22. doi:10.1371/journal.pone.0290885.
  • PEREIRA AS, CARNEIRO TCJ, BRASIL GH & CORASSA MADC. 2015. Fatores relevantes no processo de permanência prolongada de discentes nos cursos de graduação presencial: um estudo na Universidade Federal do Espírito Santo. Ensaio: Avaliação e Políticas Públicas em Educação 23(89): 1015–1039. doi:10.1590/S0104-40362015000400009.
  • R CORE TEAM. 2022. R: A Language and Environment for Statistical Computing. R Foundation for Statistical Computing. Vienna, Austria. https://www.R-project.org/
    » https://www.R-project.org/
  • RAMSEY JB. 1969. Tests for specification errors in classical linear least-squares regression analysis. Journal of the Royal Statistical Society: Series B (Methodological) 31: 350-371. https://www.jstor.org/stable/2984219.
  • RAMSEY JB & SCHMIDT P. 1976. Some further results on the use of OLS and BLUS residuals in specification error tests. J Amer Stat Assoc 71: 389-390. doi:10.1080/01621459.1976.10480355.
  • RIBEIRO TF, PEÑA-RAMÍREZ FA, GUERRA RR & CORDEIRO GM. 2022. Another unit Burr XII quantile regression model based on the different reparameterization applied to dropout in Brazilian undergraduate courses. PLoS ONE 17: e0276695. doi:10.1371/journal.pone.0276695.
  • SACCARO A, FRANÇA MTA & JACINTO PDA. 2019. Fatores Associados à Evasão no Ensino Superior Brasileiro: um estudo de análise de sobrevivência para os cursos das áreas de Ciência, Matemática e Computação e de Engenharia, Produção e Construção em instituições públicas e privadas. Estudos Econômicos (São Paulo) 49: 337-373. doi:10.1590/0101-41614925amp.
  • SANTOS HGD, NASCIMENTO CFD, IZBICKI R, DE OLIVEIRA DUARTE YA & FILHO ADPC. 2019. Machine learning para análises preditivas em saúde: exemplo de aplicação para predizer óbito em idosos de São Paulo, Brasil. Cadernos de Saúde Pública 35(7). doi:10.1590/0102-311x00050818.
  • SILVA-FILHO RLL, MOTEJUNAS PR, HIPÓLITO O & LOBO MBCM. 2007. A evasão no ensino superior brasileiro. Cadernos de Pesquisa 37: 641-659. doi:10.1590/S0100-15742007000300007.
  • SVANE J, WIKTORSKI T, ØRN S & EFTESTØL TC. 2023. Optimizing support vector machines and autoregressive integrated moving average methods for heart rate variability data correction. MethodsX 11: 102381. doi:10.1016/j.mex.2023.102381.
  • TETE MF, DE MORAES SOUSA M, SANTANA TSD & SILVA SF. 2022. Predictive models for higher education dropout: A systematic literature review. Education Policy Analysis Archives, p. 149. doi:10.14507/epaa.30.6845.
  • TINTO V. 1975. Dropout from higher education: A theoretical synthesis of recent research. Review of Educational Research 45: 89-125. doi:10.2307/1170024.
  • VAPNIK VN. 1999. The Nature of Statistical Learning Theory. Information Science and Statistics. 2nd ed. Springer New York, NY. XX, 314 p. doi:10.1007/978-1-4757-3264-1.
  • WAHEED H, HASSAN SU, NAWAZ R, ALJOHANI NR, CHEN G & GASEVIC D. 2023. Early prediction of learners at risk in self-paced education: A neural network approach. Expert Systems with Applications 213: 118868. doi:10.1016/j.eswa.2022.118868.

Correspondence

Correspondence to: Renata Rojas Guerra E-mail: renata.r.guerra@ufsm.br

Handling editor

Jamal Rafique

Publication Dates

  • Publication in this collection
    19 Dec 2025
  • Date of issue
    2025

History

  • Received
    13 Feb 2025
  • Accepted
    29 July 2025
location_on
Academia Brasileira de Ciências Rua Anfilófio de Carvalho, 29, 3º andar, 20030-060 Rio de Janeiro RJ Brasil, Tel: +55 (21) 2391-7901 - Rio de Janeiro - RJ - Brazil
E-mail: aabc@abc.org.br
rss_feed Stay informed of issues for this journal through your RSS reader
Go to top