{
  "cases": {
    "ko": "<div class=\"case-studies\"><article class=\"case-study\" id=\"stats14-country-ko\"><h3>국가 사례 · 시기별 주택지수를 범주로 바꾸면 무엇이 남고 사라질까?</h3><p>BIS의 실제 한국 실질 주택지수 180분기(1980년 1분기–2024년 4분기)를 모두 사용합니다. 매 분기를 “지수>100” 또는 “지수≤100”으로 분류하고, 수업용 기간 1980–1999 / 2000–2009 / 2010–2024와 교차 집계합니다. 100은 2010년 평균이라는 기준일 뿐 적정가격·거품·정책 성공의 경계가 아닙니다. 세 기간도 공식적으로 식별한 구조변화 시점이 아니라 미리 정한 설명용 구분입니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>기간마다 분기 수가 다른 실제 집계</caption><thead><tr><th scope=\"col\">수업용 기간</th><th scope=\"col\">>100 관측 수</th><th scope=\"col\">≤100 관측 수</th><th scope=\"col\">전체 분기</th><th scope=\"col\">>100 비율</th></tr></thead><tbody><tr><th scope=\"row\">1980-1999</th><td>58</td><td>22</td><td>80</td><td>29/40</td></tr><tr><th scope=\"row\">2000-2009</th><td>12</td><td>28</td><td>40</td><td>3/10</td></tr><tr><th scope=\"row\">2010-2024</th><td>55</td><td>5</td><td>60</td><td>11/12</td></tr></tbody></table></div><div data-tex=\"\\begin{gathered}E_{ij}=\\frac{n_{i+}n_{+j}}{n}\\\\X^2=\\sum_{i,j}\\frac{(O_{ij}-E_{ij})^2}{E_{ij}}\\\\df=(r-1)(c-1)\\end{gathered}\"></div><p>독립 모형의 기대도수는 실제 관측을 바꾼 값이 아닙니다. 행·열의 주변합은 유지하면서 두 범주가 독립이라면 기대할 셀 수를 계산한 것입니다. 기간별 분기 수가 80·40·60으로 다르므로 관측 수만 비교하지 말고 행 내 비율도 보세요. 기대도수가 정수가 아니어도 문제없습니다. 각 셀의 기여도는 (관측−기대)²/기대이며 모두 0 이상입니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>셀별 관측·기대·기여도</caption><thead><tr><th scope=\"col\">기간</th><th scope=\"col\">지수 범주</th><th scope=\"col\">관측 O</th><th scope=\"col\">독립 기대 E</th><th scope=\"col\">χ² 기여</th></tr></thead><tbody><tr><th scope=\"row\">1980-1999</th><td>지수>100</td><td>58</td><td>55.5556</td><td>0.10756</td></tr><tr><th scope=\"row\">1980-1999</th><td>지수≤100</td><td>22</td><td>24.4444</td><td>0.24444</td></tr><tr><th scope=\"row\">2000-2009</th><td>지수>100</td><td>12</td><td>27.7778</td><td>8.96178</td></tr><tr><th scope=\"row\">2000-2009</th><td>지수≤100</td><td>28</td><td>12.2222</td><td>20.36768</td></tr><tr><th scope=\"row\">2010-2024</th><td>지수>100</td><td>55</td><td>41.6667</td><td>4.26667</td></tr><tr><th scope=\"row\">2010-2024</th><td>지수≤100</td><td>5</td><td>18.3333</td><td>9.69697</td></tr></tbody></table></div><div data-case-chart=\"country\"></div><p>집계의 Pearson χ²=43.645091, 자유도 2, 기술적 Cramér V≈0.492415입니다. χ²₂ 분포를 기계적으로 대입한 참조 꼬리값은 약 3.33111e-10이지만, 이것을 실제 시계열의 타당한 p값으로 인증하지 않습니다. 분기 의존성·추세가 있고 180개의 무작위 독립 분기를 뽑았다고 입증하지 않았습니다. 여기서는 완전히 관측한 표의 연관성과 기대도수 계산을 배웁니다.</p><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 기대도수가 모두 5 이상이면 시계열 독립 조건도 통과하나요?</summary><div><p>아닙니다. 기대도수 크기는 카이제곱 근사의 한 점검일 뿐입니다. 표집·측정 단위의 독립성은 별도 문제입니다. 작은 기대도수라면 근사 대신 정확·모의 방법 등을 검토할 수 있지만, 단순 무작위 재배열도 시계열 의존성을 자동으로 보존하지 않습니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 지수를 두 범주로 바꾸면 어떤 정보가 사라지나요?</summary><div><p>101과 140은 모두 >100이므로 크기 차이가 사라집니다. 같은 기간 안 시간 순서와 상승·하락 경로도 표에서는 보이지 않습니다. 범주 표는 질문에 맞는 압축일 수 있으나 연속 지수·시계열 그래프를 대체하지 않습니다. 기준과 구간을 결과가 유리하도록 사후 변경하지 마세요.</p></div></details></article><article class=\"case-study\" id=\"stats14-person-ko\"><h3>개인 자료 사례 · 학력 연수 네 구간의 평균 차이를 ANOVA로 분해하기</h3><p>Card의 실제 1976년 남성 기록을 교육 연수 ≤11 / 12 / 13–15 / ≥16의 네 구간으로 미리 나눕니다. 이것은 실제 보고된 교육 연수에서 유도한 범주이며 특정 학위 취득을 확인한 라벨이 아닙니다. 3613개 기록 중 log 임금이 있는 3010개를 분석하고 603개 결측은 채우지 않습니다. 집단별 결측 수와 관측 평균을 함께 남겨 어느 분모를 사용했는지 확인할 수 있게 합니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>교육 연수 구간별 실제 기록과 관측 log 임금</caption><thead><tr><th scope=\"col\">유도한 연수 구간</th><th scope=\"col\">전체</th><th scope=\"col\">관측</th><th scope=\"col\">결측</th><th scope=\"col\">평균 log</th><th scope=\"col\">표본분산</th></tr></thead><tbody><tr><th scope=\"row\">≤11년</th><td>612</td><td>497</td><td>115</td><td>5.993261</td><td>0.180491</td></tr><tr><th scope=\"row\">12년</th><td>1194</td><td>992</td><td>202</td><td>6.249024</td><td>0.175638</td></tr><tr><th scope=\"row\">13–15년</th><td>838</td><td>704</td><td>134</td><td>6.276507</td><td>0.166247</td></tr><tr><th scope=\"row\">≥16년</th><td>969</td><td>817</td><td>152</td><td>6.428116</td><td>0.188034</td></tr></tbody></table></div><div data-tex=\"\\begin{gathered}SS_T=\\sum_{g,i}(L_{gi}-\\overline L)^2\\\\SS_B=\\sum_g n_g(\\overline L_g-\\overline L)^2\\\\SS_W=\\sum_{g,i}(L_{gi}-\\overline L_g)^2\\\\SS_T=SS_B+SS_W\\end{gathered}\"></div><p>먼저 이것은 어떤 표집 가정도 필요 없는 자료의 대수적 항등식입니다. 각 사람의 전체 평균 대비 차이를 “그 집단 평균과 전체 평균의 차이”와 “그 사람과 집단 평균의 차이”로 나눕니다. 집단 안 잔차의 합이 0이어서 제곱 전개의 교차항이 사라집니다. 공개 CSV에는 실제값·집단 적합값·잔차·잔차제곱 3010행을 모두 넣었습니다. 전체 평균은 네 집단 평균의 단순 평균이 아니라 관측 인원으로 가중한 평균입니다.</p><div data-tex=\"\\begin{gathered}F=\\frac{SS_B/(k-1)}{SS_W/(n-k)}\\\\k=4,\\quad n=3010\\\\\\eta^2=\\frac{SS_B}{SS_T}\\end{gathered}\"></div><div class=\"table-scroll\" tabindex=\"0\"><table><caption>실제 제곱합에서 만든 일원 ANOVA 표</caption><thead><tr><th scope=\"col\">구성</th><th scope=\"col\">자유도</th><th scope=\"col\">제곱합 log²</th><th scope=\"col\">평균제곱 log²</th></tr></thead><tbody><tr><th scope=\"row\">집단 간</th><td>3</td><td>58.753551124</td><td>19.584517041</td></tr><tr><th scope=\"row\">집단 내</th><td>3006</td><td>533.888122021</td><td>0.177607492</td></tr><tr><th scope=\"row\">전체</th><td>3009</td><td>592.641673145</td><td>—</td></tr></tbody></table></div><div data-case-chart=\"person\"></div><p>관측 F≈110.268530, 기술적 η²≈0.099138입니다. η²는 이 표본 log 임금의 전체 제곱편차 중 이 네 구간의 평균 차이가 설명하는 몫이며, 교육이 인과적으로 만든 비율이 아닙니다. 정규·독립·집단 공통분산 오차의 고전적 귀무모형을 가정하면 F3,3006 참조 꼬리값은 약 9.80736e-68입니다. 실제 조사에 그 조건이 성립한다고 검증하지 않았습니다. 집단별 분산이 다를 수 있으므로 잔차·표집을 확인하고 필요하면 Welch ANOVA나 강건 방법을 검토해야 합니다.</p><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: F 검정에서 기각하면 네 평균이 모두 서로 다르다고 말하나요?</summary><div><p>아닙니다. 귀무가설은 네 모평균이 모두 같음이고 대립가설은 적어도 하나가 다름입니다. 어느 쌍이 다른지는 계획된 대비·다중 비교와 그 조건을 따로 검토해야 합니다. 네 집단의 여섯 쌍을 각각 .05로 검사한 결과를 전체 .05 오류 통제라고 보고하지 않습니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 교육 연수를 1·2·3·4라는 구간 코드로 바꿔 평균 코드를 비교해도 같은 문제인가요?</summary><div><p>아닙니다. 교육 연수 범주 코드는 라벨이며 구간의 간격·폭은 같지 않습니다. ANOVA의 반응은 실제 log 임금이고 설명 범주는 학력 연수 구간입니다. 범주의 숫자 이름을 연속 반응으로 바꿔서는 안 됩니다. 학위 취득 여부나 교육의 수익률도 이 라벨만으로 추가하지 않습니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 작은 F 꼬리값이 관측된 교육–임금 차이를 인과로 바꾸나요?</summary><div><p>아닙니다. 교육 선택과 임금의 공통 원인, 결측·원자료 절단·조사 가중치의 부재가 남습니다. 원래 연구가 다룬 도구변수 식별을 이 ANOVA가 대신하는 것도 아닙니다. 자료의 제곱합 분해와 고전적 검정 모형, 인과 질문을 구별합니다.</p></div></details></article><article class=\"case-study\" id=\"stats14-company-ko\"><h3>기업 고객 사례 · 같은 2×2 표를 카이제곱과 두 비율로 읽기</h3><p>UCI 실제 고객 3150명의 첫 9개월 불만 지표와 12개월 이탈 지표를 교차 집계합니다. 불만 집단 241명 중 이탈 200명, 무불만 집단 2909명 중 이탈 295명입니다. 불만·이탈의 0/1은 서로 다른 이진 변수의 이름표이며, 두 변수를 “불만이 곧 이탈”이라는 같은 값으로 합치지 않습니다. 수집 연도는 명시되지 않았고, 공개일 2020년을 수집 연도로 대체하지 않습니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>같은 고객 표의 관측 수와 독립 기대도수</caption><thead><tr><th scope=\"col\">불만</th><th scope=\"col\">이탈</th><th scope=\"col\">관측 O</th><th scope=\"col\">기대 E</th><th scope=\"col\">Pearson 잔차</th><th scope=\"col\">χ² 기여</th></tr></thead><tbody><tr><th scope=\"row\">불만 있음</th><td>이탈</td><td>200</td><td>37.87143</td><td>26.34533</td><td>694.07663</td></tr><tr><th scope=\"row\">불만 있음</th><td>비이탈</td><td>41</td><td>203.12857</td><td>-11.37559</td><td>129.40412</td></tr><tr><th scope=\"row\">불만 없음</th><td>이탈</td><td>295</td><td>457.12857</td><td>-7.58299</td><td>57.50171</td></tr><tr><th scope=\"row\">불만 없음</th><td>비이탈</td><td>2614</td><td>2,451.87143</td><td>3.27424</td><td>10.72066</td></tr></tbody></table></div><div data-case-chart=\"company\"></div><div data-tex=\"\\begin{gathered}X^2=Z_{\\rm pooled}^2\\\\(2\\times2\\text{ table})\\\\\\text{no continuity correction}\\\\V=\\sqrt{X^2/n}\\end{gathered}\"></div><p>이 2×2 표에서 연속성 보정을 쓰지 않은 Pearson χ²는 앞 장의 합동 귀무 SE를 사용한 두 비율 z의 제곱과 정확히 같습니다. 관측 차이의 방향은 제곱하면서 사라지므로 “어느 집단이 더 높은가?”는 관측 비율 표에서 읽어야 합니다. 여기 χ²=891.703118, V≈0.532053, 자유도 1의 참조 꼬리값은 약 6.2441372e-196입니다. 이항 독립 작업모형에서의 근사 계산이며 이 통신사의 모든 미래 고객이나 다른 회사에 대한 정확한 예측·인과 보장이 아닙니다.</p><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: Pearson 잔차의 부호와 χ² 기여도의 부호는 왜 다른가요?</summary><div><p>잔차 (O−E)/√E는 기대보다 많으면 양수, 적으면 음수입니다. χ² 기여도는 그 제곱이어서 음수가 없습니다. 잔차는 어떤 셀이 모형보다 많고 적은지 설명하지만, 여러 잔차를 보고 가장 큰 것만 사후 유의하다고 고르는 일에는 추가 다중 비교 문제가 있습니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 행을 복제해 고객 수를 두 배로 만들면 χ²와 V는 어떻게 되나요?</summary><div><p>모든 셀을 같은 배수 c로 복제하면 χ²는 c배이고 n도 c배라 V는 같습니다. 그러나 복제 행은 새로운 독립 고객이 아닙니다. 커진 n으로 더 작은 p값을 얻는 것은 유효한 새로운 증거가 아닙니다. 원래 관측 단위와 중복·반복 구조를 보존하세요.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 이 표의 독립성 귀무가설이 기각되면 불만 처리로 이탈을 줄인다고 결론내리나요?</summary><div><p>아닙니다. 불만은 무작위 처치가 아니며 서비스·사용량·계약 조건 등과 섞일 수 있습니다. 연관성의 크기·실제 집계·조건부 비교는 다음 분석의 출발점이지 개입 효과의 결론이 아닙니다. 이 사례에서는 원자료를 유지한 정확 집계와 명시한 참조 모형을 공부합니다.</p></div></details></article><p>자료·가공·재현: <a href=\"stats14-sources/actual180-quarters-and-defined-period-index-categories.csv\" download>actual180-quarters-and-defined-period-index-categories.csv</a> · <a href=\"stats14-sources/actual-period-by-index-six-observed-expected-cells.csv\" download>actual-period-by-index-six-observed-expected-cells.csv</a> · <a href=\"stats14-sources/actual-housing-categorical-association-summary.csv\" download>actual-housing-categorical-association-summary.csv</a> · <a href=\"stats14-sources/actual3613-person-records-and-derived-education-bands.csv\" download>actual3613-person-records-and-derived-education-bands.csv</a> · <a href=\"stats14-sources/actual-four-education-band-log-wage-moments.csv\" download>actual-four-education-band-log-wage-moments.csv</a> · <a href=\"stats14-sources/actual3010-within-band-fits-and-residuals.csv\" download>actual3010-within-band-fits-and-residuals.csv</a> · <a href=\"stats14-sources/actual-one-way-ANOVA-sum-of-squares-table.csv\" download>actual-one-way-ANOVA-sum-of-squares-table.csv</a> · <a href=\"stats14-sources/actual-one-way-ANOVA-summary-and-working-tail.csv\" download>actual-one-way-ANOVA-summary-and-working-tail.csv</a> · <a href=\"stats14-sources/actual3150-customer-complaint-and-churn-records.csv\" download>actual3150-customer-complaint-and-churn-records.csv</a> · <a href=\"stats14-sources/actual-four-complaint-churn-observed-expected-cells.csv\" download>actual-four-complaint-churn-observed-expected-cells.csv</a> · <a href=\"stats14-sources/actual-customer-Pearson-and-two-proportion-identity.csv\" download>actual-customer-Pearson-and-two-proportion-identity.csv</a> · <a href=\"stats14-sources/provenance.json\" download>provenance</a></p></div>",
    "en": "<div class=\"case-studies\"><article class=\"case-study\" id=\"stats14-country-en\"><h3>Country case · What is retained and lost when housing indices become categories?</h3><p>Use all 180 actual BIS Korea real housing-index quarters, 1980-Q1–2024-Q4. Classify each as index>100 or index≤100, then cross-tabulate prespecified teaching periods 1980–1999 / 2000–2009 / 2010–2024. The threshold 100 is the 2010-average reference, not fair value, a bubble criterion or a policy-success threshold. These periods are explanatory divisions, not officially identified structural breaks.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Actual counts with unequal period lengths</caption><thead><tr><th scope=\"col\">Teaching period</th><th scope=\"col\">Observed >100</th><th scope=\"col\">Observed ≤100</th><th scope=\"col\">All quarters</th><th scope=\"col\">Fraction >100</th></tr></thead><tbody><tr><th scope=\"row\">1980-1999</th><td>58</td><td>22</td><td>80</td><td>29/40</td></tr><tr><th scope=\"row\">2000-2009</th><td>12</td><td>28</td><td>40</td><td>3/10</td></tr><tr><th scope=\"row\">2010-2024</th><td>55</td><td>5</td><td>60</td><td>11/12</td></tr></tbody></table></div><div data-tex=\"\\begin{gathered}E_{ij}=\\frac{n_{i+}n_{+j}}{n}\\\\X^2=\\sum_{i,j}\\frac{(O_{ij}-E_{ij})^2}{E_{ij}}\\\\df=(r-1)(c-1)\\end{gathered}\"></div><p>An independence-model expected count does not replace an observed value. It preserves row and column margins while calculating cell expectations under independence. Since periods contain 80, 40 and 60 quarters, compare within-row fractions as well as counts. Expected counts need not be integers. Every contribution (observed−expected)²/expected is nonnegative.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Observed, expected and contribution in each cell</caption><thead><tr><th scope=\"col\">Period</th><th scope=\"col\">Index category</th><th scope=\"col\">Observed O</th><th scope=\"col\">Independence E</th><th scope=\"col\">χ² contribution</th></tr></thead><tbody><tr><th scope=\"row\">1980-1999</th><td>Index>100</td><td>58</td><td>55.5556</td><td>0.10756</td></tr><tr><th scope=\"row\">1980-1999</th><td>Index≤100</td><td>22</td><td>24.4444</td><td>0.24444</td></tr><tr><th scope=\"row\">2000-2009</th><td>Index>100</td><td>12</td><td>27.7778</td><td>8.96178</td></tr><tr><th scope=\"row\">2000-2009</th><td>Index≤100</td><td>28</td><td>12.2222</td><td>20.36768</td></tr><tr><th scope=\"row\">2010-2024</th><td>Index>100</td><td>55</td><td>41.6667</td><td>4.26667</td></tr><tr><th scope=\"row\">2010-2024</th><td>Index≤100</td><td>5</td><td>18.3333</td><td>9.69697</td></tr></tbody></table></div><div data-case-chart=\"country\"></div><p>The table has Pearson χ²=43.645091, df=2, and descriptive Cramér V≈0.492415. Mechanically substituting a χ²₂ reference gives a tail about 3.33111e-10, but this is not certified as a valid p-value for the actual time series. Quarters may have dependence and trends; no independent random sample of 180 quarters has been established. Learn observed table association and expected-count arithmetic here.</p><details class=\"case-answer\"><summary>Think first, then reveal: Do expected counts above five establish independent time-series observations?</summary><div><p>No. Expected-count size is only one approximation check. Independence of sampling/measurement units is separate. Sparse expected cells may call for exact or simulation methods, but naive random permutation does not automatically preserve time-series dependence either.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: What information is lost after binning the index?</summary><div><p>Values 101 and 140 both become >100, losing their magnitude difference. Within-period time order and rise/fall paths also disappear. A table is a question-specific summary, not a replacement for continuous values and a time-series plot. Do not change cutoffs after inspecting results to favor a conclusion.</p></div></details></article><article class=\"case-study\" id=\"stats14-person-en\"><h3>Person-record case · Decompose differences across four schooling-year bands with ANOVA</h3><p>Prespecify four bands of reported schooling years in Card’s actual 1976 men’s records: ≤11 / 12 / 13–15 / ≥16. These are derived year bands, not verified degree credentials. Analyze 3,010 available log wages from 3,613 records and retain the 603 missing wages. List group missing counts and observed means so the denominator remains visible.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Actual records and observed log wages by schooling-year band</caption><thead><tr><th scope=\"col\">Derived year band</th><th scope=\"col\">All</th><th scope=\"col\">Observed</th><th scope=\"col\">Missing</th><th scope=\"col\">Mean log</th><th scope=\"col\">Sample variance</th></tr></thead><tbody><tr><th scope=\"row\">≤11 years</th><td>612</td><td>497</td><td>115</td><td>5.993261</td><td>0.180491</td></tr><tr><th scope=\"row\">12 years</th><td>1194</td><td>992</td><td>202</td><td>6.249024</td><td>0.175638</td></tr><tr><th scope=\"row\">13–15 years</th><td>838</td><td>704</td><td>134</td><td>6.276507</td><td>0.166247</td></tr><tr><th scope=\"row\">≥16 years</th><td>969</td><td>817</td><td>152</td><td>6.428116</td><td>0.188034</td></tr></tbody></table></div><div data-tex=\"\\begin{gathered}SS_T=\\sum_{g,i}(L_{gi}-\\overline L)^2\\\\SS_B=\\sum_g n_g(\\overline L_g-\\overline L)^2\\\\SS_W=\\sum_{g,i}(L_{gi}-\\overline L_g)^2\\\\SS_T=SS_B+SS_W\\end{gathered}\"></div><p>First, this is an algebraic identity requiring no sampling assumption. Split each person’s deviation from the grand mean into a group-mean deviation plus a within-group residual. Within-group residuals sum to zero, eliminating cross terms in the squared expansion. A public CSV includes all 3,010 actual values, group fits, residuals and squared residuals. The grand mean weights group means by observed group sizes; it is not their simple average.</p><div data-tex=\"\\begin{gathered}F=\\frac{SS_B/(k-1)}{SS_W/(n-k)}\\\\k=4,\\quad n=3010\\\\\\eta^2=\\frac{SS_B}{SS_T}\\end{gathered}\"></div><div class=\"table-scroll\" tabindex=\"0\"><table><caption>One-way ANOVA table from actual sums of squares</caption><thead><tr><th scope=\"col\">Component</th><th scope=\"col\">df</th><th scope=\"col\">Sum of squares, log²</th><th scope=\"col\">Mean square, log²</th></tr></thead><tbody><tr><th scope=\"row\">Between groups</th><td>3</td><td>58.753551124</td><td>19.584517041</td></tr><tr><th scope=\"row\">Within groups</th><td>3006</td><td>533.888122021</td><td>0.177607492</td></tr><tr><th scope=\"row\">Total</th><td>3009</td><td>592.641673145</td><td>—</td></tr></tbody></table></div><div data-case-chart=\"person\"></div><p>Observed F≈110.268530 and descriptive η²≈0.099138. Here η² is the fraction of sample total squared log-wage deviations accounted for by differences among these four group means, not a fraction causally created by schooling. Under the classical normal, independent, common-error-variance null model, the F3,3006 reference tail is about 9.80736e-68. Those conditions are not verified for the actual survey. Check residuals and sampling; unequal variances may call for Welch ANOVA or robust approaches.</p><details class=\"case-answer\"><summary>Think first, then reveal: Does rejecting the F test mean all four means differ from one another?</summary><div><p>No. The null says all four population means are equal; the alternative says at least one differs. Identifying pairs requires planned contrasts or multiple-comparison procedures and their assumptions. Six pairwise .05 tests do not automatically provide .05 familywise control.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Would averaging band codes 1,2,3,4 address the same question?</summary><div><p>No. The band codes are labels with unequal year widths and gaps. The ANOVA response is actual log wage, while schooling-year band is the categorical predictor. Do not turn numeric category names into a continuous response or infer degree completion and returns to schooling from the labels.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Does a tiny F tail turn the schooling–wage association into causation?</summary><div><p>No. Shared causes of schooling selection and wages, missingness, source trimming and unused survey weights remain. This ANOVA does not substitute for the original study’s instrumental-variable identification. Keep a descriptive sum-of-squares decomposition, a classical testing model and a causal question distinct.</p></div></details></article><article class=\"case-study\" id=\"stats14-company-en\"><h3>Customer case · Read the same 2×2 table through chi-square and two proportions</h3><p>Cross-tabulate first-nine-month complaints and month-12 churn for 3,150 actual UCI customers. There are 200 churns among 241 complaint records and 295 among 2,909 no-complaint records. The 0/1 flags label distinct binary variables; do not collapse complaint and churn into the same concept. Collection years are unspecified; the 2020 release date is not a collection year.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Observed and independence-expected customer counts</caption><thead><tr><th scope=\"col\">Complaint</th><th scope=\"col\">Churn</th><th scope=\"col\">Observed O</th><th scope=\"col\">Expected E</th><th scope=\"col\">Pearson residual</th><th scope=\"col\">χ² contribution</th></tr></thead><tbody><tr><th scope=\"row\">Complaint recorded</th><td>Churn</td><td>200</td><td>37.87143</td><td>26.34533</td><td>694.07663</td></tr><tr><th scope=\"row\">Complaint recorded</th><td>No churn</td><td>41</td><td>203.12857</td><td>-11.37559</td><td>129.40412</td></tr><tr><th scope=\"row\">No complaint</th><td>Churn</td><td>295</td><td>457.12857</td><td>-7.58299</td><td>57.50171</td></tr><tr><th scope=\"row\">No complaint</th><td>No churn</td><td>2614</td><td>2,451.87143</td><td>3.27424</td><td>10.72066</td></tr></tbody></table></div><div data-case-chart=\"company\"></div><div data-tex=\"\\begin{gathered}X^2=Z_{\\rm pooled}^2\\\\(2\\times2\\text{ table})\\\\\\text{no continuity correction}\\\\V=\\sqrt{X^2/n}\\end{gathered}\"></div><p>For this 2×2 table, Pearson χ² without continuity correction equals the square of the previous chapter’s two-proportion z using the pooled-null SE. Squaring removes direction, so read which group has the higher observed fraction from the proportion table. Here χ²=891.703118, V≈0.532053, and the df1 reference tail is about 6.2441372e-196. This is an approximate working-model calculation, not exact prediction or causal assurance for all future customers or other companies.</p><details class=\"case-answer\"><summary>Think first, then reveal: Why can Pearson residuals be signed while χ² contributions cannot?</summary><div><p>A residual (O−E)/√E is positive for an excess and negative for a deficit. Its squared contribution is nonnegative. Residuals help describe cell deviations, but declaring only the largest inspected residual significant creates an additional multiple-comparison issue.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: What happens to χ² and V if every customer row is duplicated?</summary><div><p>Multiplying all cells by c multiplies χ² and n by c, leaving V unchanged. Duplicated records are not new independent customers. A smaller p-value obtained from the inflated n is not valid new evidence. Preserve observational units and duplicate/repeated-record structure.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Does rejecting independence show that complaint handling will reduce churn?</summary><div><p>No. Complaints are not randomized treatments and may share causes with service quality, usage and contract features. Association magnitude, actual counts and conditional comparisons can motivate further work but do not conclude an intervention effect. Here the goal is exact source-preserving counts and an explicit reference model.</p></div></details></article><p>Data, processing and reproduction: <a href=\"stats14-sources/actual180-quarters-and-defined-period-index-categories.csv\" download>actual180-quarters-and-defined-period-index-categories.csv</a> · <a href=\"stats14-sources/actual-period-by-index-six-observed-expected-cells.csv\" download>actual-period-by-index-six-observed-expected-cells.csv</a> · <a href=\"stats14-sources/actual-housing-categorical-association-summary.csv\" download>actual-housing-categorical-association-summary.csv</a> · <a href=\"stats14-sources/actual3613-person-records-and-derived-education-bands.csv\" download>actual3613-person-records-and-derived-education-bands.csv</a> · <a href=\"stats14-sources/actual-four-education-band-log-wage-moments.csv\" download>actual-four-education-band-log-wage-moments.csv</a> · <a href=\"stats14-sources/actual3010-within-band-fits-and-residuals.csv\" download>actual3010-within-band-fits-and-residuals.csv</a> · <a href=\"stats14-sources/actual-one-way-ANOVA-sum-of-squares-table.csv\" download>actual-one-way-ANOVA-sum-of-squares-table.csv</a> · <a href=\"stats14-sources/actual-one-way-ANOVA-summary-and-working-tail.csv\" download>actual-one-way-ANOVA-summary-and-working-tail.csv</a> · <a href=\"stats14-sources/actual3150-customer-complaint-and-churn-records.csv\" download>actual3150-customer-complaint-and-churn-records.csv</a> · <a href=\"stats14-sources/actual-four-complaint-churn-observed-expected-cells.csv\" download>actual-four-complaint-churn-observed-expected-cells.csv</a> · <a href=\"stats14-sources/actual-customer-Pearson-and-two-proportion-identity.csv\" download>actual-customer-Pearson-and-two-proportion-identity.csv</a> · <a href=\"stats14-sources/provenance.json\" download>provenance</a></p></div>"
  },
  "chartData": {
    "country": [
      {
        "x": 0,
        "y": 58,
        "modelY": 55.55555555555556,
        "label": {
          "ko": "1980-1999 · 지수>100",
          "en": "1980-1999 · Index>100"
        }
      },
      {
        "x": 1,
        "y": 22,
        "modelY": 24.444444444444443,
        "label": {
          "ko": "1980-1999 · 지수≤100",
          "en": "1980-1999 · Index≤100"
        }
      },
      {
        "x": 2,
        "y": 12,
        "modelY": 27.77777777777778,
        "label": {
          "ko": "2000-2009 · 지수>100",
          "en": "2000-2009 · Index>100"
        }
      },
      {
        "x": 3,
        "y": 28,
        "modelY": 12.222222222222221,
        "label": {
          "ko": "2000-2009 · 지수≤100",
          "en": "2000-2009 · Index≤100"
        }
      },
      {
        "x": 4,
        "y": 55,
        "modelY": 41.666666666666664,
        "label": {
          "ko": "2010-2024 · 지수>100",
          "en": "2010-2024 · Index>100"
        }
      },
      {
        "x": 5,
        "y": 5,
        "modelY": 18.333333333333332,
        "label": {
          "ko": "2010-2024 · 지수≤100",
          "en": "2010-2024 · Index≤100"
        }
      }
    ],
    "person": [
      {
        "x": 0,
        "y": 5.993260909376257,
        "modelY": 6.261831917744186,
        "label": {
          "ko": "≤11년 · 관측 n=497",
          "en": "≤11 years · observed n=497"
        }
      },
      {
        "x": 1,
        "y": 6.249023822308468,
        "modelY": 6.261831917744186,
        "label": {
          "ko": "12년 · 관측 n=992",
          "en": "12 years · observed n=992"
        }
      },
      {
        "x": 2,
        "y": 6.276506973622159,
        "modelY": 6.261831917744186,
        "label": {
          "ko": "13–15년 · 관측 n=704",
          "en": "13–15 years · observed n=704"
        }
      },
      {
        "x": 3,
        "y": 6.428116106842105,
        "modelY": 6.261831917744186,
        "label": {
          "ko": "≥16년 · 관측 n=817",
          "en": "≥16 years · observed n=817"
        }
      }
    ],
    "company": [
      {
        "x": 0,
        "y": 200,
        "modelY": 37.871428571428574,
        "label": {
          "ko": "불만 있음 · 이탈",
          "en": "Complaint recorded · Churn"
        }
      },
      {
        "x": 1,
        "y": 41,
        "modelY": 203.12857142857143,
        "label": {
          "ko": "불만 있음 · 비이탈",
          "en": "Complaint recorded · No churn"
        }
      },
      {
        "x": 2,
        "y": 295,
        "modelY": 457.12857142857143,
        "label": {
          "ko": "불만 없음 · 이탈",
          "en": "No complaint · Churn"
        }
      },
      {
        "x": 3,
        "y": 2614,
        "modelY": 2451.8714285714286,
        "label": {
          "ko": "불만 없음 · 비이탈",
          "en": "No complaint · No churn"
        }
      }
    ]
  },
  "chartMeta": {
    "country": {
      "plotType": "categorical-observed-expected-counts",
      "xlabel": {
        "ko": "셀의 두 범주",
        "en": "Two category labels for each cell"
      },
      "ylabel": {
        "ko": "관측 수와 독립 모형 기대도수 · 기록 개수",
        "en": "Observed and independence-expected record counts"
      },
      "legend": {
        "ko": "관측값과 다른 색의 기대도수",
        "en": "Observed counts and distinct-color expected counts"
      },
      "note": {
        "ko": "180분기 전체의 기술적 표입니다. 기대도수가 충분해도 시계열 독립·유효 p값이 입증되지 않습니다. 지수>100은 적정가격 판정이 아닙니다.",
        "en": "This describes all 180 quarters. Sufficient expected counts do not establish temporal independence or a valid time-series p-value. Index>100 is not a fair-value judgment."
      },
      "seriesKeys": [
        "y",
        "modelY"
      ],
      "seriesLabels": {
        "y": {
          "ko": "실제 관측 수 O",
          "en": "Actual observed count O"
        },
        "modelY": {
          "ko": "독립 모형 기대 E",
          "en": "Independence-model expected E"
        }
      },
      "connectObservedPoints": false,
      "includeZero": true
    },
    "company": {
      "plotType": "categorical-observed-expected-counts",
      "xlabel": {
        "ko": "셀의 두 범주",
        "en": "Two category labels for each cell"
      },
      "ylabel": {
        "ko": "관측 수와 독립 모형 기대도수 · 기록 개수",
        "en": "Observed and independence-expected record counts"
      },
      "legend": {
        "ko": "관측값과 다른 색의 기대도수",
        "en": "Observed counts and distinct-color expected counts"
      },
      "note": {
        "ko": "기대도수는 모형 계산이며 새로운 관측이 아닙니다. 행·열 순서를 바꿔도 전체 Pearson χ²는 같습니다.",
        "en": "Expected counts are model calculations, not additional observations. Row/column reordering leaves total Pearson χ² unchanged."
      },
      "seriesKeys": [
        "y",
        "modelY"
      ],
      "seriesLabels": {
        "y": {
          "ko": "실제 관측 수 O",
          "en": "Actual observed count O"
        },
        "modelY": {
          "ko": "독립 모형 기대 E",
          "en": "Independence-model expected E"
        }
      },
      "connectObservedPoints": false,
      "includeZero": true
    },
    "person": {
      "xlabel": {
        "ko": "실제 교육 연수에서 유도한 네 구간",
        "en": "Four bands derived from actual schooling years"
      },
      "ylabel": {
        "ko": "관측 평균 log 임금",
        "en": "Observed mean log wage"
      },
      "legend": {
        "ko": "각 구간 관측 평균과 가중 전체 평균",
        "en": "Observed band means and weighted grand mean"
      },
      "note": {
        "ko": "점은 실제 관측의 평균이며 미래 예측값이 아닙니다. 같은 높이의 참조는 3010명 가중 전체 평균입니다. 학력 인과효과·학위 취득 여부를 나타내지 않습니다.",
        "en": "Points are observed means, not future predictions. The constant reference is the weighted grand mean of 3,010 observed logs, not a causal schooling effect or degree status."
      },
      "seriesKeys": [
        "y",
        "modelY"
      ],
      "seriesLabels": {
        "y": {
          "ko": "집단 관측 평균",
          "en": "Observed group mean"
        },
        "modelY": {
          "ko": "관측 인원 가중 전체 평균",
          "en": "Observed-count weighted grand mean"
        }
      },
      "connectObservedPoints": false
    }
  },
  "models": {
    "country": {
      "periodOrder": [
        "1980-1999",
        "2000-2009",
        "2010-2024"
      ],
      "columnOrder": [
        "index_gt100",
        "index_le100"
      ],
      "observedCounts": [
        [
          58,
          22
        ],
        [
          12,
          28
        ],
        [
          55,
          5
        ]
      ],
      "cells": [
        {
          "row_category": "1980-1999",
          "column_category": "index_gt100",
          "observed_count": 58,
          "row_total": 80,
          "column_total": 125,
          "grand_total": 180,
          "independence_expected_count_exact": "500/9",
          "observed_row_fraction_exact": "29/40",
          "Pearson_contribution_exact": "121/1125",
          "Pearson_residual_approx": 0.3279566366999692
        },
        {
          "row_category": "1980-1999",
          "column_category": "index_le100",
          "observed_count": 22,
          "row_total": 80,
          "column_total": 55,
          "grand_total": 180,
          "independence_expected_count_exact": "220/9",
          "observed_row_fraction_exact": "11/40",
          "Pearson_contribution_exact": "11/45",
          "Pearson_residual_approx": -0.4944132324730443
        },
        {
          "row_category": "2000-2009",
          "column_category": "index_gt100",
          "observed_count": 12,
          "row_total": 40,
          "column_total": 125,
          "grand_total": 180,
          "independence_expected_count_exact": "250/9",
          "observed_row_fraction_exact": "3/10",
          "Pearson_contribution_exact": "10082/1125",
          "Pearson_residual_approx": -2.993622851626066
        },
        {
          "row_category": "2000-2009",
          "column_category": "index_le100",
          "observed_count": 28,
          "row_total": 40,
          "column_total": 55,
          "grand_total": 180,
          "independence_expected_count_exact": "110/9",
          "observed_row_fraction_exact": "7/10",
          "Pearson_contribution_exact": "10082/495",
          "Pearson_residual_approx": 4.5130562557624705
        },
        {
          "row_category": "2010-2024",
          "column_category": "index_gt100",
          "observed_count": 55,
          "row_total": 60,
          "column_total": 125,
          "grand_total": 180,
          "independence_expected_count_exact": "125/3",
          "observed_row_fraction_exact": "11/12",
          "Pearson_contribution_exact": "64/15",
          "Pearson_residual_approx": 2.0655911179772892
        },
        {
          "row_category": "2010-2024",
          "column_category": "index_le100",
          "observed_count": 5,
          "row_total": 60,
          "column_total": 55,
          "grand_total": 180,
          "independence_expected_count_exact": "55/3",
          "observed_row_fraction_exact": "1/12",
          "Pearson_contribution_exact": "320/33",
          "Pearson_residual_approx": -3.113995776646092
        }
      ],
      "summary": {
        "n": 180,
        "rows": 3,
        "columns": 2,
        "degrees_of_freedom": 2,
        "Pearson_chi_squared_exact": "60012/1375",
        "Cramer_V_approx": 0.492415198052139,
        "minimum_expected_count_exact": "110/9",
        "independent_sampling_validated": false,
        "chi2_reference_tail_approx_not_validated_time_series_p": 3.331109645611649e-10
      }
    },
    "person": {
      "sourceRows": 3613,
      "availableLogWages": 3010,
      "missingLogWages": 603,
      "bandOrder": [
        "years_le11",
        "years_eq12",
        "years13to15",
        "years_ge16"
      ],
      "groups": [
        {
          "derived_education_year_band": "years_le11",
          "all_actual_records": 612,
          "available_source_log_wages": 497,
          "missing_source_log_wages": 115,
          "group_mean_log_wage_exact": "74466266799/12425000000",
          "sample_variance_log_wage_exact": "111233194256878027029/616280000000000000000",
          "within_group_SS_exact": "111233194256878027029/1242500000000000000",
          "between_group_SS_contribution_exact": "32943364243806245115268561/918953000000000000000000"
        },
        {
          "derived_education_year_band": "years_eq12",
          "all_actual_records": 1194,
          "available_source_log_wages": 992,
          "missing_source_log_wages": 202,
          "group_mean_log_wage_exact": "619903163173/99200000000",
          "sample_variance_log_wage_exact": "1726644015745375235399/9830720000000000000000",
          "within_group_SS_exact": "1726644015745375235399/9920000000000000000",
          "between_group_SS_contribution_exact": "74622427722674460659209/458552000000000000000000"
        },
        {
          "derived_education_year_band": "years13to15",
          "all_actual_records": 838,
          "available_source_log_wages": 704,
          "missing_source_log_wages": 134,
          "group_mean_log_wage_exact": "441866090943/70400000000",
          "sample_variance_log_wage_exact": "164555551353828038643/989824000000000000000",
          "within_group_SS_exact": "164555551353828038643/1408000000000000000",
          "between_group_SS_contribution_exact": "49338025519129115601361/325424000000000000000000"
        },
        {
          "derived_education_year_band": "years_ge16",
          "all_actual_records": 969,
          "available_source_log_wages": 817,
          "missing_source_log_wages": 152,
          "group_mean_log_wage_exact": "12213420603/1900000000",
          "sample_variance_log_wage_exact": "607349754898693399/3230000000000000000",
          "within_group_SS_exact": "1822049264696080197/11875000000000000",
          "between_group_SS_contribution_exact": "18456358900841347695049/817000000000000000000"
        }
      ],
      "ANOVA": {
        "n_observed_log_wages": 3010,
        "number_of_defined_bands": 4,
        "grand_mean_log_wage_exact": "269258772463/43000000000",
        "between_SS_exact": "26032562726610066208607205017/443080668800000000000000000",
        "within_SS_exact": "1100258168228946626088651601/2060840320000000000000000",
        "total_SS_exact": "2548359194523461097827/4300000000000000000",
        "between_df": 3,
        "within_df": 3006,
        "total_df": 3009,
        "between_MS_exact": "26032562726610066208607205017/1329242006400000000000000000",
        "within_MS_exact": "1100258168228946626088651601/6194886001920000000000000000",
        "classical_F_exact_from_observed_sums": "26084627852063286341024419427034/236555506169223524609060094215",
        "classical_F_reference_tail_approx": 9.807360013456687e-68,
        "observed_eta_squared_exact": "26032562726610066208607205017/262588068895833590817667299232",
        "normal_iid_equal_variance_field_model_verified": false,
        "education_causal_effect_identified": false
      },
      "sampleSumsIdentityExact": true
    },
    "company": {
      "rowOrder": [
        "complaint1",
        "complaint0"
      ],
      "columnOrder": [
        "churn1",
        "churn0"
      ],
      "observedCounts": [
        [
          200,
          41
        ],
        [
          295,
          2614
        ]
      ],
      "cells": [
        {
          "row_category": "complaint1",
          "column_category": "churn1",
          "observed_count": 200,
          "row_total": 241,
          "column_total": 495,
          "grand_total": 3150,
          "independence_expected_count_exact": "2651/70",
          "observed_row_fraction_exact": "200/241",
          "Pearson_contribution_exact": "128799801/185570",
          "Pearson_residual_approx": 26.345334200845272
        },
        {
          "row_category": "complaint1",
          "column_category": "churn0",
          "observed_count": 41,
          "row_total": 241,
          "column_total": 2655,
          "grand_total": 3150,
          "independence_expected_count_exact": "14219/70",
          "observed_row_fraction_exact": "41/241",
          "Pearson_contribution_exact": "128799801/995330",
          "Pearson_residual_approx": -11.375593093643255
        },
        {
          "row_category": "complaint0",
          "column_category": "churn1",
          "observed_count": 295,
          "row_total": 2909,
          "column_total": 495,
          "grand_total": 3150,
          "independence_expected_count_exact": "31999/70",
          "observed_row_fraction_exact": "295/2909",
          "Pearson_contribution_exact": "128799801/2239930",
          "Pearson_residual_approx": -7.5829880712745465
        },
        {
          "row_category": "complaint0",
          "column_category": "churn0",
          "observed_count": 2614,
          "row_total": 2909,
          "column_total": 2655,
          "grand_total": 3150,
          "independence_expected_count_exact": "171631/70",
          "observed_row_fraction_exact": "2614/2909",
          "Pearson_contribution_exact": "128799801/12014170",
          "Pearson_residual_approx": 3.274241506110873
        }
      ],
      "summary": {
        "n": 3150,
        "rows": 2,
        "columns": 2,
        "degrees_of_freedom": 1,
        "Pearson_chi_squared_exact": "405719373150/454993781",
        "Cramer_V_approx": 0.5320529624895493,
        "minimum_expected_count_exact": "2651/70",
        "independent_sampling_validated": false,
        "chi2_reference_tail_approx": 6.244137158152722e-196,
        "observed_churn_fraction_difference_exact": "510705/701069",
        "pooled_two_proportion_z_squared_exact": "405719373150/454993781",
        "continuity_correction_used": false,
        "causal_complaint_intervention_effect_identified": false
      }
    },
    "numerics": {
      "method": "Scaled direct incomplete-beta quadrature for F upper tail, no1-CDF subtraction; erfc/exp closed forms for chi-square df1/df2. All tails labeled binary64 approximations.",
      "helperFile": "work/textbook-rewrite-2026/case-inference-f-numerics.py",
      "helperSHA256": "98d484b3c72e67c93aacb7217550cf7f5533aac8e76a33beb9c638de6168fc45"
    }
  },
  "enrichment": [
    {
      "kind": "video",
      "title": {
        "ko": "Khan Academy · 독립성 카이제곱 검정",
        "en": "Khan Academy · Chi-square test for association"
      },
      "provider": "Khan Academy · AP Statistics",
      "url": "https://www.youtube.com/watch?v=zOvUQWOzTlc",
      "creatorPage": "https://www.khanacademy.org/v/chi-square-test-association-independence",
      "videoId": "zOvUQWOzTlc",
      "focus": {
        "ko": "본문에서 기대도수가 주변합의 곱/전체 수로 계산되는 이유를 따라갑니다. 손·발 예시를 외우기보다 이 장의 실제 고객 표에서 직접 계산해 보세요.",
        "en": "Follow why expected counts equal a product of margins divided by the total; then calculate them in the actual customer table rather than memorizing the video’s example."
      },
      "question": {
        "ko": "독립 모형의 기대도수는 관측 수와 꼭 같아야 하나요?",
        "en": "Must an independence-model expected count equal the observed count?"
      },
      "answer": {
        "ko": "아닙니다. 관측과 기대의 차이를 모아 적합 정도를 봅니다. 기대도수도 합계·표집 모형에 의존하며 새 관측은 아닙니다.",
        "en": "No. Their differences measure lack of fit. Expected counts depend on margins and a model and are not new observations."
      }
    },
    {
      "kind": "thinker",
      "title": {
        "ko": "칼 피어슨 · 범주 빈도를 비교하는 통계량",
        "en": "Karl Pearson · A statistic comparing categorical counts"
      },
      "provider": "University of St Andrews · MacTutor",
      "url": "https://mathshistory.st-andrews.ac.uk/Biographies/Pearson/",
      "focus": {
        "ko": "통계학 공헌 중 1900년 카이제곱 검정 부분을 읽습니다. 방법의 역사와 우생학 등 인물의 사회적 주장을 구별하고, 범주 선택과 측정이 누구를 어떻게 나타내는지 비판적으로 살펴보세요.",
        "en": "Read the contribution concerning the 1900 chi-square test. Distinguish methodological history from eugenic social claims, and examine critically whom categories and measurements represent."
      },
      "question": {
        "ko": "유명한 학자가 만든 방법이면 변수 분류도 가치중립적으로 정답인가요?",
        "en": "Does a famous method make every variable classification objectively correct?"
      },
      "answer": {
        "ko": "아닙니다. 범주·측정·표집과 해석은 연구자가 설명하고 검토해야 합니다. 통계량은 잘못 정한 질문을 자동으로 고치지 않습니다.",
        "en": "No. Researchers must justify categories, measurements, sampling and interpretation; a statistic cannot repair a poorly framed question."
      }
    },
    {
      "kind": "reading",
      "title": {
        "ko": "Penn State · 독립성 기대도수와 자유도",
        "en": "Penn State · Independence expected counts and degrees of freedom"
      },
      "provider": "Penn State Statistics · STAT200 Lesson11, independence section",
      "url": "https://online.stat.psu.edu/stat200/Lesson11",
      "focus": {
        "ko": "두 변수 독립성 부분의 E=행합×열합/n, Pearson 식, 자유도와 기대도수 점검만 지정해 읽습니다. 표집 독립성은 별도로 필요합니다.",
        "en": "Read only the independence section’s expected-count formula, Pearson statistic, df and expected-count checks. Sampling independence remains a separate requirement."
      },
      "question": {
        "ko": "적합도 검정의 df=k−1을 모든 교차표에 쓰나요?",
        "en": "Is the goodness-of-fit df=k−1 valid for every two-way table?"
      },
      "answer": {
        "ko": "아닙니다. 여기 독립성 교차표는 (행수−1)(열수−1)을 사용합니다. 추정 모수·표집 설계가 달라지면 조건을 다시 확인합니다.",
        "en": "No. These independence tables use (rows−1)(columns−1); check conditions again when fitted parameters or sampling design differ."
      }
    },
    {
      "kind": "reading",
      "title": {
        "ko": "NIST · 일원 ANOVA의 집단·잔차·제곱합",
        "en": "NIST · Groups, residuals and sums of squares in one-way ANOVA"
      },
      "provider": "NIST/SEMATECH e-Handbook",
      "url": "https://www.itl.nist.gov/div898/handbook/eda/section3/eda354.htm",
      "focus": {
        "ko": "두 모형 표현·잔차 정의·제곱합과 자유도·모형 점검 안내를 읽습니다. F 참조에는 정규·독립·공통분산 조건을 함께 적용합니다.",
        "en": "Read the model expressions, residual definitions, sum-of-squares/df decomposition and model-validation guidance. Apply the F reference with normality, independence and common-variance conditions."
      },
      "question": {
        "ko": "제곱합 항등식이 맞으면 정규성도 증명되나요?",
        "en": "Does a valid sum-of-squares identity prove normal errors?"
      },
      "answer": {
        "ko": "아닙니다. 대수적 항등식과 확률모형의 분포 가정은 서로 다른 사실입니다.",
        "en": "No. An algebraic identity and a probability model’s distribution assumptions are different facts."
      }
    }
  ],
  "sources": [
    {
      "file": "실제데이터/korea-housing.csv",
      "sha256": "0db7456684f2da50d1fd15aee53b24217849744188d4f96e1e055cbdd2992777",
      "url": "https://data.bis.org/topics/RPP/BIS,WS_SPP,1.0/Q.KR.R.628",
      "scope": "All180 real-index quarters; prespecified teaching periods and index>100 derived labels, no causal regime or bubble classification.",
      "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": "All3613 actual person rows;3010 available source-trimmed log wages; schooling bands are derived years, not verified degrees.",
      "retrievedOn": "2026-10-22",
      "rawDownloaded": true,
      "originalFile": "work/textbooks-2026/raw/proximity.zip",
      "originalSha256": "0e9b2ad4182ea631ca3dd8a5fff6c1b0ab86b56c6a3fa868870f716e8d82691f",
      "license": "Author public replication; no CC claim."
    },
    {
      "file": "실제데이터/churn.csv",
      "sha256": "92f3bdff6cf5075875169ea1d2482ecfbed5d4004b4fe029ce85d7b0fc0fdd0d",
      "url": "https://archive.ics.uci.edu/dataset/563/iranian+churn+dataset",
      "scope": "All3150 actual complaint/churn records; collection years unspecified; no duplicate removal or random treatment claim.",
      "retrievedOn": "2026-10-22",
      "rawDownloaded": true,
      "originalFile": "work/textbooks-2026/raw/churn.zip",
      "originalSha256": "696c3a1812267980751f30d19193a1b430ac4ad76172bb089e664c96813ead66",
      "license": "CC BY4.0; DOI10.24432/C5JW3Z"
    },
    {
      "url": "https://www.khanacademy.org/v/chi-square-test-association-independence",
      "retrievedOn": "2026-10-22",
      "webVerified": true,
      "rawDownloaded": false,
      "scope": "Official creator lesson/title and transcript search result verified; matching verified official Khan YouTube metadata identifies zOvUQWOzTlc. Direct YouTube fetch failed; playback not certified."
    },
    {
      "url": "https://mathshistory.st-andrews.ac.uk/Biographies/Pearson/",
      "retrievedOn": "2026-10-22",
      "webVerified": true,
      "rawDownloaded": false,
      "scope": "University biography chi-square1900 contribution and eugenics context only; original Pearson paper not claimed read."
    },
    {
      "url": "https://online.stat.psu.edu/stat200/Lesson11",
      "retrievedOn": "2026-10-22",
      "webVerified": true,
      "rawDownloaded": false,
      "scope": "Only independence expected counts, Pearson statistic, df and expected-cell checks; original examples are not reproduced."
    },
    {
      "url": "https://www.itl.nist.gov/div898/handbook/eda/section3/eda354.htm",
      "retrievedOn": "2026-10-22",
      "webVerified": true,
      "rawDownloaded": false,
      "scope": "One-factor model/residual definitions, sum-of-squares/df decomposition and model-validation guidance; exclude original gear-data numerical example."
    }
  ],
  "review": {
    "status": "Final cases: independent AI review and actual-source Python/R checks passed; parent browser/integration QA remains.",
    "scope": "Descriptive actual counts and algebraic decomposition are separated from unverified independent/classical reference models. Categories are explicitly derived and no country/education/customer causal effects are inferred.",
    "checks": {
      "sourceQuarterRows": 180,
      "allPersonRows": 3613,
      "availablePersonLogs": 3010,
      "ANOVA_SS_identity": true,
      "zeroResidualSum": true,
      "customerChiSquaredEqualsPooledZSquared": true
    },
    "videoVerification": "Official Khan lesson/title and matching verified creator-video metadata checked; playback belongs to parent browser QA.",
    "studentReviewerResponse": {
      "reviewFile": "work/textbook-rewrite-2026/stats14-pedagogy-review.json",
      "storedValuesCompared": 133464,
      "hashesChecked": 18,
      "chartPointsChecked": 14,
      "scope": "KO/EN and official specified reading checked; all3010 fits/residuals independently reconstructed, F upper tail via Decimal250 incomplete-beta continued fraction plus Spouge gamma, customer tail via positive Mills series; relative3e-12/absolute1e-240 checks passed. Learner-facing labels and English spacing improved. No unresolved recommendations; not human certification."
    },
    "reproduction": {
      "python": "stat14-reproduce.py",
      "R": "stat14-reproduce.R",
      "metricsCompared": 110,
      "numericCaseJSONUsedAsInput": false,
      "tinyNonzeroMetricRelativeTolerance": 1e-08
    }
  }
}
