Tech PostsTech Posts
인과 추론Causal Inference · 18 / 24
18 인과 추론Causal Inference

쉬워 보이는 질문 하나를 끝까지 따라가기Following One Deceptively Easy Question All the Way Down

"물류센터 직원 교육 프로그램의 성과 효과를 어떻게 측정하시겠습니까?" 처치도 결과도 데이터도 다 있습니다. 그 셋이 전부 문제를 숨기고 있습니다.How would you measure the effect of a training programme on fulfilment centre associates? Clear treatment, obvious outcome, abundant data. All three hide a problem.

이 편은 앞 편의 여덟 단계 틀을 구체적인 질문 하나에 적용합니다. 실제 받은 편지함에 도착할 법한 질문입니다.

This post takes the eight-step framework from the previous one and runs it against a single concrete question of the kind that arrives in a real inbox.

물류센터 직원 교육 프로그램이 성과에 미친 효과를 어떻게 측정하시겠습니까?

How would you measure the effect of a training programme for Fulfillment Center associates on performance?

좋은 시험 사례입니다. 쉬워 보이는데 그렇지 않습니다. 처치가 명확하고 결과가 자명하고 운영 데이터가 넘칩니다. 그 장점 하나하나가 문제를 숨기고 있습니다.

It is a good test case because it looks easy and is not. There is a clear treatment, an obvious outcome, and abundant operational data. Every one of those apparent advantages hides a problem.

자명한 답이 실패하는 이유Why the obvious answer fails

본능적인 접근은 교육을 받은 직원과 받지 않은 직원의 성과를 비교하는 것입니다. 그 비교는 세 가지로 오염되어 있습니다. 각각 다른 해법이 필요하니 나눠서 봅시다.

The instinctive approach is to compare the performance of associates who took the training against those who did not. That comparison is contaminated three ways, and the three are worth separating because each needs a different remedy.

교육 참여 선택Selection into training

직원은 무작위로 배정되는 경우가 거의 없습니다. 관리자가 우수 인력을 추천하거나, 프로그램이 부진자를 겨냥하거나, 자발적이라 의욕 있는 사람이 스스로 들어옵니다. 각각이 다른 부호의 편향을 만듭니다. 우수자를 추천하면 효과를 과대평가하고 부진자를 겨냥하면 과소평가합니다. 그리고 여러 기제가 동시에 작동하는 경우가 흔합니다. 선택 기제를 모르면 편향의 부호도 정할 수 없습니다. 2단계가 그것을 명시적으로 모형화하라고 요구하는 이유입니다.

Associates are rarely assigned at random. Either managers nominate strong performers, or the programme targets strugglers, or it is voluntary and the motivated self-select. Each produces a different sign of bias — nominate the strong and you overstate, target the strugglers and you understate — and often several operate at once. You cannot sign the bias without knowing the selection mechanism, which is why step 2 asks you to model it explicitly.

평균회귀Mean reversion

python
import numpy as np

rng = np.random.default_rng(8)
n = 5_000

skill = rng.normal(size=n)                      # stable, unobserved
before = skill + rng.normal(size=n)             # noisy measurement
after  = skill + rng.normal(size=n)             # same skill, new noise

# select the bottom quartile on the BEFORE measure - as a real programme would
selected = before < np.quantile(before, 0.25)

print(f"selected group, before: {before[selected].mean():+.3f}")
print(f"selected group, after : {after[selected].mean():+.3f}")
print(f"apparent 'improvement': {after[selected].mean() - before[selected].mean():+.3f}")
print(f"true training effect  : +0.000")
교육은 아예 없었습니다. 스킬도 변하지 않았습니다. 그래도 개선이 나타납니다.There was no training at all, and skill did not change. The improvement appears anyway.
selected group, before: -1.541
selected group, after : -0.769
apparent 'improvement': +0.772
true training effect  : +0.000

완전히 무효한 프로그램이 0.77 표준편차의 개선을 만들어 냈습니다. 카너먼이 관찰한 기제와 같습니다. 교관들이 비판은 효과가 있고 칭찬은 없다고 결론짓던 바로 그 상황입니다. 처치효과 행세를 하는 회귀입니다.

A completely inert programme produced a 0.77 standard deviation "improvement". This is the mechanism behind Kahneman observation about instructors concluding that criticism works and praise does not — reversion masquerading as a treatment effect.

시점과 계절성Timing and seasonality

물류 처리량은 계절성이 강하고 교육은 대개 한산한 시기에 잡힙니다. 그 전환을 가로지르는 전후 비교는 교육을 수요 주기와 통째로 혼동합니다.

Fulfilment throughput is heavily seasonal, and training is typically scheduled in slower periods. A before/after comparison spanning that transition confounds the training with the demand cycle entirely.

