View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

4.7 | 6 ratings Rate this file 24 Downloads (last 30 days) File Size: 2.92 KB File ID: #3375 Version: 1.0




01 May 2003 (Updated )

Levene's test for homogeneity of variances.

| Watch this File

File Information

Levene's F test is used to test the null hypothesis that multiple population variances corresponding to multiplesamples are equal. Prior to the analysis the data are transforming to the absolute deviation of the mean. Then perform an one-way analysis of variance.

MATLAB release MATLAB 5.3 (R11)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
21 May 2014 gargouri

25 Feb 2014 Beate

Beate (view profile)

Great function. Thank you!

I changed the first line from
function[Levenetest] = Levenetest(X,alpha)
function[F, df1, df2, P] = Levenetest(X,alpha)

and suppressed all displays and prints (lines 87, 107:114, 144:153)

such that I can run multiple levene tests and save the results of each.

08 Jun 2012 John

John (view profile)

Checked out with another Excel Levene test I found online. Thanks!

04 Jun 2009 Farah

Farah (view profile)

works easily and well. Thanks!

16 Oct 2005 Marie Loukou

After the following indications kindly provided by the author,
1. Levenetest(X) %here it takes the default alpha value = 0.05

2. Levenetest(X,0.1) %here you should give an alpha value

alpha = 0.1;
3. Levenetest(X,alpha) %here previously you should define the alpha value

The test is a succes! Thanks a lot.

22 May 2005 Marie Loukou

Good test, thanks.
But for the last lines ("if P >= alpha..."), the following message appeared: "??? Error using ==> alpha
Too many output arguments".

07 May 2003

At the end of the third phrase of the description text a word of more should be eliminated (absolute).

09 May 2003

It was added an appropriate format to cite this file.

Contact us