When to use it
Use before ANOVA or independent t-tests to verify equal variance assumptions.
Required Inputs
- Sample groups data
- Center metric choice (Mean / Median / Trimmed Mean)
Perform Levene's test or Brown-Forsythe test for homoscedasticity across two or more sample groups.
Run this test live in StatLab npm i @statlab/coreUse before ANOVA or independent t-tests to verify equal variance assumptions.
W = [ (N - k)/(k - 1) ] * [ Σ n_i (Z̄_i. - Z̄..)² / Σ Σ (Z_ij - Z̄_i.)² ], where Z_ij = |Y_ij - Ỹ_i|
from scipy import stats
stat, p = stats.levene(g1, g2, g3, center='median')
print(f"W={stat:.4f}, p={p:.4f}")
library(car)
leveneTest(val ~ group, data = df, center = median)
import { leveneTest } from '@statlab/core';
const res = leveneTest([g1, g2, g3]);
Continuous A/B testing, statistical telemetry analysis, and automated feedback loops for live backend services.
Explore VoxelPulse →Fixed-price AI release-readiness sprints, automated regression testing, and reliability statistical benchmarks.
Explore VoxelAssurance →Explore static calculators across the StatLab inference engine suite.