statable Statistics for study and research

Is it normally distributed? Shapiro-Wilk test and Q-Q plot

In brief

Many methods (t test, analysis of variance, Pearson correlation, regression) assume that certain values are approximately normally distributed: in a group comparison the values within each group, in regression the residuals (the deviations from the line). With larger samples, what matters most is that the means behave roughly normally. Under "How is something distributed?" Statable tests each number column as a whole with the Shapiro-Wilk test and shows it in a chart. For a group comparison, the shape within the groups matters, not that of the whole column.

The Shapiro-Wilk test

Lilliefors as a second test

Next to Shapiro-Wilk there is the Lilliefors test (Kolmogorov-Smirnov with estimated mean and SD). It is read in the same way and is usually less powerful. More in the article "Goodness-of-fit tests".

The Q-Q plot

Under "Charts" → "Show numbers as" you can choose between histogram, box plot and Q-Q plot. In the Q-Q plot each value is a point against the value a normal distribution would predict. If the points lie close to the line, the normal distribution fits. Curves show skewness, fanning out at the ends shows outliers or heavy tails. The histogram can additionally show the normal curve. In regression the same is available as "Q-Q plot of the residuals".

What if it does not fit?

Typical example

Reaction times are almost always right-skewed: a few very slow answers pull the mean up. The test shows p < .001, the Q-Q plot bends upward at the top end, the median describes the center better.

Shapiro-Wilk: W = .912, p < .001

Related

Open in Statable