세 번째는 대조군이 처리합니다. 첫 번째는 차분이 일부 처리합니다. 두 번째는 잘 고른 설계만이 처리한다는 점에 유의하십시오.

Note that a control group handles the third, differencing handles part of the first, and only a well-chosen design handles the second.

결과 변수가 어려운 이유What makes the outcome hard

다른 무엇보다 먼저 "성과"가 측정 가능한 양이 되어야 합니다. 그 선택이 실제로 일을 합니다.

"Performance" needs to become a measurable quantity before anything else can happen, and the choice does real work.

지표문제
시간당 피킹 수자명한 생산성 지표지만 게이밍이 가능하고 품질과 상충합니다.
오류·불량률품질을 잡지만 희귀 사건이라 개인 수준에서 잡음이 크고 긴 관측 기간이 필요합니다.
안전 사고더 희귀하고 더 중요합니다.
잔류율교육의 재무적 효과 중 가장 클 수 있는데 분석에서 대개 빠집니다.
MetricThe catch
Units picked per hourThe obvious productivity metric, but gameable and it trades off against quality.
Error or defect rateCaptures quality but is a rare event, so noisy at the individual level and needs long windows.
Safety incidentsRarer still, and matters more.
RetentionMay be the largest financial effect of training, and is usually left out entirely.

첫 번째를 두 번째·세 번째를 희생시켜 최적화할 실질적 위험이 있습니다. 틀이 주요 지표와 함께 가드레일 지표를 요구하는 이유입니다. 처리량을 8% 올리고 부상을 20% 올린 교육은 성공이 아닙니다.

Optimising the first at the expense of the second and third is a real risk, and the reason the framework asks for guardrail metrics alongside a primary one. A programme that raises throughput 8% and injuries 20% is not a success.

측정상의 미묘함 둘이 이를 가중시킵니다. 물류센터의 개인 생산성은 작업대 배정과 교대와 그날 무엇을 집는지가 부분적으로 결정합니다. 직원과 무관한 변동입니다. 그리고 학습곡선 때문에 근속이 성과를 강하게 예측하므로 어떤 비교든 근속을 조심스럽게 다루지 않으면 그냥 학습곡선을 되찾게 됩니다.

Two measurement subtleties compound this. Individual productivity in a fulfilment centre is partly determined by station assignment, shift, and what is being picked that day — variation that has nothing to do with the associate. And a learning curve means tenure predicts performance strongly, so any comparison must handle tenure carefully or it will simply recover the learning curve.

설계 사다리The design ladder

신빙성 내림차순으로 선택지를 훑는 것이 올바른 검토 순서입니다.

The options in descending order of credibility, which is the right order to consider them.

  1. 무작위 배정. 프로그램 정원이 제한되어 있고 수요가 자리보다 많다면, 자격을 갖춘 지원자 중에서 무작위 배정하는 것은 비용이 없고 모든 것을 해결합니다. 사업장별 단계적 시행이 또 다른 손쉬운 승리입니다. DiD가 필요로 하는 변동을 만들어 주고 운영상으로도 대개 편합니다.
  2. 이중차분. 개인 성과 패널 데이터와 단계적 시행이 있으면 각 직원이 자기 자신의 대조군이 됩니다. 능력의 고정된 차이를 직접 처리합니다. DiD 편에서 다룬 엇갈린 시점 문제를 조심하십시오.
  3. 도구변수. 누가 참석할 수 있었는지를 성과와 무관하게 결정한 요인이라면 도구변수가 될 수 있습니다. 정원 제약이나 일정 충돌 같은 것입니다.
  4. 회귀 불연속. 자격이 점수 문턱으로 결정된다면 — 성과 평가 컷오프 — 불연속을 쓸 수 있습니다.
  5. 관측 가능한 것에 의한 매칭. 최후의 수단입니다. LaLonde 편이 그 이유를 설명합니다. 선택을 움직이는 모든 것을 측정했어야 합니다.
  1. Randomise. If the programme has limited capacity and more demand than places, randomising among eligible volunteers costs nothing and solves everything. Staggered rollout across sites is the other easy win — it creates the variation a DiD needs and is usually operationally convenient anyway.
  2. Difference-in-differences. With panel data on individual performance and a phased rollout, each associate serves as their own control, handling fixed differences in ability directly. Watch for the staggered-timing problems from the DiD post.
  3. Instrumental variables. Capacity constraints or scheduling conflicts that determined who could attend, independent of performance, can serve as instruments.
  4. Regression discontinuity. If eligibility is determined by a score threshold — a performance rating cutoff — the discontinuity is available.
  5. Matching on observables. Last resort, and the LaLonde post explains why: it requires having measured everything that drives selection.

