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
- Yunusa Idris, Effect of Reciprocal Constructivist Instructional Approach on Middle Basic Science Students’ Academic Achievement of Kaduna Education Zone, Kaduna State , Communication In Physical Sciences: Vol. 8 No. 2 (2022): VOLUME 8 ISSUE 2
- Ayomide Ayomikun Ajiboye, Muslihat Adejoke Gaffari, Onaara Enitan Obamuwagun, Predictive Analytics in Sport Management: Applying Machine Learning Models for Talent Identification and Team Performance Forecasting , Communication In Physical Sciences: Vol. 12 No. 7 (2025): VOLUME 12 ISSUE 7
- Hamza Abubakar Hamza, Abubakar Danjuma Bajoga, Yusuf Mohammed Auwal, Hankouraou Seydou, Determination of Some Physicochemical Properties, Heavy Metals and Micronutrients of Some Energy Drinks Available in Nigeria , Communication In Physical Sciences: Vol. 12 No. 3 (2025): VOLUME 12 ISSUE 3
- Emmanuel Wilfred Okereke, Sunday Ngozi Gideon, Kingsley Uchendu, Statistical Properties and Application of Bagui-Liu-Zhang Distribution , Communication In Physical Sciences: Vol. 8 No. 3 (2022): VOLUME 8 ISSUE 3
- Dahunsi Samuel Adeyemi., Enhancing Cloud Security Using Predictive AI Analysis: A Systematic Review of Literature , Communication In Physical Sciences: Vol. 12 No. 8 (2025): VOLUME 12 ISSUE 8
- Ndidiamaka Justina Agbo, Pius Oziri Ukoha, Uchechukwu Susan Oruma, Tania Groutso, Oguejiofo Theophilus Ujam, Solomon Ejike Okereke, Crystal Structure, in Silico Studies and Anti-diabetic Potentials of 3-e-(1,5-dimethyl-3-oxo-2-phenyl-2,3-dihydro-1h-pyrazol-4-yl)hyd -razinylidene]pentane-2,4-dione(hdpp)and its Cu(II) and Ni(II) complexes , Communication In Physical Sciences: Vol. 11 No. 4 (2024): VOLUME 11 ISSUE 4
- L. I. Ibrahim, A. Abdulazzez, A. Usman, U. M. Badeggi, A. I. Muhammad, Comparative Study of the Medicinal Values of Indigoferatinctoria and Gossypium Hirsutum , Communication In Physical Sciences: Vol. 7 No. 4 (2021): VOLUME 7 ISSUE 4
- 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
You may also start an advanced similarity search for this article.



