Skip to content

Bartlett Test¤

stamox.hypothesis.bartlett_test(*samples: Sequence[ArrayLike], *, axis = 0) -> BartlettTest ¤

Calculates the Bartlett test statistic for multiple samples.

Parameters:

Name Type Description Default
*samples Sequence[ArrayLike]

A sequence of 1-D arrays, each containing a sample of scores. All samples must have the same length.

()

Returns:

Type Description
BartlettTest

The Bartlett Test object.

Examples:

>>> from stamox.functions import bartlett_test
>>> bartlett_test([1, 2, 3], [1, 2, 3])
BartlettTest(statistic=0.0, parameters=1, p_value=1.0)

stamox.hypothesis.BartlettTest ¤

Class for performing a Bartlett's test.

This class is used to perform a Bartlett's test, which tests the null hypothesis that all input samples are from populations with equal variances.

Attributes:

Name Type Description
statistic float

The test statistic.

parameters int

The degrees of freedom.

p_value float

The p-value of the test.