-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 - [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", | ||
|