From 2b2195521e605777dcf3bbd84ad668e2874b3d15 Mon Sep 17 00:00:00 2001
From: zoonalink <zoonalink@gmail.com>
Date: Tue, 27 Dec 2022 23:05:44 +0000
Subject: [PATCH] Task2 - fixed minor oversight

---
 UFCFVQ-15-M_Programming_Task_2.ipynb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/UFCFVQ-15-M_Programming_Task_2.ipynb b/UFCFVQ-15-M_Programming_Task_2.ipynb
index a4d24e8..d847f7b 100644
--- a/UFCFVQ-15-M_Programming_Task_2.ipynb
+++ b/UFCFVQ-15-M_Programming_Task_2.ipynb
@@ -1482,7 +1482,7 @@
    ],
    "source": [
     "rho, p_value = spearmanr(students['score'], students['log_clicks'])\n",
-    "if p < 0.05:\n",
+    "if p_value < 0.05:\n",
     "    print(\"\\nBased on Spearman's Rank Correlation test, there is a statistically significant relationship between engagement and attainment (rho = {:.3f}, p = {:.3f})\".format(rho, p_value))\n",
     "else: \n",
     "    print(\"\\nBased on Spearman's Rank Correlation test, there is no statistically significant relationship between engagement and attainment (rho = {:.3f}, p = {:.3f})\".format(rho, p_value))\n"
@@ -1656,7 +1656,7 @@
     "W_statistic, p_value = levene(disabled_yes_score, disabled_no_score)\n",
     "\n",
     "# print the W-statistic and p-value\n",
-    "if p < 0.05:\n",
+    "if p_value < 0.05:\n",
     "    print(\"Based on Levene's test, there is a statistically significant difference in variance between the two groups (W = {:.3f}, p = {:.3f})\".format(W_statistic, p_value))\n",
     "else:\n",
     "    print(\"Based on Levene's test, there is no statistically significant difference in variance between the two groups (W = {:.3f}, p = {:.3f})\".format(W_statistic, p_value))\n",
-- 
GitLab