About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
See full specifications

scripts default iconRoystest (Scripts) Publisher's description

It is well known that many multivariate statistical procedures call upon the assumption of multivariate normality (MVN)

It is well known that many multivariate statistical procedures call upon the assumption of multivariate normality (MVN). At least 50 different procedures have been proposed for this problem. Unfortunately, different conclusions about the MVN of a data set can be reached by different procedures (Mecklin and Mundfrom, 2005).

The Shapiro-Wilk test (Shapiro and Wilk, 1965), is generally considered to be an excellent test of univariate normality. It is only natural to extend it to the multivariate case, as done by Royston (1982). Simulation results have show Royston’s test to have very good Type I error control and power against many different alternative distributions. Further, Royston’s test involves a rather ingenious correction for the correlation between the variables in the sample.

Royston’s (1983) marginal method first tests each of the p variates for univariate normality with a Shapiro-Wilk statistic, then combines the p dependent tests into one omnibus test statistic for multivariate normality. Royston transforms the p-Shapiro-Wilk statistics into what he claims is an approximately Chi-squared random variable, with e (1< e <p) degrees of freedom. The degrees of freedom are estimated by taking into account possible correlation structures between the original p test statistics. This test has been found to behave well when the sample size is small and the variates are relatively uncorrelated (Mecklin and Mundfrom, 2005).

This m-file has a function to generate the Shapiro-Wilk's W statistic needed to feed the Royston's test for multivariate normality. It was taken from the Fortran Algorithm AS R94 (Royston, 1995) [URL address http://lib.stat.cmu.edu/apstat/181]. Here, we present both the options for the sample kurtosis type: 1) Shapiro-Francia for leptokurtic, and 2) Shapiro-Wilk for the platykurtic ones.

Syntax: function Roystest(X,alpha)

X - data matrix (Size of matrix must be n-by-p; data=rows,
indepent variable=columns)
alpha - significance level (default = 0.05)

- Royston's Multivariate Normality Test

System Requirements:

MATLAB 7 (R14)
Program Release Status: New Release
Program Install Support: Install and Uninstall

Roystest (Scripts) Tags:

Click on a tag to find related softwares

Is Roystest (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.