Skip to content

Commit

Permalink
Update mannkendall comments
Browse files Browse the repository at this point in the history
  • Loading branch information
spestana committed Dec 9, 2020
1 parent 9d78ed8 commit e1c8487
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions modules/lab4/lab4-4.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -114,7 +113,7 @@
" \n",
" Original written by Simone Fatichi - [email protected]\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 - [email protected] (10/17/2019)\n",
" '''\n",
Expand Down

0 comments on commit e1c8487

Please sign in to comment.