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
- Fatima Binta Adamu, Muhammad Bashir Abdullahi, Sulaimon Adebayo Bashir, Abiodun Musa Aibinu, Conceptual Design Of A Hybrid Deep Learning Model For Classification Of Cervical Cancer Acetic Acid Images , Communication In Physical Sciences: Vol. 12 No. 2 (2025): VOLUME 12 ISSUE 2
- Ebenezer Agayina Kudamnya, Victor Etim Nyong, Ibrahim Kehinde Adebayo, Emmanuel Etim Okon, Alexander Abraham Oko, Godwin Inieke Joshua, Happiness Idoreyin Asuquo, Joseph Osumeje Osumeje, Felix Peter Irek, Aniekan Edet, Ntonzi Nganje, Christopher Iorfa Adamu, Azubuike Solomon Ekwere, Godwin Terwase Kave, A Multi-criteria Decision using the Analytical Hierarchy Process (AHP) for Delineation of Groundwater Potential Zones in Part of the Obudu-Massif, Nigeria , Communication In Physical Sciences: Vol. 13 No. 5 (2026): VOLUME 13 ISSUE 5
- Emmanuel Gbenga Dada, David Opeoluwa Oyewola, Stephen Bassi Joseph, Deep Convolutional Neural Network Model for Detection of Sickle Cell Anemia in Peripheral Blood Images , Communication In Physical Sciences: Vol. 8 No. 1 (2022): VOLUME 8 ISSUE 1
- Ifeoma Vivian Nwankwo, Mbajiuka Stella Chinenye, Lovina Odoemelam, Oluchi Maduka, Analysis of Agricultural Development Programme (ADP) Promoted Agrochemical use Among Women Farmers In Abia State , Communication In Physical Sciences: Vol. 10 No. 2 (2023): VOLUME 10 ISSUE 2
- Uzoma Ifeanyi Oduah, Paul Chinagorom Nwosu, Emmanuel Ayomide Agbojule , Chisom Gabriel Chukwuka , Daniel Oluwole, Ifedayo Okungbowa, Automation of electric power source changeover switches deploying artificial intelligence. , Communication In Physical Sciences: Vol. 12 No. 7 (2025): VOLUME 12 ISSUE 7
- Ifeanyi E. Otuokere, J. C. Anyanwu, K. K. Igwe, Ni(II) Complex of a Novel Schiff Base Derived from Benzaldehyde and Sulphathiazole: Synthesis, Characterization and Antibacterial Studies , Communication In Physical Sciences: Vol. 5 No. 2 (2020): VOLUME 5 ISSUE 2
- Emurode Williams, Lawrence Abakah, Aniedi Ojo, Chidinma Jonah, AI-Driven Analysis of Information Processing Capacity and Financial Stability in Delegated Asset , Communication In Physical Sciences: Vol. 9 No. 4 (2023): VOLUME 9 ISSUE 4
- Ukeme Nsikak Essien, Advances in Precision Forestry: Integrating Remote Sensing, AI, and Mechanized Operations for Sustainable Forest Management , Communication In Physical Sciences: Vol. 12 No. 8 (2025): VOLUME 12 ISSUE 8
- Franklin Akwasi Adjei, Artificial Intelligence and Machine Learning in Environmental Health Science: A Review of Emerging Applications , Communication In Physical Sciences: Vol. 12 No. 5 (2025): VOLUME 12 ISSUE 5
- Eneni Roberts Inala, Okpo Esio Unanaonwi, Species- Specific- Pathogens of Selected Forest Trees in Tropical Secondary Moist Forest of Otuoke, Nigeria , Communication In Physical Sciences: Vol. 8 No. 4 (2022): VOLUME 8 ISSUE 4
You may also start an advanced similarity search for this article.



