Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Anderson-Darling test in python

from scipy.stats import anderson
data = [0.873, 2.817, 0.121, -0.945, -0.055, -1.436, 0.360, -1.478, -1.637, -1.869]
result = anderson(data)
print('stat=%.3f' % (result.statistic))
for i in range(len(result.critical_values)):
	sl, cv = result.significance_level[i], result.critical_values[i]
	if result.statistic < cv:
		print('Probably Gaussian at the %.1f%% level' % (sl))
	else:
		print('Probably not Gaussian at the %.1f%% level' % (sl))
Comment

PREVIOUS NEXT
Code Example
Python :: python ternary statement 
Python :: dependency inversion 
Python :: python time.sleep 
Python :: python __add__ 
Python :: py random.sample 
Python :: classes in python 
Python :: position text in a box matplotlib 
Python :: pyqt popup yes no 
Python :: python get focused window 
Python :: np append 
Python :: python yield from 
Python :: round to the nearest 0.5 
Python :: migrate database in django 
Python :: dataframe rolling first eleemnt 
Python :: search whole drive for a file in python 
Python :: bst deleting in python 
Python :: Print characters from a string that are present at an even index number 
Python :: what is fn.call 
Python :: create database tables python 
Python :: change group box border color pyqt5 
Python :: How to change application icon of pygame 
Python :: base64 python 
Python :: 151 - Power Crisis solution in python 
Python :: python list sum 
Python :: python stop stdout 
Python :: how to know the column number of a dataframe in pandas 
Python :: 2d array python 
Python :: python convert docx to pdf 
Python :: django delete table data 
Python :: union type python 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =