Johnson transformation: SB, SL and SU explained with an example
The Johnson transformation converts nonnormal data into approximately normal data by choosing one of three families of curves proposed by N. L. Johnson in 1949: SB for data bounded on both sides, SL for lognormal-type data bounded on one side, and SU for unbounded data with long tails. It handles shapes the Box-Cox transformation cannot, including left skew, values below zero and data squeezed against an upper limit. Once the data are normal, you can run a normal capability analysis on the transformed values and limits.
When to use it
- The data are not normal, and the Box-Cox transformation either cannot be used (zeros, negative values) or does not produce normal data.
- The data are skewed to the left, or bounded above, such as purity close to 100%, yield, or a dimension pushed against a hard stop.
- You want normal-based capability indices and PPM without choosing a named distribution yourself.
- You have at least 30 values from a stable process, preferably many more, because the fit relies on percentiles of the data.
How it works
Each family transforms x into a standard normal variable z, with shape parameters γ and η (η > 0), a location ε and a scale λ (λ > 0):
SB: z = γ + η ln((x − ε) / (λ + ε − x)) for ε < x < ε + λ
SL: z = γ + η ln(x − ε) for x > ε
SU: z = γ + η sinh⁻¹((x − ε) / λ)A common way to choose the family and its parameters is the percentile method of Slifker and Shapiro (1980):
- Pick a value z > 0 and find the data percentiles that correspond to −3z, −z, z and 3z on the normal scale: x₋₃, x₋₁, x₁ and x₃.
- Compute the three gaps m = x₃ − x₁, n = x₋₁ − x₋₃ and p = x₁ − x₋₁.
- The ratio mn/p² decides the family: greater than 1 means SU (tails longer than normal), less than 1 means SB (shorter, bounded tails), and equal to 1 means SL.
- Solve for the four parameters so that the four percentiles map exactly to −3z, −z, z and 3z.
Because the result depends on z, programs try a range of z values (for example 0.25 to 1.25) and keep the transformation whose output passes a normality test with the highest p-value. With 30 values, only z up to about 0.6 can be used, because 3z must stay within the observed percentiles.
Transform the specification limits with the same formula. For an SB fit, a limit outside the range ε to ε + λ means the fitted model puts no product beyond that limit, which is a strong claim to check against the data.
Example
A solvent plant must deliver purity of at least 99.0% (LSL = 99.0, no upper limit). Assay results can slightly exceed 100% because of measurement error. Thirty consecutive lots, in %:
99.66, 99.77, 99.99, 99.91, 99.38, 99.80, 99.66, 99.83, 99.39, 99.85, 99.85, 99.99, 99.86, 99.89, 99.42, 100.02, 99.30, 99.95, 99.73, 99.59, 99.65, 99.65, 99.87, 99.78, 99.98, 99.33, 99.80, 99.59, 99.92, 99.25
The data are skewed to the left, toward the limit. The mean is 99.722 and the standard deviation 0.2261; the Anderson-Darling test rejects normality (A² = 0.907, p = 0.018). A normal capability analysis would give PPL = (99.722 − 99.0)/(3 × 0.2261) = 1.06 and about 700 PPM below 99.0%.
Searching z from 0.25 upward, the best transformation comes at z = 0.34. The four percentiles, by the (n + 1)p rule, are x₋₃ = 99.388, x₋₁ = 99.660, x₁ = 99.850 and x₃ = 99.957. Then m = 0.107, n = 0.272, p = 0.190, and mn/p² = 0.81, so the family is SB. The fitted parameters are γ = −1.157, η = 0.827, ε = 98.601 and λ = 1.453, which bound the data between 98.60% and 100.05%; the upper bound sits close to the physical 100%.
The transformed data pass the normality test (A² = 0.224, p = 0.81). The transformed limit is LSL* = −1.157 + 0.827 × ln((99.0 − 98.601)/(98.601 + 1.453 − 99.0)) = −1.961. The transformed values have mean 0.053 and standard deviation 0.842, so:
PPL = (0.053 − (−1.961)) / (3 × 0.842) = 0.80The expected fraction below 99.0% is about 8,400 PPM (0.84%).
How to read the results
- The normal answer was too kind. On the raw scale, PPL was 1.06 and about 700 PPM. After the transformation, PPL is 0.80 and about 8,400 PPM: the long left tail, where the limit is, is heavier than a normal curve allows.
- The tail estimate is uncertain. Other z values from 0.33 to 0.61 also give acceptable fits (p from 0.43 to 0.81), with expected PPM between about 2,900 and 15,800. All of them say the process is not capable, but the exact PPM should not be quoted to three digits from 30 lots.
- The fitted bounds make physical sense. An SB fit with an upper bound near 100% is reassuring. A fitted bound in an impossible place would be a warning sign.
- Act on the low lots. Five lots are below 99.4%. Finding what they share (raw material lot, column regeneration, operator) does more than any transformation.
Common mistakes
- Forgetting to transform the limits. The capability indices compare transformed data with transformed limits, never with the original ones.
- Trusting a limit outside an SB range. If LSL falls below ε, the SB model predicts 0 PPM, only because the fitted curve stops there.
- Using it as a black box with few data. With 30 values, several transformations fit almost equally well and give quite different tails. Report the range or collect more data.
- Transforming an unstable process. A shift in the middle of the data creates skew that no transformation should hide. Check a control chart first.
Frequently asked questions
When should I choose Johnson over Box-Cox?
Try Box-Cox first for positive, right-skewed data; it is simpler to explain. Use Johnson when Box-Cox fails to produce normal data, when the data are skewed left or bounded above, or when they include zero or negative values.
What do SB, SL and SU stand for?
S for system, and B, L and U for bounded, lognormal and unbounded. SB curves have a lower and an upper bound, SL curves have only a lower bound, and SU curves extend without limit in both directions.
Can I use the transformation in a control chart?
Yes. Apply the same fitted formula to new data and chart the transformed values. Keep the parameters fixed; refitting them on every new batch would move the chart's scale.
Why does the selected z change the result so much?
The method matches four percentiles exactly. With few data, those percentiles are noisy, and slightly different ones produce noticeably different tails. That is a limit of the data, not of the formula.