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
- Juliet E. Emudianughe, K. E. Uwuigbe, Sunday Utah, Structural Interpretation of 3D Seismic Data in Agbami Field , Communication In Physical Sciences: Vol. 7 No. 4 (2021): VOLUME 7 ISSUE 4
- Nsikanabasi Ekerete Nkom, Ededet Akpan Eno, Atim Sunday Johnson, Idongesit Bassey Anweting, SYNTHESIS AND CHARACTERIZATION OF 4- AMINO-3-MERCAPTO-5-METHYL-1, 2, 4 -TRIAZOLE AND ITS MIXED- LIGANDS COMPLEX WITH Cd (II) IONS , Communication In Physical Sciences: Vol. 12 No. 6 (2025): VOLUME 12 ISSUE 6
- Chukwura Nnabike Francis, Cletus Onyemeforo Ezidi, Abdullahi Mustapha, Ebelechukwu Christiana Mmuta, Chinyere Eucharia Umeocho, Rita Ogechukwu Ohakwe, Assessment of Growth and Adaptation Rate of Mung Beans (vigna radiata) Planted in Different Planting Periods in Abagana, South Eastern Nigeria , Communication In Physical Sciences: Vol. 11 No. 4 (2024): VOLUME 11 ISSUE 4
- Kolawole Ismail Adekunle, Abubakar Yahaya, Sani Ibrahim Doguwa, Aliyu Yakubu, On the Exponentiated Type II Generalized Topp-Leone-G Family of Distribution: Properties and Applications , Communication In Physical Sciences: Vol. 11 No. 4 (2024): VOLUME 11 ISSUE 4
- Gulumbe S. Usman, Umar Usman, Aremu Kazeem Olalekan, Odeyale, Abideen Babatunde , The Generalized Odd Generalized Exponential Gompertz Distribution with Applications , Communication In Physical Sciences: Vol. 10 No. 1 (2023): VOLUME 10 ISSUE 1
- Okoche K. Amadi, Uloma O. Akoh, Innocent A. Okoro, Egwuobasi Nwabuokechi,, Decontamination of Pb2+, Cd2+ and Ni2+ Polluted Water by Adsorption Unto Butterfly Pea (Centrosema pubescens) Seed Pod , Communication In Physical Sciences: Vol. 6 No. 1 (2020): VOLUME 6 ISSUE 1
- Uduak Irene Aletan, Abraham Gana Yisa, Sunday Adenekan, Abiodun Emmanuel Adams, Antioxidant Properties and Reproductive Health Benefits of Opa eyin Herbal Concoction: In vitro and In vivo Evaluation , Communication In Physical Sciences: Vol. 12 No. 3 (2025): VOLUME 12 ISSUE 3
- Mr. Agada, Prof. M. U. Igboekwe, Dr. Amos-Uhegbu, C., APPLICATION OF THE PQWT-S300 WATER DETECTOR IN MAPPING GROUNDWATER FOR ABSTRACTION , Communication In Physical Sciences: Vol. 12 No. 7 (2025): VOLUME 12 ISSUE 7
- Aminu Ismaila, Abubakar Sadiq Aliyu, Yakub Viva Ibrahim, Evaluation of Gamma Radiation Dose Level in Mining Sites of Riruwai, Kano, Nigeria , Communication In Physical Sciences: Vol. 8 No. 1 (2022): VOLUME 8 ISSUE 1
- Confidence Ifeoma Odoh, Nweze Rosemary Chika Nweze, Ukamaka Victoria Maduahonwu, Development of an Enhanced Predictive Maintenance Models for Industrial Systems using Deep Learning Techniques , Communication In Physical Sciences: Vol. 13 No. 1 (2026): VOLUME 13 ISSUE 1
You may also start an advanced similarity search for this article.



