Last active
January 2, 2021 18:29
-
-
Save shks/88390e2c7fb8950c076bd6661ac59bd8 to your computer and use it in GitHub Desktop.
doShapirotest in python
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
from scipy.stats import shapiro | |
#https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.shapiro.html | |
def doShapirotest(data): | |
stat, p = shapiro(data) | |
print("Shapirotest Wstat , p-value", stat, p) | |
if(p < 0.05): | |
print("USE NON-PARAMETRIC TEST :(p < 0.05)") | |
else: | |
print("USE PARAMETRIC TEST : (p > 0.05)") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment