naginterfaces.library.nonpar.gofstat_anddar_exp¶
- naginterfaces.library.nonpar.gofstat_anddar_exp(issort, y)[source]¶
gofstat_anddar_exp
calculates the Anderson–Darling goodness-of-fit test statistic and its probability for the case of an unspecified exponential distribution.For full information please refer to the NAG Library document for g08cl
https://support.nag.com/numeric/nl/nagdoc_30.2/flhtml/g08/g08clf.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.
- 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.
- (errno )
The data in must be greater than zero.
- 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