1.3.5.10. Levene Test for Equality of Variances
| 1. Exploratory Data Analysis 1.3. EDA Techniques 1.3.5. Quantitative Techniques | |||
| Purpose: Test for Homogeneity of Variances | Levene's test ( Levene 1960) is used to test if k samples have equal variances. Equal variances across samples is called homogeneity of variance. Some statistical tests, for example the analysis of variance, assume that variances are equal across groups or samples. The Levene test can be used to verify that assumption. Levene's test is an alternative to the Bartlett test. The Levene test is less sensitive than the Bartlett test to departures from normality. If you have strong evidence that your data do in fact come from a normal, or nearly normal, distribution, then Bartlett's test has better performance. | ||
| Definition | The Levene test is defined as: | ||
| Levene's Test Example | Levene's test, based on the median, was performed for the GEAR.DAT data set. The data set includes ten measurements of gear diameter for each of ten batches for a total of 100 measurements. ```text | ||
| H0: σ12 = ... = σ102 | |||
| Ha: σ12 ≠ ... ≠ σ102 |
Test statistic: W = 1.705910 Degrees of freedom: k-1 = 10-1 = 9 N-k = 100-10 = 90 Significance level: α = 0.05 Critical value (upper tail): Fα,k-1,N-k = 1.9855 Critical region: Reject H0 if F > 1.9855
We
| *Question* | Levene's test can be used to answer the following question: - Is the assumption of equal variances valid? |
| *Related Techniques* | [Standard Deviation Plot](https://www.itl.nist.gov/div898/handbook/eda/section3/sdplot.htm) [Box Plot](https://www.itl.nist.gov/div898/handbook/eda/section3/boxplot.htm) [Bartlett Test](/u/6357b2ead4af48f7) [Chi-Square Test](/u/68b94f1c808e9d23) [Analysis of Variance](/u/e358b47166d48c46) |
| *Software* | The Levene test is available in some general purpose statistical software programs. Both [Dataplot code](https://www.itl.nist.gov/div898/handbook/eda/section3/eda35a.dp) and [R code](https://www.itl.nist.gov/div898/handbook/eda/section3/eda35a.r) can be used to generate the analyses in this section. These scripts use the [GEAR.DAT](https://www.itl.nist.gov/div898/handbook/datasets/GEAR.DAT) data file. |