Median Polish Decomposition (Two-Way and Space-Time Tables)
Decomposes a two-way (or three-way) table into an overall value, row effects, column effects and residuals by repeatedly removing medians. Because it uses medians, a few wild cells do not distort the effects and stand out in the residuals; it suits site-by-time tables such as monthly readings at monitoring stations.
이원(또는 삼원) 표를 중앙값을 반복해서 빼는 방식으로 전체값, 행 효과, 열 효과, 잔차로 나눕니다. 중앙값을 쓰므로 튀는 칸 몇 개가 효과를 왜곡하지 않고 잔차에서 드러나며, 관측소별 월별 측정값 같은 지점-시간 표에 잘 맞습니다.
How much do air pollution levels differ between monitoring stations and between months, and which station-month readings are unusual?
대기오염 수준은 측정소와 월에 따라 얼마나 다르며, 어떤 측정소-월 값이 이례적입니까?
The overall value, the effect of every row, column and optional third factor, the residuals, and a check of whether the effects add on this scale.
When to use Median Polish Decomposition (Two-Way and Space-Time Tables)
- Data form a table with one value per cell
- Some cells are missing or wild
- You want a quick resistant view of row and column effects
When to use something else
- You need significance tests of factor effects: use Robust Factorial ANOVA on Trimmed Means
- Cells contain several observations each: use Robust Factorial ANOVA on Trimmed Means
Assumptions and requirements
- Effects are additive on the measurement scale
- One value per cell
What the analysis reports
- Overall value
- Effects of each factor level
- Residuals and their spread
- Tukey non-additivity slope and suggested power
How to report it
Median polish gave an overall value of [value]; station effects ranged over [value] and month effects over [value].
Related methods
- Robust Factorial ANOVA on Trimmed Means
- Robust Location and Scale Estimates
- Spread-Level Plot (Power Transformation for Equal Spread)
How this method is validated
이 방법의 검증 근거
- R cross-check. 17 reported values agree with R (stats::medpolish) within a tolerance of 1e-9; the largest observed difference is 5e-15.
R 교차 검증. R(stats::medpolish) 대조: 보고 값 17개가 허용오차 1e-9 안에서 일치합니다(관측된 최대 차이 5e-15).
- Supporting tables vs R. Descriptive statistics and assumption checks shown with the results (19 values) agree with R (psych::describe, stats::quantile, stats::t.test, stats::shapiro.test) within 1e-6. This covers the supporting tables, not the main estimates.
보조 표 R 대조. R(psych::describe, stats::quantile, stats::t.test, stats::shapiro.test) 대조: 결과와 함께 나오는 기술통계·가정 점검 값 19개가 1e-6 안에서 일치합니다. 본 추정치가 아니라 보조 표에 대한 대조입니다.
- Independent computation. 1 reference test compares the results with reference values computed independently in the test suite at a stated tolerance of 1e-9.
독립 계산. 시험에서 따로 계산한 참조값 대조 참조 시험 1건 통과(허용오차 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 Median Polish Decomposition (Two-Way and Space-Time Tables) on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable, a unit (entity) ID and a time variable
- 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
- Results cross-checked against R
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.