Skip to content

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:

  1. 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.
Clone this wiki locally