Levene Nonparametric Variance Test Calculator

Compare spread across groups using median-centered absolute deviations. Review summaries, p-value, graph, and exports instantly. Useful for audits, research, teaching, and quality checks today.

Group 1

Group 2

Group 3

Optional Group 4

Test Options

Use spaces, commas, or line breaks between values.

Actions

Results appear above this form after submission.

Example Data Table

Observation Group A Group B Group C
1121811
2142110
3151713
413209
5162214
6121912

Formula Used

This calculator transforms each observation into an absolute deviation from its group center: Zij = |Yij - Ci|.

The center Ci can be the median, mean, or trimmed mean. Median-centered analysis is often preferred when data contain skewness or outliers.

The test statistic is an ANOVA-style F ratio applied to the deviation values:

F = ((N - k) / (k - 1)) × [Σ ni(Z̄i - Z̄)2 / ΣΣ(Zij - Z̄i)2]

  • N = total observations across all groups
  • k = number of groups
  • Z̄i = mean deviation for group i
  • Z̄ = grand mean of all deviations

The p-value is computed from the F distribution with degrees of freedom (k - 1, N - k).

How to Use This Calculator

  1. Enter a name for each group.
  2. Paste numeric observations into each group box.
  3. Separate values with spaces, commas, or line breaks.
  4. Select a center method for deviation calculation.
  5. Set the significance level you want to use.
  6. Click Run Variance Test.
  7. Review the F statistic, p-value, and decision.
  8. Inspect the group summaries and Plotly graph.
  9. Use CSV or PDF export for documentation.

Understanding the Output

A small p-value suggests that at least one group differs in variability. A larger p-value suggests the observed variance differences may be explained by sampling noise.

Median-centered analysis is commonly chosen when distributions are not perfectly normal. Mean-centered analysis matches the classic Levene procedure. Trimmed mean can balance robustness and sensitivity.

Frequently Asked Questions

1. What does this test measure?

It checks whether groups have similar spread. The procedure compares absolute deviations from a chosen group center, then evaluates those deviations with an F statistic.

2. Why use the median-centered version?

The median-centered form is more robust when data contain outliers or skewness. Many analysts prefer it when normality is doubtful.

3. Is this the same as the classic Levene test?

Not exactly. The classic form centers observations around the mean. This calculator also supports median and trimmed mean centers for more robust variance testing.

4. How many groups can I compare?

This page provides four input areas. You can compare two, three, or four groups as long as each included group contains at least two observations.

5. What does a significant p-value mean?

A significant p-value suggests that variability is not equal across all groups. It does not identify which specific group differs most.

6. Does the test require normal data?

No. It is often used because it is less sensitive than raw variance comparisons. The median-centered version is especially useful with imperfect normality.

7. Can I use unequal sample sizes?

Yes. The method handles different sample sizes across groups. Just ensure every included group has enough observations for a meaningful spread estimate.

8. What should I do after finding unequal variance?

Consider robust methods, variance-stabilizing transformations, or analysis procedures that do not assume equal variance. Your next step depends on study design and goals.

Related Calculators