diff --git a/modules/lab4/lab4-4.ipynb b/modules/lab4/lab4-4.ipynb index 3fa9d7a7..de402687 100644 --- a/modules/lab4/lab4-4.ipynb +++ b/modules/lab4/lab4-4.ipynb @@ -87,21 +87,20 @@ "def mann_kendall(V, alpha=0.05):\n", " '''Mann Kendall Test (adapted from original Matlab function)\n", " Performs original Mann-Kendall test of the null hypothesis of trend absence in the vector V, against the alternative of trend.\n", - " \n", " The result of the test is returned in reject_null:\n", " reject_null = True indicates a rejection of the null hypothesis at the alpha significance level. \n", " reject_null = False indicates a failure to reject the null hypothesis at the alpha significance level.\n", - " \n", + "\n", " INPUTS:\n", " V = time series [vector]\n", " alpha = significance level of the test [scalar] (i.e. for 95% confidence, alpha=0.05)\n", " OUTPUTS:\n", - " H = test result [1] Reject of Null Hypthesis [0] Insufficient evidence to reject the null hypothesis\n", + " reject_null = True/False (True: reject the null hypothesis) (False: insufficient evidence to reject the null hypothesis)\n", " p_value = p-value of the test\n", " \n", " From Original Matlab Help Documentation:\n", - " The significance level of a test is a threshold of probability a agreed\n", - " to before the test is conducted. A typical value of alpha is 0.05. If the p-value of a test is less than alpha,\n", + " The significance level of a test is a threshold of probability a agreed to before the test is conducted. \n", + " A typical value of alpha is 0.05. If the p-value of a test is less than alpha, \n", " the test rejects the null hypothesis. If the p-value is greater than alpha, there is insufficient evidence \n", " to reject the null hypothesis. \n", " The p-value of a test is the probability, under the null hypothesis, of obtaining a value\n", @@ -114,7 +113,7 @@ " \n", " Original written by Simone Fatichi - simonef@dicea.unifi.it\n", " Copyright 2009\n", - " $Date: 2009/10/03 $\n", + " Date: 2009/10/03\n", " modified: E.I. (1/12/2012)\n", " modified and converted to python: Steven Pestana - spestana@uw.edu (10/17/2019)\n", " '''\n",