{
  "cases": {
    "ko": "<div class=\"case-studies\"><article class=\"case-study\" id=\"stats13-country-ko\"><h3>국가 사례 · 두 연도의 네 분기는 독립 표본 여덟 개일까?</h3><p>BIS의 한국 전국 실질 주택지수에서 2023년과 2024년의 네 분기를 읽습니다. 두 해 모두 완전히 관측한 고정 자료이며 기준은 2010년 평균=100입니다. 같은 분기끼리 묶으면 “2023년 1분기→2024년 1분기”처럼 전년 동기 지수포인트 차이를 얻습니다. 이 계산은 가격의 원화 차이나 인플레이션율이 아닙니다. 시간 순서와 경기·계절 의존성이 있는 자료라는 점도 유지합니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>같은 분기로 맞춘 실제 변화</caption><thead><tr><th scope=\"col\">분기</th><th scope=\"col\">2023 실제 지수</th><th scope=\"col\">2024 실제 지수</th><th scope=\"col\">차이: 2024−2023 지수포인트</th><th scope=\"col\">각 분기의 전년 동기 %</th></tr></thead><tbody><tr><th scope=\"row\">1</th><td>114.8287</td><td>108.3502</td><td>-6.4785</td><td>-5.6419</td></tr><tr><th scope=\"row\">2</th><td>111.7513</td><td>107.7932</td><td>-3.9581</td><td>-3.5419</td></tr><tr><th scope=\"row\">3</th><td>110.0125</td><td>107.4475</td><td>-2.5650</td><td>-2.3316</td></tr><tr><th scope=\"row\">4</th><td>109.3420</td><td>107.4756</td><td>-1.8664</td><td>-1.7069</td></tr></tbody></table></div><div data-case-chart=\"country\"></div><div data-tex=\"\\begin{gathered}\\overline D=\\overline Y-\\overline X\\\\s_D^2=s_Y^2+s_X^2-2s_{XY}.\\end{gathered}\"></div><p>평균 차이의 항등식은 언제나 성립하지만, 그 표준오차는 자료 구조에 의존합니다. 서로 독립인 쌍이 iid라는 작업모형을 가정하면 SE(평균 D)=sD/√4입니다. 이 실제 시계열 네 쌍이 독립이라는 근거는 확보하지 않았습니다. 따라서 아래 수치는 공식의 역할을 비교하는 계산이며 실제 시계열에 대한 신뢰구간 인증으로 사용하지 않습니다. 알려진 두 해의 평균 자체는 이미 계산이 끝났습니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>공분산을 보존했을 때의 계산</caption><thead><tr><th scope=\"col\">항목</th><th scope=\"col\">값</th></tr></thead><tbody><tr><th scope=\"row\">실제 평균 차이</th><td>-3.717000 지수포인트</td></tr><tr><th scope=\"row\">짝 차이 표본분산</th><td>4.145279</td></tr><tr><th scope=\"row\">두 해의 짝 표본공분산</th><td>1.017318</td></tr><tr><th scope=\"row\">iid 쌍을 가정한 SE 공식</th><td>1.017998</td></tr><tr><th scope=\"row\">짝을 무시한 독립식 SE 참고값</th><td>1.242972</td></tr></tbody></table></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 순서를 바꾸어 짝지어도 평균 차이는 같은데 문제가 있나요?</summary><div><p>모든 값을 한 번씩 쓰면 평균 차이는 같습니다. 그러나 각 D와 공분산·차이의 분산은 바뀝니다. 같은 분기라는 관측 의미와 짝의 구조를 잃기 때문입니다. 평균의 숫자가 같다는 이유로 표준오차나 검정까지 같다고 생각하면 안 됩니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 평균 지수포인트 차이를 평균 % 변화라고 부를 수 있나요?</summary><div><p>없습니다. 분기별 % 변화는 100×(2024값/2023값−1)입니다. 두 연도 평균의 비율, 분기 % 변화의 평균, 지수포인트 차이는 서로 다른 통계량입니다. %와 %포인트도 구별하세요. 이 자료의 완전 관측 요약을 미래 분기의 불확실성과 섞지 않습니다.</p></div></details></article><article class=\"case-study\" id=\"stats13-person-ko\"><h3>개인 자료 사례 · 도시권 두 집단의 평균 log 임금과 Welch 방법</h3><p>Card의 1976년 청년 남성 공개자료를 원 코드북의 SMSA76R로 나눕니다. SMSA는 당시 통계상 대도시권이며, 공개 CSV의 metro는 그 1976년 지표입니다. 도시 거주자가 더 높은 임금을 받는 원인을 이 비교로 식별하지 않습니다. 나이·학력·직업·지역·이주 선택 등이 다를 수 있고, 원 조사 가중치는 사용하지 않습니다. 두 집단은 같은 사람의 전후 기록이 아니라 서로 다른 사람의 기록입니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>원래 결측을 보존한 두 집단</caption><thead><tr><th scope=\"col\">1976 SMSA</th><th scope=\"col\">전체 기록</th><th scope=\"col\">log 임금 관측</th><th scope=\"col\">log 임금 결측</th><th scope=\"col\">관측 평균 log</th><th scope=\"col\">표본분산</th></tr></thead><tbody><tr><th scope=\"row\">1</th><td>2510</td><td>2146</td><td>364</td><td>6.327883</td><td>0.188570</td></tr><tr><th scope=\"row\">0</th><td>1103</td><td>864</td><td>239</td><td>6.097773</td><td>0.180234</td></tr></tbody></table></div><div data-tex=\"\\begin{gathered}v_j=s_j^2/n_j\\\\T_W=\\frac{\\overline L_1-\\overline L_0}{\\sqrt{v_1+v_0}}\\\\\\nu=\\frac{(v_1+v_0)^2}{v_1^2/(n_1-1)+v_0^2/(n_0-1)}\\end{gathered}\"></div><p>Welch 방법은 두 모분산이 같다는 가정을 먼저 넣지 않습니다. 각 집단 표본분산을 따로 사용하고 Welch–Satterthwaite 유효 자유도로 t 분포를 근사합니다. 자유도가 정수가 아니어도 괜찮으며 소수점을 임의로 버리지 않습니다. 집단 내·집단 간 독립 같은 표집 조건은 여전히 필요합니다. Welch의 t 참조는 일반적인 이분산 정규 표본에서도 근사이지, 모든 분포에 대한 정확 정리는 아닙니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>SMSA=1 − SMSA=0의 작업모형 계산</caption><thead><tr><th scope=\"col\">항목</th><th scope=\"col\">값</th></tr></thead><tbody><tr><th scope=\"row\">실제 평균 log 차이</th><td>0.230110098</td></tr><tr><th scope=\"row\">Welch SE</th><td>0.017218427</td></tr><tr><th scope=\"row\">유효 자유도</th><td>1,627.022893</td></tr><tr><th scope=\"row\">Welch t</th><td>13.364177</td></tr><tr><th scope=\"row\">양측 p</th><td>9.9548604e-39</td></tr><tr><th scope=\"row\">95% 차이 구간</th><td>[0.196337, 0.263883]</td></tr><tr><th scope=\"row\">등분산을 가정했을 때의 SE 참고값</th><td>0.017385055</td></tr></tbody></table></div><div data-case-chart=\"person\"></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 두 집단 평균의 개별 95% 구간이 겹치는지 보면 차이의 검정이 되나요?</summary><div><p>차이 자체의 SE와 구간을 계산해야 합니다. 독립이면 분산을 더하고, 짝 자료라면 공분산까지 필요합니다. 개별 구간의 단순 겹침은 지정한 차이 검정과 동일하지 않습니다. 여기 차이의 구간은 집단1−집단0 순서이며 순서를 바꾸면 부호와 양끝이 함께 바뀝니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 양의 log 차이는 도시로 이사하면 임금이 그만큼 오름을 뜻하나요?</summary><div><p>아닙니다. 관측 집단의 평균 log 차이입니다. exp(차이)≈1.25874는 관측 기하 중심의 비율이며 평균 시급 비율도 인과적 이주 효과도 아닙니다. 603개 결측, 원자료 절단과 조사 설계의 한계도 남습니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: Welch가 등분산을 요구하지 않으니 아무 조건도 확인하지 않아도 되나요?</summary><div><p>아닙니다. 독립성·집단 정의·극단값·결측과 표집 과정을 확인해야 합니다. 모든 값을 기계적으로 두 집단으로 나눠 작은 p값을 얻는 것이 연구 설계를 대체하지 않습니다. 여기의 구간·p값은 명시한 작업모형 아래 계산이며 모집단 대표성의 인증이 아닙니다.</p></div></details></article><article class=\"case-study\" id=\"stats13-company-ko\"><h3>기업 고객 사례 · 불만 기록 두 집단의 이탈 비율은 얼마나 다른가?</h3><p>UCI Iranian Churn의 실제 통신사 고객 3150개 기록을 사용합니다. 첫 9개월의 불만 지표와 12개월 시점의 이탈 라벨 사이에 3개월 계획 간격이 있다는 공식 설명을 따릅니다. 구체적인 수집 연도는 공개 메타데이터에 명시되지 않았으며 2020년 공개일을 수집 연도로 부르지 않습니다. 추가한 row_id는 CSV 행 번호이지 실제 장기 추적 고객 식별자가 아닙니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>실제 불만×이탈 2×2 집계</caption><thead><tr><th scope=\"col\">불만 지표</th><th scope=\"col\">이탈</th><th scope=\"col\">비이탈</th><th scope=\"col\">전체</th><th scope=\"col\">관측 이탈 비율</th></tr></thead><tbody><tr><th scope=\"row\">1</th><td>200</td><td>41</td><td>241</td><td>200/241</td></tr><tr><th scope=\"row\">0</th><td>295</td><td>2614</td><td>2909</td><td>295/2909</td></tr></tbody></table></div><div data-tex=\"\\begin{gathered}\\widehat\\Delta=\\widehat p_1-\\widehat p_0\\\\SE_{\\rm estimate}^2=\\frac{\\widehat p_1(1-\\widehat p_1)}{n_1}+\\frac{\\widehat p_0(1-\\widehat p_0)}{n_0}\\\\SE_0^2=\\widehat p(1-\\widehat p)\\left(\\frac1{n_1}+\\frac1{n_0}\\right).\\end{gathered}\"></div><p>동일비율 H0:p1=p0의 검정에서는 합친 이탈비율 p̂=(200+295)/(241+2909)를 사용한 귀무 SE0를 쓸 수 있습니다. 차이 자체를 추정하는 단순 Wald 구간은 두 관측 비율을 따로 넣은 SEestimate를 씁니다. 둘은 서로 다른 계산 목적입니다. 이 사례의 네 셀 관측 수는 모두 10 이상이지만, 충분한 수가 있다는 것만으로 실제 고객들의 독립·대표 표집이 증명되지는 않습니다. Wald 구간은 근사이며 극소 셀·경계 비율에는 더 적절한 구간을 선택해야 합니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>비율 차이의 추정과 귀무 검정 계산</caption><thead><tr><th scope=\"col\">항목</th><th scope=\"col\">값</th></tr></thead><tbody><tr><th scope=\"row\">불만−무불만의 관측 비율 차이</th><td>0.728466100</td></tr><tr><th scope=\"row\">같은 차이의 %포인트</th><td>72.846610</td></tr><tr><th scope=\"row\">별도 비율의 추정 SE</th><td>0.024842371</td></tr><tr><th scope=\"row\">동일비율 귀무의 합동 SE</th><td>0.024394909</td></tr><tr><th scope=\"row\">정규 참조 z</th><td>29.861398</td></tr><tr><th scope=\"row\">양측 꼬리확률 근사</th><td>6.2441372e-196</td></tr><tr><th scope=\"row\">차이의 95% Wald 근사 구간</th><td>[0.679776, 0.777156]</td></tr></tbody></table></div><div data-case-chart=\"company\"></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 불만 고객과 무불만 고객은 같은 사람의 전후 비율인가요?</summary><div><p>아닙니다. 이 표는 서로 다른 기록을 불만 지표로 나눈 두 집단입니다. 같은 고객이 두 번 등장하는 짝 이진자료라면 이 두 독립 비율 공식을 그대로 적용하지 않고 불일치 쌍의 구조를 사용해야 합니다. 기록의 단위를 먼저 정하세요.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 불만 처리 프로그램을 하면 이탈이 관측 차이만큼 줄까요?</summary><div><p>이 자료에서 불만은 무작위 배정이 아닙니다. 서비스 문제·이용량·계약 특성 같은 공통 원인이 불만과 이탈에 함께 영향을 줄 수 있습니다. 시간 순서가 있다는 것만으로 인과가 되지는 않습니다. 이 표는 관측 연관성이지 불만 처리 개입의 효과나 미래 고객 예측의 성능이 아닙니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 비율 차이가 .1이면 10% 차이인가요, 10%포인트 차이인가요?</summary><div><p>비율 .1의 절대 차이는 10%포인트입니다. 상대 % 변화는 기준 비율로 다시 나눠야 하므로 별도 값입니다. 비율·%·%포인트의 단위를 섞지 않고, 어느 집단을 뺀 것인지도 반드시 표시합니다.</p></div></details></article><p>자료·가공·재현: <a href=\"stats13-sources/actual2023-2024-real-housing-quarter-values.csv\" download>actual2023-2024-real-housing-quarter-values.csv</a> · <a href=\"stats13-sources/actual-four-matched-quarter-changes.csv\" download>actual-four-matched-quarter-changes.csv</a> · <a href=\"stats13-sources/actual-paired-quarter-moments-and-SE-formula-comparison.csv\" download>actual-paired-quarter-moments-and-SE-formula-comparison.csv</a> · <a href=\"stats13-sources/actual-people-SMSA-groups-and-missing-log-wages.csv\" download>actual-people-SMSA-groups-and-missing-log-wages.csv</a> · <a href=\"stats13-sources/actual-log-wage-two-group-moments.csv\" download>actual-log-wage-two-group-moments.csv</a> · <a href=\"stats13-sources/actual-log-wage-Welch-comparison.csv\" download>actual-log-wage-Welch-comparison.csv</a> · <a href=\"stats13-sources/actual-customers-complaints-and-month12-churn.csv\" download>actual-customers-complaints-and-month12-churn.csv</a> · <a href=\"stats13-sources/actual-complaint-by-churn-two-group-counts.csv\" download>actual-complaint-by-churn-two-group-counts.csv</a> · <a href=\"stats13-sources/actual-customer-two-proportion-comparison.csv\" download>actual-customer-two-proportion-comparison.csv</a> · <a href=\"stats13-sources/provenance.json\" download>provenance</a></p></div>",
    "en": "<div class=\"case-studies\"><article class=\"case-study\" id=\"stats13-country-en\"><h3>Country case · Are four quarters in each of two years eight independent observations?</h3><p>Read four quarters in both 2023 and 2024 from the BIS Korea-wide real housing index, with 2010 average=100. Both years are completely observed fixed data. Match the same quarter across years to obtain year-over-year index-point changes, such as 2023-Q1→2024-Q1. These are neither KRW price changes nor inflation rates. Preserve the fact that the records have time order and possible business-cycle/seasonal dependence.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Actual changes after matching quarters</caption><thead><tr><th scope=\"col\">Quarter</th><th scope=\"col\">2023 actual index</th><th scope=\"col\">2024 actual index</th><th scope=\"col\">2024−2023 index points</th><th scope=\"col\">Quarter-specific year-over-year %</th></tr></thead><tbody><tr><th scope=\"row\">1</th><td>114.8287</td><td>108.3502</td><td>-6.4785</td><td>-5.6419</td></tr><tr><th scope=\"row\">2</th><td>111.7513</td><td>107.7932</td><td>-3.9581</td><td>-3.5419</td></tr><tr><th scope=\"row\">3</th><td>110.0125</td><td>107.4475</td><td>-2.5650</td><td>-2.3316</td></tr><tr><th scope=\"row\">4</th><td>109.3420</td><td>107.4756</td><td>-1.8664</td><td>-1.7069</td></tr></tbody></table></div><div data-case-chart=\"country\"></div><div data-tex=\"\\begin{gathered}\\overline D=\\overline Y-\\overline X\\\\s_D^2=s_Y^2+s_X^2-2s_{XY}.\\end{gathered}\"></div><p>The identity for mean differences is algebraic, but a standard error depends on data structure. A working model of independent iid pairs would give SE(mean D)=sD/√4. Independence of these four actual time-series pairs has not been established. The following numbers compare formulas, not certify an interval for a time series. The two fully observed annual averages are already known.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Calculations preserving paired covariance</caption><thead><tr><th scope=\"col\">Quantity</th><th scope=\"col\">Value</th></tr></thead><tbody><tr><th scope=\"row\">Actual mean difference</th><td>-3.717000 index points</td></tr><tr><th scope=\"row\">Sample variance of paired changes</th><td>4.145279</td></tr><tr><th scope=\"row\">Cross-year paired sample covariance</th><td>1.017318</td></tr><tr><th scope=\"row\">SE formula assuming iid pairs</th><td>1.017998</td></tr><tr><th scope=\"row\">Independent-wave SE ignoring pairing</th><td>1.242972</td></tr></tbody></table></div><details class=\"case-answer\"><summary>Think first, then reveal: If rematching leaves the mean difference unchanged, does pairing matter?</summary><div><p>Using every value once preserves the mean difference, but changes individual differences, covariance and variance of changes. It loses the observational meaning of matching the same quarter. Equal mean differences do not guarantee equal standard errors or tests.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: May we call the mean index-point change a mean percentage change?</summary><div><p>No. A quarter’s percentage change is 100×(2024 value/2023 value−1). A ratio of annual averages, an average of quarterly percentage changes and an index-point difference are different statistics. Distinguish percent from percentage points, and known summaries from uncertainty about future quarters.</p></div></details></article><article class=\"case-study\" id=\"stats13-person-en\"><h3>Person-record case · Compare mean log wages of two SMSA groups with Welch’s method</h3><p>Split Card’s 1976 young-men records using SMSA76R in the original codebook; metro in the retained CSV denotes membership in the historical statistical metropolitan area in 1976. This comparison does not identify why wages differ. Age, schooling, occupation, region and migration selection may differ, and original survey weights are not used. These are different people in each group, not before/after records of the same people.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Two groups retaining original missingness</caption><thead><tr><th scope=\"col\">1976 SMSA</th><th scope=\"col\">All records</th><th scope=\"col\">Observed log wages</th><th scope=\"col\">Missing log wages</th><th scope=\"col\">Observed mean log</th><th scope=\"col\">Sample variance</th></tr></thead><tbody><tr><th scope=\"row\">1</th><td>2510</td><td>2146</td><td>364</td><td>6.327883</td><td>0.188570</td></tr><tr><th scope=\"row\">0</th><td>1103</td><td>864</td><td>239</td><td>6.097773</td><td>0.180234</td></tr></tbody></table></div><div data-tex=\"\\begin{gathered}v_j=s_j^2/n_j\\\\T_W=\\frac{\\overline L_1-\\overline L_0}{\\sqrt{v_1+v_0}}\\\\\\nu=\\frac{(v_1+v_0)^2}{v_1^2/(n_1-1)+v_0^2/(n_0-1)}\\end{gathered}\"></div><p>Welch’s method does not first impose equal population variances. It uses each sample variance and approximates a t reference with Welch–Satterthwaite effective degrees of freedom. A noninteger df is valid and need not be arbitrarily rounded down. Within-group and between-group sampling independence still matter. Welch’s reference is an approximation even for general unequal-variance normal samples, not an exact theorem for all distributions.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Working-model calculation for SMSA=1 − SMSA=0</caption><thead><tr><th scope=\"col\">Quantity</th><th scope=\"col\">Value</th></tr></thead><tbody><tr><th scope=\"row\">Actual mean log difference</th><td>0.230110098</td></tr><tr><th scope=\"row\">Welch SE</th><td>0.017218427</td></tr><tr><th scope=\"row\">Effective df</th><td>1,627.022893</td></tr><tr><th scope=\"row\">Welch t</th><td>13.364177</td></tr><tr><th scope=\"row\">Two-sided p</th><td>9.9548604e-39</td></tr><tr><th scope=\"row\">95% difference interval</th><td>[0.196337, 0.263883]</td></tr><tr><th scope=\"row\">SE reference assuming equal variances</th><td>0.017385055</td></tr></tbody></table></div><div data-case-chart=\"person\"></div><details class=\"case-answer\"><summary>Think first, then reveal: Can overlap of two separate 95% mean intervals replace a test of the difference?</summary><div><p>Calculate an SE and interval for the difference itself. Independent samples add variances; paired data also require covariance. Simple interval overlap is not the same test. Here the direction is group1−group0; reversing it changes the sign and reverses the interval endpoints.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Does the positive log difference predict that moving to an SMSA raises a person’s wage by that amount?</summary><div><p>No. It compares observed group mean logs. exp(difference)≈1.25874 is a ratio of observed geometric centers, neither an arithmetic mean wage ratio nor a causal migration effect. The 603 missing wages, source trimming and survey-design limitations remain.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Does avoiding equal variances mean Welch needs no assumptions?</summary><div><p>No. Check independence, group definitions, extreme values, missingness and acquisition. Mechanically splitting records until obtaining a small p-value does not replace a study design. These intervals and p-values are calculations under a stated working model, not a certificate of population representativeness.</p></div></details></article><article class=\"case-study\" id=\"stats13-company-en\"><h3>Customer case · How different are churn fractions in two complaint groups?</h3><p>Use 3,150 actual telecom customer records in UCI Iranian Churn. Official metadata describe first-nine-month features and a month-12 churn label with a three-month planning gap. The specific collection years are not given; the 2020 release date is not a collection year. Added row_id denotes CSV row order, not a genuine longitudinal customer identifier.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Actual complaint×churn 2×2 counts</caption><thead><tr><th scope=\"col\">Complaint flag</th><th scope=\"col\">Churn</th><th scope=\"col\">No churn</th><th scope=\"col\">Total</th><th scope=\"col\">Observed churn fraction</th></tr></thead><tbody><tr><th scope=\"row\">1</th><td>200</td><td>41</td><td>241</td><td>200/241</td></tr><tr><th scope=\"row\">0</th><td>295</td><td>2614</td><td>2909</td><td>295/2909</td></tr></tbody></table></div><div data-tex=\"\\begin{gathered}\\widehat\\Delta=\\widehat p_1-\\widehat p_0\\\\SE_{\\rm estimate}^2=\\frac{\\widehat p_1(1-\\widehat p_1)}{n_1}+\\frac{\\widehat p_0(1-\\widehat p_0)}{n_0}\\\\SE_0^2=\\widehat p(1-\\widehat p)\\left(\\frac1{n_1}+\\frac1{n_0}\\right).\\end{gathered}\"></div><p>For H0:p1=p0, a pooled-null SE0 uses p̂=(200+295)/(241+2909). A simple Wald interval estimating the difference uses the separate observed proportions in SEestimate. These serve different purposes. All four observed cells exceed ten here, but large counts alone do not prove independent or representative customer sampling. The Wald interval is approximate; sparse or boundary proportions call for a more suitable interval method.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Difference estimation and a pooled-null calculation</caption><thead><tr><th scope=\"col\">Quantity</th><th scope=\"col\">Value</th></tr></thead><tbody><tr><th scope=\"row\">Observed complaint−no-complaint fraction difference</th><td>0.728466100</td></tr><tr><th scope=\"row\">Same difference in percentage points</th><td>72.846610</td></tr><tr><th scope=\"row\">Separate-proportion estimation SE</th><td>0.024842371</td></tr><tr><th scope=\"row\">Equal-proportion pooled-null SE</th><td>0.024394909</td></tr><tr><th scope=\"row\">Normal-reference z</th><td>29.861398</td></tr><tr><th scope=\"row\">Approximate two-sided tail</th><td>6.2441372e-196</td></tr><tr><th scope=\"row\">Approximate 95% Wald interval for difference</th><td>[0.679776, 0.777156]</td></tr></tbody></table></div><div data-case-chart=\"company\"></div><details class=\"case-answer\"><summary>Think first, then reveal: Are complaint and no-complaint fractions before/after proportions for the same people?</summary><div><p>No. They are different records split by a complaint flag. Paired binary outcomes for the same customer require the discordant-pair structure rather than these independent-group formulas. Define the observational unit first.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Would a complaint-handling program reduce churn by the observed difference?</summary><div><p>Complaints were not randomly assigned. Shared causes such as service problems, usage and contract characteristics may affect both complaint and churn. Time ordering alone does not establish causation. This is an observed association, not an intervention effect or validated future prediction performance.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Is a fraction difference of .1 a 10% difference or ten percentage points?</summary><div><p>An absolute fraction difference of .1 is ten percentage points. A relative percentage change divides by a reference fraction and is a different quantity. Keep fractions, percentages and percentage points distinct and state the subtraction order.</p></div></details></article><p>Data, processing and reproduction: <a href=\"stats13-sources/actual2023-2024-real-housing-quarter-values.csv\" download>actual2023-2024-real-housing-quarter-values.csv</a> · <a href=\"stats13-sources/actual-four-matched-quarter-changes.csv\" download>actual-four-matched-quarter-changes.csv</a> · <a href=\"stats13-sources/actual-paired-quarter-moments-and-SE-formula-comparison.csv\" download>actual-paired-quarter-moments-and-SE-formula-comparison.csv</a> · <a href=\"stats13-sources/actual-people-SMSA-groups-and-missing-log-wages.csv\" download>actual-people-SMSA-groups-and-missing-log-wages.csv</a> · <a href=\"stats13-sources/actual-log-wage-two-group-moments.csv\" download>actual-log-wage-two-group-moments.csv</a> · <a href=\"stats13-sources/actual-log-wage-Welch-comparison.csv\" download>actual-log-wage-Welch-comparison.csv</a> · <a href=\"stats13-sources/actual-customers-complaints-and-month12-churn.csv\" download>actual-customers-complaints-and-month12-churn.csv</a> · <a href=\"stats13-sources/actual-complaint-by-churn-two-group-counts.csv\" download>actual-complaint-by-churn-two-group-counts.csv</a> · <a href=\"stats13-sources/actual-customer-two-proportion-comparison.csv\" download>actual-customer-two-proportion-comparison.csv</a> · <a href=\"stats13-sources/provenance.json\" download>provenance</a></p></div>"
  },
  "chartData": {
    "country": [
      {
        "x": 1,
        "y": -6.4785,
        "label": {
          "ko": "1분기 실제 전년 동기 변화",
          "en": "Q1 actual year-over-year change"
        },
        "isObservedChange": true
      },
      {
        "x": 2,
        "y": -3.9581,
        "label": {
          "ko": "2분기 실제 전년 동기 변화",
          "en": "Q2 actual year-over-year change"
        },
        "isObservedChange": true
      },
      {
        "x": 3,
        "y": -2.565,
        "label": {
          "ko": "3분기 실제 전년 동기 변화",
          "en": "Q3 actual year-over-year change"
        },
        "isObservedChange": true
      },
      {
        "x": 4,
        "y": -1.8664,
        "label": {
          "ko": "4분기 실제 전년 동기 변화",
          "en": "Q4 actual year-over-year change"
        },
        "isObservedChange": true
      }
    ],
    "person": [
      {
        "x": 0,
        "y": 0.2301100975609985,
        "lowerY": 0.1963374772732599,
        "upperY": 0.2638827178487371,
        "label": {
          "ko": "SMSA1−SMSA0 · 실제 평균 log 차이와 작업 Welch 구간",
          "en": "SMSA1−SMSA0: actual mean-log difference and working Welch interval"
        }
      }
    ],
    "company": [
      {
        "x": 0,
        "y": 72.84660996278541,
        "lowerY": 67.97759469107986,
        "upperY": 77.71562523449094,
        "label": {
          "ko": "불만1−불만0 · 실제 비율 차이와 작업 Wald 구간",
          "en": "Complaint1−complaint0: observed fraction difference and working Wald interval"
        }
      }
    ]
  },
  "chartMeta": {
    "country": {
      "xlabel": {
        "ko": "같은 달력 분기",
        "en": "Matched calendar quarter"
      },
      "ylabel": {
        "ko": "2024−2023 실질지수 변화 · 지수포인트",
        "en": "2024−2023 real-index change, index points"
      },
      "legend": {
        "ko": "완전히 관측한 네 전년 동기 차이",
        "en": "Four fully observed year-over-year changes"
      },
      "note": {
        "ko": "실제 차이점입니다. 네 쌍의 미래 모집단 불확실성이나 독립성을 만들어내지 않습니다. % 변화는 별도 표에서 확인하세요.",
        "en": "These are actual differences, not an invented uncertainty distribution or proof of independent quarters. Percentage changes are listed separately."
      },
      "seriesKeys": [
        "y"
      ],
      "includeZero": true,
      "connectObservedPoints": false
    },
    "person": {
      "plotType": "categorical-vertical-intervals",
      "intervalKeys": {
        "lower": "lowerY",
        "point": "y",
        "upper": "upperY"
      },
      "seriesKeys": [
        "y"
      ],
      "showIntervalBoundsInLabels": true,
      "includeZero": true,
      "connectObservedPoints": false,
      "xlabel": {
        "ko": "관측 SMSA 두 집단 비교",
        "en": "Observed SMSA group comparison"
      },
      "ylabel": {
        "ko": "집단1−집단0 log 단위",
        "en": "Group1−group0, log units"
      },
      "legend": {
        "ko": "실제 차이와 95% 작업 Welch 근사 구간",
        "en": "Observed difference and working 95% Welch approximate interval"
      },
      "note": {
        "ko": "대표 표집·독립성·인과이주 효과를 인증하지 않습니다. 603개 결측은 채우지 않았습니다.",
        "en": "Representative sampling, independence and a causal migration effect are not certified. The 603 missing wages are not imputed."
      }
    },
    "company": {
      "plotType": "categorical-vertical-intervals",
      "intervalKeys": {
        "lower": "lowerY",
        "point": "y",
        "upper": "upperY"
      },
      "seriesKeys": [
        "y"
      ],
      "showIntervalBoundsInLabels": true,
      "includeZero": true,
      "connectObservedPoints": false,
      "xlabel": {
        "ko": "관측 불만 두 집단 비교",
        "en": "Observed complaint-group comparison"
      },
      "ylabel": {
        "ko": "이탈 비율의 절대 차이 · %포인트",
        "en": "Absolute churn-fraction difference, percentage points"
      },
      "legend": {
        "ko": "실제 차이와 95% 작업 Wald 근사 구간",
        "en": "Observed difference and working 95% Wald approximate interval"
      },
      "note": {
        "ko": "그래프는 비율 차이에 100을 곱한 %포인트입니다. 단순 Wald 근사이며 불만 처리의 인과효과나 미래 예측이 아닙니다.",
        "en": "The plot multiplies the fraction difference by 100 to show percentage points. This simple Wald approximation is neither a causal complaint-handling effect nor a future prediction."
      }
    }
  },
  "models": {
    "country": {
      "actual_pairs": 4,
      "known2023_mean_exact": "891869/8000",
      "known2024_mean_exact": "862133/8000",
      "known_mean_index_point_change_exact": "-3717/1000",
      "change_sample_variance_exact": "621791791/150000000",
      "before_sample_variance_exact": "2401592409/400000000",
      "after_sample_variance_exact": "211120931/1200000000",
      "paired_sample_covariance_exact": "81385461/80000000",
      "working_iid_pair_mean_SE_approx": 1.0179978642741185,
      "incorrect_independent_pair_SE_reference_approx": 1.24297175467372,
      "actual_time_series_CI_certified": false
    },
    "person": {
      "sourceRows": 3613,
      "observedLogWages": 3010,
      "missing": 603,
      "groups": [
        {
          "actual1976_SMSA_indicator": 1,
          "all_actual_person_records": 2510,
          "available_source_trimmed_log_wages": 2146,
          "missing_source_log_wages": 364,
          "mean_log_wage_exact": "1170658439/185000000",
          "sample_variance_log_wage_exact": "14965860420712624909/79365000000000000000"
        },
        {
          "actual1976_SMSA_indicator": 0,
          "all_actual_person_records": 1103,
          "available_source_trimmed_log_wages": 864,
          "missing_source_log_wages": 239,
          "mean_log_wage_exact": "175615872667/28800000000",
          "sample_variance_log_wage_exact": "149319970392241227143/828480000000000000000"
        }
      ],
      "Welch": {
        "first_group": "actual_SMSA1976_1",
        "second_group": "actual_SMSA1976_0",
        "n1": 2146,
        "n0": 864,
        "observed_mean_log_difference_exact": "245205319961/1065600000000",
        "Welch_SE_squared_exact": "240962907732099246213145273/812761738094592000000000000000",
        "Welch_SE_approx": 0.017218426949786692,
        "Welch_Satterthwaite_df_exact_from_sample_moments": "895688991787539141382730369214993500323713600105949384920125/550507921898202672696676931816230795216089107237403793891",
        "Welch_df_approx": 1627.0228931476952,
        "Welch_t_approx": 13.364176543656283,
        "Welch_two_sided_p_approx": 9.954860368062467e-39,
        "Welch_t975_critical_approx": 1.9614230955143674,
        "Welch_CI95_difference_lower_approx": 0.1963374772732599,
        "Welch_CI95_difference_upper_approx": 0.2638827178487371,
        "equal_variance_pooled_SE_reference_approx": 0.017385054523519867,
        "equal_variance_pooled_df": 3008,
        "geometric_center_ratio_approx": 1.2587385863491667,
        "is_observed_group_difference_causal_return_to_metro": false
      }
    },
    "company": {
      "sourceRows": 3150,
      "groups": [
        {
          "actual_first9months_complaint_indicator": 1,
          "actual_records": 241,
          "actual_month12_churn_count": 200,
          "actual_month12_nonchurn_count": 41,
          "observed_churn_fraction_exact": "200/241"
        },
        {
          "actual_first9months_complaint_indicator": 0,
          "actual_records": 2909,
          "actual_month12_churn_count": 295,
          "actual_month12_nonchurn_count": 2614,
          "observed_churn_fraction_exact": "295/2909"
        }
      ],
      "comparison": {
        "n_complaint": 241,
        "n_no_complaint": 2909,
        "churn_complaint": 200,
        "churn_no_complaint": 295,
        "p_complaint_exact": "200/241",
        "p_no_complaint_exact": "295/2909",
        "observed_proportion_difference_exact": "510705/701069",
        "pooled_null_proportion_exact": "11/70",
        "pooled_null_SE_squared_exact": "5841/9814966",
        "unpooled_estimation_SE_squared_exact": "212651466886530/344573831019711509",
        "pooled_null_SE_approx": 0.024394909053997837,
        "unpooled_estimation_SE_approx": 0.024842371135958222,
        "normal_reference_z_approx": 29.86139845880971,
        "normal_reference_two_sided_p_approx": 6.244137158153659e-196,
        "unpooled_Wald95_lower_approx": 0.6797759469107986,
        "unpooled_Wald95_upper_approx": 0.7771562523449095,
        "complaint_is_randomly_assigned_treatment": false
      },
      "originalRandomizationVerified": false
    }
  },
  "enrichment": [
    {
      "kind": "video",
      "title": {
        "ko": "MIT · 모수 검정의 가정과 임계값 이어 보기",
        "en": "MIT · Parametric hypotheses and calibration"
      },
      "provider": "MIT OCW · Philippe Rigollet, 18.650 Lecture8",
      "url": "https://ocw.mit.edu/courses/18-650-statistics-for-applications-fall-2016/resources/lecture-8-video/",
      "videoId": "4HRhg4eUiMo",
      "focus": {
        "ko": "심화 연결 영상입니다. 검정통계량의 기준 분포를 정하려면 어떤 모형을 가정하는지 찾아보세요. Welch 공식 자체의 짧은 설명 영상으로 간주하지 않고 아래 NIST 식과 연결합니다.",
        "en": "This is a deeper bridge: identify the model behind a statistic’s reference distribution. Pair it with the NIST formulas below rather than treating it as a short dedicated Welch tutorial."
      },
      "question": {
        "ko": "서로 다른 두 분산을 한 분산으로 합칠 때 어떤 추가 가정이 들어가나요?",
        "en": "What extra assumption enters when pooling two variances?"
      },
      "answer": {
        "ko": "두 집단의 모분산이 같다는 가정입니다. Welch는 이를 먼저 강제하지 않고 유효 자유도의 근사를 사용합니다.",
        "en": "Equal population variances are assumed; Welch does not impose that first and instead uses an effective-df approximation."
      }
    },
    {
      "kind": "thinker",
      "title": {
        "ko": "B. L. 웰치 · 서로 다른 모집단 분산의 문제",
        "en": "B. L. Welch · The unequal-population-variance problem"
      },
      "provider": "Biometrika / Oxford University Press ·1947 paper bibliographic record",
      "url": "https://academic.oup.com/biomet/article-abstract/34/1-2/28/210174?login=false",
      "focus": {
        "ko": "1947년 논문의 저자·제목·게재 정보를 읽으며 같은 “두 평균 비교”라도 분산 가정에 따라 문제가 달라짐을 생각합니다. 상세 유도는 공개 NIST의 식과 본문에서 공부합니다.",
        "en": "Read the author, title and 1947 publication record to see why comparing means changes when population variances differ. Study the actual formulas through the public NIST reading and this chapter."
      },
      "question": {
        "ko": "Welch 자유도는 왜 꼭 n1+n0−2가 아닌가요?",
        "en": "Why need Welch df differ from n1+n0−2?"
      },
      "answer": {
        "ko": "각 집단이 별도로 추정한 분산의 불확실성을 합친 비율을 근사하기 때문입니다. 등분산 합동식과 같은 계산이 아닙니다.",
        "en": "It approximates a ratio involving uncertainty in separately estimated variances, rather than using the equal-variance pooled calculation."
      }
    },
    {
      "kind": "reading",
      "title": {
        "ko": "NIST · 짝 자료·독립 자료·Welch 식",
        "en": "NIST · Paired data, independent groups and Welch formulas"
      },
      "provider": "NIST/SEMATECH e-Handbook",
      "url": "https://www.itl.nist.gov/div898/handbook/eda/section3/eda353.htm",
      "focus": {
        "ko": "첫 세 구분과 Welch–Satterthwaite 식까지만 읽습니다. 실제 적용에서는 독립성과 표집 조건도 확인하고, 기각하지 못함을 동등성의 증명으로 해석하지 않습니다.",
        "en": "Read the opening distinctions through the Welch–Satterthwaite formula. Check independence and sampling, and do not read a failure to reject as proof of equivalence."
      },
      "question": {
        "ko": "표의 n이 같으면 자동으로 짝 자료인가요?",
        "en": "Do equal sample sizes automatically make data paired?"
      },
      "answer": {
        "ko": "아닙니다. 같은 사람·점포·관측 의미의 일대일 대응이 있어야 합니다.",
        "en": "No. Pairing requires a meaningful one-to-one relationship between units or measurements."
      }
    },
    {
      "kind": "reading",
      "title": {
        "ko": "Penn State · 두 비율의 추정 SE와 귀무 SE",
        "en": "Penn State · Estimation SE and null SE for two proportions"
      },
      "provider": "Penn State Department of Statistics · STAT200 §9.1",
      "url": "https://online.stat.psu.edu/stat200/Lesson09",
      "focus": {
        "ko": "9.1.1의 구간 식과 이어지는 동일비율 검정의 합동 SE 식만 지정해 읽습니다. 단순 Wald의 큰 표본 조건과 두 집단의 독립 조건을 함께 확인합니다.",
        "en": "Read only §9.1.1’s interval formula and the following pooled-null SE formula; check the large-sample and independent-group conditions."
      },
      "question": {
        "ko": "차이의 구간에서도 p1=p0를 강제로 넣나요?",
        "en": "Do we impose p1=p0 when estimating an interval for their difference?"
      },
      "answer": {
        "ko": "여기 단순 Wald 추정 구간은 관측한 두 비율을 따로 사용합니다. 동일비율 귀무검정과 계산 목적이 다릅니다.",
        "en": "This simple Wald estimation interval uses separate observed proportions; it has a different purpose from an equal-proportion null test."
      }
    }
  ],
  "sources": [
    {
      "file": "실제데이터/korea-housing.csv",
      "sha256": "0db7456684f2da50d1fd15aee53b24217849744188d4f96e1e055cbdd2992777",
      "url": "https://data.bis.org/topics/RPP/BIS,WS_SPP,1.0/Q.KR.R.628",
      "scope": "Actual fully observed2023/2024 real quarters; match quarter labels, not a certified iid temporal sample.",
      "retrievedOn": "2026-10-22",
      "rawDownloaded": true,
      "originalFile": "work/textbooks-2026/raw/korea-housing-real.csv",
      "originalSha256": "788f5c38c76577de1014d81ee72fb27c00bcbf509ef55cf9386cc3db1b4e1043",
      "license": "BIS attribution terms."
    },
    {
      "file": "실제데이터/college-proximity.csv",
      "sha256": "fd3ef1ef0eba13c487ece6aae7617a2da0a2b4239eae40c6c2bf58d771c7b8e0",
      "url": "https://davidcard.berkeley.edu/data_sets.html",
      "scope": "Actual SMSA76R groups and all3613 original men;3010 source-trimmed log wages. Original codebook column116 verified.",
      "retrievedOn": "2026-10-22",
      "rawDownloaded": true,
      "originalFile": "work/textbooks-2026/raw/proximity.zip",
      "originalSha256": "0e9b2ad4182ea631ca3dd8a5fff6c1b0ab86b56c6a3fa868870f716e8d82691f",
      "license": "Author public replication data; no CC claim."
    },
    {
      "file": "실제데이터/churn.csv",
      "sha256": "92f3bdff6cf5075875169ea1d2482ecfbed5d4004b4fe029ce85d7b0fc0fdd0d",
      "url": "https://archive.ics.uci.edu/dataset/563/iranian+churn+dataset",
      "scope": "3150 actual telecom records, first9months complaint flag and month12 churn; collection year unspecified.",
      "retrievedOn": "2026-10-22",
      "rawDownloaded": true,
      "originalFile": "work/textbooks-2026/raw/churn.zip",
      "originalSha256": "696c3a1812267980751f30d19193a1b430ac4ad76172bb089e664c96813ead66",
      "license": "CC BY4.0; DOI10.24432/C5JW3Z"
    },
    {
      "url": "https://ocw.mit.edu/courses/18-650-statistics-for-applications-fall-2016/resources/lecture-8-video/",
      "retrievedOn": "2026-10-22",
      "webVerified": true,
      "rawDownloaded": false,
      "scope": "Official lesson/instructor and iframe target4HRhg4eUiMo directly verified; fetch cache miss means playback not certified. General parametric testing bridge, not asserted dedicated Welch instruction."
    },
    {
      "url": "https://academic.oup.com/biomet/article-abstract/34/1-2/28/210174?login=false",
      "retrievedOn": "2026-10-22",
      "webVerified": true,
      "rawDownloaded": false,
      "scope": "Publisher bibliographic metadata only: B.L.Welch,1947,Biometrika34,28–35,DOI10.1093/biomet/34.1-2.28. Paywalled full paper not claimed read; no detailed life events inferred."
    },
    {
      "url": "https://www.itl.nist.gov/div898/handbook/eda/section3/eda353.htm",
      "retrievedOn": "2026-10-22",
      "webVerified": true,
      "rawDownloaded": false,
      "scope": "Opening paired/unpaired/equal-unequal variance distinctions and Welch formula only. Exclude original car example and equivalence wording."
    },
    {
      "url": "https://online.stat.psu.edu/stat200/Lesson09",
      "retrievedOn": "2026-10-22",
      "webVerified": true,
      "rawDownloaded": false,
      "scope": "§9.1.1 simple interval formula and subsequent pooled-null standard error/large-cell conditions only; no original examples or Fisher-test claims imported."
    }
  ],
  "review": {
    "status": "Final cases: independent AI review and actual-source Python/R checks passed; parent browser/integration QA remains.",
    "scope": "Known descriptive quarterly differences, working Welch mean comparisons and working proportion calculations are distinct. No real iid/sampling/causal intervention claim.",
    "checks": {
      "pairedVarianceIdentity": true,
      "peopleAvailable": 3010,
      "customerTotals": 3150
    },
    "videoVerification": "Official MIT lesson and exact iframe ID verified; playback is parent browser QA.",
    "studentReviewerResponse": {
      "reviewFile": "work/textbook-rewrite-2026/stats13-pedagogy-review.json",
      "storedValuesCompared": 114895,
      "hashesChecked": 15,
      "chartPointsChecked": 6,
      "scope": "Independent AI KO/EN/source/CSV review, noninteger Welch tail via Decimal250 Spouge gamma plus incomplete-beta continued fraction, extreme normal tail via positive Mills expansion; relative3e-12/absolute1e-240. No unresolved findings; not human certification."
    },
    "reproduction": {
      "python": "stat13-reproduce.py",
      "R": "stat13-reproduce.R",
      "metricsCompared": 59,
      "numericCaseJSONUsedAsInput": false
    }
  }
}
