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
- 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
- Edith Agberxonu, Abdulateef Disu, Chidin Dike, Toyosi Mustapha, Lawrence Abakah, Machine Learning and Artificial Intelligence in FinTech: Driving Innovation in Digital Payments, Fraud Detection, and Financial Inclusion , Communication In Physical Sciences: Vol. 9 No. 4 (2023): VOLUME 9 ISSUE 4
- Iwuji, Anayo Charles, Okoroafor, Promise Izuchukwu, Owo Awa, Josephine Ezinne, Extended Goal Programming DASH Diet Plan for Stroke Patients , Communication In Physical Sciences: Vol. 11 No. 4 (2024): VOLUME 11 ISSUE 4
- Aminat Folorunso Ajeboriogbon, Benjamin O. Adewuyi, Oluyemi O. Daramola, Heavy metal contamination as a major environmental and public health concern - A Review , Communication In Physical Sciences: Vol. 13 No. 4 (2026): Volume 13 Issue 4
- Imaobong T. Adenugba, Nkeneke E. Akpainyang , Emem I. Ntekpere, Eteyen A. Uko, Agnes M. Jones, Incidence of Tinea pedis and Eczema among Male and Female Students: Effect of Hydraulic Oil and Antifungal Creams , Communication In Physical Sciences: Vol. 6 No. 1 (2020): VOLUME 6 ISSUE 1
- Musa Ndamadu Farouq, Nwaze Obini Nweze, Monday Osagie Adenomon, Mary Unekwu Adehi, Derivation of a New Odd Exponential-Weibull Distribution , Communication In Physical Sciences: Vol. 11 No. 4 (2024): VOLUME 11 ISSUE 4
- Stephen Eyije Abechi, Casmir Emmanuel Gimba , Adamu Uzairu, Odike Jotham Ocholi, Comparative Analysis of Methods of Activated Carbon Surface Area Determination , Communication In Physical Sciences: Vol. 10 No. 1 (2023): VOLUME 10 ISSUE 1
- Eneni Roberts Inala, BIOACCUMULATION OF ENVIRONMENTAL CONTAMINANTS IN OYSTER (Crassostea sp.) TISSUES IN BAYELSA STATE, NIGERIA , Communication In Physical Sciences: Vol. 12 No. 4 (2025): VOLUME1 2 ISSUE 4
- Oluwafemi Samson Afolabi , Oluwafemi Samson Afolabi , Communication In Physical Sciences: Vol. 12 No. 4 (2025): VOLUME1 2 ISSUE 4
- Julius Femi Ademilua, Abidemi Ojo Olatunji, Edwin King Ehiorobo, Samira Sanni, The Influence of Environmental Management Practices and Supply Chain Integration on Technological Innovation Performance , Communication In Physical Sciences: Vol. 11 No. 4 (2024): VOLUME 11 ISSUE 4
You may also start an advanced similarity search for this article.



