LeveneTest<T>

Models & Types · AiDotNet.Evaluation.Statistics

Levene’s test for equality of variances across groups.

Implements: IStatisticalTest<T>

For Beginners

Levene’s test checks if groups have equal variance:

  • Important assumption for many statistical tests (t-test, ANOVA)
  • More robust than Bartlett’s test to non-normality
  • Uses deviations from group means or medians

How It Works

Variants:

  • Mean-based: Original Levene’s test
  • Median-based: Brown-Forsythe test (more robust)
  • Trimmed mean: Compromise between the two

Constructors

Constructor Summary
LeveneTest(CenterType<T> center) Initializes Levene’s test.

Properties

Property Summary
bool IsNonParametric { get; }
bool IsPaired { get; }
string Description { get; }
string Name { get; }

Methods

Method Summary
StatisticalTestResult<T> Test(T[][] groups) Tests if multiple groups have equal variances.