public class Bartlett extends HypothesisTest
k samples are from populations with equal variances, hence homoscedasticity.
Some statistical tests, for example ANOVA, assume that variances are equal across groups or samples.
A homoscedasticity test, such as the Bartlett test, can be used to verify that assumption.
Bartlett's test is sensitive to departures from normality.
That is, if the samples come from non-normal distributions, then Bartlett's test may simply be testing for non-normality.
The Levene and BrownForsythe tests are alternatives to the Bartlett test that are less sensitive to departures from normality.
The R equivalent function is bartlett.test.| Constructor and Description |
|---|
Bartlett(double[]... samples)
Perform the Bartlett test to test for equal variances across the groups.
|
| 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, oneSidedPvaluepublic Bartlett(double[]... samples)
samples - samplespublic String getNullHypothesis()
HypothesisTestgetNullHypothesis in class HypothesisTestpublic String getAlternativeHypothesis()
HypothesisTestgetAlternativeHypothesis in class HypothesisTestpublic double statistics()
HypothesisTeststatistics in class HypothesisTestpublic double pValue()
HypothesisTestpValue in class HypothesisTestCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.