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
- 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
- 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
- Nnaemeka Obiora Daniel, Estimation of aquifer properties using electrical resistivity data in parts of Nsukka L.G.A., Enugu State , Communication In Physical Sciences: Vol. 2 No. 1 (2017): VOLUME 2 ISSUE 1
- Olalekan Lawrence Ojo, Famoriyo Olakunle Idris, On The Assessment of fade Depth and Geoclimatic Factor for Microwave Link Applications in Lagos, Nigeria , Communication In Physical Sciences: Vol. 12 No. 2 (2025): VOLUME 12 ISSUE 2
- Paschal Bisong Nyiam, Abdellah Salhi, Solution Approaches to Multiple Objective Linear Programming , Communication In Physical Sciences: Vol. 13 No. 8 (2026): Volume 13, Issue 8
- Helen O. Chukwuemeka-okorie, Ifeanyi Otukere, Kovo Akpomie, Isotherm, Kinetic and thermodynamic investigation on the biosorptive removal of Pb (II) ion from solution onto biochar prepared from breadfruit seed hull , Communication In Physical Sciences: Vol. 12 No. 3 (2025): VOLUME 12 ISSUE 3
- I. I. Ibrahim, A. Absulazeez, A. Usman, M. U. Badeggi, A. I. Muhammad, Comparative Studies on Phytochemical Constituents Andantimicrobial Activity on Three Onion Species , Communication In Physical Sciences: Vol. 7 No. 4 (2021): VOLUME 7 ISSUE 4
- Okoche Kelvin Amadi, Stella Mbanyeaku Ufearoh, Innocent Ajah Okoro, Paulina Adaeze Ibezim, Mitigation of the Corrosion of Mild Steel in Acidic Solutions Using An Aqueous Extract of Calopogonium muconoide (cm) as a green corrosion inhibitor , Communication In Physical Sciences: Vol. 8 No. 3 (2022): VOLUME 8 ISSUE 3
- Chidozie Izuchukwu Princeton DIM, AN INTEGRATED APPROACH TO PETROLEUM EXPLORATION IN THE EASTERN COASTAL SWAMP DEPOBELT OF THE NIGER DELTA BASIN, NIGERIA. , Communication In Physical Sciences: Vol. 2 No. 1 (2017): VOLUME 2 ISSUE 1
- Magaji Ladan, Khadija Zubairu Muhammad, Shehu Habibu, Enhanced Adsorptive Removal of Pb²⁺ and Cd²⁺ Ions from Aqueous Solution Using Phosphoric Acid–Activated Rice Husk , Communication In Physical Sciences: Vol. 13 No. 2 (2026): VOLUME 13 ISSUE 2
You may also start an advanced similarity search for this article.



