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
- Wisdom, Ivwurie, Daniel, Okiriguo, Evaluation of n-Alkanes Hydrocarbon from two Communities in Udu Local Government Area, Delta State , Communication In Physical Sciences: Vol. 7 No. 4 (2021): VOLUME 7 ISSUE 4
- Raymond Sugar Ebere Amougou, AI-Driven DevOps: Leveraging Machine Learning for Automated Software Delivery Pipelines , Communication In Physical Sciences: Vol. 9 No. 4 (2023): VOLUME 9 ISSUE 4
- Paschal O. Iniaghe, Chimere Ezekwe, Per- and Polyfluoroalkyl Substances and Waste Management in Nigeria: A Review , Communication In Physical Sciences: Vol. 13 No. 3 (2026): Volume 13 Issue 3
- Promise A. Azor, Edikan E. Akpanibah, Okechukwu I. Edozieunor, Closed Form Solutions of a Re-Insurer’s Surplus, Stochastic and Time-Dependent Investment Returns with Random Parameters , Communication In Physical Sciences: Vol. 11 No. 1 (2024): VOLUME 11 ISSUE 1
- Iniofon Udom, Grace Cookery, Paul Ocheje Ameh, Investigation of Acanthus montanus Leaves Extract as Corrosion Inhibitor for Copper in 2 M Sulphuric Acid , Communication In Physical Sciences: Vol. 12 No. 3 (2025): VOLUME 12 ISSUE 3
- Isah Haruna, Yahaya Zakari, Umar Kabir Abdullahi, Reuben Oluwabukunmi David, Jamilu Yunusa Falgore, On the Study of Kumaraswamy Reduced Kies Distribution: Properties and Applications , Communication In Physical Sciences: Vol. 12 No. 3 (2025): VOLUME 12 ISSUE 3
- Judith O. Umukoro, Joseph A. Obu, Application of Hulthén-Hellmann Potential (HHP) to Predict the Mass-Spectra of Heavy Mesons , Communication In Physical Sciences: Vol. 7 No. 4 (2021): VOLUME 7 ISSUE 4
- Jamilu Bala Ahmed II*, Ernest Orji Akudo, Spaceborne Fracture Network Mapping for Appraising Slope Stability, Building Structural Integrity and Groundwater Potential Distribution in Lokoja, Nigeria , Communication In Physical Sciences: Vol. 12 No. 7 (2025): VOLUME 12 ISSUE 7
- Comfort M. Ngwu, Okoche K. Amadi, Augustine C. Egwu, Sorption Studies on the Removal of Industrial Dye Aniline Yellow From Aqueous Solution Using Surfactant Modified Iron Filings , Communication In Physical Sciences: Vol. 6 No. 1 (2020): VOLUME 6 ISSUE 1
- Jeremiah Makarau Iliya, Mark Madumelu, Aisha Yusuf Lawal, Study on Opportunities and Challenges of Online Chemistry Education: A Case Study of Federal University Of Education (FUE) Zaria, Kaduna State , Communication In Physical Sciences: Vol. 12 No. 5 (2025): VOLUME 12 ISSUE 5
You may also start an advanced similarity search for this article.



