Development of Excel Functions for the Shapiro-Wilk Test Based on Royston’s Algorithm

Main Article Content

Zoltán Fabulya
György Hampel
Anita K
Mártha Bernadett Béresné

Abstract

As the goal of our research, we developed functions that can be used on an Excel spreadsheet, which are suitable for testing the normal distribution of a statistical population. Our functions use Royston's algorithm, which is an extension of the Shapiro-Wilk test, the strongest test for normality. Thus, the evaluation of a sample with between 4 and 2,000 elements can be carried out with approximate calculations so that we can decide on normality by calculating the significance level, avoiding the use of the critical values of the Shapiro-Wilk test given in the table. Evaluations on the Excel spreadsheet can be automated using functions, therefore providing a faster and more convenient technique than statistical program packages. The programming of the functions was provided by the Microsoft Excel Visual Basic for Applications service. By transforming the Royston formulas, a function was also created that gives the critical value of the test for any first-order error probability.

Downloads

Download data is not yet available.

Article Details

How to Cite
Fabulya, Zoltán, György Hampel, Anita Kiss, and Bernadett Béresné Mártha. 2023. “Development of Excel Functions for the Shapiro-Wilk Test Based on Royston’s Algorithm”. Jelenkori Társadalmi és Gazdasági Folyamatok 18 (1-2):165-72. https://doi.org/10.14232/jtgf.2023.1-2.165-172.
Section
Digitalization and applied statistics
Author Biographies

Zoltán Fabulya, University of Szeged Faculty of Engineering

PhD, college associate professor

György Hampel, University of Szeged Faculty of Engineering

PhD, college associate professor

Anita K, University of Debrecen

phD, egyetemi adjunktus

Mártha Bernadett Béresné, Debreceni Egyetem Gazdaságtudományi Kar, Számviteli és Pénzügyi Intézet, Kontrolling nem önálló Tanszék (Debrecen)

PhD, egyetemi adjunktus

References

Matteson, B. L. (1995): Microsoft Excel Visual Basic Programmer’s Guide. MicrosoftPress, Washington.

Obádovics J. Gy. (2020): Valószínűségszámítás és matematikai statisztika, Scolar Kiadó Kft., Budapest.

Royston, P. (1982). Algorithm AS 181: The W Test for Normality. Journal of the Royal Statistical Society. Series C (Applied Statistics), 31 (2): 176–180. https://doi.org/10.2307/2347986

Royston, P. (1993). A Toolkit for Testing for Non-Normality in Complete and Censored Samples. Journal of the Royal Statistical Society. Series D (The Statistician), 42 (1): 37–43. https://doi.org/10.2307/2348109

Royston, P. (1995). Remark AS R94: A Remark on Algorithm AS 181: The W-test for Normality. Journal of the Royal Statistical Society. Series C (Applied Statistics), 44 (4): 547–551. https://doi.org/10.2307/2986146

Shapiro, S. S., Wilk, M. B. (1965). An Analysis of Variance Test for Normality (Complete Samples). Biometrika, 52 (3/4): 591–611. https://doi.org/10.2307/2333709

Thode, H. C. (2002). Testing For Normality (1st ed.). CRC Press. https://doi.org/10.1201/9780203910894

Zimmerman, M. W. (1996): Microsoft Office 97 Visual Basic Programmer’s Guide, MicrosoftPress, Washington.