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
- Dominic Chukwuebuka Obiegbuna, Francisca Nneka Okeke, Kingsley Chukwudi Okpala, Sivla William Tafon, Orji Prince Orji, Latitudinal ionospheric Responses to Full Halo CMEs Induced Geomagnetic Storm , Communication In Physical Sciences: Vol. 7 No. 4 (2021): VOLUME 7 ISSUE 4
- Isaac Terungwa Iorkpiligh, Timothy T. Weor, Grace E. Iniama, Paula H. Ado, ANTIMICROBIAL ACTIVITIES OF SYNTHESIZED Mn(II), Ni(II) AND Pt(II) MIXED LIGAND COMPLEXES OF ISONICOTINYLHYDRAZIDE AND 4-HYDROXY-3-METHOXYBENZALDEHYDE WITH ANILINE , Communication In Physical Sciences: Vol. 12 No. 7 (2025): VOLUME 12 ISSUE 7
- Mujeeb Abdulrazaq, Rare-Event Prediction in Imbalanced Data: A Unified Evaluation and Optimization Framework for High-Risk Systems , Communication In Physical Sciences: Vol. 9 No. 4 (2023): VOLUME 9 ISSUE 4
- Uzoma Nwokoma Esomchi, , Obinna. Christain. Dinneya, , Chukwunenyoke Amos-Uhegbu, , Solape Simeon Fadeyi, MAGNETIC RESPONSE ANALYSES IN PARTS OF SOUTHERN BENUE TROUGH: IMPLICATIONS FOR MINERAL PROSPECTING , Communication In Physical Sciences: Vol. 12 No. 3 (2025): VOLUME 12 ISSUE 3
- Florence Omada Ocheme, Hakeem Adewale Sulaimon, Adamu Abubakar Isah, A Deep Neural Network Approach for Cancer Types Classification Using Gene Selection , Communication In Physical Sciences: Vol. 7 No. 4 (2021): VOLUME 7 ISSUE 4
- Joy Nnenna Okolo, A Systematic Analysis of Artificial Intelligence and Data Science Integration for Proactive Cyber Defense: Exploring Methods, Implementation Obstacles, Emerging Innovations, and Future Security Prospects , Communication In Physical Sciences: Vol. 7 No. 4 (2021): VOLUME 7 ISSUE 4
- Humphrey Sam Samuel, Emmanuel Edet Etim, John Paul Shinggu, Bulus. Bako , Machine learning of Rotational spectra analysis in interstellar medium , Communication In Physical Sciences: Vol. 10 No. 1 (2023): VOLUME 10 ISSUE 1
- Chinyan Blessing, Sharon Oluwaseun, Taiwo Ruth Owoeye, Arti Raikwar, Beyond Automation: Data-Driven Financial Process Optimization and Organizational Transformation in Financial Services , Communication In Physical Sciences: Vol. 12 No. 8 (2025): VOLUME 12 ISSUE 8
- Kabiru Alhaji Bala, Ogunlana Yusuf Olayinka, Maryam Aliyu, The Design and Development of Environmentally Friendly Biogas Using an Anaerobic Digestion System , Communication In Physical Sciences: Vol. 8 No. 4 (2022): VOLUME 8 ISSUE 4
- Nweze Rosemary Chika Nweze, Nneka MaryAnn Okafor, Chinagolum Ituma, Hybrid Intelligent Model for Prediction of Autism Spectrum Disorder in Children , Communication In Physical Sciences: Vol. 13 No. 6 (2026): VOLUME 13 Issue 6
You may also start an advanced similarity search for this article.



