naginterfaces.library.nonpar.gofstat_anddar_normal¶
- naginterfaces.library.nonpar.gofstat_anddar_normal(issort, y)[source]¶
gofstat_anddar_normal
calculates the Anderson–Darling goodness-of-fit test statistic and its probability for the case of a fully-unspecified Normal distribution.For full information please refer to the NAG Library document for g08ck
https://support.nag.com/numeric/nl/nagdoc_30.2/flhtml/g08/g08ckf.html
- Parameters
- issortbool
Set if the observations are sorted in ascending order; otherwise the function will sort the observations.
- yfloat, array-like, shape
, for , the observations.
- Returns
- ybarfloat
The maximum likelihood estimate of mean.
- yvarfloat
The maximum likelihood estimate of variance.
- a2float
, the Anderson–Darling test statistic.
- aa2float
The adjusted .
- pfloat
, the upper tail probability for the adjusted .
- Raises
- NagValueError
- (errno )
On entry, .
Constraint: .
- (errno )
and the data in is not sorted in ascending order.
- Notes
Calculates the Anderson–Darling test statistic (see
gofstat_anddar()
) and its upper tail probability for the small sample correction:for observations.
- References
Anderson, T W and Darling, D A, 1952, Asymptotic theory of certain ‘goodness-of-fit’ criteria based on stochastic processes, Annals of Mathematical Statistics (23), 193–212
Stephens, M A and D’Agostino, R B, 1986, Goodness-of-Fit Techniques, Marcel Dekker, New York