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
- Ufuoma Shalom Onoabedje, Christopher Obodike Ezugwu, Efeturi Abraham Onoabedje, Antimicrobial Properties of 9, 12-Octadecadienoic Acid Isolated from Leaf Extracts of Acalypha Fimbriata (Euphorbiaceae) , Communication In Physical Sciences: Vol. 12 No. 3 (2025): VOLUME 12 ISSUE 3
- Muhd Auwal Zubair, Nura Muhammad, Aminu Sabo Muhammad, Abdulrasheed Luqman, Comparative Study on the Effect of Organic and Inorganic Fertilizers on Maize Yield , Communication In Physical Sciences: Vol. 8 No. 4 (2022): VOLUME 8 ISSUE 4
- YUSUF MOHAMMED AUWAL, OSITA CHUKWUDI MELUDU, TIMTERE PASCAL, Computational Modeling and validation of Indoor Radon Gas Dynamics and Accumulation Using Ansys Fluent Simulation , Communication In Physical Sciences: Vol. 12 No. 4 (2025): VOLUME1 2 ISSUE 4
- Ubaka Ekwueme, Assessment of Gully Erosion Through Combined Electrical Resistivity Surveys and Soil Testing in Enugu North, Southeastern Nigeria , Communication In Physical Sciences: Vol. 12 No. 8 (2025): VOLUME 12 ISSUE 8
- Oluwafemi Samson Afolabi , Load-Bearing Capacity Analysis and Optimization of Beams, Slabs, and Columns , Communication In Physical Sciences: Vol. 6 No. 2 (2020): Communication in Physical Sciences
- Akens Hamilton-Amachree , Phytochemical Profiling of 30% Acetone Honeybee Crude Extract Collected From Ondo West Forest, Ondo State, Nigeria , Communication In Physical Sciences: Vol. 8 No. 4 (2022): VOLUME 8 ISSUE 4
- Samuel Awolumate, Joshua C. Ashiedu, Empirical Assessment of Productivity and Profitability Responses to Cooperative-Based Institutional Support in Aquaculture Production Systems in Lagos State, Nigeria , Communication In Physical Sciences: Vol. 13 No. 1 (2026): VOLUME 13 ISSUE 1
- Aniekan Udongwo, https://dx.doi.org/10.4314/cps.v12i2.17 , Communication In Physical Sciences: Vol. 12 No. 2 (2025): VOLUME 12 ISSUE 2
- Hauwa Muhammad, Estimated Dietary Intake of Essential Trace Elements from Selected fruits and vegetables in Minna town, Nigeria , Communication In Physical Sciences: Vol. 12 No. 3 (2025): VOLUME 12 ISSUE 3
- Ayomiposi Sodeinde, Oluwafemi Orekoya, Daniel Jayeoba, Oyebade Adepegba, Effect of Green Information and Communication Technology on Survival of Electricity Distribution Companies in Nigeria , Communication In Physical Sciences: Vol. 12 No. 3 (2025): VOLUME 12 ISSUE 3
You may also start an advanced similarity search for this article.



