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
- Ifeanyi E. Otuokere, J.C. Anyanwu, K.K. Igwe, Synthesis, Spectra and Antibacterial Studies of 4-{[(E)-phenylmethyl- idene]amino}-N-(1,3-thiazol-2-yl)benzenesulfonamide Schiff Base Ligand and its Ni(II) Complex , Communication In Physical Sciences: Vol. 7 No. 2 (2021): VOLUME 7 ISSUE 2
- Izuagbe Gilbert Osigbemhe, Essential Oil Composition and Anti-Microbial Activity of Zyzgium aromaticum (l) merril and Percy [fam. Myrtaceae] Using Hydro-Distillation and Solvent Extraction Methods , Communication In Physical Sciences: Vol. 12 No. 4 (2025): VOLUME1 2 ISSUE 4
- Agada Livinus Emeka, Adetola Sunday Oniku, Osita Meludu, Evaluation of Groundwater Potential in Gashua Northeast Nigeria, Using Electrical Resistivity Method , Communication In Physical Sciences: Vol. 5 No. 3 (2020): VOLUME 5 ISSUE 3
- Uduak Aletan, Elijah Adetola, Ahmed Abudullahi, Olayinka Onifade, Hadiza Kwazo Adamu, Phytochemical analysis, invitro antioxidant activity and GC-MS studies of crude extracts of Cissus populnea stem , Communication In Physical Sciences: Vol. 8 No. 4 (2022): VOLUME 8 ISSUE 4
- Chinedum Ifeanyi Nwankwo, Onuchi Marygem Mac-Kalunta, Godfrey Ogochukwu Ezema, Nwokedi Anslem Kenecukwu, Uzoefuna Chima Casmir, Ndu Chidiebere Kingsley, Onuoha Peter Chibuzo, In Silico Anti-Inflammatory Activities of Abelmoschus Esculentus Derived Ligands On Cox-2 , Communication In Physical Sciences: Vol. 12 No. 3 (2025): VOLUME 12 ISSUE 3
- Azeh Yakubu, Mohammed Aliyu-Paiko, Asseh Emmanuel, The Potential of Arginine-Modified Nanoclay Suspension Against Fungi and Bacteria Infestation in Maize and Groundnut , Communication In Physical Sciences: Vol. 12 No. 2 (2025): VOLUME 12 ISSUE 2
- Omorinsola Oluwasegun Goriola, Azeez Rabiu, Emerging Cyber Threats and Modern Defense Strategies: A Systematic Analysis of Attack Taxonomies, Adversarial Trends, and Adaptive Security Frameworks , Communication In Physical Sciences: Vol. 12 No. 8 (2025): VOLUME 12 ISSUE 8
- Abiodun Rasheed Omokanye, Benefit Onu, Populations of Derived-parasitic Nematodes on Sweet Potato (Ipomoea batatas) Cultivated Fields in Offa, Offa Local Government Area, Kwara State, Nigeria , Communication In Physical Sciences: Vol. 11 No. 2 (2024): VOLUME 11 ISSUE 2
- O. V. Ikpeazu, Ifeanyi E. Otuokere,, K. K. Igwe, Colorimetric Determination of Stability Constant of Acetaminophen-Cu(II) complex by Classical Equation Depending on Stoichiometric Curves , Communication In Physical Sciences: Vol. 5 No. 3 (2020): VOLUME 5 ISSUE 3
- Suleiman Isa Babale, Geochemical Analysis for Mineralisation Assessment of Zaranda Migmatite, from Interpretation of Trace Elements and Petrography , Communication In Physical Sciences: Vol. 8 No. 4 (2022): VOLUME 8 ISSUE 4
You may also start an advanced similarity search for this article.



