Mathwords logoMathwords

Shapiro-Francia Test — Definition, Formula & Example

The Shapiro-Francia test is a hypothesis test that checks whether a sample could have come from a normal distribution. It turns the straightness of a normal probability plot into a single number, W'.

Given ordered observations x(1)≤⋯≤x(n)x_{(1)} \le \cdots \le x_{(n)} and expected standard normal order statistics m1,…,mnm_1, \dots, m_n, the Shapiro-Francia statistic W′W' is the squared correlation between the x(i)x_{(i)} and the mim_i. It tests H0H_0: the population is normally distributed. Since 0<W′≤10 < W' \le 1, values well below 1 count as evidence against H0H_0.

Key Formula

W′=(∑i=1nmi x(i))2(∑i=1nmi2)(∑i=1n(xi−xˉ)2),mi≈Φ−1 ⁣(i−3/8n+1/4)W' = \frac{\left(\sum_{i=1}^{n} m_i\, x_{(i)}\right)^2}{\left(\sum_{i=1}^{n} m_i^2\right)\left(\sum_{i=1}^{n} (x_i - \bar{x})^2\right)}, \qquad m_i \approx \Phi^{-1}\!\left(\frac{i - 3/8}{n + 1/4}\right)
Where:
  • x(i)x_{(i)} = The i-th smallest data value
  • mim_i = Normal score: the z-value the i-th smallest point should have if the data are normal (Blom's approximation shown)
  • xˉ\bar{x} = Sample mean
  • Φ−1\Phi^{-1} = Inverse of the standard normal cumulative distribution (invNorm on a calculator)
  • nn = Sample size

Worked Example

Problem: Five apples weigh 6, 7, 8, 9, and 15 ounces. For n=5n = 5, the normal scores from Blom's approximation, rounded to two decimals, are −1.18,−0.50,0,0.50,1.18-1.18, -0.50, 0, 0.50, 1.18. Compute W′W'.
Step 1: Find the mean and the sum of squared deviations. Then add up the squared normal scores.
xˉ=455=9,∑(xi−xˉ)2=9+4+1+0+36=50,∑mi2=2(1.3924+0.25)=3.2848\bar{x} = \frac{45}{5} = 9, \quad \sum (x_i - \bar{x})^2 = 9 + 4 + 1 + 0 + 36 = 50, \quad \sum m_i^2 = 2(1.3924 + 0.25) = 3.2848
Step 2: Pair each sorted weight with its normal score, then sum the products.
∑mix(i)=−7.08−3.5+0+4.5+17.7=11.62\sum m_i x_{(i)} = -7.08 - 3.5 + 0 + 4.5 + 17.7 = 11.62
Step 3: Substitute into the formula.
W′=11.6223.2848×50=135.0244164.24≈0.822W' = \frac{11.62^2}{3.2848 \times 50} = \frac{135.0244}{164.24} \approx 0.822
Answer: W′≈0.822W' \approx 0.822. The 15-ounce apple pulls the plot away from a straight line. Software that uses Royston's approximation turns this into a p-value of about 0.098. That is above 0.05, so you fail to reject normality. With only 5 apples, the test has very little power.

Why It Matters

In AP Statistics, you check the normal condition for small-sample t-procedures by looking at a normal probability plot. The Shapiro-Francia test makes that visual judgment objective. Biostatisticians and quality engineers often run it on regression residuals before they trust a t- or F-based result.

Common Mistakes

Mistake: Treating Shapiro-Francia and Shapiro-Wilk as the same test.
Correction: Shapiro-Wilk weights the data using the covariances among the normal order statistics. Shapiro-Francia uses only the expected normal scores, which makes it simpler to compute. The two statistics give slightly different values for the same data, so report which test you used.

Related Terms