추정치를 의사결정으로 바꾸기Turning the estimate into a decision

  • 효과를 돈으로 환산하십시오. "시간당 +4.2개"는 아무것도 결정하지 않습니다. 곱해 나가십시오. 시간당 개수 × 직원당 연간 시간 × 교육받은 인원, 해당 마진으로 평가한 값을, 현장을 비운 직원 시간을 포함한 프로그램 총비용과 대비하십시오. 결과는 회수 기간입니다. 의사결정이 실제로 취하는 형태가 그것입니다.
  • 불확실성을 계수가 아니라 의사결정에 붙이십시오. 효과의 신뢰구간은 회수 기간의 범위로 번역됩니다. 범위 전체가 1년 미만이면 결정은 강건하고 남은 불확실성은 무관합니다. "4개월에 회수"에서 "영원히 회수 못 함"까지 걸쳐 있다면 그것이 곧 발견입니다. 점추정치를 보고하는 건 잘못된 표현입니다.
  • 가드레일을 주요 결과와 같은 표에 넣으십시오. 품질·안전·잔류 효과를 생산성과 같은 신뢰구간과 함께 보고하십시오. 영(null)일 때도 포함해서요. 정밀하게 측정된 영의 안전 효과는 진짜 값진 결과입니다. 부정확하게 측정된 영은 아닙니다. 구간 없이는 독자가 둘을 구분할 수 없습니다.
  • 이것이 누구에게 해당하는지 분명히 하십시오. 추정치가 자원자에게서 나왔다면 그것은 자원하는 사람들에 대한 효과입니다. 프로그램을 전면 시행하면 거의 확실히 더 작은 효과가 납니다. 자원하지 않은 사람들은 얼마나 이득을 볼지와 상관될 만한 방식으로 다르기 때문입니다. 앞 섹션의 ATT 대 ATC 구분입니다. 여기서는 확대 결정이 증거로 정당화되는지를 직접 결정합니다.
  • Convert the effect into money. An estimate of "+4.2 units per hour" does not decide anything. Multiply through: units per hour, times hours per associate per year, times the number trained, valued at the relevant margin — against the fully loaded cost including time away from the floor. The result is a payback period, which is the form the decision actually takes.
  • Attach the uncertainty to the decision, not the coefficient. A confidence interval on the effect translates into a range of payback periods. If the entire range is under a year, the decision is robust and the remaining uncertainty is irrelevant. If it spans "pays back in four months" to "never pays back", that is the finding, and reporting a point estimate would misrepresent it.
  • Report the guardrails alongside the headline. Quality, safety and retention effects belong in the same table as productivity, with the same confidence intervals — including when they are null. A null safety effect measured precisely is genuinely valuable; a null measured imprecisely is not, and the reader cannot tell without the interval.
  • Be explicit about who this applies to. If the estimate comes from volunteers, it is an effect for people who volunteer. Rolling out universally will almost certainly produce a smaller effect, because the people who did not volunteer differ in ways that plausibly correlate with how much they benefit. This is the ATT-versus-ATC distinction from earlier, and here it directly determines whether an expansion decision is justified.

옮겨 쓸 수 있는 패턴The transferable pattern

물류센터라는 구체성을 걷어 내면, 이것은 아주 큰 부류의 질문이 가진 모양입니다. 자발적이거나 관리자가 선발한 프로그램, 전후로 측정된 결과, 그리고 그것이 효과가 있었는지 말해 달라는 요청.

Strip out the fulfilment centre specifics and this is the shape of a very large class of questions: a voluntary or manager-selected programme, an outcome measured before and after, and a request to say whether it worked.

영업 교육, 온보딩 변경, 자격증 프로그램, 복지 혜택, 툴 마이그레이션. 모든 경우에 같은 세 오염원 — 선택, 평균회귀, 시점 — 이 적용되고 같은 설계 사다리가 같은 순서로 적용됩니다. 구체적 지표는 바뀌지만 추론은 바뀌지 않습니다.

Sales training, onboarding changes, certification programmes, wellness benefits, tooling migrations. In every case the same three contaminants apply — selection, mean reversion, timing — and the same design ladder applies in the same order. The specific metric changes; the reasoning does not.

가장 지렛대가 큰 수도 그대로입니다. 시행 전에 관여해서 일부라도 무작위 배정하거나 단계적으로 나눌 수 있는지 묻는 것. 그것이 없을 때 필요한 계량경제학보다 거의 항상 쌉니다.

The single highest-leverage move remains the same too: get involved before the rollout and ask whether some part of it can be randomised or phased. It is almost always cheaper than the econometrics required to compensate for its absence.