public class ShapiroWilk extends HypothesisTest
shapiro.test
.Constructor and Description |
---|
ShapiroWilk(double[] sample)
Perform the Shapiro-Wilk test to test for the null hypothesis that a sample comes from a normally distributed population.
|
Modifier and Type | Method and Description |
---|---|
String |
getAlternativeHypothesis()
Get the description of the alternative hypothesis.
|
String |
getNullHypothesis()
Get a description of the null hypothesis.
|
double |
pValue()
Get the p-value for the test statistics.
|
double |
statistics()
Get the test statistics.
|
isNullRejected, nGroups, nObs, oneSidedPvalue
public ShapiroWilk(double[] sample)
sample
- a samplepublic String getNullHypothesis()
HypothesisTest
getNullHypothesis
in class HypothesisTest
public String getAlternativeHypothesis()
HypothesisTest
getAlternativeHypothesis
in class HypothesisTest
public double statistics()
HypothesisTest
statistics
in class HypothesisTest
public double pValue()
HypothesisTest
pValue
in class HypothesisTest
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.