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
- Richard Alexis Ukpe, Environmental Chemical Exposure and Occupational Health Outcomes among Workers in Selected Occupational Settings in Enugu State, Nigeria: Implications for Occupational Nursing Practice , Communication In Physical Sciences: Vol. 8 No. 4 (2022): VOLUME 8 ISSUE 4
- Adebayo Adegbenro, Arinze Madueke, Aniedi Ojo, Cynthia Alabi, AI-Driven Wealth Advisory: Machine Learning Models for Personalized Investment Portfolios and Risk Optimization , Communication In Physical Sciences: Vol. 8 No. 4 (2022): VOLUME 8 ISSUE 4
- Hamidu Aliyu Chamalwa, Ridge Regression: An Alternative Technique for Correcting Multicollinearity in Multiple Regression Analysis , Communication In Physical Sciences: Vol. 13 No. 2 (2026): VOLUME 13 ISSUE 2
- Nsentip George Afangide, Abasi-ada Nnabuk Eddy, Statistical Thinking in Modern Journalism: A Quantitative Analysis of Data Literacy, News Accuracy, and Audience Trust , Communication In Physical Sciences: Vol. 11 No. 4 (2024): VOLUME 11 ISSUE 4
- Kizito O. Musa, Assessment of Groundwater Potential and Aquifer Characteristics using Inverted Resistivity and Pumping Test Data within Lokoja Area, North-central Nigeria , Communication In Physical Sciences: Vol. 9 No. 3 (2023): VOLUME 9 ISSUE 3
- Idayat Abubakar Salau, Aminu Suleiman Mohammed, Hussaini Garba Dikko, Type I Half-Logistic Exponentiated Kumaraswamy Distribution With Applications , Communication In Physical Sciences: Vol. 12 No. 2 (2025): VOLUME 12 ISSUE 2
- Abubakar Tahiru, Oluwasanmi M. Odeniran, Shardrack Amoako, Developing Artificial Intelligence-Powered Circular Bioeconomy Models That Transform Forestry Residues into High-Value Materials and Renewable Energy Solutions , Communication In Physical Sciences: Vol. 8 No. 4 (2022): VOLUME 8 ISSUE 4
- Theophilus Obijuru Nelson, Emmanuel John Ekpenyong, Assessing the Efficiencies of Calibration Ratio Estimators for Estimating Mean Weight of Babies in the Presence of Gestational Age Under Stratified Random Sampling , Communication In Physical Sciences: Vol. 12 No. 1 (2024): VOLUME 12 ISSUE 1
- Olalekan Akanji Bello, Sani Ibrahim Doguwa, Abubakar Yahaya, Haruna Mohammed Jibril , A Type I Half Logistic Exponentiated-G Family of Distributions: Properties and Application , Communication In Physical Sciences: Vol. 7 No. 3 (2021): VOLUME 7 ISSUE 3
- Sirajo Ibrahim, Yunusa Idris, Effect of Using Fabricated Motor Generator Device in Teaching Energy Concepts on Basic Science Students’ Achievement of Zamfara Central Education Zone , Communication In Physical Sciences: Vol. 10 No. 3: VOLUME 10 ISSUE 3 (2023-2024)
You may also start an advanced similarity search for this article.



