3.11.2.1.1. statsmodels.stats.adnorm.anderson_statistic

statsmodels.stats.adnorm.anderson_statistic(x, dist='norm', fit=True, params=(), axis=0)[source]

calculate anderson-darling A2 statistic

Parameters:

x : array_like

data

dist : ‘norm’ or callable

null distribution for the test statistic

fit : bool

If True, then the distribution parameters are estimated. Currently only for 1d data x, except in case dist=’norm’

params : tuple

optional distribution parameters if fit is False

axis : integer

If dist is ‘norm’ or fit is False, then data can be an n-dimensional and axis specifies the axis of a variable

Returns:

ad2 : float or ndarray

Anderson-Darling statistic