diff --git a/UFCFVQ-15-M_Programming_Task_2.ipynb b/UFCFVQ-15-M_Programming_Task_2.ipynb index a4d24e8fccc53db77400ca58033f1bbb81ce5f58..d847f7bc72123f833b657865faa1c0c1af4ff0b2 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",