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
- Yusuf James, Yisa Jonathan, Jimoh Oladejo Tijani, Razak Bolakale Salau, Elijah Yanda Shaba , Mr. , Communication In Physical Sciences: Vol. 12 No. 4 (2025): VOLUME1 2 ISSUE 4
- Monica Chikodinaka Nkwocha, Lebe A. Nnanna, Chukwuemeka Young Ahamefula, Ogwo D. Kalu, Properties of Avocado (Persea Americana) Leaf Extract as a Corrosion Inhibitor for Mild Steel in 1 M KOH , Communication In Physical Sciences: Vol. 12 No. 7 (2025): VOLUME 12 ISSUE 7
- Emurode Williams, Aniedi Ojo, Deborah Warmate, Chidinma Jonah, Embedded Finance and Sustainable Business Models: Conceptualizing the Role of AI-Driven Automation in Reshaping Cross-Sector Value Creation and Programme Delivery , Communication In Physical Sciences: Vol. 12 No. 8 (2025): VOLUME 12 ISSUE 8
- J.Y. Falgore, M. Sirajo, A. A. Umar, M. A. Aliyu, On Flexibility of Inverse Lomax-Lindley distribution , Communication In Physical Sciences: Vol. 7 No. 4 (2021): VOLUME 7 ISSUE 4
- Ahmed Usman`, Abdulakeem Oladipo, Hameed Momoh, Gadisa Megersa, Assessment of Radiation Dose Rates at the Faculty of Engineering, Ahmadu Bello University, Zaria , Communication In Physical Sciences: Vol. 12 No. 5 (2025): VOLUME 12 ISSUE 5
- Alhaji Modu Isa, Aishatu Kaigama, Akeem Ajibola Adepoju, Sule Omeiza Bashiru, Lehmann Type II-Lomax Distribution: Properties and Application to Real Data Set , Communication In Physical Sciences: Vol. 9 No. 1 (2023): VOLUME 9 ISSUE 1
- Abdulateef Oluwakayode Disu, Henry Makinde, Olajide Alex Ajide, Aniedi Ojo, Martin Mbonu, Artificial Intelligence in Investment Banking: Automating Deal Structuring, Market Intelligence, and Client’s Insights Through Machine Learning , Communication In Physical Sciences: Vol. 8 No. 4 (2022): VOLUME 8 ISSUE 4
- Emmanuel O. Okorodudu, Kenneth A. Ibe, Ivwurie Wisdom, Bamidele H. Akpeji, Andrew O. Onofuevure, Isotherm Evaluation and Performance Assessment of Bone Biochar at Varied Dosages for the Simultaneous Removal of PAHs and Heavy Metals , Communication In Physical Sciences: Vol. 13 No. 3 (2026): Volume 13 Issue 3
- Wisdom, Ivwurie, Daniel, Okiriguo, Evaluation of n-Alkanes Hydrocarbon from two Communities in Udu Local Government Area, Delta State , Communication In Physical Sciences: Vol. 7 No. 4 (2021): VOLUME 7 ISSUE 4
- Raymond Sugar Ebere Amougou, AI-Driven DevOps: Leveraging Machine Learning for Automated Software Delivery Pipelines , Communication In Physical Sciences: Vol. 9 No. 4 (2023): VOLUME 9 ISSUE 4
You may also start an advanced similarity search for this article.



