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
- Daniel Chukwunonso Chukwudi, Michael Oladunjoye, Geophysical Exploration of Coastal Saline Water Intrusion: A Study of Ikoyi and Banana Island, Lagos State , Communication In Physical Sciences: Vol. 9 No. 4 (2023): VOLUME 9 ISSUE 4
- Olalekan Lawrence Ojo, Joseph Sunday Ojo, Omotoyosi Omotayo Omoyele, Statistical Characterization of Surface Duct Conditions and their Implications on Microwave Propagation Over Lagos, Nigeria , Communication In Physical Sciences: Vol. 11 No. 4 (2024): VOLUME 11 ISSUE 4
- Atim Sunday Johnson, Idongesit Bassey Anweting, Idongesit Edem Okon, Electron Transfer Reactions of Tetrakis (2, 2- Bipyridine)-µ Oxodiiron(III) Complex and Dithionate Ion in Aqueous Acidic Media: Kinetic and Mechanistic Approach , Communication In Physical Sciences: Vol. 10 No. 1 (2023): VOLUME 10 ISSUE 1
- Enock Aninakwah, Isaac Aninakwah , Emmanuel Yeboah Okyere, Quantitative Analysis of Plastic Waste Accumulation in Coastal Ghana: Implications for Waste Management , Communication In Physical Sciences: Vol. 12 No. 3 (2025): VOLUME 12 ISSUE 3
- 1. Anthony I. G. Ekedegwa, Evans Ashiegwuike, Abdullahi Mohammed S. B, Seasonal Short-Term Load Forecasting (STLF) using combined Social Spider Optimisation (SSO) and African Vulture Optimisation Algorithm (AVOA) in Artificial Neural Networks (ANN) , Communication In Physical Sciences: Vol. 12 No. 3 (2025): VOLUME 12 ISSUE 3
- Temitope Sunday Adeusi, Ayodeji Aregbesola, Impact of Climatic Condition on the Life Cycle of Water Contaminants , Communication In Physical Sciences: Vol. 9 No. 4 (2023): VOLUME 9 ISSUE 4
- Nyeneime William Akpanudo, Ojeyemi Matthew Olabemiwo, Pore Parameters Analysis of Echinochloa pyramidalis leaf Dopped Silver Nanoparticles , Communication In Physical Sciences: Vol. 11 No. 4 (2024): VOLUME 11 ISSUE 4
- Christopher Ejeomo, Ufuomaefe Oghoje, Composition and Distribution of Polynuclear Aromatic Hydrocarbons Contamination in Surficial Coastal Sediments from Odidi Area of Delta State, Nigeria , Communication In Physical Sciences: Vol. 11 No. 4 (2024): VOLUME 11 ISSUE 4
- Chinwendu Olive Ozoeze, Okenwa Uchenna Igwe, Isolation and Characterizations of a Pentacyclic Glycoside from Methanolic Fraction of Allium sativum (Purple Garlic) Bulbs , Communication In Physical Sciences: Vol. 12 No. 3 (2025): VOLUME 12 ISSUE 3
- Dezzline Ondigo, Dr. Ann G. Ngari , Essential Oils from East African Ocimum Species as Potential Sources of Fragrances for Cosmetic Applications: A Review , Communication In Physical Sciences: Vol. 13 No. 3 (2026): Volume 13 Issue 3
You may also start an advanced similarity search for this article.



