-
Notifications
You must be signed in to change notification settings - Fork 10
Skew test
Maurice HT Ling edited this page Aug 13, 2021
·
3 revisions
Purpose: To test whether the sample data has normal skew.
Null hypothesis: Sample is drawn from a population with skew of normal distribution.
Alternate hypothesis: Sample is not drawn from a population with skew of normal distribution.
Code:
>>> from scipy import stats
>>> X = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
>>> result = stats.skewtest(X)
>>> print("Z-score = %.3f" % result[0])
Z-score = 1.024
>>> print("p-value = %.3f" % result[1])
p-value = 0.306
Reference:
- D’Agostino RB, A. J. Belanger AJ, D’Agostino Jr. RB. 1990. A suggestion for using powerful and informative tests of normality. American Statistician 44, 316-321.
Copyright (c) 2008-2024, Maurice HT Ling
Refereed Publications and Technical Reports
Abstracts and Other Un-Refereed Works
Autobiographic Verses (Poems that I wrote) and My Sayings