Normality tests

Practicing Statistics Interview Questions in R

Zuzanna Chmielewska

Actuary

normal distribution

Practicing Statistics Interview Questions in R

Testing normality

Statistical tests

  • Shapiro-Wilk test
  • Kolmogorov-Smirnov test

Visual measure

  • Q-Q plot
Practicing Statistics Interview Questions in R

Shapiro-Wilk test

hypotheses of the Shapiro-Wilk test

Practicing Statistics Interview Questions in R

Shapiro-Wilk test

...has the best power for a given significance!

1 Razali, Nornadiah; Wah, Yap Bee (2011). "Power comparisons of Shapiro–Wilk, Kolmogorov–Smirnov, Lilliefors and Anderson–Darling tests"
Practicing Statistics Interview Questions in R

P-value

two cats fighting labelled H0 and H1

Practicing Statistics Interview Questions in R

Shapiro-Wilk test

hypotheses of the Shapiro-Wilk test

Practicing Statistics Interview Questions in R

Kolmogorov-Smirnov test

Kolmogorov-Smirnov test

Practicing Statistics Interview Questions in R

Kolmogorov-Smirnov test

Kolmogorov-Smirnov test

Practicing Statistics Interview Questions in R

Kolmogorov-Smirnov test

hypotheses of the Kolmogorov-Smirnov test

Practicing Statistics Interview Questions in R

Q-Q plot

Practicing Statistics Interview Questions in R

Q-Q plot

Practicing Statistics Interview Questions in R

Q-Q plot

Practicing Statistics Interview Questions in R

Q-Q plot

Practicing Statistics Interview Questions in R

Transforming data for normality

right-skewed distribution

Practicing Statistics Interview Questions in R

Transforming data for normality

transformation of a distribution into a normal distribution

Practicing Statistics Interview Questions in R

Checking normality in R

Method Function
Shapiro-Wilk test shapiro.test(x)
Kolmogorov-Smirnov test ks.test(x, y = "pnorm")
Q-Q plot qqnorm(x); qqline(x)
Practicing Statistics Interview Questions in R

Summary

  • normality tests
    • Shapiro-Wilk test
    • Kolmogorov-Smirnov test
  • p-value
  • Q-Q plot
  • data transformation
  • checking normality in R
Practicing Statistics Interview Questions in R

Let's practice!

Practicing Statistics Interview Questions in R

Preparing Video For Download...