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
- Olaleye Ibiyeye, Joy Nnenna Okolo, Samuel Adetayo Adeniji, A Comprehensive Evaluation of AI-Driven Data Science Models in Cybersecurity: Covering Intrusion Detection, Threat Analysis, Intelligent Automation, and Adaptive Decision-Making Systems , Communication In Physical Sciences: Vol. 8 No. 4 (2022): VOLUME 8 ISSUE 4
- Sunday Emmanson Udoh, Analysis of The Impact of Climate Change on Meteorological Time-Series Data in Uyo , Communication In Physical Sciences: Vol. 12 No. 2 (2025): VOLUME 12 ISSUE 2
- Dulo Chukwemeka Wegner, A Review on the Advances in Underwater Inspection of Subsea Infrastructure: Tools, Technologies, and Applications , Communication In Physical Sciences: Vol. 12 No. 5 (2025): VOLUME 12 ISSUE 5
- Henry Ekene Ohaegbuchu, Boniface Ikechukwu Ijeh, Paul Igienekpeme Aigba, Obinna Christian Dinneya, Integrated Geophysical Study of Geothermal and Mineralization Potential for Energy and Strategic Resources in the Lower Benue Trough, Nigeria , Communication In Physical Sciences: Vol. 12 No. 7 (2025): VOLUME 12 ISSUE 7
- Innocent C. Eli, Godspower C. Abanum, Comparison Between Analytical and Numerical Result of Stability Analysis of a Dynamical System , Communication In Physical Sciences: Vol. 5 No. 4 (2020): VOLUME 5 ISSUE 4
- Kingsley Uchendu, Emmanuel Wilfred Okereke, Exponentiated Power Ailamujia Distribution: Properties and Applications to Time Series , Communication In Physical Sciences: Vol. 12 No. 5 (2025): VOLUME 12 ISSUE 5
- Oluwatosin Lawal, Projecting AI-Driven Intersection of FinTech, Financial Compliance, and Technology Law , Communication In Physical Sciences: Vol. 12 No. 2 (2025): VOLUME 12 ISSUE 2
- Abidemi Emmanuel Adenij, Chaotic Signature in Power Spectrum and Recurrence Quantification of Dynamical Behaviour of Multivariate Time Series , Communication In Physical Sciences: Vol. 11 No. 2 (2024): VOLUME 11 ISSUE 2
- Simbiat Atinuke Lawal, Samuel Omefe, Adeseun Kafayat Balogun, Comfort Michael, Sakiru Folarin Bello, Itunu Taiwo Owen, Kevin Nnaemeka Ifiora, Circular Supply Chains in the Al Era with Renewable Energy Integration and Smart Transport Networks , Communication In Physical Sciences: Vol. 7 No. 4 (2021): VOLUME 7 ISSUE 4
- D. Simeon, Fuelwood Exploitation and its Impacts on Residents of Kakau Daji Village, Chikun Local Government Area, Kaduna State, Nigeria , Communication In Physical Sciences: Vol. 4 No. 1 (2019): VOLUME 4 ISSUE 1
You may also start an advanced similarity search for this article.



