A Comparative Analysis of Sensitivity and Specificity of LASSO Logistic Regression and Random Forest Using Sonar Data
DOI:
https://doi.org/10.4314/Keywords:
LASSO Logistic Regression; Random Forest; Sensitivity; Specificity; Sonar Data; McNemar's Test.Abstract
: In this study we carried out a comparison of the sensitivity and specificity of LASSO Logistic Regression and Random Forest in the binary classification of Sonar observations. Here, we utilized the Sonar dataset available in the mlbench R package, comprising 208 observations and 60 predictor variables, with observations classified into Mine and Rock categories. The data were split into training and testing sets using a stratified 80:20 split. LASSO Logistic Regression was fitted using 10-fold cross-validation to determine the optimal regularization parameter, while Random Forest was implemented using 500 decision trees. The predictive performance of the models was evaluated using confusion matrices, with sensitivity and specificity serving as the primary performance measures. McNemar's test was employed to assess whether the two models produced significantly different classification decisions on the same test observations. The results revealed that Random Forest demonstrated higher sensitivity, while both models achieved identical specificity. McNemar's test revealed that the difference in the paired classification decisions was not statistically significant at the 5% level.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Fortune Meka (Author)

This work is licensed under a Creative Commons Attribution 4.0 International License.
How to Cite
Similar Articles
- Enefiok Archibong Etuk, Omankwu, Obinnaya Chinecherem Beloved, Human-AI Collaboration: Enhancing Decision-Making in Critical Sectors , Communication In Physical Sciences: Vol. 12 No. 2 (2025): VOLUME 12 ISSUE 2
- Onanuga Omotayo Aina, Titus Morrawa Ryaghan, Bello Musa Opeyemi, Momoh Daniel Clement, Goat Horn Biochar as a Low-Cost Adsorbent for the Removal of Cadmium and Zinc ions in Aqueous Solution , Communication In Physical Sciences: Vol. 10 No. 3: VOLUME 10 ISSUE 3 (2023-2024)
- Anthony Ekpo, A Comparative Analysis of Nutritional Perspectives Among Under-Fives in Akwa Ibom and Bayelsa States in 2022: A Case Study of Randomly Selected Areas , Communication In Physical Sciences: Vol. 8 No. 4 (2022): VOLUME 8 ISSUE 4
- Richard Jewo Bebekah, Malajiya Ibrahim Alhaji Saleh, Aliyu Mohammed, Yusuf Tanko, Modulatory Effect of L-carnitine on Red Blood Cell and Indices in Testicular Ischaemic-Reperfusion in Wistar Rats , Communication In Physical Sciences: Vol. 10 No. 2 (2023): VOLUME 10 ISSUE 2
You may also start an advanced similarity search for this article.



