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
- Samuel Eguom Osim, Benefit Onu, Evaluation of Growth and Nutrient Profiles of Phaseolus vulgaris L. in Soil Treatment with Paint Waste Water , Communication In Physical Sciences: Vol. 8 No. 4 (2022): VOLUME 8 ISSUE 4
- Kamureyina Ezekiel, Titus Thama Kwanye, Victor Vitalis, Brian Benjamin, Idris Salihu Jauro, Victor Gambo Na’ Allah, Geo-Electrostratigraphic Investigation of Gulak and Surrounding Areas Northeastern Nigeria , Communication In Physical Sciences: Vol. 13 No. 1 (2026): VOLUME 13 ISSUE 1
- Mohammed Hassan Ramat, Yahaya Zakari, Mohammed Usman, Isah Muhammad, Jamilu Yunusa Falgore, Hussaini Garba Dikko, The Effect of Exchange Rate on Gross Domestic Product (GDP) on the Nigerian Economy using ARDL-ECM approach , Communication In Physical Sciences: Vol. 8 No. 2 (2022): VOLUME 8 ISSUE 2
- Humphrey Ibifubara, Hassan Saheed Ayobami, Erusiafe Nald Ese, Design And Implementation of Cost Effective SMS-Based Online Voting System for Credible election in Nigeria , Communication In Physical Sciences: Vol. 12 No. 2 (2025): VOLUME 12 ISSUE 2
- Dorathy Edet Etim, Effect of Ethanolic Extract of Bryophyllum pinnatum Leaves On Haematological Parameters of Albino Wistar Rats Exposed to Cadmium Chloride , Communication In Physical Sciences: Vol. 8 No. 4 (2022): VOLUME 8 ISSUE 4
- Isah Muhammad, Gafar Matanmi Oyeyemi, Generalized Variance Estimator using Two Auxiliary Variables under Stratified Random Sampling , Communication In Physical Sciences: Vol. 12 No. 2 (2025): VOLUME 12 ISSUE 2
- Joseph Amajama, Julius Ushie Akwagiobe, Efa Ubi Ikpi, Analyzing the Relationship between Atmospheric Pressure and Mobile Network Signal Strength in Southern Nigeria , Communication In Physical Sciences: Vol. 12 No. 4 (2025): VOLUME1 2 ISSUE 4
- Vincent Oseikhuemen Binitie, Ogaga Esharive, Solid mineral potential in the southern Benue Trough: A review , Communication In Physical Sciences: Vol. 11 No. 4 (2024): VOLUME 11 ISSUE 4
- Osondu Onwuegbuchi, Abdulaziz Olaleye Ibiyeye, Joy Nnenna Okolo, Samuel Adetayo Adeniji, Cybersecurity Risks in the Fintech Ecosystem: Regulatory and Technological Perspectives , Communication In Physical Sciences: Vol. 9 No. 4 (2023): VOLUME 9 ISSUE 4
- 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
You may also start an advanced similarity search for this article.



