Shapiro-Wilk and Shapiro-Francia normality tests.
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
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox > Probability Distributions and Hypothesis Tests > Hypothesis Tests >
Tags
Acknowledgements
Inspired: SimOutUtils, test, BoxPlotPro, Weighted Nonlinear Curve Fit Script with Plotter, Reference Interval Verification and Definition
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.1.0.0 | - Improved precision for sample size = 3;
|
||
| 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. |
