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
- Izuagbe Gilbert Osigbemhe , Muluh Emmanuel Khan, SYNTHESIS, SPECTROSCOPIC CHARACTERIZATION AND BIO-INVESTIGATION of N-(2-furylmethylidene)-1,3, 4-thiadiazole-2-amine and its Iron (III) COMPLEXES , Communication In Physical Sciences: Vol. 12 No. 4 (2025): VOLUME1 2 ISSUE 4
- Emeka Chima Ogoko, Chemical Information from GCMS of Ethanol Extract of Solanum melongena (Aubergine) Leaf , Communication In Physical Sciences: Vol. 6 No. 1 (2020): VOLUME 6 ISSUE 1
- Chigbundu C. Emmanuel, Adebowale O. Kayode, Equilibrium and Kinetics Studies of the Adsorption of Basic Dyes onto PVOH Facilely Intercalated Kaolinite - A Comparative Study of Adsorption Efficiency , Communication In Physical Sciences: Vol. 7 No. 4 (2021): VOLUME 7 ISSUE 4
- Forward Nsama, Development of Sustainable Finance Strategies for Climate-Resilient Infrastructure Investments Across U.S. States , Communication In Physical Sciences: Vol. 12 No. 6 (2025): VOLUME 12 ISSUE 6
- Kpomah Bridget, Igue Emuejevoke Loveth, Akande Oyinlola, Coordination Driven Design and Biological Potentials of Mixed-Ligand Complexes Containing Diphenylmethanonehydrazone with 1, 10-Phenanthroline , Communication In Physical Sciences: Vol. 12 No. 8 (2025): VOLUME 12 ISSUE 8
- Moses Oluwasegun Odewale, Moses Olagoke Odejobi, Olanrewaju Oluwaseun Ajayi, Advanced RF Optimization Techniques for Enhancing Coverage, Throughput, and Quality of Service in LTE and 5G Networks , Communication In Physical Sciences: Vol. 8 No. 4 (2022): VOLUME 8 ISSUE 4
- Obialo Solomon Onwuka, Elochukwu Pearl Echezona, Chimankpam Kenneth Ezugwu, Hydrogeology of Uburu and Environs, Southern Eastern, Nigeria , Communication In Physical Sciences: Vol. 3 No. 1 (2018): VOLUME 3 ISSUE 1
- Jeremiah Makarau Iliya, Exploring the Psychological Effect of Kaduduna State Government Teacher Dismissal Initiative From 2015 – 2023 on Chemistry Educators in Chikun L.G.A of Kaduna State, Nigeria , Communication In Physical Sciences: Vol. 9 No. 4 (2023): VOLUME 9 ISSUE 4
- Babatunde T. Ogunyemi, Richard A. Ukpe, Quantum Molecular Parameters for the Prediction of Corrosion Inhibition potentials of some Alkaloids in Cryptocarya nigra Stem , Communication In Physical Sciences: Vol. 8 No. 4 (2022): VOLUME 8 ISSUE 4
- Uduak Aletan, Imaobong Nyambi Akpet, Biochemical Information from the leaves of Pterocarpus mildraedii , Communication In Physical Sciences: Vol. 7 No. 4 (2021): VOLUME 7 ISSUE 4
You may also start an advanced similarity search for this article.



