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
- Suleiman Isa Babale, Geochemical Analysis for Mineralisation Assessment of Zaranda Migmatite, from Interpretation of Trace Elements and Petrography , Communication In Physical Sciences: Vol. 8 No. 4 (2022): VOLUME 8 ISSUE 4
- Yusuf Mohammad Auwal, Hussaini Shuaibu, Muhammad Sani Isa, Study of Symmetric Nuclear Matter Properties in Non-linear Walecka Model via Relativistic Mean-field approximation at zero-temperature , Communication In Physical Sciences: Vol. 12 No. 2 (2025): VOLUME 12 ISSUE 2
- Emmanuel Etim Okon, Kehinde Ibrahim Adebayo, Andrew Sunday Oji, Victor Etim Nyong, Muhideen Alade Saliu, Odunyemi Anthony Ademeso, Sedimentary petrography and geo-mechanical assessment of some Cretaceous sandstone in parts of Southern Benue Trough, south-eastern Nigeria , Communication In Physical Sciences: Vol. 13 No. 6 (2026): VOLUME 13 Issue 6
- Chisimkwuo John, Okoroafor Promise Izuchukwu, Amobi Chinenye Theresa, Application of Factor Analysis in the Modelling of Inflation Rate in Nigeria , Communication In Physical Sciences: Vol. 10 No. 2 (2023): VOLUME 10 ISSUE 2
- Uchechukwu Susan Oruma, Pius Oziri Ukoha, Lawrence Nnamdi Obasi, Synthesis, Characterization and Biological Studies of Trinuclear Ce(IV) Salen Capped Complex with 5-amino-2,4,6-tris(4-carboxybenzimino)-1,3-pyrimidine , Communication In Physical Sciences: Vol. 5 No. 3 (2020): VOLUME 5 ISSUE 3
- Usman Mohammed, Doguwa Sani Ibrahim, Mohammed Aminu Sulaiman, Reuben Oluwabukunmi David, Sadiq Ibrahim Abubakar, Development of Topp-Leone Odd Fréchet Family of Distribution with Properties and Applications , Communication In Physical Sciences: Vol. 12 No. 4 (2025): VOLUME1 2 ISSUE 4
- Bayode Adeyanju, Development and Application of a Novel Bi-functional Heat Treatment Furnace: A Review , Communication In Physical Sciences: Vol. 12 No. 5 (2025): VOLUME 12 ISSUE 5
- Olawale Babatunde Olatinsu, Mathew Osaretin Ogieva, Amidu Abiola Ige-Adeyeye, Investigation of Frequency-dependent Conductivity Signatures of Geological Materials from Ewekoro, Eastern Dahomey Basin , Communication In Physical Sciences: Vol. 12 No. 2 (2025): VOLUME 12 ISSUE 2
- Nuruddeen Abubakar, Muhammad Adamu, Mediating Role of Entrepreneurial Mindset on the Effect of Entrepreneurial Education and Self-Efficacy on Entrepreneurial Intention Among University Undergraduates , Communication In Physical Sciences: Vol. 13 No. 6 (2026): VOLUME 13 Issue 6
- Ugoetan Victor Agbogo, Rifore Belief Silas, Victor Inioluwa Olaoye, Philip Ifeanyi Jerome, Mathew Joshua, Investigation of the Inhibitive Properties of Bio-Inspired Starch-Polyvinyl Acetate Graft Copolymer (Ps-Pvagc) on the Acid Corrosion of Mild Steel , Communication In Physical Sciences: Vol. 10 No. 2 (2023): VOLUME 10 ISSUE 2
You may also start an advanced similarity search for this article.



