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
- Vincent Oseikhuemen Binitie, Ogaga Esharive, Solid mineral potential in the southern Benue Trough: A review , Communication In Physical Sciences: Vol. 11 No. 4 (2024): VOLUME 11 ISSUE 4
- Osondu Onwuegbuchi, Abdulaziz Olaleye Ibiyeye, Joy Nnenna Okolo, Samuel Adetayo Adeniji, Cybersecurity Risks in the Fintech Ecosystem: Regulatory and Technological Perspectives , Communication In Physical Sciences: Vol. 9 No. 4 (2023): VOLUME 9 ISSUE 4
- Usoro Monday Etesin, Abigail Louis Essien, Distribution of Heavy metals in sediments and surface waters from Iko River Marine Ecosystems, Akwa Ibom State, Niger Delta, Nigeria , Communication In Physical Sciences: Vol. 12 No. 2 (2025): VOLUME 12 ISSUE 2
- Nwoke Linda Chinyere, Uchenna Igwe Okenwa, Onuchi Marygem Mac-Kalunta, Johnbull O. Echeme , Uyanwa Maryjane Nkeiruka, Phytochemical screening and wound healing studies of Chromolaena odorata , Communication In Physical Sciences: Vol. 11 No. 2 (2024): VOLUME 11 ISSUE 2
- Itoro Esiet Ukpe, Oluwatosin Atala, Olu Smith, Artificial Intelligence and Machine Learning in English Education: Cultivating Global Citizenship in a Multilingual World , Communication In Physical Sciences: Vol. 9 No. 4 (2023): VOLUME 9 ISSUE 4
- Toluwalase Damilola Osanyingbemi, Precious Mkpouto Akpan, Adewunmi O. Wale-Akinrinde, Oluwapelumi Adebukola Fadairo, Integrated Digital Product Lifecycle Intelligence for Strategic Growth and Operational Risk Mitigation , Communication In Physical Sciences: Vol. 9 No. 4 (2023): VOLUME 9 ISSUE 4
- Christianah Oluwabunmi Ayodele, Esther Oludele Olaniyi, Chukwuebuka Francis Udokporo, Applications of AI in Enhancing Environmental Healthcare Delivery Systems: A Review , Communication In Physical Sciences: Vol. 12 No. 5 (2025): VOLUME 12 ISSUE 5
- Olumide Oni, Kenechukwu Francis Iloeje, Optimized Fast R-CNN for Automated Parking Space Detection: Evaluating Efficiency with MiniFasterRCNN , Communication In Physical Sciences: Vol. 12 No. 2 (2025): VOLUME 12 ISSUE 2
- Olusegun Sowole, Solar UV-Radiation Absorption by Stratospheric Ozone in Lagos Southwest of Nigeria , Communication In Physical Sciences: Vol. 5 No. 4 (2020): VOLUME 5 ISSUE 4
- Felix Bamidele Fatoye, Michael Adewale Ibitomi, Quality Evaluation of Udane–Biomi Coal in the Northern Anambra Basin of Nigeria , Communication In Physical Sciences: Vol. 7 No. 4 (2021): VOLUME 7 ISSUE 4
You may also start an advanced similarity search for this article.



