Skip to content

Commit 62d876d

Browse files
author
thomas-haslwanter
committed
statsmodels has renamed "lillifors" to "lilliefors", required for ISP/Code_Quantlets/07_CheckNormality_CalcSamplesize/checkNormality/ISP_checkNormality.py
1 parent 73a15df commit 62d876d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ISP/Code_Quantlets/07_CheckNormality_CalcSamplesize/checkNormality/ISP_checkNormality.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- the Kolmogorov-Smirnov(Kolmogorov-Smirnov) test should only be used for large sample numbers (>300)
77
'''
88

9-
# Copyright(c) 2015, Thomas Haslwanter. All rights reserved, under the CC BY-SA 4.0 International License
9+
# Copyright(c) 2020, Thomas Haslwanter. All rights reserved, under the CC BY-SA 4.0 International License
1010

1111
# Import standard packages
1212
import numpy as np
@@ -15,7 +15,7 @@
1515
import pandas as pd
1616

1717
# additional packages
18-
from statsmodels.stats.diagnostic import lillifors
18+
from statsmodels.stats.diagnostic import lilliefors
1919

2020
def check_normality():
2121
'''Check if the distribution is normal.'''
@@ -52,8 +52,8 @@ def check_normality():
5252
_, pFewVals['Shapiro-Wilk'] = stats.shapiro(fewData)
5353

5454
# Or you can check for normality with Lilliefors-test
55-
_, pVals['Lilliefors'] = lillifors(data)
56-
_, pFewVals['Lilliefors'] = lillifors(fewData)
55+
_, pVals['Lilliefors'] = lilliefors(data)
56+
_, pFewVals['Lilliefors'] = lilliefors(fewData)
5757

5858
# Alternatively with original Kolmogorov-Smirnov test
5959
_, pVals['Kolmogorov-Smirnov'] = stats.kstest((data-np.mean(data))/np.std(data,ddof=1), 'norm')

0 commit comments

Comments
 (0)