Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python mann kendall test

# credit to the post in the source link
# create dataset
data = [31, 29, 28, 28, 27, 26, 26, 27, 27, 27, 28, 29, 30, 29, 30, 29, 28]

# perform Mann-Kendall Trend Test
import pymannkendall as mk
mk.original_test(data)
>>> Mann_Kendall_Test(trend='no trend', h=False, p=0.422586268671707,
                      z=0.80194241623, Tau=0.147058823529, s=20.0,
                      var_s=561.33333333, slope=0.0384615384615, intercept=27.692307692)

# trend: increasing, decreasing, or no trend.
# h: True if trend is present. False if no trend is present.
# p: The p-value of the test. The lower the better
##### Mann - Kendall parameters
# z: The normalize test statistic.
# Tau: Kendall Tau.
# s: Mann-Kendal’s score
# var_s: Variance S
# slope: Theil-Sen estimator/slope
# intercept: Intercept of Kendall-Theil Robust Line
Comment

PREVIOUS NEXT
Code Example
Python :: how to find uncommon records of two dataframes 
Python :: f readlines python not working 
Python :: how to copy the list in python 
Python :: python __lt__ magic method 
Python :: python programm zu exe 
Python :: python delete elements from list / range 
Python :: python tkinter button image 
Python :: pyspark average group by 
Python :: **kwargs in python 
Python :: hide tkinter window 
Python :: pandas reset index start from 0 
Python :: Python using webbrowser 
Python :: word counter python 
Python :: tensorflow.keras.utils.to_categorical 
Python :: pandas transform 
Python :: how to convert string to datetime 
Python :: #pip install commands 
Python :: var_dump in python 
Python :: WARNING: This is a development server 
Python :: get mode using python 
Python :: python tutorial pdf 
Python :: ubuntu python3 as python 
Python :: kdeplot python 
Python :: web scraping using python code 
Python :: pytube get highest resolution 
Python :: python IndexError: list assignment index out of range 
Python :: python timestamp to string 
Python :: move files in python 
Python :: how to pop an exact number from a list in python 
Python :: plynomial regression implementation python 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =