Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Shapiro Test | Normality Check
The Art of A/B Testing
course content

Course Content

The Art of A/B Testing

Shapiro Test

The Shapiro Test is a statistical test that is used to test the hypothesis of a normal distribution. It compares the distribution of the data with a normal distribution.

The null hypothesis assumes that the data are normally distributed. If the p-value is below the significance level (below 0.05), then the null hypothesis is rejected.

In such a case, we can argue that the data is not normally distributed (the alternative hypothesis is accepted).

Let's run the Shapiro Test for the first columns from the control and test groups at the same time:

Great! We got two results.

The higher the Statistic value, the more evidence is found in favor of a normal distribution. The p-value in both groups is high (greater than 0.05), which means we accept the null hypothesis.

Both columns are normally distributed.

Note

If we have more than 5 000 observations, it is better to use the Kolmogorov-Smirnov test. Its use is similar to the Shapiro test.

Can we be sure of a normal distribution by looking at the results of the Shapiro test?

Select the correct answer

Everything was clear?

Section 2. Chapter 7
We're sorry to hear that something went wrong. What happened?
some-alt