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
- 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
- Ayomide Ayomikun Ajiboye, Investigating the Role of Machine Learning Algorithms in Customer Segmentation , Communication In Physical Sciences: Vol. 12 No. 2 (2025): VOLUME 12 ISSUE 2
- Rita Nneka Nwaka, James Kona, Mathematics in Technology and Engineering: Modeling, Optimization, Algorithms, and Emerging Industrial Applications , Communication In Physical Sciences: Vol. 12 No. 8 (2025): VOLUME 12 ISSUE 8
- Blessing Ebong, Review on Microplastic-Polymer Composite Interactions: Assessing Contaminant Adsorption, Structural Integrity, and Environmental Impacts , Communication In Physical Sciences: Vol. 12 No. 3 (2025): VOLUME 12 ISSUE 3
- A.O Obioha, Spatial Variability of key climate and air quality parameters across some Nigerian cities , Communication In Physical Sciences: Vol. 12 No. 5 (2025): VOLUME 12 ISSUE 5
- A. E. Usoro, Comparing the Performance of Alternative Generalised Autoregressive Conditional Heteroskedasticity Models in Modelling Nigeria Crude Oil Production Volatility Series , Communication In Physical Sciences: Vol. 4 No. 2 (2019): VOLUME 4 ISSUE 2
- Chigozie. Chibuisi, Bright O. Osu, Kevin Ndubuisi C. Njoku, Chukwuka Fernando Chikwe, A Mathematical Investigation of Fuel Subsidy Removal and its Effects on Nigerian Economy , Communication In Physical Sciences: Vol. 11 No. 3 (2024): VOLUME 11 ISSUE 3
- Ahmed Kehinde Usman, Yusuf Adigun Hassan, Geology of Northeastern Nigeria and Its Prospects for Geothermal Energy: A Review , Communication In Physical Sciences: Vol. 12 No. 4 (2025): VOLUME1 2 ISSUE 4
- Benjamin Odey Omang, Microchemical characterization and stream sediment composition of alluvial gold particles from the Rafin Gora drainage system, Kushaka schist belt, North Western Nigeria , Communication In Physical Sciences: Vol. 9 No. 3 (2023): VOLUME 9 ISSUE 3
You may also start an advanced similarity search for this article.



