Spread-Level Plot (Power Transformation for Equal Spread)
A spread-level plot shows whether variability grows with the level of the data. For groups it plots the log of each group's hinge spread against the log of its median; for a regression it plots the log of the absolute studentized residuals against the log of the fitted values. If the points follow a line with slope b, raising the data to the power 1 - b makes the spread roughly constant, with power 0 meaning a log transformation.
산포-수준 그림은 자료의 수준이 높아질수록 변동이 커지는지 보여 줍니다. 집단 자료에서는 각 집단 사분 범위(힌지 간격)의 로그를 중앙값의 로그에 대해 그리고, 회귀에서는 스튜던트화 잔차 절댓값의 로그를 적합값의 로그에 대해 그립니다. 점들이 기울기 b의 직선을 따르면 자료를 1 - b 제곱으로 변환할 때 산포가 거의 일정해지며, 0제곱은 로그 변환을 뜻합니다.
Does the spread of my data grow with its level, and which power transformation would make it even?
자료의 퍼짐이 수준에 따라 커지는지, 어떤 거듭제곱 변환을 쓰면 고르게 되는지 어떻게 알 수 있습니까?
The method returns the slope of the log spread on log level with its confidence interval and R squared, the suggested power 1 - b and the nearest value on the ladder of powers, plus the plot points.
When to use Spread-Level Plot (Power Transformation for Equal Spread)
- Groups with larger medians also look more spread out.
- Regression residuals fan out as fitted values increase.
- You want a data-based choice between log, square root and other powers.
When to use something else
- You want a likelihood-based transformation of the outcome: use Box-Cox Transformation for Regression
- You need a formal test of unequal residual variance: use Heteroscedasticity Test Battery (Breusch-Pagan, Koenker, White, Goldfeld-Quandt, Glejser, Harvey, Park)
- You want to compare group variances directly: use Levene's Test
Assumptions and requirements
- Positive outcome (or a start constant)
- Spread related to level by a power law
- At least three groups or a regression with varying fitted values
What the analysis reports
- Slope with confidence interval
- Suggested power and ladder value
- Plot of log spread against log level
How to report it
The spread-level plot had slope b = [value] (95% CI [value] to [value]), suggesting a power of [value], so the outcome was log-transformed.
Related methods
How this method is validated
이 방법의 검증 근거
- Independent computation. 2 reference tests compare the results with SciPy and statsmodels at a stated tolerance of 1e-9.
독립 계산. SciPy·statsmodels 대조 참조 시험 2건 통과(허용오차 1e-9).
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Spread-Level Plot (Power Transformation for Equal Spread) on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and predictor (feature) columns
- Price
- 250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.