Personality influences how an individual thinks, behaves, and interacts. This study aims to apply the Random Forest algorithm to classify the Extrovert–Introvert (E–I) dimension of the Myers-Briggs Type Indicator (MBTI), rather than all 16 personality types. Data were collected via a questionnaire administered to 250 students at the State Islamic University of North Sumatra (UINSU). The dataset was divided into 80% training data (200 samples) and 20% testing data (50 samples). The classification process involved bootstrap sampling, random feature selection, the construction of decision trees, and majority voting. Evaluation was performed using a confusion matrix, with metrics including accuracy, precision, recall, and F1-score. The test results yielded an accuracy of 96%. Class 0 achieved a precision, recall, and F1-score of 0.90, while Class 1 achieved a score of 0.97. These findings demonstrate the potential of the Random Forest algorithm in assisting with the systematic classification of questionnaire results. However, these results are specific to the dataset used and require further validation using more diverse data.
Copyrights © 2027