public class DAgostino extends HypothesisTest
It tests whether or not the given sample comes from a normally distributed population. The test is based on transformations of the sample kurtosis and skewness, and has power only against the alternatives that the distribution is skewed and/or kurtic.
The R equivalent function is dagoTest in fBasics.
| Modifier and Type | Field and Description |
|---|---|
double |
K2
test statistics K2
|
double |
pvalueZ1
the p-value for Z1
|
double |
pvalueZ2
the p-value for Z2
|
double |
Z1
Z1
|
double |
Z2
Z2
|
k, N, pValue, testStatistics| Constructor and Description |
|---|
DAgostino(double[] sample)
Perform D'Agostino's test to test for the departure from normality.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlternativeHypothesis()
Get a description of the alternative hypothesis.
|
java.lang.String |
getNullHypothesis()
Get a description of the null hypothesis.
|
isNullRejected, oneSidedPvalue, pValue, statisticspublic final double K2
public final double Z1
public final double Z2
public final double pvalueZ1
public final double pvalueZ2
public DAgostino(double[] sample)
sample - a samplepublic java.lang.String getNullHypothesis()
HypothesisTestgetNullHypothesis in class HypothesisTestpublic java.lang.String getAlternativeHypothesis()
HypothesisTestgetAlternativeHypothesis in class HypothesisTest