Shapiro-Wilk and Shapiro-Francia normality tests.

Shapiro-Wilk & Shapiro-Francia parametric hypothesis test of composite normality.
32.3K Downloads
Updated 18 Jun 2014

View License

Shapiro-Wilk parametric hypothesis test of composite normality, for sample size 3<= n <= 5000. Based on Royston R94 algorithm.
This test also performs the Shapiro-Francia normality test for platykurtic samples.

Cite As

Ahmed BenSaïda (2026). Shapiro-Wilk and Shapiro-Francia normality tests. (https://au.mathworks.com/matlabcentral/fileexchange/13964-shapiro-wilk-and-shapiro-francia-normality-tests), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.1.0.0

- Improved precision for sample size = 3;
- Added detailed references;
- Removed the TAIL option (not needed);
- Minor bug fixes.

1.0.0.0

Change the value in line 136 to 0.26758 instead of 0.026758 (Shapiro-Francia) to correct the significance level. Thanks to Kent Parsons for his remarks.