BartlettTest
Test for homogeneity of variances across groups.
This helper test evaluates whether several independent samples have the same variance, which is a common assumption for parametric procedures such as ANOVA. It is appropriate when the samples are approximately normal, and it is often used as a preliminary check before applying variance-based analyses.
References
Bartlett, M. S. (1937). Properties of Sufficiency and Statistical Tests. Proceedings of the Royal Society of London. Series A, Mathematical and Physical Sciences, 160(901), 268-282.
Methods
get_metadata(cls) -> dict
BartlettTestMetadata for Bartlett's Test.
run(self, scores: dict[str, list[float]], alpha: float = 0.05, **kwargs) -> DashAI.back.statistical_tests.statistical_test_result.StatisticalTestResult
BartlettTestRun Bartlett's test for equality of variances across groups.
Parameters
- scores : dict[str, list[float]]
- Mapping from group names to score vectors whose variances will be compared.
- alpha : float, optional
- Significance level used to decide whether the variance equality assumption is rejected, by default 0.05.
Returns
- StatisticalTestResult
- A result object containing the Bartlett statistic, p-value, and the significance outcome.