{
  "cases": {
    "ko": "<div class=\"case-studies\"><article class=\"case-study\" id=\"stats15-country-ko\"><h3>국가 사례 · 1인당 실질 GDP와 기대수명의 직선은 무엇을 설명하는가?</h3><p>World Bank 고정 다운로드 사본의 2024년 16개 국가를 사용합니다. x는 1인당 실질 GDP를 10,000으로 나눈 값이며 단위는 1인당 1만 2015년 불변 미국달러입니다. PPP나 원화 금액이 아닙니다. y는 출생 시 기대수명으로, 해당 시점 사망률이 지속된다는 조건의 집단 지표이지 특정 개인의 수명 예측이 아닙니다. 국가별 가중치는 같고, 이 16개가 세계 모든 국가에서 뽑은 무작위 표본이라고 가정하지 않습니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>실제 국가별 관측과 표본 내 직선 적합</caption><thead><tr><th scope=\"col\">국가</th><th scope=\"col\">GDPpc: 2015불변USD/인</th><th scope=\"col\">기대수명 년</th><th scope=\"col\">직선 적합 년</th><th scope=\"col\">잔차 년</th></tr></thead><tbody><tr><th scope=\"row\">Australia</th><td>61,486.4</td><td>83.051</td><td>83.667</td><td>-0.616</td></tr><tr><th scope=\"row\">Brazil</th><td>9,566.7</td><td>76.023</td><td>74.635</td><td>1.388</td></tr><tr><th scope=\"row\">Canada</th><td>45,061.4</td><td>82.108</td><td>80.810</td><td>1.298</td></tr><tr><th scope=\"row\">China</th><td>13,119.1</td><td>78.017</td><td>75.253</td><td>2.764</td></tr><tr><th scope=\"row\">Germany</th><td>44,027.8</td><td>80.793</td><td>80.630</td><td>0.163</td></tr><tr><th scope=\"row\">France</th><td>39,683.4</td><td>82.980</td><td>79.874</td><td>3.106</td></tr><tr><th scope=\"row\">United Kingdom</th><td>47,901.0</td><td>81.387</td><td>81.304</td><td>0.083</td></tr><tr><th scope=\"row\">Indonesia</th><td>4,367.9</td><td>71.288</td><td>73.731</td><td>-2.443</td></tr><tr><th scope=\"row\">India</th><td>2,366.8</td><td>72.235</td><td>73.383</td><td>-1.148</td></tr><tr><th scope=\"row\">Japan</th><td>37,976.6</td><td>84.036</td><td>79.577</td><td>4.459</td></tr><tr><th scope=\"row\">Korea, Rep.</th><td>37,048.4</td><td>83.629</td><td>79.416</td><td>4.213</td></tr><tr><th scope=\"row\">Mexico</th><td>10,284.0</td><td>75.264</td><td>74.760</td><td>0.504</td></tr><tr><th scope=\"row\">Singapore</th><td>68,129.7</td><td>83.346</td><td>84.823</td><td>-1.476</td></tr><tr><th scope=\"row\">United States</th><td>66,856.5</td><td>78.890</td><td>84.601</td><td>-5.711</td></tr><tr><th scope=\"row\">Viet Nam</th><td>4,012.5</td><td>74.736</td><td>73.669</td><td>1.067</td></tr><tr><th scope=\"row\">South Africa</th><td>5,715.5</td><td>66.312</td><td>73.965</td><td>-7.653</td></tr></tbody></table></div><div data-tex=\"\\begin{gathered}Q(a,b)=\\sum_i(y_i-a-bx_i)^2\\\\(\\widehat a,\\widehat b)=\\arg\\min_{a,b}Q(a,b)\\\\S_{xy}=\\sum_i(x_i-\\overline x)(y_i-\\overline y)\\\\S_{xx}=\\sum_i(x_i-\\overline x)^2\\\\\\widehat b=S_{xy}/S_{xx}\\\\\\widehat a=\\overline y-\\widehat b\\overline x\\end{gathered}\"></div><p>계산한 직선은 ŷ≈72.970869 + 1.739588x입니다. 기울기의 단위는 “1인당 실질 GDP 1만 달러 차이당 기대수명 년 차이”입니다. 같은 국가를 관측한 위치에서 y−ŷ가 세로 잔차이며 산점도의 최단 수직거리와 다릅니다. OLS는 이 자료에서 선택한 직선 중 세로 제곱잔차 합을 최소화한 기술적 투영입니다. 참 조건부 평균 E[Y|X=x]가 반드시 이 직선이라는 결론이 아닙니다.</p><div data-case-chart=\"country\"></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 기울기만큼 GDP를 올리면 수명이 그만큼 늘어난다고 말해도 되나요?</summary><div><p>아닙니다. 의료·제도·분배·역사·측정 차이 등이 함께 변할 수 있습니다. 국가 간 연관성을 개인의 소득 증가 효과로 옮기는 것도 생태학적 오류입니다. 원인 질문에는 별도의 식별 설계가 필요합니다. GDP의 단위를 달러에서 1만 달러로 바꾸면 계수 숫자는 바뀌지만 같은 국가의 적합값은 그대로입니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 잔차가 크거나 x가 멀리 떨어진 국가를 삭제하면 되나요?</summary><div><p>자동 삭제하지 않습니다. 지렛값 h는 x 위치의 특이함, 잔차는 y와 적합값의 차이, Cook 거리는 삭제 시 계수 영향의 진단량입니다. 같은 개념이 아닙니다. 이 표본의 Cook 거리 상위 세 관측은 USA (0.4866), ZAF (0.4739), JPN (0.0677)입니다. 먼저 자료·단위·질문을 확인하고 원자료 보존과 사전 기준에 따라 민감도 분석을 보고합니다.</p></div></details></article><article class=\"case-study\" id=\"stats15-person-ko\"><h3>개인 자료 사례 · 학력 연수별 관측 평균과 한 직선을 구별하기</h3><p>1976년 Card 공개자료의 3613명 중 log 임금이 있는 3010명을 사용합니다. 교육 연수 x와 원자료가 절단 처리한 log 임금 y의 관계를 직선으로 요약합니다. 603개 결측을 0으로 채우지 않고, 전체 남성 모집단의 대표성이나 교육의 인과수익률을 주장하지 않습니다. 원시 시급 단위는 센트/시간이고, 원 조사 가중치는 사용하지 않습니다. 잠재경력·직업·지역 등을 통제하지 않은 단순 관측 회귀입니다.</p><p>실제 표본의 직선은 ŷ≈5.570882 + 0.052094×교육연수입니다. 각 교육연수에서의 실제 관측 평균도 따로 계산합니다. 어떤 연수의 관측 인원이 적으면 그 평균의 자료 기반도 작습니다. 아래 표와 그래프는 같은 x의 관측 평균이며 사람 한 명의 기록으로 보지 않습니다. 직선은 3010명 각각에 같은 가중치를 준 회귀이고, 연수별 평균들을 인원과 상관없이 똑같이 가중한 회귀가 아닙니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>같은 교육연수에서의 관측 평균과 직선</caption><thead><tr><th scope=\"col\">실제 교육연수</th><th scope=\"col\">관측 n</th><th scope=\"col\">관측 평균 log</th><th scope=\"col\">OLS 직선값</th><th scope=\"col\">관측 평균−직선</th></tr></thead><tbody><tr><th scope=\"row\">1</th><td>1</td><td>6.21461</td><td>5.62298</td><td>0.59163</td></tr><tr><th scope=\"row\">2</th><td>2</td><td>5.68250</td><td>5.67507</td><td>0.00743</td></tr><tr><th scope=\"row\">3</th><td>3</td><td>5.37041</td><td>5.72717</td><td>-0.35676</td></tr><tr><th scope=\"row\">4</th><td>3</td><td>5.37787</td><td>5.77926</td><td>-0.40139</td></tr><tr><th scope=\"row\">5</th><td>10</td><td>5.73367</td><td>5.83135</td><td>-0.09768</td></tr><tr><th scope=\"row\">6</th><td>16</td><td>5.79590</td><td>5.88345</td><td>-0.08755</td></tr><tr><th scope=\"row\">7</th><td>29</td><td>5.93910</td><td>5.93554</td><td>0.00356</td></tr><tr><th scope=\"row\">8</th><td>68</td><td>6.02658</td><td>5.98764</td><td>0.03894</td></tr><tr><th scope=\"row\">9</th><td>81</td><td>5.97862</td><td>6.03973</td><td>-0.06111</td></tr><tr><th scope=\"row\">10</th><td>125</td><td>5.96424</td><td>6.09182</td><td>-0.12758</td></tr><tr><th scope=\"row\">11</th><td>159</td><td>6.08123</td><td>6.14392</td><td>-0.06269</td></tr><tr><th scope=\"row\">12</th><td>992</td><td>6.24902</td><td>6.19601</td><td>0.05301</td></tr><tr><th scope=\"row\">13</th><td>281</td><td>6.26800</td><td>6.24811</td><td>0.01989</td></tr><tr><th scope=\"row\">14</th><td>263</td><td>6.30139</td><td>6.30020</td><td>0.00118</td></tr><tr><th scope=\"row\">15</th><td>160</td><td>6.25055</td><td>6.35230</td><td>-0.10174</td></tr><tr><th scope=\"row\">16</th><td>459</td><td>6.38455</td><td>6.40439</td><td>-0.01984</td></tr><tr><th scope=\"row\">17</th><td>151</td><td>6.38199</td><td>6.45648</td><td>-0.07449</td></tr><tr><th scope=\"row\">18</th><td>207</td><td>6.55837</td><td>6.50858</td><td>0.04979</td></tr></tbody></table></div><div data-case-chart=\"person\"></div><div data-tex=\"\\begin{gathered}\\sum_i\\widehat e_i=0\\\\\\sum_i x_i\\widehat e_i=0\\\\\\widehat e_i=y_i-\\widehat a-\\widehat b x_i\\\\E[U\\mid X]=0\\\\\\text{은 별도의 명제입니다}\\end{gathered}\"></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 잔차 합과 x×잔차 합이 0이면 외생성이 증명되나요?</summary><div><p>아닙니다. 두 표본 항등식은 절편이 있는 OLS의 최소화 과정이 강제로 만든 결과입니다. 모집단 오차 U의 조건부 평균이 0이라는 모형 가정이나 교육의 무작위 배정을 증명하지 않습니다. 직선이 잘못된 조건부 평균을 근사해도 이 표본 항등식은 성립합니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: log 기울기 b는 정확한 b×100% 임금 증가인가요?</summary><div><p>단순 로그선형 비교에서 한 단위 x 차이에 대응하는 적합 기하 중심 비율은 exp(b)입니다. exp(b)−1과 b는 작은 b에서 가까울 뿐 같지는 않습니다. 여기 약 5.348%는 관측 직선의 기하 중심 비교이며 평균 시급 증가나 교육 개입의 효과가 아닙니다.</p></div></details><h4>추론과 진단 · 같은 기울기에도 표준오차의 가정은 다르다</h4><div data-tex=\"\\begin{gathered}V_C=\\widehat{\\operatorname{Var}}_{\\rm classical}(\\widehat b)\\\\V_C=\\widehat s^2/S_{xx}\\\\\\widehat s^2=\\frac{\\sum_i\\widehat e_i^2}{n-2}\\\\V_H=\\widehat{\\operatorname{Var}}_{HC1}(\\widehat b)\\\\w_i=(x_i-\\overline x)^2\\widehat e_i^2\\\\V_H=\\frac n{n-2}\\frac{\\sum_iw_i}{S_{xx}^2}\\end{gathered}\"></div><p>고전적 기울기 SE≈0.00286971, HC1 SE≈0.00290688입니다. 고전적 정확 t 참조는 독립·정규·선형 조건부 평균·공통분산 같은 조건을 필요로 합니다. HC1은 독립 관측의 이분산 점근 추론을 위한 다른 분산 추정량이며, 군집·결측 선택·내생성·인과 식별을 자동으로 해결하지 않습니다. 표준오차 공식만 바꿔도 표본 OLS 계수는 바뀌지 않습니다.</p></article><article class=\"case-study\" id=\"stats15-company-ko\"><h3>제품·실무 사례 · 와인 성분과 품질 점수를 회귀로 읽되 생산 실험으로 오해하지 않기</h3><p>UCI Wine Quality의 포르투갈 Vinho Verde 레드와인 실제 제품·실험실 측정 기록 1599개를 사용합니다. 회사·생산자·브랜드·판매가격은 이 자료에서 식별되지 않습니다. 따라서 한 회사의 실적이나 기업 간 비교로 부르지 않습니다. x는 알코올 부피 백분율, y는 최소 3명 전문가 평가의 중앙값인 0–10 품질점수입니다. 감각평가의 순서형 점수이며 숫자 간격이 모두 같다는 사실이 보장된 것은 아닙니다.</p><p>점수를 수치로 취급해 제곱손실 직선 ŷ≈1.874975 + 0.360842×알코올%를 선택합니다. 이것은 학습용 모형 선택입니다. 알코올 수치를 1 늘림은 “알코올 1%포인트 차이”이며 기존 농도 대비 1% 상대 증가와 다릅니다. 이 관측 회귀는 다른 산도·당·황 성분과 생산 과정이 함께 변하는 자료의 연관성을 요약하며, 실제 술에 알코올을 추가하면 같은 점수 변화가 일어남을 보이지 않습니다.</p><p>전체 12개 원수치가 같은 추가 행은 240개입니다. 이들을 임의로 지우지 않고 원래 1599행을 보존합니다. 숫자가 같다고 반드시 같은 실물 표본이라는 뜻도, 서로 다른 독립 표본이라는 뜻도 아닙니다. 생산자·배치·반복 측정 키가 없어 독립성을 사실로 선언하지 않습니다. 이후 예측평가에서 같은 수치 기록이 훈련·시험 양쪽에 섞이면 누수가 될 수 있어 그룹 분할을 검토해야 합니다. 지금의 전자료 적합은 시험 성능이 아닙니다.</p><div data-case-chart=\"company\"></div><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>1599</td></tr><tr><th scope=\"row\">관측 알코올 범위</th><td>8.40–14.90 부피%</td></tr><tr><th scope=\"row\">관측 품질 점수 범위</th><td>3–8</td></tr><tr><th scope=\"row\">OLS 기울기</th><td>0.36084177 점수/알코올%포인트</td></tr><tr><th scope=\"row\">표본 R²</th><td>0.226734</td></tr><tr><th scope=\"row\">고전적 기울기 SE</th><td>0.01667516</td></tr><tr><th scope=\"row\">HC1 기울기 SE</th><td>0.01802847</td></tr></tbody></table></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 평균 품질의 신뢰구간과 한 새 제품의 예측구간은 왜 다른가요?</summary><div><p>같은 x에서 평균모수의 추정 변동에 새 제품 자체의 변동을 더해야 하므로 예측구간이 더 넓습니다. 공개 쿼리 CSV는 관측 범위의 최소·평균·최대 x에서 두 식을 비교합니다. 이 와인의 순서형·유계 점수를 정규 등분산 오차로 근사한 PI가 실제로 95%를 보장한다고 해석하지 않습니다. 가능한 점수 범위와 평가 목적에 맞는 순서형 모형도 검토할 수 있습니다.</p></div></details><div data-tex=\"\\begin{gathered}h(x_0)=\\frac1n+\\frac{(x_0-\\overline x)^2}{S_{xx}}\\\\SE_{\\rm mean}(x_0)=\\widehat s\\sqrt{h(x_0)}\\\\SE_{\\rm new}(x_0)=\\widehat s\\sqrt{1+h(x_0)}\\end{gathered}\"></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: R²가 높으면 좋은 제조법과 미래 판매까지 알 수 있나요?</summary><div><p>R²는 이 표본에서 평균만 쓰는 기준 대비 줄인 제곱편차의 몫입니다. 가격·판매량은 이 자료에 없고 미래 검증도 하지 않았습니다. 잔차의 곡률·산포·그룹 구조, 관측 범위와 누수 없는 별도 검증을 확인해야 합니다. 적합이 좋은 것과 잘못된 원인 해석이 없는 것은 다른 문제입니다.</p></div></details></article><p>실제 자료·잔차·진단·재현: <a href=\"stats15-sources/actual16-country2024-GDPpc-and-period-life-expectancy.csv\" download>actual16-country2024-GDPpc-and-period-life-expectancy.csv</a> · <a href=\"stats15-sources/actual3613-person-schooling-and-preserved-missing-log-wages.csv\" download>actual3613-person-schooling-and-preserved-missing-log-wages.csv</a> · <a href=\"stats15-sources/actual1599-red-wine-laboratory-and-quality-records.csv\" download>actual1599-red-wine-laboratory-and-quality-records.csv</a> · <a href=\"stats15-sources/actual-country-OLS-fits-residuals-leverage-and-influence.csv\" download>actual-country-OLS-fits-residuals-leverage-and-influence.csv</a> · <a href=\"stats15-sources/actual-person-OLS-fits-residuals-leverage-and-influence.csv\" download>actual-person-OLS-fits-residuals-leverage-and-influence.csv</a> · <a href=\"stats15-sources/actual-company-OLS-fits-residuals-leverage-and-influence.csv\" download>actual-company-OLS-fits-residuals-leverage-and-influence.csv</a> · <a href=\"stats15-sources/actual-three-linear-projection-summaries.csv\" download>actual-three-linear-projection-summaries.csv</a> · <a href=\"stats15-sources/actual-person-conditional-sample-means-and-OLS-values.csv\" download>actual-person-conditional-sample-means-and-OLS-values.csv</a> · <a href=\"stats15-sources/actual-company-conditional-sample-means-and-OLS-values.csv\" download>actual-company-conditional-sample-means-and-OLS-values.csv</a> · <a href=\"stats15-sources/chosen-in-range-queries-and-classical-working-intervals.csv\" download>chosen-in-range-queries-and-classical-working-intervals.csv</a> · <a href=\"stats15-sources/provenance.json\" download>provenance</a></p></div>",
    "en": "<div class=\"case-studies\"><article class=\"case-study\" id=\"stats15-country-en\"><h3>Country case · What does a line between income and life expectancy describe?</h3><p>Use the fixed World Bank snapshot for 16 countries in 2024. x is real GDP per capita divided by 10,000, measured in ten-thousand constant-2015 USD per person, not PPP or KRW. y is period life expectancy at birth: a population indicator conditional on prevailing mortality patterns, not a prediction of a specific person’s lifespan. Countries receive equal weight; these 16 are not declared a random sample of every country.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Actual country observations and in-sample line</caption><thead><tr><th scope=\"col\">Country</th><th scope=\"col\">GDPpc: constant 2015 USD/person</th><th scope=\"col\">Life expectancy years</th><th scope=\"col\">Line fit years</th><th scope=\"col\">Residual years</th></tr></thead><tbody><tr><th scope=\"row\">Australia</th><td>61,486.4</td><td>83.051</td><td>83.667</td><td>-0.616</td></tr><tr><th scope=\"row\">Brazil</th><td>9,566.7</td><td>76.023</td><td>74.635</td><td>1.388</td></tr><tr><th scope=\"row\">Canada</th><td>45,061.4</td><td>82.108</td><td>80.810</td><td>1.298</td></tr><tr><th scope=\"row\">China</th><td>13,119.1</td><td>78.017</td><td>75.253</td><td>2.764</td></tr><tr><th scope=\"row\">Germany</th><td>44,027.8</td><td>80.793</td><td>80.630</td><td>0.163</td></tr><tr><th scope=\"row\">France</th><td>39,683.4</td><td>82.980</td><td>79.874</td><td>3.106</td></tr><tr><th scope=\"row\">United Kingdom</th><td>47,901.0</td><td>81.387</td><td>81.304</td><td>0.083</td></tr><tr><th scope=\"row\">Indonesia</th><td>4,367.9</td><td>71.288</td><td>73.731</td><td>-2.443</td></tr><tr><th scope=\"row\">India</th><td>2,366.8</td><td>72.235</td><td>73.383</td><td>-1.148</td></tr><tr><th scope=\"row\">Japan</th><td>37,976.6</td><td>84.036</td><td>79.577</td><td>4.459</td></tr><tr><th scope=\"row\">Korea, Rep.</th><td>37,048.4</td><td>83.629</td><td>79.416</td><td>4.213</td></tr><tr><th scope=\"row\">Mexico</th><td>10,284.0</td><td>75.264</td><td>74.760</td><td>0.504</td></tr><tr><th scope=\"row\">Singapore</th><td>68,129.7</td><td>83.346</td><td>84.823</td><td>-1.476</td></tr><tr><th scope=\"row\">United States</th><td>66,856.5</td><td>78.890</td><td>84.601</td><td>-5.711</td></tr><tr><th scope=\"row\">Viet Nam</th><td>4,012.5</td><td>74.736</td><td>73.669</td><td>1.067</td></tr><tr><th scope=\"row\">South Africa</th><td>5,715.5</td><td>66.312</td><td>73.965</td><td>-7.653</td></tr></tbody></table></div><div data-tex=\"\\begin{gathered}Q(a,b)=\\sum_i(y_i-a-bx_i)^2\\\\(\\widehat a,\\widehat b)=\\arg\\min_{a,b}Q(a,b)\\\\S_{xy}=\\sum_i(x_i-\\overline x)(y_i-\\overline y)\\\\S_{xx}=\\sum_i(x_i-\\overline x)^2\\\\\\widehat b=S_{xy}/S_{xx}\\\\\\widehat a=\\overline y-\\widehat b\\overline x\\end{gathered}\"></div><p>The fitted line is ŷ≈72.970869 + 1.739588x. The slope is measured in life-expectancy years per ten-thousand-dollar difference in real GDP per person. At a fixed country’s x, y−ŷ is a vertical residual, not the shortest perpendicular distance in the scatterplot. OLS is the descriptive projection minimizing vertical squared residuals within the chosen straight-line class. It does not establish that the true conditional mean E[Y|X=x] is linear.</p><div data-case-chart=\"country\"></div><details class=\"case-answer\"><summary>Think first, then reveal: Would increasing GDP cause life expectancy to rise by this slope?</summary><div><p>No. Health systems, institutions, distribution, history and measurement may differ together. Transferring a cross-country relationship to the effect of an individual’s income is also an ecological error. Causal questions need identification. Rescaling GDP from dollars to ten-thousand dollars changes the numeric coefficient but not fitted values for the same countries.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Should a country with a large residual or distant x automatically be deleted?</summary><div><p>No. Leverage h measures unusual x position, residual measures y−fit, and Cook’s distance diagnoses coefficient sensitivity to deletion. They are different. The top three Cook distances here are USA (0.4866), ZAF (0.4739), JPN (0.0677). First inspect data, units and the question; preserve originals and report sensitivity under stated criteria.</p></div></details></article><article class=\"case-study\" id=\"stats15-person-en\"><h3>Person-record case · Separate schooling-specific observed means from one fitted line</h3><p>Use the 3,010 observed source-trimmed log wages among 3,613 men in Card’s 1976 public data. Summarize reported schooling years x and log wage y with a line. Preserve 603 missing wages and do not claim a representative all-men population or causal return to schooling. Original hourly wages are cents/hour and survey weights are unused. This simple observed regression does not control potential experience, occupation or region.</p><p>The in-sample line is ŷ≈5.570882 + 0.052094×schooling years. Compute observed means at each schooling value separately. A mean supported by few records has less data behind it. The following table and plot show x-specific observed averages, not individual people. The line weights each of the 3,010 people equally; it is not an equally weighted fit to schooling-level means regardless of their counts.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Observed means at each schooling value versus the line</caption><thead><tr><th scope=\"col\">Reported schooling years</th><th scope=\"col\">Observed n</th><th scope=\"col\">Observed mean log</th><th scope=\"col\">OLS line value</th><th scope=\"col\">Observed mean−line</th></tr></thead><tbody><tr><th scope=\"row\">1</th><td>1</td><td>6.21461</td><td>5.62298</td><td>0.59163</td></tr><tr><th scope=\"row\">2</th><td>2</td><td>5.68250</td><td>5.67507</td><td>0.00743</td></tr><tr><th scope=\"row\">3</th><td>3</td><td>5.37041</td><td>5.72717</td><td>-0.35676</td></tr><tr><th scope=\"row\">4</th><td>3</td><td>5.37787</td><td>5.77926</td><td>-0.40139</td></tr><tr><th scope=\"row\">5</th><td>10</td><td>5.73367</td><td>5.83135</td><td>-0.09768</td></tr><tr><th scope=\"row\">6</th><td>16</td><td>5.79590</td><td>5.88345</td><td>-0.08755</td></tr><tr><th scope=\"row\">7</th><td>29</td><td>5.93910</td><td>5.93554</td><td>0.00356</td></tr><tr><th scope=\"row\">8</th><td>68</td><td>6.02658</td><td>5.98764</td><td>0.03894</td></tr><tr><th scope=\"row\">9</th><td>81</td><td>5.97862</td><td>6.03973</td><td>-0.06111</td></tr><tr><th scope=\"row\">10</th><td>125</td><td>5.96424</td><td>6.09182</td><td>-0.12758</td></tr><tr><th scope=\"row\">11</th><td>159</td><td>6.08123</td><td>6.14392</td><td>-0.06269</td></tr><tr><th scope=\"row\">12</th><td>992</td><td>6.24902</td><td>6.19601</td><td>0.05301</td></tr><tr><th scope=\"row\">13</th><td>281</td><td>6.26800</td><td>6.24811</td><td>0.01989</td></tr><tr><th scope=\"row\">14</th><td>263</td><td>6.30139</td><td>6.30020</td><td>0.00118</td></tr><tr><th scope=\"row\">15</th><td>160</td><td>6.25055</td><td>6.35230</td><td>-0.10174</td></tr><tr><th scope=\"row\">16</th><td>459</td><td>6.38455</td><td>6.40439</td><td>-0.01984</td></tr><tr><th scope=\"row\">17</th><td>151</td><td>6.38199</td><td>6.45648</td><td>-0.07449</td></tr><tr><th scope=\"row\">18</th><td>207</td><td>6.55837</td><td>6.50858</td><td>0.04979</td></tr></tbody></table></div><div data-case-chart=\"person\"></div><div data-tex=\"\\begin{gathered}\\sum_i\\widehat e_i=0\\\\\\sum_i x_i\\widehat e_i=0\\\\\\widehat e_i=y_i-\\widehat a-\\widehat b x_i\\\\E[U\\mid X]=0\\\\\\text{is a different statement}\\end{gathered}\"></div><details class=\"case-answer\"><summary>Think first, then reveal: Do zero sums of residuals and x×residuals prove exogeneity?</summary><div><p>No. OLS with an intercept imposes these sample identities through minimization. They do not prove a zero population conditional error mean or random assignment of schooling. They still hold when the line poorly approximates the actual conditional mean.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Is log slope b exactly a b×100% wage increase?</summary><div><p>A one-unit x change on the log-linear fitted comparison corresponds to a geometric-center ratio exp(b). exp(b)−1 is only approximately b for small b. Here the ratio change is about 5.348%; it is neither an arithmetic mean wage increase nor a causal schooling intervention effect.</p></div></details><h4>Inference and diagnostics · The same slope can have different SE assumptions</h4><div data-tex=\"\\begin{gathered}V_C=\\widehat{\\operatorname{Var}}_{\\rm classical}(\\widehat b)\\\\V_C=\\widehat s^2/S_{xx}\\\\\\widehat s^2=\\frac{\\sum_i\\widehat e_i^2}{n-2}\\\\V_H=\\widehat{\\operatorname{Var}}_{HC1}(\\widehat b)\\\\w_i=(x_i-\\overline x)^2\\widehat e_i^2\\\\V_H=\\frac n{n-2}\\frac{\\sum_iw_i}{S_{xx}^2}\\end{gathered}\"></div><p>The classical slope SE is about 0.00286971 and HC1 SE about 0.00290688. An exact classical t reference requires conditions such as independent normal errors, a linear conditional mean and common variance. HC1 is a different variance estimator for heteroskedastic asymptotic inference with independent observations; it does not automatically repair clustering, missingness selection, endogeneity or causal identification. Changing the SE formula leaves the sample OLS slope unchanged.</p></article><article class=\"case-study\" id=\"stats15-company-en\"><h3>Product-practice case · Regress quality scores on alcohol concentration without inventing a production experiment</h3><p>Use 1,599 actual product/laboratory records for Portuguese Vinho Verde red wine in UCI Wine Quality. Companies, producers, brands and selling prices are not identified. This is neither one company’s performance nor a between-firm comparison. x is alcohol percent by volume; y is a 0–10 sensory quality score, the median of at least three expert evaluations. The score is ordinal; equally spaced numeric values are not guaranteed to have equal perceptual gaps.</p><p>Choose a squared-loss numeric-score model ŷ≈1.874975 + 0.360842×alcohol%. Treating score gaps equally is a modeling choice. Increasing x by one means one percentage point of alcohol concentration, not a 1% relative increase over the original concentration. The observed regression summarizes associations while acidity, sugar, sulfur measures and production may co-vary; it does not establish the effect of adding alcohol to a wine.</p><p>There are 240 additional rows sharing all 12 source numeric values with another row. Preserve all 1,599 original rows rather than silently deleting them. Equal numbers prove neither the same physical sample nor independent distinct samples. Producer, batch and repeated-measurement keys are unavailable, so independence is not asserted. Later prediction evaluation should consider grouping identical records to avoid train/test leakage. This full-data fit is not test performance.</p><div data-case-chart=\"company\"></div><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Regression summary and units</caption><thead><tr><th scope=\"col\">Quantity</th><th scope=\"col\">Calculated from actual records</th></tr></thead><tbody><tr><th scope=\"row\">Red-wine records</th><td>1599</td></tr><tr><th scope=\"row\">Observed alcohol range</th><td>8.40–14.90 percent by volume</td></tr><tr><th scope=\"row\">Observed quality-score range</th><td>3–8</td></tr><tr><th scope=\"row\">OLS slope</th><td>0.36084177 score/alcohol percentage point</td></tr><tr><th scope=\"row\">Sample R²</th><td>0.226734</td></tr><tr><th scope=\"row\">Classical slope SE</th><td>0.01667516</td></tr><tr><th scope=\"row\">HC1 slope SE</th><td>0.01802847</td></tr></tbody></table></div><details class=\"case-answer\"><summary>Think first, then reveal: Why do a mean-response CI and one-new-product PI differ?</summary><div><p>A new product adds its own variation to uncertainty about a mean response, so a PI is wider. The public query CSV compares both formulas at minimum, mean and maximum observed x. A normal common-variance PI for this bounded ordinal score does not automatically have real 95% coverage. Ordinal models can be considered in light of the score range and task.</p></div></details><div data-tex=\"\\begin{gathered}h(x_0)=\\frac1n+\\frac{(x_0-\\overline x)^2}{S_{xx}}\\\\SE_{\\rm mean}(x_0)=\\widehat s\\sqrt{h(x_0)}\\\\SE_{\\rm new}(x_0)=\\widehat s\\sqrt{1+h(x_0)}\\end{gathered}\"></div><details class=\"case-answer\"><summary>Think first, then reveal: Would a high R² reveal the best recipe and future sales?</summary><div><p>R² is the fraction of sample squared deviations reduced relative to an intercept-only baseline. Price and sales are absent, and no future validation was performed. Check residual curvature, dispersion and grouping, the observed range and a separate leakage-free evaluation. Good fit and justified causal interpretation are different issues.</p></div></details></article><p>Actual data, residuals, diagnostics and reproduction: <a href=\"stats15-sources/actual16-country2024-GDPpc-and-period-life-expectancy.csv\" download>actual16-country2024-GDPpc-and-period-life-expectancy.csv</a> · <a href=\"stats15-sources/actual3613-person-schooling-and-preserved-missing-log-wages.csv\" download>actual3613-person-schooling-and-preserved-missing-log-wages.csv</a> · <a href=\"stats15-sources/actual1599-red-wine-laboratory-and-quality-records.csv\" download>actual1599-red-wine-laboratory-and-quality-records.csv</a> · <a href=\"stats15-sources/actual-country-OLS-fits-residuals-leverage-and-influence.csv\" download>actual-country-OLS-fits-residuals-leverage-and-influence.csv</a> · <a href=\"stats15-sources/actual-person-OLS-fits-residuals-leverage-and-influence.csv\" download>actual-person-OLS-fits-residuals-leverage-and-influence.csv</a> · <a href=\"stats15-sources/actual-company-OLS-fits-residuals-leverage-and-influence.csv\" download>actual-company-OLS-fits-residuals-leverage-and-influence.csv</a> · <a href=\"stats15-sources/actual-three-linear-projection-summaries.csv\" download>actual-three-linear-projection-summaries.csv</a> · <a href=\"stats15-sources/actual-person-conditional-sample-means-and-OLS-values.csv\" download>actual-person-conditional-sample-means-and-OLS-values.csv</a> · <a href=\"stats15-sources/actual-company-conditional-sample-means-and-OLS-values.csv\" download>actual-company-conditional-sample-means-and-OLS-values.csv</a> · <a href=\"stats15-sources/chosen-in-range-queries-and-classical-working-intervals.csv\" download>chosen-in-range-queries-and-classical-working-intervals.csv</a> · <a href=\"stats15-sources/provenance.json\" download>provenance</a></p></div>"
  },
  "chartData": {
    "country": [
      {
        "x": 0.23668328910323,
        "y": 72.235,
        "modelY": 73.38260049707183,
        "label": {
          "ko": "India",
          "en": "India"
        }
      },
      {
        "x": 0.401250779921084,
        "y": 74.736,
        "modelY": 73.66888019907857,
        "label": {
          "ko": "Viet Nam",
          "en": "Viet Nam"
        }
      },
      {
        "x": 0.436794741847938,
        "y": 71.288,
        "modelY": 73.7307120637925,
        "label": {
          "ko": "Indonesia",
          "en": "Indonesia"
        }
      },
      {
        "x": 0.571547531469148,
        "y": 66.312,
        "modelY": 73.96512645673015,
        "label": {
          "ko": "South Africa",
          "en": "South Africa"
        }
      },
      {
        "x": 0.956674518687619,
        "y": 76.023,
        "modelY": 74.63508890549649,
        "label": {
          "ko": "Brazil",
          "en": "Brazil"
        }
      },
      {
        "x": 1.02840336925726,
        "y": 75.264,
        "modelY": 74.75986758362005,
        "label": {
          "ko": "Mexico",
          "en": "Mexico"
        }
      },
      {
        "x": 1.31191076099516,
        "y": 78.017,
        "modelY": 75.25305376042861,
        "label": {
          "ko": "China",
          "en": "China"
        }
      },
      {
        "x": 3.70484264001496,
        "y": 83.6292682926829,
        "modelY": 79.4157703567852,
        "label": {
          "ko": "Korea, Rep.",
          "en": "Korea, Rep."
        }
      },
      {
        "x": 3.79766371788298,
        "y": 84.0363414634146,
        "modelY": 79.5772408293551,
        "label": {
          "ko": "Japan",
          "en": "Japan"
        }
      },
      {
        "x": 3.96833953489029,
        "y": 82.9804878048781,
        "modelY": 79.87414650489154,
        "label": {
          "ko": "France",
          "en": "France"
        }
      },
      {
        "x": 4.40277631554469,
        "y": 80.7926829268293,
        "modelY": 80.62988769951284,
        "label": {
          "ko": "Germany",
          "en": "Germany"
        }
      },
      {
        "x": 4.50613864587285,
        "y": 82.1080487804878,
        "modelY": 80.80969561283771,
        "label": {
          "ko": "Canada",
          "en": "Canada"
        }
      },
      {
        "x": 4.79009680144146,
        "y": 81.3868536585366,
        "modelY": 81.30366593318819,
        "label": {
          "ko": "United Kingdom",
          "en": "United Kingdom"
        }
      },
      {
        "x": 6.148638147544,
        "y": 83.0512195121951,
        "modelY": 83.66696873250321,
        "label": {
          "ko": "Australia",
          "en": "Australia"
        }
      },
      {
        "x": 6.68565131698371,
        "y": 78.890243902439,
        "modelY": 84.60115062563943,
        "label": {
          "ko": "United States",
          "en": "United States"
        }
      },
      {
        "x": 6.81296960402288,
        "y": 83.3463414634146,
        "modelY": 84.82263204394656,
        "label": {
          "ko": "Singapore",
          "en": "Singapore"
        }
      }
    ],
    "person": [
      {
        "x": 1.0,
        "y": 6.2146081,
        "modelY": 5.6229765838235695,
        "actualRecordCount": 1,
        "label": {
          "ko": "실제 같은 x의 평균 · n=1",
          "en": "Actual same-x mean, n=1"
        }
      },
      {
        "x": 2.0,
        "y": 5.68250267,
        "modelY": 5.6750708204096245,
        "actualRecordCount": 2,
        "label": {
          "ko": "실제 같은 x의 평균 · n=2",
          "en": "Actual same-x mean, n=2"
        }
      },
      {
        "x": 3.0,
        "y": 5.370407023333334,
        "modelY": 5.72716505699568,
        "actualRecordCount": 3,
        "label": {
          "ko": "실제 같은 x의 평균 · n=3",
          "en": "Actual same-x mean, n=3"
        }
      },
      {
        "x": 4.0,
        "y": 5.3778666133333335,
        "modelY": 5.779259293581735,
        "actualRecordCount": 3,
        "label": {
          "ko": "실제 같은 x의 평균 · n=3",
          "en": "Actual same-x mean, n=3"
        }
      },
      {
        "x": 5.0,
        "y": 5.733668855,
        "modelY": 5.831353530167791,
        "actualRecordCount": 10,
        "label": {
          "ko": "실제 같은 x의 평균 · n=10",
          "en": "Actual same-x mean, n=10"
        }
      },
      {
        "x": 6.0,
        "y": 5.79590198625,
        "modelY": 5.883447766753846,
        "actualRecordCount": 16,
        "label": {
          "ko": "실제 같은 x의 평균 · n=16",
          "en": "Actual same-x mean, n=16"
        }
      },
      {
        "x": 7.0,
        "y": 5.9390981427586205,
        "modelY": 5.935542003339901,
        "actualRecordCount": 29,
        "label": {
          "ko": "실제 같은 x의 평균 · n=29",
          "en": "Actual same-x mean, n=29"
        }
      },
      {
        "x": 8.0,
        "y": 6.026575742941176,
        "modelY": 5.987636239925956,
        "actualRecordCount": 68,
        "label": {
          "ko": "실제 같은 x의 평균 · n=68",
          "en": "Actual same-x mean, n=68"
        }
      },
      {
        "x": 9.0,
        "y": 5.9786203975308645,
        "modelY": 6.039730476512011,
        "actualRecordCount": 81,
        "label": {
          "ko": "실제 같은 x의 평균 · n=81",
          "en": "Actual same-x mean, n=81"
        }
      },
      {
        "x": 10.0,
        "y": 5.96424253608,
        "modelY": 6.091824713098067,
        "actualRecordCount": 125,
        "label": {
          "ko": "실제 같은 x의 평균 · n=125",
          "en": "Actual same-x mean, n=125"
        }
      },
      {
        "x": 11.0,
        "y": 6.081229883081761,
        "modelY": 6.143918949684122,
        "actualRecordCount": 159,
        "label": {
          "ko": "실제 같은 x의 평균 · n=159",
          "en": "Actual same-x mean, n=159"
        }
      },
      {
        "x": 12.0,
        "y": 6.249023822308468,
        "modelY": 6.196013186270177,
        "actualRecordCount": 992,
        "label": {
          "ko": "실제 같은 x의 평균 · n=992",
          "en": "Actual same-x mean, n=992"
        }
      },
      {
        "x": 13.0,
        "y": 6.268000791067616,
        "modelY": 6.248107422856232,
        "actualRecordCount": 281,
        "label": {
          "ko": "실제 같은 x의 평균 · n=281",
          "en": "Actual same-x mean, n=281"
        }
      },
      {
        "x": 14.0,
        "y": 6.30138568243346,
        "modelY": 6.300201659442287,
        "actualRecordCount": 263,
        "label": {
          "ko": "실제 같은 x의 평균 · n=263",
          "en": "Actual same-x mean, n=263"
        }
      },
      {
        "x": 15.0,
        "y": 6.250551579125,
        "modelY": 6.352295896028342,
        "actualRecordCount": 160,
        "label": {
          "ko": "실제 같은 x의 평균 · n=160",
          "en": "Actual same-x mean, n=160"
        }
      },
      {
        "x": 16.0,
        "y": 6.3845500742265795,
        "modelY": 6.404390132614398,
        "actualRecordCount": 459,
        "label": {
          "ko": "실제 같은 x의 평균 · n=459",
          "en": "Actual same-x mean, n=459"
        }
      },
      {
        "x": 17.0,
        "y": 6.3819896502649005,
        "modelY": 6.456484369200453,
        "actualRecordCount": 151,
        "label": {
          "ko": "실제 같은 x의 평균 · n=151",
          "en": "Actual same-x mean, n=151"
        }
      },
      {
        "x": 18.0,
        "y": 6.558366850386474,
        "modelY": 6.508578605786508,
        "actualRecordCount": 207,
        "label": {
          "ko": "실제 같은 x의 평균 · n=207",
          "en": "Actual same-x mean, n=207"
        }
      }
    ],
    "company": [
      {
        "x": 8.4,
        "y": 4.5,
        "modelY": 4.906045715811443,
        "actualRecordCount": 2,
        "label": {
          "ko": "실제 같은 x의 평균 · n=2",
          "en": "Actual same-x mean, n=2"
        }
      },
      {
        "x": 8.5,
        "y": 5.0,
        "modelY": 4.942129892344946,
        "actualRecordCount": 1,
        "label": {
          "ko": "실제 같은 x의 평균 · n=1",
          "en": "Actual same-x mean, n=1"
        }
      },
      {
        "x": 8.7,
        "y": 6.0,
        "modelY": 5.014298245411953,
        "actualRecordCount": 2,
        "label": {
          "ko": "실제 같은 x의 평균 · n=2",
          "en": "Actual same-x mean, n=2"
        }
      },
      {
        "x": 8.8,
        "y": 5.0,
        "modelY": 5.050382421945456,
        "actualRecordCount": 2,
        "label": {
          "ko": "실제 같은 x의 평균 · n=2",
          "en": "Actual same-x mean, n=2"
        }
      },
      {
        "x": 9.0,
        "y": 5.4,
        "modelY": 5.1225507750124635,
        "actualRecordCount": 30,
        "label": {
          "ko": "실제 같은 x의 평균 · n=30",
          "en": "Actual same-x mean, n=30"
        }
      },
      {
        "x": 9.05,
        "y": 4.0,
        "modelY": 5.140592863279215,
        "actualRecordCount": 1,
        "label": {
          "ko": "실제 같은 x의 평균 · n=1",
          "en": "Actual same-x mean, n=1"
        }
      },
      {
        "x": 9.1,
        "y": 5.217391304347826,
        "modelY": 5.158634951545967,
        "actualRecordCount": 23,
        "label": {
          "ko": "실제 같은 x의 평균 · n=23",
          "en": "Actual same-x mean, n=23"
        }
      },
      {
        "x": 9.2,
        "y": 5.25,
        "modelY": 5.194719128079471,
        "actualRecordCount": 72,
        "label": {
          "ko": "실제 같은 x의 평균 · n=72",
          "en": "Actual same-x mean, n=72"
        }
      },
      {
        "x": 9.23333333333333,
        "y": 6.0,
        "modelY": 5.2067471869239705,
        "actualRecordCount": 1,
        "label": {
          "ko": "실제 같은 x의 평균 · n=1",
          "en": "Actual same-x mean, n=1"
        }
      },
      {
        "x": 9.25,
        "y": 6.0,
        "modelY": 5.212761216346222,
        "actualRecordCount": 1,
        "label": {
          "ko": "실제 같은 x의 평균 · n=1",
          "en": "Actual same-x mean, n=1"
        }
      },
      {
        "x": 9.3,
        "y": 5.186440677966102,
        "modelY": 5.230803304612974,
        "actualRecordCount": 59,
        "label": {
          "ko": "실제 같은 x의 평균 · n=59",
          "en": "Actual same-x mean, n=59"
        }
      },
      {
        "x": 9.4,
        "y": 5.194174757281553,
        "modelY": 5.266887481146477,
        "actualRecordCount": 103,
        "label": {
          "ko": "실제 같은 x의 평균 · n=103",
          "en": "Actual same-x mean, n=103"
        }
      },
      {
        "x": 9.5,
        "y": 5.316546762589928,
        "modelY": 5.302971657679981,
        "actualRecordCount": 139,
        "label": {
          "ko": "실제 같은 x의 평균 · n=139",
          "en": "Actual same-x mean, n=139"
        }
      },
      {
        "x": 9.55,
        "y": 5.5,
        "modelY": 5.321013745946733,
        "actualRecordCount": 2,
        "label": {
          "ko": "실제 같은 x의 평균 · n=2",
          "en": "Actual same-x mean, n=2"
        }
      },
      {
        "x": 9.56666666666667,
        "y": 6.0,
        "modelY": 5.327027775368984,
        "actualRecordCount": 1,
        "label": {
          "ko": "실제 같은 x의 평균 · n=1",
          "en": "Actual same-x mean, n=1"
        }
      },
      {
        "x": 9.6,
        "y": 5.1525423728813555,
        "modelY": 5.339055834213484,
        "actualRecordCount": 59,
        "label": {
          "ko": "실제 같은 x의 평균 · n=59",
          "en": "Actual same-x mean, n=59"
        }
      },
      {
        "x": 9.7,
        "y": 5.2592592592592595,
        "modelY": 5.375140010746987,
        "actualRecordCount": 54,
        "label": {
          "ko": "실제 같은 x의 평균 · n=54",
          "en": "Actual same-x mean, n=54"
        }
      },
      {
        "x": 9.8,
        "y": 5.294871794871795,
        "modelY": 5.411224187280491,
        "actualRecordCount": 78,
        "label": {
          "ko": "실제 같은 x의 평균 · n=78",
          "en": "Actual same-x mean, n=78"
        }
      },
      {
        "x": 9.9,
        "y": 5.469387755102041,
        "modelY": 5.4473083638139945,
        "actualRecordCount": 49,
        "label": {
          "ko": "실제 같은 x의 평균 · n=49",
          "en": "Actual same-x mean, n=49"
        }
      },
      {
        "x": 9.95,
        "y": 3.0,
        "modelY": 5.465350452080746,
        "actualRecordCount": 1,
        "label": {
          "ko": "실제 같은 x의 평균 · n=1",
          "en": "Actual same-x mean, n=1"
        }
      },
      {
        "x": 10.0,
        "y": 5.597014925373134,
        "modelY": 5.483392540347498,
        "actualRecordCount": 67,
        "label": {
          "ko": "실제 같은 x의 평균 · n=67",
          "en": "Actual same-x mean, n=67"
        }
      },
      {
        "x": 10.0333333333333,
        "y": 6.0,
        "modelY": 5.495420599191987,
        "actualRecordCount": 2,
        "label": {
          "ko": "실제 같은 x의 평균 · n=2",
          "en": "Actual same-x mean, n=2"
        }
      },
      {
        "x": 10.1,
        "y": 5.51063829787234,
        "modelY": 5.519476716881002,
        "actualRecordCount": 47,
        "label": {
          "ko": "실제 같은 x의 평균 · n=47",
          "en": "Actual same-x mean, n=47"
        }
      },
      {
        "x": 10.2,
        "y": 5.565217391304348,
        "modelY": 5.555560893414505,
        "actualRecordCount": 46,
        "label": {
          "ko": "실제 같은 x의 평균 · n=46",
          "en": "Actual same-x mean, n=46"
        }
      },
      {
        "x": 10.3,
        "y": 5.575757575757576,
        "modelY": 5.591645069948008,
        "actualRecordCount": 33,
        "label": {
          "ko": "실제 같은 x의 평균 · n=33",
          "en": "Actual same-x mean, n=33"
        }
      },
      {
        "x": 10.4,
        "y": 5.585365853658536,
        "modelY": 5.627729246481512,
        "actualRecordCount": 41,
        "label": {
          "ko": "실제 같은 x의 평균 · n=41",
          "en": "Actual same-x mean, n=41"
        }
      },
      {
        "x": 10.5,
        "y": 5.656716417910448,
        "modelY": 5.663813423015015,
        "actualRecordCount": 67,
        "label": {
          "ko": "실제 같은 x의 평균 · n=67",
          "en": "Actual same-x mean, n=67"
        }
      },
      {
        "x": 10.55,
        "y": 6.5,
        "modelY": 5.681855511281767,
        "actualRecordCount": 2,
        "label": {
          "ko": "실제 같은 x의 평균 · n=2",
          "en": "Actual same-x mean, n=2"
        }
      },
      {
        "x": 10.6,
        "y": 5.928571428571429,
        "modelY": 5.699897599548518,
        "actualRecordCount": 28,
        "label": {
          "ko": "실제 같은 x의 평균 · n=28",
          "en": "Actual same-x mean, n=28"
        }
      },
      {
        "x": 10.7,
        "y": 5.666666666666667,
        "modelY": 5.735981776082022,
        "actualRecordCount": 27,
        "label": {
          "ko": "실제 같은 x의 평균 · n=27",
          "en": "Actual same-x mean, n=27"
        }
      },
      {
        "x": 10.75,
        "y": 6.0,
        "modelY": 5.754023864348774,
        "actualRecordCount": 1,
        "label": {
          "ko": "실제 같은 x의 평균 · n=1",
          "en": "Actual same-x mean, n=1"
        }
      },
      {
        "x": 10.8,
        "y": 6.0476190476190474,
        "modelY": 5.772065952615526,
        "actualRecordCount": 42,
        "label": {
          "ko": "실제 같은 x의 평균 · n=42",
          "en": "Actual same-x mean, n=42"
        }
      },
      {
        "x": 10.9,
        "y": 5.653061224489796,
        "modelY": 5.808150129149029,
        "actualRecordCount": 49,
        "label": {
          "ko": "실제 같은 x의 평균 · n=49",
          "en": "Actual same-x mean, n=49"
        }
      },
      {
        "x": 11.0,
        "y": 5.745762711864407,
        "modelY": 5.844234305682533,
        "actualRecordCount": 59,
        "label": {
          "ko": "실제 같은 x의 평균 · n=59",
          "en": "Actual same-x mean, n=59"
        }
      },
      {
        "x": 11.0666666666667,
        "y": 6.0,
        "modelY": 5.868290423371547,
        "actualRecordCount": 1,
        "label": {
          "ko": "실제 같은 x의 평균 · n=1",
          "en": "Actual same-x mean, n=1"
        }
      },
      {
        "x": 11.1,
        "y": 5.814814814814815,
        "modelY": 5.880318482216036,
        "actualRecordCount": 27,
        "label": {
          "ko": "실제 같은 x의 평균 · n=27",
          "en": "Actual same-x mean, n=27"
        }
      },
      {
        "x": 11.2,
        "y": 5.888888888888889,
        "modelY": 5.91640265874954,
        "actualRecordCount": 36,
        "label": {
          "ko": "실제 같은 x의 평균 · n=36",
          "en": "Actual same-x mean, n=36"
        }
      },
      {
        "x": 11.3,
        "y": 6.0625,
        "modelY": 5.952486835283043,
        "actualRecordCount": 32,
        "label": {
          "ko": "실제 같은 x의 평균 · n=32",
          "en": "Actual same-x mean, n=32"
        }
      },
      {
        "x": 11.4,
        "y": 5.71875,
        "modelY": 5.988571011816546,
        "actualRecordCount": 32,
        "label": {
          "ko": "실제 같은 x의 평균 · n=32",
          "en": "Actual same-x mean, n=32"
        }
      },
      {
        "x": 11.5,
        "y": 5.966666666666667,
        "modelY": 6.02465518835005,
        "actualRecordCount": 30,
        "label": {
          "ko": "실제 같은 x의 평균 · n=30",
          "en": "Actual same-x mean, n=30"
        }
      },
      {
        "x": 11.6,
        "y": 6.333333333333333,
        "modelY": 6.0607393648835535,
        "actualRecordCount": 15,
        "label": {
          "ko": "실제 같은 x의 평균 · n=15",
          "en": "Actual same-x mean, n=15"
        }
      },
      {
        "x": 11.7,
        "y": 6.608695652173913,
        "modelY": 6.096823541417057,
        "actualRecordCount": 23,
        "label": {
          "ko": "실제 같은 x의 평균 · n=23",
          "en": "Actual same-x mean, n=23"
        }
      },
      {
        "x": 11.8,
        "y": 6.275862068965517,
        "modelY": 6.132907717950561,
        "actualRecordCount": 29,
        "label": {
          "ko": "실제 같은 x의 평균 · n=29",
          "en": "Actual same-x mean, n=29"
        }
      },
      {
        "x": 11.9,
        "y": 6.2,
        "modelY": 6.168991894484064,
        "actualRecordCount": 20,
        "label": {
          "ko": "실제 같은 x의 평균 · n=20",
          "en": "Actual same-x mean, n=20"
        }
      },
      {
        "x": 11.95,
        "y": 5.0,
        "modelY": 6.187033982750815,
        "actualRecordCount": 1,
        "label": {
          "ko": "실제 같은 x의 평균 · n=1",
          "en": "Actual same-x mean, n=1"
        }
      },
      {
        "x": 12.0,
        "y": 6.285714285714286,
        "modelY": 6.205076071017567,
        "actualRecordCount": 21,
        "label": {
          "ko": "실제 같은 x의 평균 · n=21",
          "en": "Actual same-x mean, n=21"
        }
      },
      {
        "x": 12.1,
        "y": 6.538461538461538,
        "modelY": 6.241160247551071,
        "actualRecordCount": 13,
        "label": {
          "ko": "실제 같은 x의 평균 · n=13",
          "en": "Actual same-x mean, n=13"
        }
      },
      {
        "x": 12.2,
        "y": 6.25,
        "modelY": 6.277244424084574,
        "actualRecordCount": 12,
        "label": {
          "ko": "실제 같은 x의 평균 · n=12",
          "en": "Actual same-x mean, n=12"
        }
      },
      {
        "x": 12.3,
        "y": 6.583333333333333,
        "modelY": 6.313328600618077,
        "actualRecordCount": 12,
        "label": {
          "ko": "실제 같은 x의 평균 · n=12",
          "en": "Actual same-x mean, n=12"
        }
      },
      {
        "x": 12.4,
        "y": 6.461538461538462,
        "modelY": 6.349412777151581,
        "actualRecordCount": 13,
        "label": {
          "ko": "실제 같은 x의 평균 · n=13",
          "en": "Actual same-x mean, n=13"
        }
      },
      {
        "x": 12.5,
        "y": 6.523809523809524,
        "modelY": 6.3854969536850845,
        "actualRecordCount": 21,
        "label": {
          "ko": "실제 같은 x의 평균 · n=21",
          "en": "Actual same-x mean, n=21"
        }
      },
      {
        "x": 12.6,
        "y": 6.5,
        "modelY": 6.421581130218588,
        "actualRecordCount": 6,
        "label": {
          "ko": "실제 같은 x의 평균 · n=6",
          "en": "Actual same-x mean, n=6"
        }
      },
      {
        "x": 12.7,
        "y": 6.444444444444445,
        "modelY": 6.457665306752092,
        "actualRecordCount": 9,
        "label": {
          "ko": "실제 같은 x의 평균 · n=9",
          "en": "Actual same-x mean, n=9"
        }
      },
      {
        "x": 12.8,
        "y": 6.470588235294118,
        "modelY": 6.493749483285595,
        "actualRecordCount": 17,
        "label": {
          "ko": "실제 같은 x의 평균 · n=17",
          "en": "Actual same-x mean, n=17"
        }
      },
      {
        "x": 12.9,
        "y": 6.333333333333333,
        "modelY": 6.529833659819098,
        "actualRecordCount": 9,
        "label": {
          "ko": "실제 같은 x의 평균 · n=9",
          "en": "Actual same-x mean, n=9"
        }
      },
      {
        "x": 13.0,
        "y": 5.666666666666667,
        "modelY": 6.565917836352602,
        "actualRecordCount": 6,
        "label": {
          "ko": "실제 같은 x의 평균 · n=6",
          "en": "Actual same-x mean, n=6"
        }
      },
      {
        "x": 13.1,
        "y": 6.0,
        "modelY": 6.602002012886105,
        "actualRecordCount": 2,
        "label": {
          "ko": "실제 같은 x의 평균 · n=2",
          "en": "Actual same-x mean, n=2"
        }
      },
      {
        "x": 13.2,
        "y": 6.0,
        "modelY": 6.638086189419608,
        "actualRecordCount": 1,
        "label": {
          "ko": "실제 같은 x의 평균 · n=1",
          "en": "Actual same-x mean, n=1"
        }
      },
      {
        "x": 13.3,
        "y": 6.333333333333333,
        "modelY": 6.674170365953112,
        "actualRecordCount": 3,
        "label": {
          "ko": "실제 같은 x의 평균 · n=3",
          "en": "Actual same-x mean, n=3"
        }
      },
      {
        "x": 13.4,
        "y": 7.0,
        "modelY": 6.710254542486616,
        "actualRecordCount": 3,
        "label": {
          "ko": "실제 같은 x의 평균 · n=3",
          "en": "Actual same-x mean, n=3"
        }
      },
      {
        "x": 13.5,
        "y": 6.0,
        "modelY": 6.746338719020119,
        "actualRecordCount": 1,
        "label": {
          "ko": "실제 같은 x의 평균 · n=1",
          "en": "Actual same-x mean, n=1"
        }
      },
      {
        "x": 13.5666666666667,
        "y": 7.0,
        "modelY": 6.770394836709134,
        "actualRecordCount": 1,
        "label": {
          "ko": "실제 같은 x의 평균 · n=1",
          "en": "Actual same-x mean, n=1"
        }
      },
      {
        "x": 13.6,
        "y": 6.75,
        "modelY": 6.782422895553623,
        "actualRecordCount": 4,
        "label": {
          "ko": "실제 같은 x의 평균 · n=4",
          "en": "Actual same-x mean, n=4"
        }
      },
      {
        "x": 14.0,
        "y": 6.714285714285714,
        "modelY": 6.926759601687636,
        "actualRecordCount": 7,
        "label": {
          "ko": "실제 같은 x의 평균 · n=7",
          "en": "Actual same-x mean, n=7"
        }
      },
      {
        "x": 14.9,
        "y": 5.0,
        "modelY": 7.251517190489167,
        "actualRecordCount": 1,
        "label": {
          "ko": "실제 같은 x의 평균 · n=1",
          "en": "Actual same-x mean, n=1"
        }
      }
    ]
  },
  "chartMeta": {
    "country": {
      "seriesKeys": [
        "y",
        "modelY"
      ],
      "seriesLabels": {
        "y": {
          "ko": "실제 국가 관측",
          "en": "Actual country record"
        },
        "modelY": {
          "ko": "전체 원기록의 OLS 직선",
          "en": "OLS line fitted to all source records"
        }
      },
      "connectObservedPoints": false,
      "legend": {
        "ko": "실측 요약과 선택한 직선 모형",
        "en": "Observed summaries and a chosen straight-line model"
      },
      "xlabel": {
        "ko": "1인당 실질 GDP · 1만 2015불변USD/인",
        "en": "Real GDP per person, 10,000 constant 2015 USD"
      },
      "ylabel": {
        "ko": "출생 시 기대수명 · 년",
        "en": "Life expectancy at birth, years"
      },
      "note": {
        "ko": "2024년 고정 16개 국가의 무가중 관측입니다. 세계 무작위 표본·개인 수명 예측·소득의 인과효과가 아닙니다.",
        "en": "Fixed unweighted observations for 16 countries in 2024, not a worldwide random sample, individual lifespan prediction or causal income effect."
      }
    },
    "person": {
      "seriesKeys": [
        "y",
        "modelY"
      ],
      "seriesLabels": {
        "y": {
          "ko": "같은 x의 실제 관측 평균",
          "en": "Actual same-x observed mean"
        },
        "modelY": {
          "ko": "전체 원기록의 OLS 직선",
          "en": "OLS line fitted to all source records"
        }
      },
      "connectObservedPoints": false,
      "legend": {
        "ko": "실측 요약과 선택한 직선 모형",
        "en": "Observed summaries and a chosen straight-line model"
      },
      "xlabel": {
        "ko": "실제 교육 연수 · 년",
        "en": "Reported schooling, years"
      },
      "ylabel": {
        "ko": "같은 교육 연수의 관측 평균 log 임금",
        "en": "Observed mean log wage at each schooling value"
      },
      "note": {
        "ko": "점은 3010명 중 같은 연수에 속한 기록들의 평균이며 n은 점별로 다릅니다. 직선은 개별 기록에 같은 가중치를 줬습니다.",
        "en": "Points average same-schooling records among 3,010 observed logs, with varying n. The line weights individual records equally."
      }
    },
    "company": {
      "seriesKeys": [
        "y",
        "modelY"
      ],
      "seriesLabels": {
        "y": {
          "ko": "같은 x의 실제 관측 평균",
          "en": "Actual same-x observed mean"
        },
        "modelY": {
          "ko": "전체 원기록의 OLS 직선",
          "en": "OLS line fitted to all source records"
        }
      },
      "connectObservedPoints": false,
      "legend": {
        "ko": "실측 요약과 선택한 직선 모형",
        "en": "Observed summaries and a chosen straight-line model"
      },
      "xlabel": {
        "ko": "실측 알코올 · 부피%",
        "en": "Reported alcohol, percent by volume"
      },
      "ylabel": {
        "ko": "같은 알코올 값에서의 관측 평균 품질점수",
        "en": "Observed mean quality score at each alcohol value"
      },
      "note": {
        "ko": "포르투갈 레드와인 실험실 기록의 평균입니다. 생산기업·브랜드를 식별하지 않으며 순서형 점수의 수치 제곱손실은 선택한 모형입니다.",
        "en": "Means of Portuguese red-wine laboratory records; no producer/brand is identified. Numeric squared loss on ordinal scores is a modeling choice."
      }
    }
  },
  "models": {
    "country": {
      "n": 16,
      "df": 14,
      "x_mean_exact": "49760381715479259/16000000000000000",
      "y_mean_exact": "627048243902439/8000000000000",
      "Sxx_exact": "1361972344405687459468420177016759/16000000000000000000000000000000",
      "Sxy_exact": "236927132424622452044462249559/1600000000000000000000000000",
      "intercept_exact": "83939447219410745405899355163723639347184543/1150314480072371165091571095453343750000000",
      "slope_exact": "64034360114762824876881689070000/36810063362315877282930275054507",
      "SSE_exact": "37038157720587475718015981053142533273091216074985457364273/230062896014474233018314219090668750000000000000000000000",
      "SST_exact": "41858875405294411470446162999/100000000000000000000000000",
      "R_squared_exact": "948217332414773372832908468257025547911045421821736413758125/1540827855944172984321164165107306080280504879021503731586493",
      "working_residual_variance_exact": "37038157720587475718015981053142533273091216074985457364273/3220880544202639262256399067269362500000000000000000000000",
      "classical_slope_variance_exact": "47408841882351968919060455748022442589556756575981385426269440000/350940018067066804178448792376954864938780931443519374471642379691",
      "classical_slope_SE_approx": 0.36754729099494504,
      "HC1_slope_variance_exact": "2637712139645816238470356572681502075504145744822773658735226841898610336123250799989926389896118365410672483445202120150439680000/17594128040130453562238935005772000367173503077982262956109418412986500816180024737762348641839443170065983835613114455512772750783",
      "HC1_slope_SE_approx": 0.3871950753367293,
      "classical_slope_t_approx": 4.732964891053035,
      "classical_slope_two_sided_p_approx": 0.00032058862023312074,
      "classical_slope_CI95_lower_approx": 0.9512778871745183,
      "classical_slope_CI95_upper_approx": 2.5278989609869376,
      "original_independence_linearity_homoscedasticity_normality_verified": false
    },
    "person": {
      "n": 3010,
      "df": 3008,
      "x_mean_exact": "39923/3010",
      "y_mean_exact": "269258772463/43000000000",
      "Sxx_exact": "64901861/3010",
      "Sxy_exact": "48300184311561/43000000000",
      "intercept_exact": "1129876974211759/202818315625000",
      "slope_exact": "338101290180927/6490186100000000",
      "SSE_exact": "3466579060216704417429013/6490186100000000000000",
      "SST_exact": "2548359194523461097827/4300000000000000000",
      "R_squared_exact": "16330354631715343460627797047/165393254221033633410075356047",
      "working_residual_variance_exact": "3466579060216704417429013/19522479788800000000000000",
      "classical_slope_variance_exact": "1043440297125228029646132913/126704526962800695680000000000000",
      "classical_slope_SE_approx": 0.0028697081857861546,
      "HC1_slope_variance_exact": "22549128763139232410543809616421432500623643/2668556707590938910271687992335766400000000000000",
      "HC1_slope_SE_approx": 0.0029068770640652652,
      "classical_slope_t_approx": 18.153147711701575,
      "classical_slope_two_sided_p_approx": 5.771450297285583e-70,
      "classical_slope_CI95_lower_approx": 0.046467447793475884,
      "classical_slope_CI95_upper_approx": 0.05772102537863454,
      "original_independence_linearity_homoscedasticity_normality_verified": false,
      "sourceRows": 3613,
      "missingLogWages": 603,
      "observedSameXGroups": [
        {
          "actual_x_exact": "1",
          "actual_records_at_x": 1,
          "observed_conditional_sample_mean_exact": "62146081/10000000",
          "OLS_value_at_x_exact": "7298832892991443/1298037220000000",
          "observed_conditional_mean_minus_OLS_exact": "767959728522039/1298037220000000"
        },
        {
          "actual_x_exact": "2",
          "actual_records_at_x": 2,
          "observed_conditional_sample_mean_exact": "568250267/100000000",
          "OLS_value_at_x_exact": "18416132877569071/3245093050000000",
          "observed_conditional_mean_minus_OLS_exact": "9646817381749/1298037220000000"
        },
        {
          "actual_x_exact": "3",
          "actual_records_at_x": 3,
          "observed_conditional_sample_mean_exact": "1611122107/300000000",
          "OLS_value_at_x_exact": "37170367045319069/6490186100000000",
          "observed_conditional_mean_minus_OLS_exact": "-86828476167701/243381978750000"
        },
        {
          "actual_x_exact": "4",
          "actual_records_at_x": 3,
          "observed_conditional_sample_mean_exact": "100834999/18750000",
          "OLS_value_at_x_exact": "9377117083874999/1622546525000000",
          "observed_conditional_mean_minus_OLS_exact": "-1953834895492441/4867639575000000"
        },
        {
          "actual_x_exact": "5",
          "actual_records_at_x": 10,
          "observed_conditional_sample_mean_exact": "1146733771/200000000",
          "OLS_value_at_x_exact": "37846569625680923/6490186100000000",
          "observed_conditional_mean_minus_OLS_exact": "-253596688382803/2596074440000000"
        },
        {
          "actual_x_exact": "6",
          "actual_records_at_x": 16,
          "observed_conditional_sample_mean_exact": "4636721589/800000000",
          "OLS_value_at_x_exact": "763693418317237/129803722000000",
          "observed_conditional_mean_minus_OLS_exact": "-4545507261917671/51921488800000000"
        },
        {
          "actual_x_exact": "7",
          "actual_records_at_x": 29,
          "observed_conditional_sample_mean_exact": "8611692307/1450000000",
          "OLS_value_at_x_exact": "38522772206042777/6490186100000000",
          "observed_conditional_mean_minus_OLS_exact": "669320192126121/188215396900000000"
        },
        {
          "actual_x_exact": "8",
          "actual_records_at_x": 68,
          "observed_conditional_sample_mean_exact": "10245178763/1700000000",
          "OLS_value_at_x_exact": "4857609187027963/811273262500000",
          "observed_conditional_mean_minus_OLS_exact": "171852742422999/4413326548000000"
        },
        {
          "actual_x_exact": "9",
          "actual_records_at_x": 81,
          "observed_conditional_sample_mean_exact": "2421341261/405000000",
          "OLS_value_at_x_exact": "39198974786404631/6490186100000000",
          "observed_conditional_mean_minus_OLS_exact": "-32125878599040691/525705074100000000"
        },
        {
          "actual_x_exact": "10",
          "actual_records_at_x": 125,
          "observed_conditional_sample_mean_exact": "74553031701/12500000000",
          "OLS_value_at_x_exact": "19768538038292779/3245093050000000",
          "observed_conditional_mean_minus_OLS_exact": "-103504008986299189/811273262500000000"
        },
        {
          "actual_x_exact": "11",
          "actual_records_at_x": 159,
          "observed_conditional_sample_mean_exact": "96691555141/15900000000",
          "OLS_value_at_x_exact": "7975035473353297/1298037220000000",
          "observed_conditional_mean_minus_OLS_exact": "-32345664840426857/515969794950000000"
        },
        {
          "actual_x_exact": "12",
          "actual_records_at_x": 992,
          "observed_conditional_sample_mean_exact": "619903163173/99200000000",
          "OLS_value_at_x_exact": "10053319664236853/1622546525000000",
          "observed_conditional_mean_minus_OLS_exact": "341296502022532249/6438264611200000000"
        },
        {
          "actual_x_exact": "13",
          "actual_records_at_x": 281,
          "observed_conditional_sample_mean_exact": "176130822229/28100000000",
          "OLS_value_at_x_exact": "40551379947128339/6490186100000000",
          "observed_conditional_mean_minus_OLS_exact": "3628037697920491/182374229410000000"
        },
        {
          "actual_x_exact": "14",
          "actual_records_at_x": 263,
          "observed_conditional_sample_mean_exact": "20715805431/3287500000",
          "OLS_value_at_x_exact": "20444740618654633/3245093050000000",
          "observed_conditional_mean_minus_OLS_exact": "202103127411977/170691894430000000"
        },
        {
          "actual_x_exact": "15",
          "actual_records_at_x": 160,
          "observed_conditional_sample_mean_exact": "50004412633/8000000000",
          "OLS_value_at_x_exact": "41227582527490193/6490186100000000",
          "observed_conditional_mean_minus_OLS_exact": "-52827164105605427/519214888000000000"
        },
        {
          "actual_x_exact": "16",
          "actual_records_at_x": 459,
          "observed_conditional_sample_mean_exact": "293050848407/45900000000",
          "OLS_value_at_x_exact": "519571047720889/81127326250000",
          "observed_conditional_mean_minus_OLS_exact": "-59103443067858653/2978995419900000000"
        },
        {
          "actual_x_exact": "17",
          "actual_records_at_x": 151,
          "observed_conditional_sample_mean_exact": "96368043719/15100000000",
          "OLS_value_at_x_exact": "41903785107852047/6490186100000000",
          "observed_conditional_mean_minus_OLS_exact": "-36503086496599019/490009050550000000"
        },
        {
          "actual_x_exact": "18",
          "actual_records_at_x": 207,
          "observed_conditional_sample_mean_exact": "135758193803/20700000000",
          "OLS_value_at_x_exact": "21120943199016487/3245093050000000",
          "observed_conditional_mean_minus_OLS_exact": "13377787884108353/268693704540000000"
        }
      ]
    },
    "company": {
      "n": 1599,
      "df": 1597,
      "x_mean_exact": "111109/10660",
      "y_mean_exact": "3004/533",
      "Sxx_exact": "4836347491666667483933333333345237/2665000000000000000000000000000",
      "Sxy_exact": "3490312333333333511/5330000000000000",
      "intercept_exact": "9068030091666670346891666666733756/4836347491666667483933333333345237",
      "slope_exact": "1745156166666666755500000000000000/4836347491666667483933333333345237",
      "SSE_exact": "3897469563555556290938611111123513736/4836347491666667483933333333345237",
      "SST_exact": "555474/533",
      "R_squared_exact": "304557004605469475450052338888889678025/1343232643293025226985192200003306088669",
      "working_residual_variance_exact": "3897469563555556290938611111123513736/7723646944191667971841533333352343489",
      "classical_slope_variance_exact": "10386756386875557515351398611144164106440000000000000000000000000000/37354240525060294693794496290714946113262050214406066442355781846111893",
      "classical_slope_SE_approx": 0.016675160295475198,
      "HC1_slope_variance_exact": "283983158063658565241865564698558440525176927347447819502201315069971971871474989362223706454295638482191245000000000000000000000000000/873725288167850219545250666361473146351857764142695815326123122508635205706862932163915136385135414324529225271180012880909329187352207917",
      "HC1_slope_SE_approx": 0.018028468666348933,
      "classical_slope_t_approx": 21.639478058447747,
      "classical_slope_two_sided_p_approx": 2.831476974776402e-91,
      "classical_slope_CI95_lower_approx": 0.3281342630588473,
      "classical_slope_CI95_upper_approx": 0.3935492676112219,
      "original_independence_linearity_homoscedasticity_normality_verified": false,
      "observationUnit": "Portuguese Vinho Verde red-wine product/laboratory measurement record, not identified company",
      "fullNumericDistinctRows": 1359,
      "additionalIdenticalNumericRows": 240,
      "qualityScoreIsOrdinal": true,
      "numericSquaredLossIsChosenModel": true,
      "producerBatchIndependenceNotVerified": true,
      "observedSameXGroups": [
        {
          "actual_x_exact": "42/5",
          "actual_records_at_x": 2,
          "observed_conditional_sample_mean_exact": "9/2",
          "OLS_value_at_x_exact": "23727341891666671093091666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-3927556358333334830783333333360379/9672694983333334967866666666690474"
        },
        {
          "actual_x_exact": "17/2",
          "actual_records_at_x": 1,
          "observed_conditional_sample_mean_exact": "5",
          "OLS_value_at_x_exact": "23901857508333337768641666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "279879949999999651024999999992429/4836347491666667483933333333345237"
        },
        {
          "actual_x_exact": "87/10",
          "actual_records_at_x": 2,
          "observed_conditional_sample_mean_exact": "6",
          "OLS_value_at_x_exact": "24250888741666671119741666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "4767196208333333783858333333337666/4836347491666667483933333333345237"
        },
        {
          "actual_x_exact": "44/5",
          "actual_records_at_x": 2,
          "observed_conditional_sample_mean_exact": "5",
          "OLS_value_at_x_exact": "24425404358333337795291666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-243666900000000375625000000007571/4836347491666667483933333333345237"
        },
        {
          "actual_x_exact": "9",
          "actual_records_at_x": 30,
          "observed_conditional_sample_mean_exact": "27/5",
          "OLS_value_at_x_exact": "24774435591666671146391666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "6709204316666666334241666666652619/24181737458333337419666666666726185"
        },
        {
          "actual_x_exact": "181/20",
          "actual_records_at_x": 1,
          "observed_conditional_sample_mean_exact": "4",
          "OLS_value_at_x_exact": "24861693400000004484166666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-5516303433333334548433333333352808/4836347491666667483933333333345237"
        },
        {
          "actual_x_exact": "91/10",
          "actual_records_at_x": 23,
          "observed_conditional_sample_mean_exact": "120/23",
          "OLS_value_at_x_exact": "24948951208333337821941666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "6535821208333328167341666666552052/111235992308333352130466666666940451"
        },
        {
          "actual_x_exact": "46/5",
          "actual_records_at_x": 72,
          "observed_conditional_sample_mean_exact": "21/4",
          "OLS_value_at_x_exact": "25123466825000004497491666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "1069430024999999172633333333314953/19345389966666669935733333333380948"
        },
        {
          "actual_x_exact": "923333333333333/100000000000000",
          "actual_records_at_x": 1,
          "observed_conditional_sample_mean_exact": "6",
          "OLS_value_at_x_exact": "25181638697222220905487777777844571/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "3836446252777783998112222222226851/4836347491666667483933333333345237"
        },
        {
          "actual_x_exact": "37/4",
          "actual_records_at_x": 1,
          "observed_conditional_sample_mean_exact": "6",
          "OLS_value_at_x_exact": "25210724633333337835266666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "3807360316666667068333333333337666/4836347491666667483933333333345237"
        },
        {
          "actual_x_exact": "93/10",
          "actual_records_at_x": 59,
          "observed_conditional_sample_mean_exact": "306/59",
          "OLS_value_at_x_exact": "25297982441666671173041666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-12658631608333349125858333333649082/285344502008333381552066666667368983"
        },
        {
          "actual_x_exact": "47/5",
          "actual_records_at_x": 103,
          "observed_conditional_sample_mean_exact": "535/103",
          "OLS_value_at_x_exact": "25472498058333337848591666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-36221391966666694500608333333875073/498143791641666750845133333334559411"
        },
        {
          "actual_x_exact": "19/2",
          "actual_records_at_x": 139,
          "observed_conditional_sample_mean_exact": "739/139",
          "OLS_value_at_x_exact": "25647013675000004524141666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "9125895516666641771041666666138059/672252301341666780266733333334987943"
        },
        {
          "actual_x_exact": "191/20",
          "actual_records_at_x": 2,
          "observed_conditional_sample_mean_exact": "11/2",
          "OLS_value_at_x_exact": "25734271483333337861916666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "1731279441666666599433333333330095/9672694983333334967866666666690474"
        },
        {
          "actual_x_exact": "956666666666667/100000000000000",
          "actual_records_at_x": 1,
          "observed_conditional_sample_mean_exact": "6",
          "OLS_value_at_x_exact": "25763357419444454791695555555622941/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "3254727530555550111904444444448481/4836347491666667483933333333345237"
        },
        {
          "actual_x_exact": "48/5",
          "actual_records_at_x": 59,
          "observed_conditional_sample_mean_exact": "304/59",
          "OLS_value_at_x_exact": "25821529291666671199691666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-53220590741666685666075000000339556/285344502008333381552066666667368983"
        },
        {
          "actual_x_exact": "97/10",
          "actual_records_at_x": 54,
          "observed_conditional_sample_mean_exact": "142/27",
          "OLS_value_at_x_exact": "25996044908333337875241666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-15131868708333339912991666666787758/130581382275000022066200000000321399"
        },
        {
          "actual_x_exact": "49/5",
          "actual_records_at_x": 78,
          "observed_conditional_sample_mean_exact": "413/78",
          "OLS_value_at_x_exact": "26170560525000004550791666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-43892206891666684097283333333650087/377235104350000063746800000000928486"
        },
        {
          "actual_x_exact": "99/10",
          "actual_records_at_x": 49,
          "observed_conditional_sample_mean_exact": "268/49",
          "OLS_value_at_x_exact": "26345076141666671226341666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "5232396824999995603391666666569472/236981027091666706712733333333916613"
        },
        {
          "actual_x_exact": "199/20",
          "actual_records_at_x": 1,
          "observed_conditional_sample_mean_exact": "3",
          "OLS_value_at_x_exact": "26432333950000004564116666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-11923291475000002112316666666698045/4836347491666667483933333333345237"
        },
        {
          "actual_x_exact": "10",
          "actual_records_at_x": 67,
          "observed_conditional_sample_mean_exact": "375/67",
          "OLS_value_at_x_exact": "26519591758333337901891666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "36817661566666667048258333333302223/324035281941666721423533333334130879"
        },
        {
          "actual_x_exact": "100333333333333/10000000000000",
          "actual_records_at_x": 2,
          "observed_conditional_sample_mean_exact": "6",
          "OLS_value_at_x_exact": "26577763630555501955202777777841906/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "2440321319444502948397222222229516/4836347491666667483933333333345237"
        },
        {
          "actual_x_exact": "101/10",
          "actual_records_at_x": 47,
          "observed_conditional_sample_mean_exact": "259/47",
          "OLS_value_at_x_exact": "26694107375000004577441666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-2009046283333336801025000000070149/227308332108333371744866666667226139"
        },
        {
          "actual_x_exact": "51/5",
          "actual_records_at_x": 46,
          "observed_conditional_sample_mean_exact": "128/23",
          "OLS_value_at_x_exact": "26868622991666671252991666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "1074150124999999124658333333313948/111235992308333352130466666666940451"
        },
        {
          "actual_x_exact": "103/10",
          "actual_records_at_x": 33,
          "observed_conditional_sample_mean_exact": "184/33",
          "OLS_value_at_x_exact": "27043138608333337928541666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-2535635608333334598141666666690340/159599467225000026969800000000392821"
        },
        {
          "actual_x_exact": "52/5",
          "actual_records_at_x": 41,
          "observed_conditional_sample_mean_exact": "229/41",
          "OLS_value_at_x_exact": "27217654225000004604091666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-8400247633333334947025000000024723/198290247158333366841266666667154717"
        },
        {
          "actual_x_exact": "21/2",
          "actual_records_at_x": 67,
          "observed_conditional_sample_mean_exact": "379/67",
          "OLS_value_at_x_exact": "27392169841666671279641666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-2299680049999999325258333333316829/324035281941666721423533333334130879"
        },
        {
          "actual_x_exact": "211/20",
          "actual_records_at_x": 2,
          "observed_conditional_sample_mean_exact": "13/2",
          "OLS_value_at_x_exact": "27479427650000004617416666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "7913662091666668056300000000020569/9672694983333334967866666666690474"
        },
        {
          "actual_x_exact": "53/5",
          "actual_records_at_x": 28,
          "observed_conditional_sample_mean_exact": "83/14",
          "OLS_value_at_x_exact": "27566685458333337955191666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "15483245391666669793783333333382087/67708864883333344775066666666833318"
        },
        {
          "actual_x_exact": "107/10",
          "actual_records_at_x": 27,
          "observed_conditional_sample_mean_exact": "17/3",
          "OLS_value_at_x_exact": "27741201075000004630741666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-1005695866666666665358333333332239/14509042475000002451800000000035711"
        },
        {
          "actual_x_exact": "43/4",
          "actual_records_at_x": 1,
          "observed_conditional_sample_mean_exact": "6",
          "OLS_value_at_x_exact": "27828458883333337968516666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "1189626066666666935083333333337666/4836347491666667483933333333345237"
        },
        {
          "actual_x_exact": "54/5",
          "actual_records_at_x": 42,
          "observed_conditional_sample_mean_exact": "127/21",
          "OLS_value_at_x_exact": "27915716691666671306291666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "27986080916666673027408333333436223/101563297325000017162600000000249977"
        },
        {
          "actual_x_exact": "109/10",
          "actual_records_at_x": 49,
          "observed_conditional_sample_mean_exact": "277/49",
          "OLS_value_at_x_exact": "28090232308333337981841666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-36753127916666668060708333333323395/236981027091666706712733333333916613"
        },
        {
          "actual_x_exact": "11",
          "actual_records_at_x": 59,
          "observed_conditional_sample_mean_exact": "339/59",
          "OLS_value_at_x_exact": "28264747925000004657391666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-28098327899999997732708333333256261/285344502008333381552066666667368983"
        },
        {
          "actual_x_exact": "110666666666667/10000000000000",
          "actual_records_at_x": 1,
          "observed_conditional_sample_mean_exact": "6",
          "OLS_value_at_x_exact": "28381091669444507279630555555625606/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "636993280555497623969444444445816/4836347491666667483933333333345237"
        },
        {
          "actual_x_exact": "111/10",
          "actual_records_at_x": 27,
          "observed_conditional_sample_mean_exact": "157/27",
          "OLS_value_at_x_exact": "28439263541666671332941666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-8553559433333331011891666666609203/130581382275000022066200000000321399"
        },
        {
          "actual_x_exact": "56/5",
          "actual_records_at_x": 36,
          "observed_conditional_sample_mean_exact": "53/9",
          "OLS_value_at_x_exact": "28613779158333338008491666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-1197595366666665427958333333306243/43527127425000007355400000000107133"
        },
        {
          "actual_x_exact": "113/10",
          "actual_records_at_x": 32,
          "observed_conditional_sample_mean_exact": "97/16",
          "OLS_value_at_x_exact": "28788294775000004684041666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "8512990291666670996866666666747893/77381559866666679742933333333523792"
        },
        {
          "actual_x_exact": "57/5",
          "actual_records_at_x": 32,
          "observed_conditional_sample_mean_exact": "183/32",
          "OLS_value_at_x_exact": "28962810391666671359591666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-41758341558333333947133333333301821/154763119733333359485866666667047584"
        },
        {
          "actual_x_exact": "23/2",
          "actual_records_at_x": 30,
          "observed_conditional_sample_mean_exact": "179/30",
          "OLS_value_at_x_exact": "29137326008333338035141666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-8413579241666661430183333333215257/145090424750000024518000000000357110"
        },
        {
          "actual_x_exact": "58/5",
          "actual_records_at_x": 15,
          "observed_conditional_sample_mean_exact": "19/3",
          "OLS_value_at_x_exact": "29311841625000004710691666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "3955077466666668062658333333358235/14509042475000002451800000000035711"
        },
        {
          "actual_x_exact": "117/10",
          "actual_records_at_x": 23,
          "observed_conditional_sample_mean_exact": "152/23",
          "OLS_value_at_x_exact": "29486357241666671386241666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "56938602175000015674308333333599636/111235992308333352130466666666940451"
        },
        {
          "actual_x_exact": "59/5",
          "actual_records_at_x": 29,
          "observed_conditional_sample_mean_exact": "182/29",
          "OLS_value_at_x_exact": "29660872858333338061791666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "20049930591666678283908333333554210/140254077258333357034066666667011873"
        },
        {
          "actual_x_exact": "119/10",
          "actual_records_at_x": 20,
          "observed_conditional_sample_mean_exact": "31/5",
          "OLS_value_at_x_exact": "29835388475000004737341666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "749829866666668315225000000033567/24181737458333337419666666666726185"
        },
        {
          "actual_x_exact": "239/20",
          "actual_records_at_x": 1,
          "observed_conditional_sample_mean_exact": "5",
          "OLS_value_at_x_exact": "29922646283333338075116666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-5740908825000000655450000000007571/4836347491666667483933333333345237"
        },
        {
          "actual_x_exact": "12",
          "actual_records_at_x": 21,
          "observed_conditional_sample_mean_exact": "44/7",
          "OLS_value_at_x_exact": "30009904091666671412891666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "2729960991666669402825000000054136/33854432441666672387533333333416659"
        },
        {
          "actual_x_exact": "121/10",
          "actual_records_at_x": 13,
          "observed_conditional_sample_mean_exact": "85/13",
          "OLS_value_at_x_exact": "30184419708333338088441666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "18692080583333340984591666666806317/62872517391666677291133333333488081"
        },
        {
          "actual_x_exact": "61/5",
          "actual_records_at_x": 12,
          "observed_conditional_sample_mean_exact": "25/4",
          "OLS_value_at_x_exact": "30358935325000004763991666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-527054008333331957633333333304099/19345389966666669935733333333380948"
        },
        {
          "actual_x_exact": "123/10",
          "actual_records_at_x": 12,
          "observed_conditional_sample_mean_exact": "79/12",
          "OLS_value_at_x_exact": "30533450941666671439541666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "15670040541666673956233333333468651/58036169900000009807200000000142844"
        },
        {
          "actual_x_exact": "62/5",
          "actual_records_at_x": 13,
          "observed_conditional_sample_mean_exact": "84/13",
          "OLS_value_at_x_exact": "30707966558333338115091666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "7049624041666673154208333333461080/62872517391666677291133333333488081"
        },
        {
          "actual_x_exact": "25/2",
          "actual_records_at_x": 21,
          "observed_conditional_sample_mean_exact": "137/21",
          "OLS_value_at_x_exact": "30882482175000004790641666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "14047480683333344695391666666888593/101563297325000017162600000000249977"
        },
        {
          "actual_x_exact": "63/5",
          "actual_records_at_x": 6,
          "observed_conditional_sample_mean_exact": "13/2",
          "OLS_value_at_x_exact": "31056997791666671466191666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "758521808333334358750000000020569/9672694983333334967866666666690474"
        },
        {
          "actual_x_exact": "127/10",
          "actual_records_at_x": 9,
          "observed_conditional_sample_mean_exact": "58/9",
          "OLS_value_at_x_exact": "31231513408333338141741666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-575466158333329207541666666580058/43527127425000007355400000000107133"
        },
        {
          "actual_x_exact": "64/5",
          "actual_records_at_x": 17,
          "observed_conditional_sample_mean_exact": "110/17",
          "OLS_value_at_x_exact": "31406029025000004817291666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-1904269341666658661291666666497782/82217907358333347226866666666869029"
        },
        {
          "actual_x_exact": "129/10",
          "actual_records_at_x": 9,
          "observed_conditional_sample_mean_exact": "19/3",
          "OLS_value_at_x_exact": "31580544641666671492841666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-2851031583333332283791666666641765/14509042475000002451800000000035711"
        },
        {
          "actual_x_exact": "13",
          "actual_records_at_x": 6,
          "observed_conditional_sample_mean_exact": "17/3",
          "OLS_value_at_x_exact": "31755060258333338168391666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-13047273416666667278308333333332239/14509042475000002451800000000035711"
        },
        {
          "actual_x_exact": "131/10",
          "actual_records_at_x": 2,
          "observed_conditional_sample_mean_exact": "6",
          "OLS_value_at_x_exact": "31929575875000004843941666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-2911490924999999940341666666662334/4836347491666667483933333333345237"
        },
        {
          "actual_x_exact": "66/5",
          "actual_records_at_x": 1,
          "observed_conditional_sample_mean_exact": "6",
          "OLS_value_at_x_exact": "32104091491666671519491666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-3086006541666666615891666666662334/4836347491666667483933333333345237"
        },
        {
          "actual_x_exact": "133/10",
          "actual_records_at_x": 3,
          "observed_conditional_sample_mean_exact": "19/3",
          "OLS_value_at_x_exact": "32278607108333338195041666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-4945218983333332390391666666641765/14509042475000002451800000000035711"
        },
        {
          "actual_x_exact": "67/5",
          "actual_records_at_x": 3,
          "observed_conditional_sample_mean_exact": "7",
          "OLS_value_at_x_exact": "32453122725000004870591666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "1401309716666667516941666666682903/4836347491666667483933333333345237"
        },
        {
          "actual_x_exact": "27/2",
          "actual_records_at_x": 1,
          "observed_conditional_sample_mean_exact": "6",
          "OLS_value_at_x_exact": "32627638341666671546141666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-3609553391666666642541666666662334/4836347491666667483933333333345237"
        },
        {
          "actual_x_exact": "135666666666667/10000000000000",
          "actual_records_at_x": 1,
          "observed_conditional_sample_mean_exact": "7",
          "OLS_value_at_x_exact": "32743982086111174168380555555625606/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "1110450355555498219152777777791053/4836347491666667483933333333345237"
        },
        {
          "actual_x_exact": "68/5",
          "actual_records_at_x": 4,
          "observed_conditional_sample_mean_exact": "27/4",
          "OLS_value_at_x_exact": "32802153958333338221691666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-627233558333330820566666666613625/19345389966666669935733333333380948"
        },
        {
          "actual_x_exact": "14",
          "actual_records_at_x": 7,
          "observed_conditional_sample_mean_exact": "47/7",
          "OLS_value_at_x_exact": "33500216425000004923891666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-7193182866666662722374999999910153/33854432441666672387533333333416659"
        },
        {
          "actual_x_exact": "149/10",
          "actual_records_at_x": 1,
          "observed_conditional_sample_mean_exact": "5",
          "OLS_value_at_x_exact": "35070856975000005003841666666733756/4836347491666667483933333333345237",
          "observed_conditional_mean_minus_OLS_exact": "-10889119516666667584175000000007571/4836347491666667483933333333345237"
        }
      ]
    },
    "workingQueries": [
      {
        "case": "country",
        "chosen_query": "min_observed_x",
        "chosen_x_exact": "23668328910323/100000000000000",
        "fitted_OLS_y_exact": "675304543497181650707554427471039976775650369/9202515840578969320732568763626750000000000",
        "mean_variance_under_classical_working_model_exact": "64363620922274450813532471980220906478336589549377883010460122955414125920814674159477457/35094001806706680417844879237695486493878093144351937447164237969100000000000000000000000",
        "new_value_variance_under_classical_working_model_exact": "14622599779615110955364163287263516549434805276203472175449667795379296348402056921555883333/1096687556459583763057652476177983952933690410760998045223882436534375000000000000000000000",
        "working_mean_CI95_lower_approx": 70.47799006675275,
        "working_mean_CI95_upper_approx": 76.28721092739092,
        "working_new_value_PI95_lower_approx": 65.55092031153912,
        "working_new_value_PI95_upper_approx": 81.21428068260455,
        "is_validated_future_prediction": false
      },
      {
        "case": "country",
        "chosen_query": "observed_x_mean",
        "chosen_x_exact": "49760381715479259/16000000000000000",
        "fitted_OLS_y_exact": "627048243902439/8000000000000",
        "mean_variance_under_classical_working_model_exact": "37038157720587475718015981053142533273091216074985457364273/51534088707242228196102385076309800000000000000000000000000",
        "new_value_variance_under_classical_working_model_exact": "629648681249987087206271677903423065642550673274752775192641/51534088707242228196102385076309800000000000000000000000000",
        "working_mean_CI95_lower_approx": 76.56274742443597,
        "working_mean_CI95_upper_approx": 80.19931355117379,
        "working_new_value_PI95_lower_approx": 70.88405736026323,
        "working_new_value_PI95_upper_approx": 85.87800361534653,
        "is_validated_future_prediction": false
      },
      {
        "case": "country",
        "chosen_query": "max_observed_x",
        "chosen_x_exact": "42581060025143/6250000000000",
        "fitted_OLS_y_exact": "97572701878002438646986722769075891888619593/1150314480072371165091571095453343750000000",
        "mean_variance_under_classical_working_model_exact": "451142816080694908933784147104033380929032589915512745205424879840283349055701251695921161/175470009033533402089224396188477432469390465721759687235821189845500000000000000000000000",
        "new_value_variance_under_classical_working_model_exact": "7715439613149188774138712228640910926396620269878683994453347226012187922487365588585860029/548343778229791881528826238088991976466845205380499022611941218267187500000000000000000000",
        "working_mean_CI95_lower_approx": 81.38357262658813,
        "working_mean_CI95_upper_approx": 88.26169146130498,
        "working_new_value_PI95_lower_approx": 76.7774109498641,
        "working_new_value_PI95_upper_approx": 92.867853138029,
        "is_validated_future_prediction": false
      },
      {
        "case": "person",
        "chosen_query": "min_observed_x",
        "chosen_x_exact": "1",
        "fitted_OLS_y_exact": "7298832892991443/1298037220000000",
        "mean_variance_under_classical_working_model_exact": "1644000853254350553034787412159/1267045269628006956800000000000000",
        "new_value_variance_under_classical_working_model_exact": "28328929145618691316387320813169/158380658703500869600000000000000",
        "working_mean_CI95_lower_approx": 5.552348433840275,
        "working_mean_CI95_upper_approx": 5.693604733806864,
        "working_new_value_PI95_lower_approx": 4.793723903595451,
        "working_new_value_PI95_upper_approx": 6.452229264051688,
        "is_validated_future_prediction": false
      },
      {
        "case": "person",
        "chosen_query": "observed_x_mean",
        "chosen_x_exact": "39923/3010",
        "fitted_OLS_y_exact": "269258772463/43000000000",
        "mean_variance_under_classical_working_model_exact": "80618117679458242265791/1366573585216000000000000000",
        "new_value_variance_under_classical_working_model_exact": "242741152332848767462296701/1366573585216000000000000000",
        "working_mean_CI95_lower_approx": 6.246771996762811,
        "working_mean_CI95_upper_approx": 6.276891838725562,
        "working_new_value_PI95_lower_approx": 5.435455203820434,
        "working_new_value_PI95_upper_approx": 7.088208631667939,
        "is_validated_future_prediction": false
      },
      {
        "case": "person",
        "chosen_query": "max_observed_x",
        "chosen_x_exact": "18",
        "fitted_OLS_y_exact": "21120943199016487/3245093050000000",
        "mean_variance_under_classical_working_model_exact": "308840995053766413253168197183/1267045269628006956800000000000000",
        "new_value_variance_under_classical_working_model_exact": "28162034163343618298914618411297/158380658703500869600000000000000",
        "working_mean_CI95_lower_approx": 6.477966424060423,
        "working_mean_CI95_upper_approx": 6.539190787512593,
        "working_new_value_PI95_lower_approx": 5.681772233190429,
        "working_new_value_PI95_upper_approx": 7.335384978382587,
        "is_validated_future_prediction": false
      },
      {
        "case": "company",
        "chosen_query": "min_observed_x",
        "chosen_x_exact": "42/5",
        "fitted_OLS_y_exact": "23727341891666671093091666666733756/4836347491666667483933333333345237",
        "mean_variance_under_classical_working_model_exact": "162887124103699033006314039638800958989150677813218690848148425140104/112062721575180884081383488872144838339786150643218199327067345538335679",
        "new_value_variance_under_classical_working_model_exact": "56711438566750986836303956194088903384729942001149905357037480224166400/112062721575180884081383488872144838339786150643218199327067345538335679",
        "working_mean_CI95_lower_approx": 4.8312649070362115,
        "working_mean_CI95_upper_approx": 4.980826524586674,
        "working_new_value_PI95_lower_approx": 3.5106990722659024,
        "working_new_value_PI95_upper_approx": 6.301392359356983,
        "is_validated_future_prediction": false
      },
      {
        "case": "company",
        "chosen_query": "observed_x_mean",
        "chosen_x_exact": "111109/10660",
        "fitted_OLS_y_exact": "3004/533",
        "mean_variance_under_classical_working_model_exact": "3897469563555556290938611111123513736/12350111463762477086974611800030397238911",
        "new_value_variance_under_classical_working_model_exact": "6235951301688890065501777777797621977600/12350111463762477086974611800030397238911",
        "working_mean_CI95_lower_approx": 5.601178090017901,
        "working_mean_CI95_upper_approx": 5.670866938124688,
        "working_new_value_PI95_lower_approx": 4.242245551935551,
        "working_new_value_PI95_upper_approx": 7.029799476207038,
        "is_validated_future_prediction": false
      },
      {
        "case": "company",
        "chosen_query": "max_observed_x",
        "chosen_x_exact": "149/10",
        "fitted_OLS_y_exact": "35070856975000005003841666666733756/4836347491666667483933333333345237",
        "mean_variance_under_classical_working_model_exact": "659931417543939126789715114640382665741230677813218690848148425140104/112062721575180884081383488872144838339786150643218199327067345538335679",
        "new_value_variance_under_classical_working_model_exact": "57208482860191226930087357269090485091482022001149905357037480224166400/112062721575180884081383488872144838339786150643218199327067345538335679",
        "working_mean_CI95_lower_approx": 7.100996506798237,
        "working_mean_CI95_upper_approx": 7.402037874180098,
        "working_new_value_PI95_lower_approx": 5.850069167010767,
        "working_new_value_PI95_upper_approx": 8.652965213967567,
        "is_validated_future_prediction": false
      }
    ]
  },
  "enrichment": [
    {
      "kind": "video",
      "title": {
        "ko": "Khan Academy · 잔차와 최소제곱의 시작",
        "en": "Khan Academy · Introduction to residuals and least squares"
      },
      "provider": "Khan Academy",
      "url": "https://www.youtube.com/watch?v=yMgFHbjbAW8",
      "creatorPage": "https://www.khanacademy.org/math/statistics-probability/describing-relationships-quantitative-data/regression-library/v/introduction-to-residuals-and-least-squares-regression",
      "videoId": "yMgFHbjbAW8",
      "focus": {
        "ko": "같은 x에서 실제 y−직선값의 세로 잔차를 따라갑니다. 최소화하는 양과 인과 질문을 구별하고 실제 CSV 한 행의 잔차를 계산해 보세요.",
        "en": "Follow vertical y−line residuals at a fixed x, distinguish minimization from causal questions, and calculate a residual for an actual CSV row."
      },
      "question": {
        "ko": "회귀 잔차는 산점도 점에서 직선까지의 최단거리인가요?",
        "en": "Is a regression residual the shortest distance from a scatter point to the line?"
      },
      "answer": {
        "ko": "보통의 y에 대한 OLS에서는 같은 x의 세로 차이입니다. 그림의 최단 수직거리와 다릅니다.",
        "en": "Ordinary OLS for y uses the vertical difference at the same x, not the shortest perpendicular geometric distance."
      }
    },
    {
      "kind": "thinker",
      "title": {
        "ko": "가우스 · 관측 오차와 최소제곱의 역사",
        "en": "Gauss · Observational errors and least-squares history"
      },
      "provider": "University of St Andrews · MacTutor",
      "url": "https://mathshistory.st-andrews.ac.uk/Biographies/Gauss/",
      "focus": {
        "ko": "대학 소개의 관측·측지와 1823년 오차 조합 저술 부분을 읽습니다. 최소제곱을 역사의 한 사람에게만 돌리기보다 측정과 모형 가정의 연결을 생각합니다.",
        "en": "Read the observation/geodesy and 1823 error-combination passages; focus on measurement and assumptions rather than assigning all least-squares history to one person."
      },
      "question": {
        "ko": "잔차를 작게 만드는 계산만 있으면 측정 오차 문제도 해결되나요?",
        "en": "Does minimizing residuals automatically solve measurement-error problems?"
      },
      "answer": {
        "ko": "아닙니다. 측정 도구·단위·자료 생성과 선택 모형을 확인해야 합니다.",
        "en": "No. Measurement instruments, units, acquisition and the selected model still require scrutiny."
      }
    },
    {
      "kind": "reading",
      "title": {
        "ko": "NIST · 모수에 선형인 모형과 제곱손실",
        "en": "NIST · Linear-in-parameter models and squared loss"
      },
      "provider": "NIST/SEMATECH · Linear Least Squares",
      "url": "https://www.itl.nist.gov/div898/handbook/pmd/section1/pmd141.htm",
      "focus": {
        "ko": "Definition of a Linear Least Squares Model와 Why Least Squares?의 정의·최소화 목적만 읽습니다. 일반적인 최적성·뒤 비선형 예시를 조건 없이 옮겨 쓰지 않습니다.",
        "en": "Read only the model definition and squared-deviation objective in Why Least Squares? Do not import unqualified optimality claims or the later nonlinear example."
      },
      "question": {
        "ko": "선형 회귀는 반드시 원래 x의 직선만 가능한가요?",
        "en": "Must linear regression always be a straight line in the original x?"
      },
      "answer": {
        "ko": "모수에 선형이면 x²·log x 같은 미리 정한 변환도 사용할 수 있습니다. 여기에서는 해석을 위해 절편과 x의 직선만 선택했습니다.",
        "en": "Predetermined transforms such as x² or log x can remain linear in parameters; this chapter deliberately chooses an intercept and x for clarity."
      }
    },
    {
      "kind": "reading",
      "title": {
        "ko": "NIST · R²만으로 충분하지 않은 이유",
        "en": "NIST · Why R² alone is insufficient"
      },
      "provider": "NIST/SEMATECH · Model Validation",
      "url": "https://www.itl.nist.gov/div898/handbook/pmd/section4/pmd44.htm",
      "focus": {
        "ko": "R² Is Not Enough!, Main Tool, Residuals 부분만 읽고 원자료의 잔차·x·적합값을 비교합니다. 보기 좋은 잔차 그림도 인과성이나 미래 성능의 증명은 아닙니다.",
        "en": "Read only R² Is Not Enough!, Main Tool and Residuals; compare actual residuals, x and fitted values. A reassuring plot does not prove causality or future performance."
      },
      "question": {
        "ko": "OLS 잔차 합이 0인 것과 잔차 그림에 곡률이 없는 것은 같은가요?",
        "en": "Does a zero OLS residual sum imply no curvature in a residual plot?"
      },
      "answer": {
        "ko": "아닙니다. 합이 0인 곡선 패턴도 얼마든지 있습니다. 대수적 합계와 모형 모양의 진단을 구별합니다.",
        "en": "No. Curved residual patterns can sum to zero; separate algebraic totals from diagnostics of functional form."
      }
    }
  ],
  "sources": [
    {
      "file": "실제데이터/worldbank.csv",
      "sha256": "b2f0f3815ea20e087909038e352a72af9dd844d50448008d75e3440a642ddd02",
      "url": "https://data.worldbank.org/indicator/NY.GDP.PCAP.KD",
      "scope": "720 retained country-year rows; original API6480 indicator records checked for GDPpc and period life expectancy; select16 complete2024 countries, uniform country weights.",
      "retrievedOn": "2026-10-22",
      "rawDownloaded": true,
      "originalFile": "work/textbooks-2026/raw/worldbank-panel.json",
      "originalSha256": "4e9aab35e4ba7a64324358bd4bd54bfbc89255c859958ec1e5f471128e2087b7",
      "license": "World Bank dataset terms/attribution; no endorsement."
    },
    {
      "url": "https://data.worldbank.org/indicator/SP.DYN.LE00.IN",
      "retrievedOn": "2026-10-22",
      "scope": "SP.DYN.LE00.IN period life expectancy definition; not individual lifespan prediction."
    },
    {
      "file": "실제데이터/college-proximity.csv",
      "sha256": "fd3ef1ef0eba13c487ece6aae7617a2da0a2b4239eae40c6c2bf58d771c7b8e0",
      "url": "https://davidcard.berkeley.edu/data_sets.html",
      "scope": "3613 actual men,3010 source-trimmed observed log wages; no weights or missing-value imputation.",
      "retrievedOn": "2026-10-22",
      "rawDownloaded": true,
      "originalFile": "work/textbooks-2026/raw/proximity.zip",
      "originalSha256": "0e9b2ad4182ea631ca3dd8a5fff6c1b0ab86b56c6a3fa868870f716e8d82691f",
      "license": "Author public replication; no CC claim."
    },
    {
      "file": "실제데이터/wine.csv",
      "sha256": "f1520828528ec75ecda7f1f3183a6826f4317bb94b08816f7985890e11ece10e",
      "url": "https://archive.ics.uci.edu/dataset/186/wine+quality",
      "scope": "1599 Portuguese red-wine product/laboratory records,12 numeric source fields verified. Alcohol percentage and ordinal expert-median quality only for simple OLS; preserve identical rows; no brand/producer/price identification.",
      "retrievedOn": "2026-10-22",
      "rawDownloaded": true,
      "originalFile": "work/textbooks-2026/raw/wine-quality.zip",
      "originalSha256": "3ed56667f4b828242bd732d7d1dd7f2861e54432239d7fa63877014cbb0304d4",
      "license": "CC BY4.0, Cortez et al.2009,DOI10.24432/C56S3T."
    },
    {
      "url": "https://www.khanacademy.org/math/statistics-probability/describing-relationships-quantitative-data/regression-library/v/introduction-to-residuals-and-least-squares-regression",
      "retrievedOn": "2026-10-22",
      "webVerified": true,
      "rawDownloaded": false,
      "scope": "Official Khan lesson/title/transcript and verified creator YouTube metadata match yMgFHbjbAW8; successful playback not certified."
    },
    {
      "url": "https://mathshistory.st-andrews.ac.uk/Biographies/Gauss/",
      "retrievedOn": "2026-10-22",
      "webVerified": true,
      "rawDownloaded": false,
      "scope": "University biography geodesy/observational-error and1823 least-squares work only. Original Gauss treatise not claimed read or unique-inventor priority asserted."
    },
    {
      "url": "https://www.itl.nist.gov/div898/handbook/pmd/section1/pmd141.htm",
      "retrievedOn": "2026-10-22",
      "webVerified": true,
      "rawDownloaded": false,
      "scope": "Only linear-in-parameters definition and squared-residual minimization objective; exclude broad optimality language and reparameterizable nonlinear example."
    },
    {
      "url": "https://www.itl.nist.gov/div898/handbook/pmd/section4/pmd44.htm",
      "retrievedOn": "2026-10-22",
      "webVerified": true,
      "rawDownloaded": false,
      "scope": "Only R-squared inadequacy, graphical residual analysis and residual definition; no original process measurements or examples copied."
    }
  ],
  "review": {
    "status": "Final cases: independent AI review and actual-source Python/R checks passed; parent browser/integration QA remains.",
    "scope": "Actual observations, descriptive linear projections, empirical same-x means and model-based inference are separate; no causal income/schooling/recipe manipulation or future-sales performance claim.",
    "checks": {
      "countryRows": 16,
      "personRows": 3613,
      "personObserved": 3010,
      "wineRows": 1599,
      "wineSourceNumericCellsCompared": 19188,
      "duplicatesNotSilentlyRemoved": 240
    },
    "videoVerification": "Official Khan lesson and verified creator video ID checked; playback is parent browser QA.",
    "studentReviewerResponse": {
      "reviewFile": "work/textbook-rewrite-2026/stats15-pedagogy-review.json",
      "storedValuesCompared": 128302,
      "hashesChecked": 16,
      "chartPointsChecked": 99,
      "diagnosticRowsChecked": 4625,
      "scope": "Independent actual-source Fraction/Decimal reconstruction, KO/EN and specified resource reading, Decimal250 tiny t tails relative3e-12, labels and regression direction checked. No unresolved recommendations; not human certification."
    },
    "reproduction": {
      "python": "stat15-reproduce.py",
      "R": "stat15-reproduce.R",
      "metricsCompared": 311,
      "numericCaseJSONUsedAsInput": false,
      "PythonMethod": "Exact source-data normal equations",
      "RMethod": "Original API/ZIP source comparisons plus lm/hatvalues/cooks.distance",
      "tinyNonzeroMetricRelativeTolerance": 1e-08
    }
  }
}
