{
  "cases": {
    "ko": "<div class=\"case-studies\"><article class=\"case-study\" id=\"stats07-country-ko\"><h3>국가 사례 · 전체 평균을 나눴다가 다시 합치기</h3><p>책상에 실제 16개 국가 이름표가 한 장씩 있다고 생각해 봅시다. 한 장을 균등하게 뽑고, X에 그 국가의 2024년 GDP/명을 넣습니다. 어떤 나라가 뽑힐지는 모르지만 가능한 16개 숫자와 각각의 선택 확률 1/16은 알고 있습니다. 기대값은 이 법칙이 정한 수치의 무게중심입니다. 예측한 미래 GDP나 실제 주민 한 명의 소득을 뜻하지 않습니다. GDP 단위는 2015 USD/명이며 PPP가 아닙니다.</p><div data-tex=\"E[X]=\\sum_{i=1}^{16}\\frac1{16}x_i\\approx31,100.238572175,\\qquad \\operatorname{Var}(X)=\\sum_{i=1}^{16}\\frac1{16}(x_i-E[X])^2\"></div><p>기대값 31,100.238572은 실제 국가 목록의 한 숫자일 필요가 없습니다. 확률분포의 평균이라는 말은 “다음 추첨에서 반드시 이 값”이라는 말과 다릅니다. 선택확률을 인구 비중으로 바꾸면 같은 GDP 숫자에 붙는 무게가 달라져 기대값도 15,756.274457으로 달라집니다. 인구 가중은 별도로 지정한 국가 선택 법칙이며 개인소득 분포를 새로 관측했다는 뜻이 아닙니다.</p><h4>1. 조건부 기대값은 같은 표를 좁혀 계산한 평균</h4><p>Y를 “공표 기대수명이 80년 이상인가?”라는 두 값의 표식으로 정합니다. 80은 수업에서 선택한 분류 기준이며 인과 경계가 아닙니다. 출생 시 기대수명은 그 시점의 사망률 패턴을 바탕으로 계산한 집단 지표로, 특정 개인의 실제 수명을 예언하는 숫자가 아닙니다. 선택된 Y를 알면 해당하는 8개 이름표 안에서 X를 평균 냅니다. 각각의 조건부 확률은 1/8입니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>실제 16국 값의 두 조건부 모멘트</caption><thead><tr><th scope=\"col\">조건 Y</th><th scope=\"col\">국가 수</th><th scope=\"col\">P(Y)</th><th scope=\"col\">E[X|Y] (2015 USD/명)</th><th scope=\"col\">Var(X|Y) ((2015 USD/명)²)</th></tr></thead><tbody><tr><th scope=\"row\">기대수명≥80</th><td>8</td><td>1/2</td><td>47,664.331759</td><td>112,522,545.567226</td></tr><tr><th scope=\"row\">기대수명<80</th><td>8</td><td>1/2</td><td>14,536.145385</td><td>402,779,982.294873</td></tr></tbody></table></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 조건부 평균 두 개를 어떻게 전체 평균으로 되돌리나요?</summary><div><div data-tex=\"E[E[X\\mid Y]]=\\frac8{16}E[X\\mid Y=1]+\\frac8{16}E[X\\mid Y=0]=E[X]\"></div><p>두 평균에 각 그룹의 선택 확률을 곱해 더합니다. 이 사례는 두 그룹 크기가 같아 두 평균의 단순 평균도 우연히 일치합니다. 그룹이 5개와 11개라면 1/2씩 주면 안 됩니다. 원래 법칙이 지정한 5/16, 11/16을 써야 합니다.</p></div></details><h4>2. 분산은 그룹 안 차이와 그룹 평균 사이 차이의 합</h4><div data-tex=\"\\operatorname{Var}(X)=\\underbrace{E[\\operatorname{Var}(X\\mid Y)]}_{\\rm within}+\\underbrace{\\operatorname{Var}(E[X\\mid Y])}_{\\rm between}\"></div><div class=\"table-scroll\" tabindex=\"0\"><table><caption>원 선택 법칙으로 가중한 분산 분해</caption><thead><tr><th scope=\"col\">항</th><th scope=\"col\">값 ((2015 USD/명)²)</th></tr></thead><tbody><tr><th scope=\"row\">그룹 안 분산의 가중평균</th><td>257,651,263.931050</td></tr><tr><th scope=\"row\">조건부 평균의 분산</th><td>274,369,183.102422</td></tr><tr><th scope=\"row\">합계 = 전체 분산</th><td>532,020,447.033472</td></tr></tbody></table></div><p>두 그룹의 평균이 같아도 그룹 내부가 넓게 퍼져 있으면 전체 분산은 큽니다. 반대로 각 그룹 내부가 한 값으로 모여 있어도 두 그룹 평균이 다르면 전체 분산이 생깁니다. 총분산 법칙은 이 두 종류를 빼먹지 않도록 하는 회계식처럼 읽을 수 있습니다. 모든 항은 제곱 단위이며 GDP/명 자체의 단위와 다릅니다.</p><div data-case-chart=\"country\"></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 이 항등식에 “나라들이 서로 독립”이라는 가정이 필요한가요?</summary><div><p>필요하지 않습니다. 여기서는 고정된 16개 기록과 지정한 확률 법칙의 유한 합을 묶었다 푼 것입니다. 독립 국가 표본을 모집단에서 뽑았다는 모형을 도입하지 않았습니다. 이 정확한 분해에서 모형 밖의 인과효과나 추정의 표준오차가 자동으로 따라오지는 않습니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 조건부 기대값 E[X|Y]는 숫자인가요, 확률변수인가요?</summary><div><p>Y=1을 고정한 E[X|Y=1]은 숫자입니다. Y가 아직 정해지지 않은 E[X|Y]는 선택된 국가의 그룹에 따라 두 조건부 평균 중 하나를 돌려주는 확률변수입니다. 그래프는 실제 GDP와 그 국가가 속한 그룹 평균, 전체 평균을 같은 GDP 단위로 비교합니다. 이 구별이 반복기대값의 안쪽과 바깥쪽 E를 이해하는 출발점입니다.</p></div></details><p>자료: <a href=\"https://data.worldbank.org/indicator/NY.GDP.PCAP.KD\" target=\"_blank\" rel=\"noopener\">World Bank · 실제 GDP/명과 기대수명</a> · <a href=\"stats07-sources/actual-country-values-and-conditional-mean-map.csv\" download>실제 값·선택 법칙 CSV</a></p></article><article class=\"case-study\" id=\"stats07-person-ko\"><h3>개체 사례 · 세 종의 평균 몸무게를 똑같이 평균 내도 될까?</h3><p>Palmer 자료의 344개 행 중 몸무게가 기록된 342개 행을 균등하게 한 장씩 선택한다고 정합니다. X는 선택 기록의 실제 몸무게(g), S는 종입니다. 원래 결측 두 행은 CSV에 보존하며 0 g으로 바꾸지 않습니다. 이 사례의 “개체”는 실제 펭귄 기록이며 사람의 신체 자료로 바꾸어 부르지 않습니다. 간단한 공개 표의 row_id는 행 위치이며 같은 개체의 추적 ID나 관측 독립성의 증거가 아닙니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>실제 종별 조건부 질량 모멘트</caption><thead><tr><th scope=\"col\">종</th><th scope=\"col\">유효 행</th><th scope=\"col\">P(S)</th><th scope=\"col\">E[X|S] (g)</th><th scope=\"col\">Var(X|S) (g²)</th></tr></thead><tbody><tr><th scope=\"row\">Adelie</th><td>151</td><td>151/342</td><td>3,700.662252</td><td>208,890.289900</td></tr><tr><th scope=\"row\">Chinstrap</th><td>68</td><td>34/171</td><td>3,733.088235</td><td>145,541.198097</td></tr><tr><th scope=\"row\">Gentoo</th><td>123</td><td>41/114</td><td>5,076.016260</td><td>252,067.056646</td></tr></tbody></table></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 세 종의 조건부 평균을 1/3씩 더하면 전체 평균인가요?</summary><div><div data-tex=\"E[X]=\\frac{151}{342}\\mu_A+\\frac{68}{342}\\mu_C+\\frac{123}{342}\\mu_G=\\frac{239500}{57}\\approx4,201.754385965\"></div><p>원래 선택 법칙에서는 종별 유효 기록 수가 다릅니다. 세 평균을 똑같이 평균 내면 4,169.922249037 g으로, 원래 전체 평균 4,201.754385965 g과 다릅니다. 1/3씩 주는 계산은 틀린 산술이라기보다 “먼저 세 종을 균등하게 고르고 그 종 안에서 기록을 고르는” 다른 선택 법칙의 기대값입니다. 어떤 법칙의 질문인지 먼저 적어야 합니다.</p></div></details><p>조건부 평균은 가방 속 기록을 종별로 나누어 각 가방의 무게중심을 찾는 일입니다. 다시 합칠 때는 가방 이름 수가 아니라 원래 선택 법칙에서 각 가방이 차지하는 확률을 사용합니다. 그래프의 세 막대는 종별 조건부 평균이며 세 개의 새로운 실측 펭귄이 아닙니다. 표시된 전체 평균선과 막대 차이는 두 조건을 알 때 수치가 어떻게 달라지는지 보여줍니다.</p><div data-case-chart=\"person\"></div><h4>1. 제곱을 먼저 평균 내는 것과 평균을 제곱하는 것은 다르다</h4><div data-tex=\"\\operatorname{Var}(X)=E[X^2]-(E[X])^2\\approx641,250.577101\"></div><p>오른쪽 수치는 표시를 위해 반올림했으므로 마지막 값은 근삿값입니다. 계산 CSV는 정확한 분수로 항등식을 보존합니다. 분산 정의의 분모 342는 이 유한 선택 법칙의 확률 1/342에서 나옵니다. 모집단 분산을 추정하려고 341로 나누는 표본분산과는 질문이 다릅니다. 분모를 바꾸려면 어떤 확률모형에서 무엇을 추정하는지 설명해야 합니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>실제 342개 기록의 총분산</caption><thead><tr><th scope=\"col\">항</th><th scope=\"col\">값 (g²)</th></tr></thead><tbody><tr><th scope=\"row\">E[Var(X|S)]: 종 안</th><td>211,823.050330124</td></tr><tr><th scope=\"row\">Var(E[X|S]): 종 평균 사이</th><td>429,427.526770523</td></tr><tr><th scope=\"row\">Var(X): 전체</th><td>641,250.577100646</td></tr></tbody></table></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 종을 알면 각 기록의 몸무게를 정확히 알게 되나요?</summary><div><p>아닙니다. 종 안의 분산 211,823.050330 g²가 남습니다. S만 알고 각 기록에 E[X|S]를 붙였을 때 평균 제곱 오차는 바로 E[Var(X|S)]입니다. 종별 평균은 이 고정 경험법칙에서 종만 사용하는 제곱오차 예측의 최적 상수이지만, 새로운 야생 개체에 대한 검증된 예측모형이라는 주장은 아닙니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 왜 두 분산 항 사이에 교차항이 없나요?</summary><div><div data-tex=\"X-\\mu=(X-\\mu_S)+(\\mu_S-\\mu),\\quad E[X-\\mu_S\\mid S]=0\"></div><p>제곱을 펼치면 교차항 2(X−μS)(μS−μ)가 생깁니다. 한 종 안에서는 두 번째 인자가 상수이고 첫 인자의 조건부 평균이 0이므로 그 종의 평균 교차항은 0입니다. 종별 확률로 다시 합쳐도 0입니다. “그냥 독립이라고 하자”가 아니라 조건부 평균의 정의로 증명합니다.</p></div></details><h4>2. 곱의 기대값에는 실제 짝 정보가 필요하다</h4><p>같은 실제 기록의 날개 길이를 L(mm), 몸무게를 X(g)로 놓습니다. E[LX]는 각 행에서 두 수를 먼저 곱한 뒤 평균 냅니다. E[L]E[X]는 각각 평균 낸 뒤 곱합니다. 이 실제 짝 법칙에서는 둘이 다릅니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>같은 342행의 곱과 두 평균의 곱</caption><thead><tr><th scope=\"col\">양</th><th scope=\"col\">값 (mm·g)</th></tr></thead><tbody><tr><th scope=\"row\">E[LX]</th><td>853,992.032163743</td></tr><tr><th scope=\"row\">E[L]E[X]</th><td>844,196.342464348</td></tr><tr><th scope=\"row\">차이 = Cov(L,X)</th><td>9,795.689699395</td></tr></tbody></table></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 두 열의 기록을 서로 독립으로 뽑으면 같은 문제가 되나요?</summary><div><p>아닙니다. 342²개의 날개 기록·몸무게 기록 순서쌍을 균등하게 뽑는 새 실험에서는 두 선택이 독립이므로 곱 기대값이 E[L]E[X]로 분해됩니다. 원래 한 행의 두 측정을 함께 뽑는 법칙을 바꾼 것입니다. 실제 한 펭귄의 측정 짝을 지워도 과학적 질문이 유지되는지 먼저 판단해야 합니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: g를 kg으로 바꾸면 평균과 분산은 어떻게 바뀌나요?</summary><div><div data-tex=\"Y=X/1000,\\qquad E[Y]=E[X]/1000,\\qquad \\operatorname{Var}(Y)=\\operatorname{Var}(X)/10^6\"></div><p>평균은 4.201754386 kg, 분산은 0.641250577101 kg²입니다. 표준편차는 제곱근을 취해 1000으로 나뉩니다. 몸무게와 날개 길이를 단순히 더하는 것은 g와 mm가 달라 자연스러운 물리량이 아닙니다. 공분산의 단위 mm·g도 분산의 g²와 구별합니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 이 자료의 모멘트가 유한하면 모든 확률모형도 그런가요?</summary><div><p>아닙니다. 이 사례는 유한 개의 유한한 측정값이라 절댓값의 평균과 제곱의 평균이 존재합니다. 무한 지지집합에서는 기대값을 유한한 수로 다룰 때 E[|X|]<∞를 확인하고, 분산·공분산의 유한값을 쓰려면 해당 2차 모멘트 조건을 확인합니다. 조건 없이 발산하는 양을 빼서 0이나 유한 숫자를 만들면 안 됩니다.</p></div></details><p>자료: <a href=\"https://allisonhorst.github.io/palmerpenguins/\" target=\"_blank\" rel=\"noopener\">Horst·Hill·Gorman / Palmer LTER · 실제 기록 (CC0)</a> · <a href=\"stats07-sources/actual-penguin-masses-and-species-conditional-mean-map.csv\" download>실제 값·선택 법칙 CSV</a></p></article><article class=\"case-study\" id=\"stats07-company-ko\"><h3>기업 사례 · 매출 변화의 평균은 쉽지만 분산에는 짝이 필요하다</h3><p>Apple의 실제 다섯 품목 이름표를 균등하게 하나 고릅니다. 같은 선택 품목의 FY2023 순매출을 X, FY2024 순매출을 Y로 둡니다. 단위는 백만 명목 USD이고 X와 Y는 동일한 품목의 두 공시 집계입니다. FY2023은 53주, FY2024는 52주입니다. 이 장에서는 주수를 통제한 성장률이나 미래 매출을 추정하지 않고, 공표된 두 수의 차이 D=Y−X를 계산합니다. 매출은 이익과 다릅니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>실제 공시 품목의 짝 변화</caption><thead><tr><th scope=\"col\">품목</th><th scope=\"col\">FY2023: X</th><th scope=\"col\">FY2024: Y</th><th scope=\"col\">D=Y−X</th><th scope=\"col\">선택 확률</th></tr></thead><tbody><tr><th scope=\"row\">iPhone</th><td>200,583</td><td>201,183</td><td>600</td><td>1/5</td></tr><tr><th scope=\"row\">Mac</th><td>29,357</td><td>29,984</td><td>627</td><td>1/5</td></tr><tr><th scope=\"row\">iPad</th><td>28,300</td><td>26,694</td><td>-1,606</td><td>1/5</td></tr><tr><th scope=\"row\">웨어러블·홈·액세서리</th><td>39,845</td><td>37,005</td><td>-2,840</td><td>1/5</td></tr><tr><th scope=\"row\">서비스</th><td>85,200</td><td>96,169</td><td>10,969</td><td>1/5</td></tr></tbody></table></div><h4>1. 기대값의 선형성은 독립을 요구하지 않는다</h4><div data-tex=\"E[D]=E[Y-X]=E[Y]-E[X]=78207-76657=1550\"></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 차이 다섯 개를 직접 더해 확인해 보세요.</summary><div><div data-tex=\"\\frac{600+627-1606-2840+10969}{5}=\\frac{7750}{5}=1550\"></div><p>서비스의 증가만 보는 대신 모든 품목의 변화를 포함했습니다. 품목 평균의 변화 1,550에 다섯 품목을 곱하면 공시 총매출 차이 7,750이 됩니다. 평균 품목의 변화는 회사 전체 매출 차이와 같은 수가 아닙니다. 이 등식에는 X와 Y의 독립이 필요하지 않습니다.</p></div></details><div data-case-chart=\"company\"></div><h4>2. 분산은 선형이 아니다: 공분산 두 배를 빼야 한다</h4><div data-tex=\"\\operatorname{Var}(Y-X)=\\operatorname{Var}(Y)+\\operatorname{Var}(X)-2\\operatorname{Cov}(X,Y)\"></div><div class=\"table-scroll\" tabindex=\"0\"><table><caption>같은 품목을 고르는 법칙의 2차 모멘트</caption><thead><tr><th scope=\"col\">항</th><th scope=\"col\">값 ((백만 USD)²)</th></tr></thead><tbody><tr><th scope=\"row\">Var(X)</th><td>4,272,289,823.600</td></tr><tr><th scope=\"row\">Var(Y)</th><td>4,424,476,344.400</td></tr><tr><th scope=\"row\">Cov(X,Y)</th><td>4,336,412,641.400</td></tr><tr><th scope=\"row\">정확한 Var(Y−X)</th><td>23,940,885.200</td></tr><tr><th scope=\"row\">독립으로 잘못 놓은 Var(X)+Var(Y)</th><td>8,696,766,168.000</td></tr></tbody></table></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 품목이 다섯 개라서 자동으로 두 연도가 독립인가요?</summary><div><p>아닙니다. 같은 품목의 두 값을 함께 고릅니다. iPhone이 뽑히면 두 연도 모두 iPhone 매출이 나오므로 짝 구조가 있습니다. 실제 공분산 4,336,412,641.400은 0이 아닙니다. X와 Y를 별도 독립 선택하는 새 25개 순서쌍 실험이면 분산의 합이 맞지만, 그 차이는 같은 품목의 연간 변화가 아닙니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 왜 차이의 분산에서 공분산 부호가 음수인가요?</summary><div><div data-tex=\"[(Y-EY)-(X-EX)]^2=(Y-EY)^2+(X-EX)^2-2(X-EX)(Y-EY)\"></div><p>차이를 제곱해 평균 내면 마지막 곱의 평균이 −2Cov(X,Y)입니다. 두 연도 모두 큰 품목은 차이를 낼 때 공통의 크기가 많이 상쇄됩니다. 이는 이 고정 품목 표의 산술 설명이며 매출 위험이 미래에도 이만큼이라는 추론은 아닙니다.</p></div></details><h4>3. 하드웨어·서비스로 조건을 주고 다시 합치기</h4><div class=\"table-scroll\" tabindex=\"0\"><table><caption>FY2024 실제 품목의 그룹 조건부 모멘트</caption><thead><tr><th scope=\"col\">그룹</th><th scope=\"col\">품목 수</th><th scope=\"col\">확률</th><th scope=\"col\">E[Y|그룹]</th><th scope=\"col\">Var(Y|그룹)</th></tr></thead><tbody><tr><th scope=\"row\">하드웨어</th><td>4</td><td>4/5</td><td>73,716.500</td><td>5,429,772,479.250</td></tr><tr><th scope=\"row\">서비스</th><td>1</td><td>1/5</td><td>96,169.000</td><td>0.000</td></tr></tbody></table></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 그룹 평균 73,716.5와 96,169의 단순 평균이 78,207인가요?</summary><div><div data-tex=\"\\frac45(73716.5)+\\frac15(96169)=78207\"></div><p>하드웨어는 네 품목, 서비스는 한 품목이므로 원래 품목 균등 법칙의 그룹 확률은 4/5와 1/5입니다. 서비스 한 칸의 조건부 분산은 0이지만 회사의 서비스 사업이 현실에서 위험 없이 고정됐다는 뜻이 아닙니다. 이 유한 표 안에서 선택 가능한 값이 하나라는 뜻입니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: FY2024 분산도 그룹별로 분해해 보세요.</summary><div><div data-tex=\"\\operatorname{Var}(Y)=E[\\operatorname{Var}(Y\\mid G)]+\\operatorname{Var}(E[Y\\mid G])\"></div><p>그룹 안 항 4,343,817,983.400과 그룹 평균 사이 항 80,658,361.000을 더하면 4,424,476,344.400 ((백만 USD)²)입니다. 기대값을 합칠 때와 같은 그룹 확률을 사용합니다. 두 항의 단위를 맞추고 실제 값과 제곱값을 혼동하지 않습니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 매출 비중으로 품목을 뽑으면 기대값이 그대로인가요?</summary><div><p>아닙니다. 품목별 선택 확률을 FY2024 매출/391,035로 바꾸면 기대값은 Σs²/Σs=134,780.917225 백만 USD입니다. 큰 품목에 더 많은 선택 무게를 준 결과입니다. 두 법칙 모두 명시한 과거 집계 선택 실험이며 고객의 구매액, 미래 실적, 기업 가치 평가와 구분합니다.</p></div></details><p>자료: <a href=\"https://www.sec.gov/Archives/edgar/data/320193/000032019324000123/aapl-20240928.htm\" target=\"_blank\" rel=\"noopener\">SEC EDGAR · 실제 Apple 품목 순매출</a> · <a href=\"stats07-sources/actual-apple-paired-category-values-and-change.csv\" download>실제 값·선택 법칙 CSV</a></p></article><p><a href=\"stats07-sources/exact-conditional-moments-and-total-variance-contributions.csv\" download>조건부 모멘트·총분산 항 CSV</a> · <a href=\"stats07-sources/exact-law-moments-linearity-and-covariance-identities.csv\" download>기대값·분산·공분산 정확 항등식 CSV</a> · <a href=\"stats07-sources/provenance.json\" download>출처·가공·해시 기록</a></p></div>",
    "en": "<div class=\"case-studies\"><article class=\"case-study\" id=\"stats07-country-en\"><h3>Country case · Split an expectation, then put it back together</h3><p>Imagine one ticket for each of sixteen actual countries. Select a ticket uniformly and let X return that country’s 2024 GDP/person. The selected country is unknown before the draw, but all sixteen possible values and their probabilities 1/16 are specified. Expectation is the numerical balance point of this law. It is not predicted future GDP or an actual resident’s income. Units are constant 2015 USD/person, not PPP.</p><div data-tex=\"E[X]=\\sum_{i=1}^{16}\\frac1{16}x_i\\approx31,100.238572175,\\qquad \\operatorname{Var}(X)=\\sum_{i=1}^{16}\\frac1{16}(x_i-E[X])^2\"></div><p>The expectation 31,100.238572 need not equal any single country’s value. A probability-law mean does not promise that the next draw equals it. Replacing uniform tickets with actual population weights changes the expectation to 15,756.274457 without changing the GDP values. This assigns another country-selection law; it does not observe a distribution of personal incomes.</p><h4>1. Conditional expectation averages within a specified part of the table</h4><p>Let Y indicate whether published life expectancy is at least 80 years. Eighty is a chosen classroom grouping threshold, not a causal boundary. Life expectancy at birth summarizes a population’s mortality pattern at that time; it does not predict an individual person’s lifespan. Given Y, average GDP over the eight qualifying tickets, with conditional probabilities 1/8.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Two conditional laws over sixteen actual country values</caption><thead><tr><th scope=\"col\">Condition Y</th><th scope=\"col\">Countries</th><th scope=\"col\">P(Y)</th><th scope=\"col\">E[X|Y] (2015 USD/person)</th><th scope=\"col\">Var(X|Y) ((2015 USD/person)²)</th></tr></thead><tbody><tr><th scope=\"row\">Life expectancy≥80</th><td>8</td><td>1/2</td><td>47,664.331759</td><td>112,522,545.567226</td></tr><tr><th scope=\"row\">Life expectancy<80</th><td>8</td><td>1/2</td><td>14,536.145385</td><td>402,779,982.294873</td></tr></tbody></table></div><details class=\"case-answer\"><summary>Think first, then reveal: How do the two conditional means recover the overall mean?</summary><div><div data-tex=\"E[E[X\\mid Y]]=\\frac8{16}E[X\\mid Y=1]+\\frac8{16}E[X\\mid Y=0]=E[X]\"></div><p>Weight each conditional mean by its group probability. Here equal group sizes happen to make the simple average work too. With groups of five and eleven under the same ticket experiment, the correct weights would be 5/16 and 11/16, rather than one-half each.</p></div></details><h4>2. Variance splits into within-group and between-mean variation</h4><div data-tex=\"\\operatorname{Var}(X)=\\underbrace{E[\\operatorname{Var}(X\\mid Y)]}_{\\rm within}+\\underbrace{\\operatorname{Var}(E[X\\mid Y])}_{\\rm between}\"></div><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Variance decomposition under the original ticket law</caption><thead><tr><th scope=\"col\">Term</th><th scope=\"col\">Value ((2015 USD/person)²)</th></tr></thead><tbody><tr><th scope=\"row\">Expected within-group variance</th><td>257,651,263.931050</td></tr><tr><th scope=\"row\">Variance of conditional means</th><td>274,369,183.102422</td></tr><tr><th scope=\"row\">Sum = overall variance</th><td>532,020,447.033472</td></tr></tbody></table></div><p>Even equal group means can coexist with large overall variation when values vary inside each group. Conversely, constant values inside each group can still produce overall variation when the group means differ. Total variance accounts for both sources. Every variance term has squared units, unlike GDP/person itself.</p><div data-case-chart=\"country\"></div><details class=\"case-answer\"><summary>Think first, then reveal: Must countries be independent for this identity?</summary><div><p>No. We regroup finite sums over sixteen fixed records under a defined law. We have not introduced an independent sample of countries from a population. Exact decomposition does not by itself yield policy causality or a sampling standard error.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Is E[X|Y] a number or a random variable?</summary><div><p>E[X|Y=1] is a number after fixing the condition. E[X|Y] is a random variable returning one of two conditional means depending on the selected country’s group. The chart compares actual GDP, its assigned group mean and the overall mean in matching GDP units. This distinction explains the inner and outer expectations in iterated expectation.</p></div></details><p>Source: <a href=\"https://data.worldbank.org/indicator/NY.GDP.PCAP.KD\" target=\"_blank\" rel=\"noopener\">World Bank · actual GDP/person and life expectancy</a> · <a href=\"stats07-sources/actual-country-values-and-conditional-mean-map.csv\" download>Actual values and selection-law CSV</a></p></article><article class=\"case-study\" id=\"stats07-person-en\"><h3>Individual-observation case · Can three species means be averaged equally?</h3><p>Specify uniform selection from the 342 of 344 Palmer records with observed body mass. X is actual mass in g and S is species. Both originally missing rows remain in the CSV and are not converted to zero grams. These are actual penguin observations, not human-body data. The added row_id locates a source row; it does not identify longitudinal individuals or establish independent observations.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Conditional mass moments by actual species</caption><thead><tr><th scope=\"col\">Species</th><th scope=\"col\">Valid rows</th><th scope=\"col\">P(S)</th><th scope=\"col\">E[X|S] (g)</th><th scope=\"col\">Var(X|S) (g²)</th></tr></thead><tbody><tr><th scope=\"row\">Adelie</th><td>151</td><td>151/342</td><td>3,700.662252</td><td>208,890.289900</td></tr><tr><th scope=\"row\">Chinstrap</th><td>68</td><td>34/171</td><td>3,733.088235</td><td>145,541.198097</td></tr><tr><th scope=\"row\">Gentoo</th><td>123</td><td>41/114</td><td>5,076.016260</td><td>252,067.056646</td></tr></tbody></table></div><details class=\"case-answer\"><summary>Think first, then reveal: Does weighting all three conditional means by one-third give the overall mean?</summary><div><div data-tex=\"E[X]=\\frac{151}{342}\\mu_A+\\frac{68}{342}\\mu_C+\\frac{123}{342}\\mu_G=\\frac{239500}{57}\\approx4,201.754385965\"></div><p>Species have unequal valid record counts. An equal average of species means gives 4,169.922249037 g, differing from the original overall mean 4,201.754385965 g. Equal species weighting instead answers a different experiment: select a species uniformly first, then select a record uniformly within it. State the probability law before judging the calculation.</p></div></details><p>Think of grouping records into three bags and finding each bag’s balance point. Recombine the bag means using the probability of each bag under the original law, rather than counting bag names. The chart’s three bars are conditional means, not three newly measured penguins. Their positions relative to the overall-mean reference show how the numeric summary changes when species is known.</p><div data-case-chart=\"person\"></div><h4>1. Averaging squares differs from squaring the average</h4><div data-tex=\"\\operatorname{Var}(X)=E[X^2]-(E[X])^2\\approx641,250.577101\"></div><p>Displayed terms are rounded; the final value is approximate. The CSV preserves the identity with exact fractions. Denominator 342 comes from probabilities 1/342 in this finite law. Dividing by 341 instead computes a sample-variance statistic used for a different estimation question. Explain the sampling model and estimand before changing denominators.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Total variance of the actual 342-record law</caption><thead><tr><th scope=\"col\">Term</th><th scope=\"col\">Value (g²)</th></tr></thead><tbody><tr><th scope=\"row\">E[Var(X|S)]: within species</th><td>211,823.050330124</td></tr><tr><th scope=\"row\">Var(E[X|S]): between species means</th><td>429,427.526770523</td></tr><tr><th scope=\"row\">Var(X): overall</th><td>641,250.577100646</td></tr></tbody></table></div><details class=\"case-answer\"><summary>Think first, then reveal: Does knowing species reveal each record’s exact mass?</summary><div><p>No. Expected within-species variance 211,823.050330 g² remains. Assigning E[X|S] using only species leaves mean squared error E[Var(X|S)]. Under this fixed empirical law, the conditional mean minimizes squared error among species-only rules. This does not validate prediction for new wild animals.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Why is there no cross-term between the two variance components?</summary><div><div data-tex=\"X-\\mu=(X-\\mu_S)+(\\mu_S-\\mu),\\quad E[X-\\mu_S\\mid S]=0\"></div><p>Expanding the square yields 2(X−μS)(μS−μ). Within a species the second factor is constant and the first has conditional mean zero. Its conditional cross-term therefore averages to zero, and weighting across species keeps it zero. This follows from conditional means, without assuming independence.</p></div></details><h4>2. The expectation of a product uses actual pairing</h4><p>Let L be flipper length in mm and X mass in g from the same actual record. E[LX] multiplies within each row before averaging; E[L]E[X] averages each measurement first. They differ under this actual paired-record law.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Products from the same 342 paired records</caption><thead><tr><th scope=\"col\">Quantity</th><th scope=\"col\">Value (mm·g)</th></tr></thead><tbody><tr><th scope=\"row\">E[LX]</th><td>853,992.032163743</td></tr><tr><th scope=\"row\">E[L]E[X]</th><td>844,196.342464348</td></tr><tr><th scope=\"row\">Difference = Cov(L,X)</th><td>9,795.689699395</td></tr></tbody></table></div><details class=\"case-answer\"><summary>Think first, then reveal: Would drawing the two columns independently answer the same question?</summary><div><p>No. Uniform selection over 342² flipper-record/mass-record ordered pairs defines a new experiment whose product expectation factors. It replaces the original same-row pairing law. Decide whether erasing an animal’s actual measurement pairing still answers the scientific question.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: How do moments change from grams to kilograms?</summary><div><div data-tex=\"Y=X/1000,\\qquad E[Y]=E[X]/1000,\\qquad \\operatorname{Var}(Y)=\\operatorname{Var}(X)/10^6\"></div><p>The mean becomes 4.201754386 kg and variance 0.641250577101 kg². Taking square roots divides standard deviation by 1000. Simply adding mass to flipper length mixes g and mm without defining a meaningful physical quantity. Covariance units mm·g also differ from mass-variance units g².</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Do finite moments here imply finite moments for every probability model?</summary><div><p>No. A finite set of finite measurements has finite absolute and second moments. On infinite supports, finite-valued expectation requires integrability E[|X|]<∞; finite variance and the usual covariance algebra need suitable second-moment conditions. Do not subtract divergent quantities as though they were ordinary finite numbers.</p></div></details><p>Source: <a href=\"https://allisonhorst.github.io/palmerpenguins/\" target=\"_blank\" rel=\"noopener\">Horst, Hill, Gorman / Palmer LTER · actual records (CC0)</a> · <a href=\"stats07-sources/actual-penguin-masses-and-species-conditional-mean-map.csv\" download>Actual values and selection-law CSV</a></p></article><article class=\"case-study\" id=\"stats07-company-en\"><h3>Company case · Mean changes are linear; their variance needs pairing</h3><p>Select one of Apple’s five actual category tickets uniformly. X is its FY2023 net sales and Y its FY2024 net sales, both in million nominal USD. These are paired disclosed aggregates for the same selected category. FY2023 spans 53 weeks and FY2024 spans 52. We calculate D=Y−X from the reported values, without estimating week-adjusted growth or future revenue. Net sales are not profit.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Actual paired changes in disclosed categories</caption><thead><tr><th scope=\"col\">Category</th><th scope=\"col\">FY2023: X</th><th scope=\"col\">FY2024: Y</th><th scope=\"col\">D=Y−X</th><th scope=\"col\">Ticket probability</th></tr></thead><tbody><tr><th scope=\"row\">iPhone</th><td>200,583</td><td>201,183</td><td>600</td><td>1/5</td></tr><tr><th scope=\"row\">Mac</th><td>29,357</td><td>29,984</td><td>627</td><td>1/5</td></tr><tr><th scope=\"row\">iPad</th><td>28,300</td><td>26,694</td><td>-1,606</td><td>1/5</td></tr><tr><th scope=\"row\">Wearables, Home and Accessories</th><td>39,845</td><td>37,005</td><td>-2,840</td><td>1/5</td></tr><tr><th scope=\"row\">Services</th><td>85,200</td><td>96,169</td><td>10,969</td><td>1/5</td></tr></tbody></table></div><h4>1. Linearity of expectation does not require independence</h4><div data-tex=\"E[D]=E[Y-X]=E[Y]-E[X]=78207-76657=1550\"></div><details class=\"case-answer\"><summary>Think first, then reveal: Verify by directly summing all five changes.</summary><div><div data-tex=\"\\frac{600+627-1606-2840+10969}{5}=\\frac{7750}{5}=1550\"></div><p>Include every category rather than only the Services increase. Multiplying the mean category change 1550 by five yields the disclosed total-sales difference 7750. A mean category change is not itself a company-total change. None of this requires independence of X and Y.</p></div></details><div data-case-chart=\"company\"></div><h4>2. Variance is not linear: subtract twice the covariance</h4><div data-tex=\"\\operatorname{Var}(Y-X)=\\operatorname{Var}(Y)+\\operatorname{Var}(X)-2\\operatorname{Cov}(X,Y)\"></div><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Second moments under same-category selection</caption><thead><tr><th scope=\"col\">Term</th><th scope=\"col\">Value ((million USD)²)</th></tr></thead><tbody><tr><th scope=\"row\">Var(X)</th><td>4,272,289,823.600</td></tr><tr><th scope=\"row\">Var(Y)</th><td>4,424,476,344.400</td></tr><tr><th scope=\"row\">Cov(X,Y)</th><td>4,336,412,641.400</td></tr><tr><th scope=\"row\">Correct Var(Y−X)</th><td>23,940,885.200</td></tr><tr><th scope=\"row\">Incorrect independence reference Var(X)+Var(Y)</th><td>8,696,766,168.000</td></tr></tbody></table></div><details class=\"case-answer\"><summary>Think first, then reveal: Do five categories automatically make the two years independent?</summary><div><p>No. The law selects both values for the same category. Selecting iPhone gives iPhone sales in both years, creating an explicit pairing structure. Actual covariance 4,336,412,641.400 is nonzero. Independently selecting X and Y from 25 ordered category pairs would make the variance sum applicable, but their difference would no longer be a same-category annual change.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Why is covariance subtracted in the variance of a difference?</summary><div><div data-tex=\"[(Y-EY)-(X-EX)]^2=(Y-EY)^2+(X-EX)^2-2(X-EX)(Y-EY)\"></div><p>After averaging the expanded square, the cross-term becomes −2Cov(X,Y). Categories large in both years have much common size cancel when differenced. This explains arithmetic in a fixed table; it does not estimate future sales risk.</p></div></details><h4>3. Condition on hardware versus Services, then recombine</h4><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Conditional moments of actual FY2024 categories</caption><thead><tr><th scope=\"col\">Group</th><th scope=\"col\">Categories</th><th scope=\"col\">Probability</th><th scope=\"col\">E[Y|group]</th><th scope=\"col\">Var(Y|group)</th></tr></thead><tbody><tr><th scope=\"row\">hardware</th><td>4</td><td>4/5</td><td>73,716.500</td><td>5,429,772,479.250</td></tr><tr><th scope=\"row\">services</th><td>1</td><td>1/5</td><td>96,169.000</td><td>0.000</td></tr></tbody></table></div><details class=\"case-answer\"><summary>Think first, then reveal: Does a simple average of 73716.5 and 96169 equal 78207?</summary><div><div data-tex=\"\\frac45(73716.5)+\\frac15(96169)=78207\"></div><p>Hardware contains four category tickets and Services one, so the original group weights are 4/5 and 1/5. Services has conditional variance zero because that table slice contains one value. This does not imply that the real Services business is risk-free or constant over time.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Decompose FY2024 variance by these groups.</summary><div><div data-tex=\"\\operatorname{Var}(Y)=E[\\operatorname{Var}(Y\\mid G)]+\\operatorname{Var}(E[Y\\mid G])\"></div><p>The within component 4,343,817,983.400 plus the between-means component 80,658,361.000 gives 4,424,476,344.400 (million USD)². Use the same group probabilities as in total expectation. Match squared units rather than mixing variances with sales values.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Does sales-weighted category selection preserve the expectation?</summary><div><p>No. Assigning selection probability s/391035 gives expectation Σs²/Σs=134,780.917225 million USD. Larger categories receive more selection weight. Both laws concern explicit selection of historical aggregates, distinct from customer purchase amounts, future performance or company valuation.</p></div></details><p>Source: <a href=\"https://www.sec.gov/Archives/edgar/data/320193/000032019324000123/aapl-20240928.htm\" target=\"_blank\" rel=\"noopener\">SEC EDGAR · actual Apple category net sales</a> · <a href=\"stats07-sources/actual-apple-paired-category-values-and-change.csv\" download>Actual values and selection-law CSV</a></p></article><p><a href=\"stats07-sources/exact-conditional-moments-and-total-variance-contributions.csv\" download>Conditional moments and total-variance components CSV</a> · <a href=\"stats07-sources/exact-law-moments-linearity-and-covariance-identities.csv\" download>Exact expectation, variance and covariance identities CSV</a> · <a href=\"stats07-sources/provenance.json\" download>Sources, processing and hashes</a></p></div>"
  },
  "chartData": {
    "country": [
      {
        "x": 0,
        "y": 61486.38147544,
        "modelY": 47664.33175901764,
        "referenceY": 31100.238572174538,
        "group": "life_ge_80",
        "label": {
          "ko": "AUS",
          "en": "AUS"
        },
        "isObservedValue": true,
        "modelYIsDerivedConditionalMean": true
      },
      {
        "x": 1,
        "y": 9566.74518687619,
        "modelY": 14536.145385331436,
        "referenceY": 31100.238572174538,
        "group": "life_lt_80",
        "label": {
          "ko": "BRA",
          "en": "BRA"
        },
        "isObservedValue": true,
        "modelYIsDerivedConditionalMean": true
      },
      {
        "x": 2,
        "y": 45061.3864587285,
        "modelY": 47664.33175901764,
        "referenceY": 31100.238572174538,
        "group": "life_ge_80",
        "label": {
          "ko": "CAN",
          "en": "CAN"
        },
        "isObservedValue": true,
        "modelYIsDerivedConditionalMean": true
      },
      {
        "x": 3,
        "y": 13119.1076099516,
        "modelY": 14536.145385331436,
        "referenceY": 31100.238572174538,
        "group": "life_lt_80",
        "label": {
          "ko": "CHN",
          "en": "CHN"
        },
        "isObservedValue": true,
        "modelYIsDerivedConditionalMean": true
      },
      {
        "x": 4,
        "y": 44027.7631554469,
        "modelY": 47664.33175901764,
        "referenceY": 31100.238572174538,
        "group": "life_ge_80",
        "label": {
          "ko": "DEU",
          "en": "DEU"
        },
        "isObservedValue": true,
        "modelYIsDerivedConditionalMean": true
      },
      {
        "x": 5,
        "y": 39683.3953489029,
        "modelY": 47664.33175901764,
        "referenceY": 31100.238572174538,
        "group": "life_ge_80",
        "label": {
          "ko": "FRA",
          "en": "FRA"
        },
        "isObservedValue": true,
        "modelYIsDerivedConditionalMean": true
      },
      {
        "x": 6,
        "y": 47900.9680144146,
        "modelY": 47664.33175901764,
        "referenceY": 31100.238572174538,
        "group": "life_ge_80",
        "label": {
          "ko": "GBR",
          "en": "GBR"
        },
        "isObservedValue": true,
        "modelYIsDerivedConditionalMean": true
      },
      {
        "x": 7,
        "y": 4367.94741847938,
        "modelY": 14536.145385331436,
        "referenceY": 31100.238572174538,
        "group": "life_lt_80",
        "label": {
          "ko": "IDN",
          "en": "IDN"
        },
        "isObservedValue": true,
        "modelYIsDerivedConditionalMean": true
      },
      {
        "x": 8,
        "y": 2366.8328910323,
        "modelY": 14536.145385331436,
        "referenceY": 31100.238572174538,
        "group": "life_lt_80",
        "label": {
          "ko": "IND",
          "en": "IND"
        },
        "isObservedValue": true,
        "modelYIsDerivedConditionalMean": true
      },
      {
        "x": 9,
        "y": 37976.6371788298,
        "modelY": 47664.33175901764,
        "referenceY": 31100.238572174538,
        "group": "life_ge_80",
        "label": {
          "ko": "JPN",
          "en": "JPN"
        },
        "isObservedValue": true,
        "modelYIsDerivedConditionalMean": true
      },
      {
        "x": 10,
        "y": 37048.4264001496,
        "modelY": 47664.33175901764,
        "referenceY": 31100.238572174538,
        "group": "life_ge_80",
        "label": {
          "ko": "KOR",
          "en": "KOR"
        },
        "isObservedValue": true,
        "modelYIsDerivedConditionalMean": true
      },
      {
        "x": 11,
        "y": 10284.0336925726,
        "modelY": 14536.145385331436,
        "referenceY": 31100.238572174538,
        "group": "life_lt_80",
        "label": {
          "ko": "MEX",
          "en": "MEX"
        },
        "isObservedValue": true,
        "modelYIsDerivedConditionalMean": true
      },
      {
        "x": 12,
        "y": 68129.6960402288,
        "modelY": 47664.33175901764,
        "referenceY": 31100.238572174538,
        "group": "life_ge_80",
        "label": {
          "ko": "SGP",
          "en": "SGP"
        },
        "isObservedValue": true,
        "modelYIsDerivedConditionalMean": true
      },
      {
        "x": 13,
        "y": 66856.5131698371,
        "modelY": 14536.145385331436,
        "referenceY": 31100.238572174538,
        "group": "life_lt_80",
        "label": {
          "ko": "USA",
          "en": "USA"
        },
        "isObservedValue": true,
        "modelYIsDerivedConditionalMean": true
      },
      {
        "x": 14,
        "y": 4012.50779921084,
        "modelY": 14536.145385331436,
        "referenceY": 31100.238572174538,
        "group": "life_lt_80",
        "label": {
          "ko": "VNM",
          "en": "VNM"
        },
        "isObservedValue": true,
        "modelYIsDerivedConditionalMean": true
      },
      {
        "x": 15,
        "y": 5715.47531469148,
        "modelY": 14536.145385331436,
        "referenceY": 31100.238572174538,
        "group": "life_lt_80",
        "label": {
          "ko": "ZAF",
          "en": "ZAF"
        },
        "isObservedValue": true,
        "modelYIsDerivedConditionalMean": true
      }
    ],
    "person": [
      {
        "x": 0,
        "y": 3700.662251655629,
        "modelY": 4201.754385964912,
        "actualValidRecords": 151,
        "assignedGroupProbability": 0.4415204678362573,
        "label": {
          "ko": "Adelie",
          "en": "Adelie"
        },
        "isObservedValue": false,
        "isDerivedConditionalExpectation": true
      },
      {
        "x": 1,
        "y": 3733.0882352941176,
        "modelY": 4201.754385964912,
        "actualValidRecords": 68,
        "assignedGroupProbability": 0.19883040935672514,
        "label": {
          "ko": "Chinstrap",
          "en": "Chinstrap"
        },
        "isObservedValue": false,
        "isDerivedConditionalExpectation": true
      },
      {
        "x": 2,
        "y": 5076.016260162602,
        "modelY": 4201.754385964912,
        "actualValidRecords": 123,
        "assignedGroupProbability": 0.35964912280701755,
        "label": {
          "ko": "Gentoo",
          "en": "Gentoo"
        },
        "isObservedValue": false,
        "isDerivedConditionalExpectation": true
      }
    ],
    "company": [
      {
        "x": 0,
        "y": 600.0,
        "modelY": 1550.0,
        "label": {
          "ko": "iPhone",
          "en": "iPhone"
        },
        "isObservedValue": false,
        "isDerivedActualPairedDifference": true
      },
      {
        "x": 1,
        "y": 627.0,
        "modelY": 1550.0,
        "label": {
          "ko": "Mac",
          "en": "Mac"
        },
        "isObservedValue": false,
        "isDerivedActualPairedDifference": true
      },
      {
        "x": 2,
        "y": -1606.0,
        "modelY": 1550.0,
        "label": {
          "ko": "iPad",
          "en": "iPad"
        },
        "isObservedValue": false,
        "isDerivedActualPairedDifference": true
      },
      {
        "x": 3,
        "y": -2840.0,
        "modelY": 1550.0,
        "label": {
          "ko": "웨어러블·홈·액세서리",
          "en": "Wearables, Home and Accessories"
        },
        "isObservedValue": false,
        "isDerivedActualPairedDifference": true
      },
      {
        "x": 4,
        "y": 10969.0,
        "modelY": 1550.0,
        "label": {
          "ko": "서비스",
          "en": "Services"
        },
        "isObservedValue": false,
        "isDerivedActualPairedDifference": true
      }
    ]
  },
  "chartMeta": {
    "country": {
      "plotType": "categorical-actual-values-and-conditional-means",
      "seriesKeys": [
        "y",
        "modelY",
        "referenceY"
      ],
      "seriesLabels": {
        "y": {
          "ko": "실제 GDP/명",
          "en": "Actual GDP/person"
        },
        "modelY": {
          "ko": "기대수명 그룹 조건부 평균",
          "en": "Life-expectancy-group conditional mean"
        },
        "referenceY": {
          "ko": "16국 균등 법칙 전체 평균",
          "en": "Overall mean under uniform-country law"
        }
      },
      "xlabel": {
        "ko": "실제 국가 (국가 코드 순)",
        "en": "Actual countries (code order)"
      },
      "ylabel": {
        "ko": "GDP/명 (2015 USD/명)",
        "en": "GDP/person (constant 2015 USD/person)"
      },
      "legend": {
        "ko": "실제 16개 값과 그 값에서 계산한 평균",
        "en": "Sixteen actual values and means derived from them"
      },
      "note": {
        "ko": "그룹 기준 80년은 수업의 선택이며 그룹 평균은 새로운 관측이 아닙니다. GDP/명과 개인소득·정책 인과를 구별합니다.",
        "en": "The 80-year grouping threshold is chosen for teaching. Group means are not new observations, individual incomes or policy effects."
      },
      "connectObservedPoints": false
    },
    "person": {
      "plotType": "categorical-conditional-means-with-overall-reference",
      "seriesKeys": [
        "y",
        "modelY"
      ],
      "seriesLabels": {
        "y": {
          "ko": "실제 기록 종별 조건부 평균",
          "en": "Conditional mean by actual species"
        },
        "modelY": {
          "ko": "342행 균등 법칙 전체 평균",
          "en": "Overall mean under the 342-record law"
        }
      },
      "xlabel": {
        "ko": "종 · 유효 기록 수 151/68/123",
        "en": "Species; valid record counts 151/68/123"
      },
      "ylabel": {
        "ko": "기록 몸무게의 기대값 (g)",
        "en": "Expected recorded body mass (g)"
      },
      "legend": {
        "ko": "종별 요약 3개 · 새로운 개체 측정이 아님",
        "en": "Three species summaries, not new individual measurements"
      },
      "note": {
        "ko": "종별 평균을 원래 기록 수로 가중하면 전체 평균입니다. 세 종 균등 선택은 다른 확률 법칙입니다. 결측 2행은 0으로 채우지 않습니다.",
        "en": "Weight by original valid-record counts to recover the overall mean. Uniform species selection defines a different law. Do not replace the two missing masses with zeros."
      },
      "connectObservedPoints": false
    },
    "company": {
      "plotType": "categorical-paired-changes-and-expectation",
      "seriesKeys": [
        "y",
        "modelY"
      ],
      "seriesLabels": {
        "y": {
          "ko": "실제 공시 짝 차이 FY2024−FY2023",
          "en": "Actual disclosed paired change FY2024−FY2023"
        },
        "modelY": {
          "ko": "다섯 품목 균등 법칙의 기대 변화",
          "en": "Expected change under uniform five-category law"
        }
      },
      "xlabel": {
        "ko": "실제 Apple 공시 품목",
        "en": "Actual disclosed Apple categories"
      },
      "ylabel": {
        "ko": "순매출 차이 (백만 명목 USD)",
        "en": "Net-sales difference (million nominal USD)"
      },
      "legend": {
        "ko": "같은 품목의 두 과거 공시 값 차이",
        "en": "Differences between two historical disclosures for the same category"
      },
      "note": {
        "ko": "FY2023 53주와 FY2024 52주를 그대로 보존합니다. 차이는 주수 조정 성장률이나 미래 확률·이익이 아닙니다. 음수는 실제 공시 감소입니다.",
        "en": "Retain FY2023’s 53 weeks and FY2024’s 52. Differences are not week-adjusted growth, future probabilities or profit. Negative values are actual disclosed decreases."
      },
      "connectObservedPoints": false,
      "includeZero": true
    }
  },
  "models": {
    "country": {
      "countryOrder": [
        "AUS",
        "BRA",
        "CAN",
        "CHN",
        "DEU",
        "FRA",
        "GBR",
        "IDN",
        "IND",
        "JPN",
        "KOR",
        "MEX",
        "SGP",
        "USA",
        "VNM",
        "ZAF"
      ],
      "actualValues": [
        {
          "country": "AUS",
          "year": 2024,
          "reported_GDPpc_constant2015USD_per_person": "61486.38147544",
          "reported_life_expectancy_years": "83.0512195121951",
          "reported_population_persons": "27194286",
          "assumed_group_life_threshold_years": 80,
          "life_group": "life_ge_80",
          "uniform_country_probability_exact": "1/16",
          "conditional_GDP_mean_exact": "3813146540721411/80000000000",
          "overall_GDP_mean_exact": "49760381715479259/1600000000000",
          "GDP_minus_conditional_mean_exact": "1105763977313789/80000000000",
          "conditional_mean_minus_overall_mean_exact": "26502549098948961/1600000000000",
          "population_weight_exact": "27194286/4462826129"
        },
        {
          "country": "BRA",
          "year": 2024,
          "reported_GDPpc_constant2015USD_per_person": "9566.74518687619",
          "reported_life_expectancy_years": "76.023",
          "reported_population_persons": "211998573",
          "assumed_group_life_threshold_years": 80,
          "life_group": "life_lt_80",
          "uniform_country_probability_exact": "1/16",
          "conditional_GDP_mean_exact": "11628916308265149/800000000000",
          "overall_GDP_mean_exact": "49760381715479259/1600000000000",
          "GDP_minus_conditional_mean_exact": "-3975520158764197/800000000000",
          "conditional_mean_minus_overall_mean_exact": "-26502549098948961/1600000000000",
          "population_weight_exact": "211998573/4462826129"
        },
        {
          "country": "CAN",
          "year": 2024,
          "reported_GDPpc_constant2015USD_per_person": "45061.3864587285",
          "reported_life_expectancy_years": "82.1080487804878",
          "reported_population_persons": "41262329",
          "assumed_group_life_threshold_years": 80,
          "life_group": "life_ge_80",
          "uniform_country_probability_exact": "1/16",
          "conditional_GDP_mean_exact": "3813146540721411/80000000000",
          "overall_GDP_mean_exact": "49760381715479259/1600000000000",
          "GDP_minus_conditional_mean_exact": "-208235624023131/80000000000",
          "conditional_mean_minus_overall_mean_exact": "26502549098948961/1600000000000",
          "population_weight_exact": "41262329/4462826129"
        },
        {
          "country": "CHN",
          "year": 2024,
          "reported_GDPpc_constant2015USD_per_person": "13119.1076099516",
          "reported_life_expectancy_years": "78.017",
          "reported_population_persons": "1408975000",
          "assumed_group_life_threshold_years": 80,
          "life_group": "life_lt_80",
          "uniform_country_probability_exact": "1/16",
          "conditional_GDP_mean_exact": "11628916308265149/800000000000",
          "overall_GDP_mean_exact": "49760381715479259/1600000000000",
          "GDP_minus_conditional_mean_exact": "-1133630220303869/800000000000",
          "conditional_mean_minus_overall_mean_exact": "-26502549098948961/1600000000000",
          "population_weight_exact": "1408975000/4462826129"
        },
        {
          "country": "DEU",
          "year": 2024,
          "reported_GDPpc_constant2015USD_per_person": "44027.7631554469",
          "reported_life_expectancy_years": "80.7926829268293",
          "reported_population_persons": "83516593",
          "assumed_group_life_threshold_years": 80,
          "life_group": "life_ge_80",
          "uniform_country_probability_exact": "1/16",
          "conditional_GDP_mean_exact": "3813146540721411/80000000000",
          "overall_GDP_mean_exact": "49760381715479259/1600000000000",
          "GDP_minus_conditional_mean_exact": "-290925488285659/80000000000",
          "conditional_mean_minus_overall_mean_exact": "26502549098948961/1600000000000",
          "population_weight_exact": "83516593/4462826129"
        },
        {
          "country": "FRA",
          "year": 2024,
          "reported_GDPpc_constant2015USD_per_person": "39683.3953489029",
          "reported_life_expectancy_years": "82.9804878048781",
          "reported_population_persons": "68551653",
          "assumed_group_life_threshold_years": 80,
          "life_group": "life_ge_80",
          "uniform_country_probability_exact": "1/16",
          "conditional_GDP_mean_exact": "3813146540721411/80000000000",
          "overall_GDP_mean_exact": "49760381715479259/1600000000000",
          "GDP_minus_conditional_mean_exact": "-638474912809179/80000000000",
          "conditional_mean_minus_overall_mean_exact": "26502549098948961/1600000000000",
          "population_weight_exact": "68551653/4462826129"
        },
        {
          "country": "GBR",
          "year": 2024,
          "reported_GDPpc_constant2015USD_per_person": "47900.9680144146",
          "reported_life_expectancy_years": "81.3868536585366",
          "reported_population_persons": "69281000",
          "assumed_group_life_threshold_years": 80,
          "life_group": "life_ge_80",
          "uniform_country_probability_exact": "1/16",
          "conditional_GDP_mean_exact": "3813146540721411/80000000000",
          "overall_GDP_mean_exact": "49760381715479259/1600000000000",
          "GDP_minus_conditional_mean_exact": "18930900431757/80000000000",
          "conditional_mean_minus_overall_mean_exact": "26502549098948961/1600000000000",
          "population_weight_exact": "69281000/4462826129"
        },
        {
          "country": "IDN",
          "year": 2024,
          "reported_GDPpc_constant2015USD_per_person": "4367.94741847938",
          "reported_life_expectancy_years": "71.288",
          "reported_population_persons": "283487931",
          "assumed_group_life_threshold_years": 80,
          "life_group": "life_lt_80",
          "uniform_country_probability_exact": "1/16",
          "conditional_GDP_mean_exact": "11628916308265149/800000000000",
          "overall_GDP_mean_exact": "49760381715479259/1600000000000",
          "GDP_minus_conditional_mean_exact": "-1626911674696329/160000000000",
          "conditional_mean_minus_overall_mean_exact": "-26502549098948961/1600000000000",
          "population_weight_exact": "283487931/4462826129"
        },
        {
          "country": "IND",
          "year": 2024,
          "reported_GDPpc_constant2015USD_per_person": "2366.8328910323",
          "reported_life_expectancy_years": "72.235",
          "reported_population_persons": "1450935791",
          "assumed_group_life_threshold_years": 80,
          "life_group": "life_lt_80",
          "uniform_country_probability_exact": "1/16",
          "conditional_GDP_mean_exact": "11628916308265149/800000000000",
          "overall_GDP_mean_exact": "49760381715479259/1600000000000",
          "GDP_minus_conditional_mean_exact": "-9735449995439309/800000000000",
          "conditional_mean_minus_overall_mean_exact": "-26502549098948961/1600000000000",
          "population_weight_exact": "1450935791/4462826129"
        },
        {
          "country": "JPN",
          "year": 2024,
          "reported_GDPpc_constant2015USD_per_person": "37976.6371788298",
          "reported_life_expectancy_years": "84.0363414634146",
          "reported_population_persons": "123975371",
          "assumed_group_life_threshold_years": 80,
          "life_group": "life_ge_80",
          "uniform_country_probability_exact": "1/16",
          "conditional_GDP_mean_exact": "3813146540721411/80000000000",
          "overall_GDP_mean_exact": "49760381715479259/1600000000000",
          "GDP_minus_conditional_mean_exact": "-775015566415027/80000000000",
          "conditional_mean_minus_overall_mean_exact": "26502549098948961/1600000000000",
          "population_weight_exact": "123975371/4462826129"
        },
        {
          "country": "KOR",
          "year": 2024,
          "reported_GDPpc_constant2015USD_per_person": "37048.4264001496",
          "reported_life_expectancy_years": "83.6292682926829",
          "reported_population_persons": "51751065",
          "assumed_group_life_threshold_years": 80,
          "life_group": "life_ge_80",
          "uniform_country_probability_exact": "1/16",
          "conditional_GDP_mean_exact": "3813146540721411/80000000000",
          "overall_GDP_mean_exact": "49760381715479259/1600000000000",
          "GDP_minus_conditional_mean_exact": "-849272428709443/80000000000",
          "conditional_mean_minus_overall_mean_exact": "26502549098948961/1600000000000",
          "population_weight_exact": "51751065/4462826129"
        },
        {
          "country": "MEX",
          "year": 2024,
          "reported_GDPpc_constant2015USD_per_person": "10284.0336925726",
          "reported_life_expectancy_years": "75.264",
          "reported_population_persons": "130861007",
          "assumed_group_life_threshold_years": 80,
          "life_group": "life_lt_80",
          "uniform_country_probability_exact": "1/16",
          "conditional_GDP_mean_exact": "11628916308265149/800000000000",
          "overall_GDP_mean_exact": "49760381715479259/1600000000000",
          "GDP_minus_conditional_mean_exact": "-3401689354207069/800000000000",
          "conditional_mean_minus_overall_mean_exact": "-26502549098948961/1600000000000",
          "population_weight_exact": "130861007/4462826129"
        },
        {
          "country": "SGP",
          "year": 2024,
          "reported_GDPpc_constant2015USD_per_person": "68129.6960402288",
          "reported_life_expectancy_years": "83.3463414634146",
          "reported_population_persons": "6036860",
          "assumed_group_life_threshold_years": 80,
          "life_group": "life_ge_80",
          "uniform_country_probability_exact": "1/16",
          "conditional_GDP_mean_exact": "3813146540721411/80000000000",
          "overall_GDP_mean_exact": "49760381715479259/1600000000000",
          "GDP_minus_conditional_mean_exact": "1637229142496893/80000000000",
          "conditional_mean_minus_overall_mean_exact": "26502549098948961/1600000000000",
          "population_weight_exact": "6036860/4462826129"
        },
        {
          "country": "USA",
          "year": 2024,
          "reported_GDPpc_constant2015USD_per_person": "66856.5131698371",
          "reported_life_expectancy_years": "78.890243902439",
          "reported_population_persons": "340003797",
          "assumed_group_life_threshold_years": 80,
          "life_group": "life_lt_80",
          "uniform_country_probability_exact": "1/16",
          "conditional_GDP_mean_exact": "11628916308265149/800000000000",
          "overall_GDP_mean_exact": "49760381715479259/1600000000000",
          "GDP_minus_conditional_mean_exact": "41856294227604531/800000000000",
          "conditional_mean_minus_overall_mean_exact": "-26502549098948961/1600000000000",
          "population_weight_exact": "340003797/4462826129"
        },
        {
          "country": "VNM",
          "year": 2024,
          "reported_GDPpc_constant2015USD_per_person": "4012.50779921084",
          "reported_life_expectancy_years": "74.736",
          "reported_population_persons": "100987686",
          "assumed_group_life_threshold_years": 80,
          "life_group": "life_lt_80",
          "uniform_country_probability_exact": "1/16",
          "conditional_GDP_mean_exact": "11628916308265149/800000000000",
          "overall_GDP_mean_exact": "49760381715479259/1600000000000",
          "GDP_minus_conditional_mean_exact": "-8418910068896477/800000000000",
          "conditional_mean_minus_overall_mean_exact": "-26502549098948961/1600000000000",
          "population_weight_exact": "100987686/4462826129"
        },
        {
          "country": "ZAF",
          "year": 2024,
          "reported_GDPpc_constant2015USD_per_person": "5715.47531469148",
          "reported_life_expectancy_years": "66.312",
          "reported_population_persons": "64007187",
          "assumed_group_life_threshold_years": 80,
          "life_group": "life_lt_80",
          "uniform_country_probability_exact": "1/16",
          "conditional_GDP_mean_exact": "11628916308265149/800000000000",
          "overall_GDP_mean_exact": "49760381715479259/1600000000000",
          "GDP_minus_conditional_mean_exact": "-1411307211302393/160000000000",
          "conditional_mean_minus_overall_mean_exact": "-26502549098948961/1600000000000",
          "population_weight_exact": "64007187/4462826129"
        }
      ],
      "groups": [
        {
          "group": "life_ge_80",
          "n": 8,
          "weight": {
            "exactFraction": "1/2",
            "value": 0.5
          },
          "mean": {
            "exactFraction": "3813146540721411/80000000000",
            "value": 47664.33175901764
          },
          "variance": {
            "exactFraction": "144028858326049000407927545987/1280000000000000000000",
            "value": 112522545.56722578
          },
          "weightedMean": {
            "exactFraction": "3813146540721411/160000000000",
            "value": 23832.16587950882
          },
          "withinTerm": {
            "exactFraction": "144028858326049000407927545987/2560000000000000000000",
            "value": 56261272.78361289
          },
          "betweenTerm": {
            "exactFraction": "702385108742200384594074882979521/5120000000000000000000000",
            "value": 137184591.551211
          }
        },
        {
          "group": "life_lt_80",
          "n": 8,
          "weight": {
            "exactFraction": "1/2",
            "value": 0.5
          },
          "mean": {
            "exactFraction": "11628916308265149/800000000000",
            "value": 14536.145385331436
          },
          "variance": {
            "exactFraction": "257779188668719037233208874025119/640000000000000000000000",
            "value": 402779982.2948735
          },
          "weightedMean": {
            "exactFraction": "11628916308265149/1600000000000",
            "value": 7268.072692665718
          },
          "withinTerm": {
            "exactFraction": "257779188668719037233208874025119/1280000000000000000000000",
            "value": 201389991.14743674
          },
          "betweenTerm": {
            "exactFraction": "702385108742200384594074882979521/5120000000000000000000000",
            "value": 137184591.551211
          }
        }
      ],
      "mean": {
        "exactFraction": "49760381715479259/1600000000000",
        "value": 31100.238572174538
      },
      "variance": {
        "exactFraction": "1361972344405687459468420177016759/2560000000000000000000000",
        "value": 532020447.03347164
      },
      "expectedConditionalVariance": {
        "exactFraction": "329793617831743537437172647018619/1280000000000000000000000",
        "value": 257651263.93104964
      },
      "varianceOfConditionalExpectation": {
        "exactFraction": "702385108742200384594074882979521/2560000000000000000000000",
        "value": 274369183.102422
      },
      "populationWeightedMean": {
        "exactFraction": "1406350266843994525066371/89256522580000000000",
        "value": 15756.27445695627
      },
      "uniformSelectionProbability": "1/16",
      "thresholdYears": 80,
      "causalInterpretation": false
    },
    "person": {
      "sourceRows": 344,
      "validMassRows": 342,
      "missingMassRowIDs": [
        4,
        272
      ],
      "speciesOrder": [
        "Adelie",
        "Chinstrap",
        "Gentoo"
      ],
      "groups": [
        {
          "group": "Adelie",
          "n": 151,
          "weight": {
            "exactFraction": "151/342",
            "value": 0.4415204678362573
          },
          "mean": {
            "exactFraction": "558800/151",
            "value": 3700.662251655629
          },
          "variance": {
            "exactFraction": "4762907500/22801",
            "value": 208890.2898995658
          },
          "weightedMean": {
            "exactFraction": "279400/171",
            "value": 1633.9181286549708
          },
          "withinTerm": {
            "exactFraction": "2381453750/25821",
            "value": 92229.33852290771
          },
          "betweenTerm": {
            "exactFraction": "9300553205000/83892429",
            "value": 110862.84323702203
          }
        },
        {
          "group": "Chinstrap",
          "n": 68,
          "weight": {
            "exactFraction": "34/171",
            "value": 0.19883040935672514
          },
          "mean": {
            "exactFraction": "126925/34",
            "value": 3733.0882352941176
          },
          "variance": {
            "exactFraction": "168245625/1156",
            "value": 145541.1980968858
          },
          "weightedMean": {
            "exactFraction": "126925/171",
            "value": 742.2514619883041
          },
          "withinTerm": {
            "exactFraction": "56081875/1938",
            "value": 28938.015995872032
          },
          "betweenTerm": {
            "exactFraction": "824963475625/18889686",
            "value": 43672.69395716795
          }
        },
        {
          "group": "Gentoo",
          "n": 123,
          "weight": {
            "exactFraction": "41/114",
            "value": 0.35964912280701755
          },
          "mean": {
            "exactFraction": "624350/123",
            "value": 5076.016260162602
          },
          "variance": {
            "exactFraction": "3813522500/15129",
            "value": 252067.0566461762
          },
          "weightedMean": {
            "exactFraction": "312175/171",
            "value": 1825.5847953216373
          },
          "withinTerm": {
            "exactFraction": "1906761250/21033",
            "value": 90655.69581134408
          },
          "betweenTerm": {
            "exactFraction": "231914551250/843657",
            "value": 274891.98957633256
          }
        }
      ],
      "mean": {
        "exactFraction": "239500/57",
        "value": 4201.754385964912
      },
      "secondMoment": {
        "exactFraction": "3128614375/171",
        "value": 18295990.497076023
      },
      "variance": {
        "exactFraction": "694474375/1083",
        "value": 641250.5771006463
      },
      "expectedConditionalVariance": {
        "exactFraction": "22873377833125/107983422",
        "value": 211823.05033012384
      },
      "varianceOfConditionalExpectation": {
        "exactFraction": "881050022991875/2051685018",
        "value": 429427.5267705225
      },
      "uniformSpeciesFirstMean": {
        "exactFraction": "7899692525/1894446",
        "value": 4169.92224903745
      },
      "flipperMassCovariance": {
        "exactFraction": "190957175/19494",
        "value": 9795.689699394685
      },
      "expectationOfProduct": {
        "exactFraction": "292065275/342",
        "value": 853992.0321637427
      },
      "productOfExpectations": {
        "exactFraction": "8228381750/9747",
        "value": 844196.342464348
      },
      "meanKG": {
        "exactFraction": "479/114",
        "value": 4.201754385964913
      },
      "varianceKG2": {
        "exactFraction": "1111159/1732800",
        "value": 0.6412505771006464
      },
      "independentColumnExperimentPairs": 116964,
      "validatedPopulationPrediction": false
    },
    "company": {
      "categoryOrder": [
        "iPhone",
        "Mac",
        "iPad",
        "Wearables, Home and Accessories",
        "Services"
      ],
      "actualFY2023": [
        200583,
        29357,
        28300,
        39845,
        85200
      ],
      "actualFY2024": [
        201183,
        29984,
        26694,
        37005,
        96169
      ],
      "pairedChanges": [
        600,
        627,
        -1606,
        -2840,
        10969
      ],
      "fiscalWeeks": [
        53,
        52
      ],
      "meanFY2023": {
        "exactFraction": "76657",
        "value": 76657.0
      },
      "meanFY2024": {
        "exactFraction": "78207",
        "value": 78207.0
      },
      "meanPairedChange": {
        "exactFraction": "1550",
        "value": 1550.0
      },
      "varianceFY2023": {
        "exactFraction": "21361449118/5",
        "value": 4272289823.6
      },
      "varianceFY2024": {
        "exactFraction": "22122381722/5",
        "value": 4424476344.4
      },
      "covariancePairedYears": {
        "exactFraction": "21682063207/5",
        "value": 4336412641.4
      },
      "variancePairedChange": {
        "exactFraction": "119704426/5",
        "value": 23940885.2
      },
      "incorrectIndependentVarianceReference": {
        "exactFraction": "8696766168",
        "value": 8696766168.0
      },
      "groups": [
        {
          "group": "hardware",
          "n": 4,
          "weight": {
            "exactFraction": "4/5",
            "value": 0.8
          },
          "mean": {
            "exactFraction": "147433/2",
            "value": 73716.5
          },
          "variance": {
            "exactFraction": "21719089917/4",
            "value": 5429772479.25
          },
          "weightedMean": {
            "exactFraction": "294866/5",
            "value": 58973.2
          },
          "withinTerm": {
            "exactFraction": "21719089917/5",
            "value": 4343817983.4
          },
          "betweenTerm": {
            "exactFraction": "80658361/5",
            "value": 16131672.2
          }
        },
        {
          "group": "services",
          "n": 1,
          "weight": {
            "exactFraction": "1/5",
            "value": 0.2
          },
          "mean": {
            "exactFraction": "96169",
            "value": 96169.0
          },
          "variance": {
            "exactFraction": "0",
            "value": 0.0
          },
          "weightedMean": {
            "exactFraction": "96169/5",
            "value": 19233.8
          },
          "withinTerm": {
            "exactFraction": "0",
            "value": 0.0
          },
          "betweenTerm": {
            "exactFraction": "322633444/5",
            "value": 64526688.8
          }
        }
      ],
      "expectedConditionalVariance": {
        "exactFraction": "21719089917/5",
        "value": 4343817983.4
      },
      "varianceOfConditionalExpectation": {
        "exactFraction": "80658361",
        "value": 80658361.0
      },
      "salesWeightedMeanFY2024": {
        "exactFraction": "52704055967/391035",
        "value": 134780.91722480085
      },
      "observedCustomerBehavior": false
    },
    "scope": "Finite-law exact moments on actual retained records; conditional summaries, reweighted laws and inference are distinct."
  },
  "enrichment": [
    {
      "kind": "video",
      "title": {
        "ko": "조건부 평균을 다시 평균 내기",
        "en": "Conditional expectation and total expectation"
      },
      "provider": "MIT OCW · John Tsitsiklis, RES.6-012, 07.3",
      "url": "https://www.youtube.com/watch?v=vJAG4EzSQZA",
      "creatorPage": "https://ocw.mit.edu/courses/res-6-012-introduction-to-probability-spring-2018/resources/conditional-expectation-the-total-expectation-theorem/",
      "videoId": "vJAG4EzSQZA",
      "verifiedOn": "2026-10-22",
      "focus": {
        "ko": "본문에서 강의를 보며 E[X|Y=y]라는 숫자와 E[X|Y]라는 확률변수를 구별합니다. 세 종 중 하나의 평균을 먼저 구한 뒤 원래 기록 비중으로 다시 평균 내는 과정과 연결합니다.",
        "en": "Watch in the chapter and distinguish the number E[X|Y=y] from the random variable E[X|Y]. Connect this to averaging within species and recombining with original record weights."
      },
      "question": {
        "ko": "조건부 평균을 합칠 때 왜 1/3씩 쓰면 안 되나요?",
        "en": "Why not always average three conditional means with weights one-third?"
      },
      "answer": {
        "ko": "원래 법칙에서 각 종의 선택 확률이 151/342, 68/342, 123/342이기 때문입니다. 1/3씩 주면 다른 선택 실험이 됩니다.",
        "en": "Original species probabilities are 151/342, 68/342 and 123/342. Equal thirds define a different selection experiment."
      },
      "verificationNote": "Official MIT course lesson and exact iframe target https://www.youtube.com/embed/vJAG4EzSQZA verified. Fetch returned cache miss; successful playback remains parent browser QA. No media downloaded or timestamps guessed."
    },
    {
      "kind": "thinker",
      "title": {
        "ko": "크리스티안 하위헌스 · 우연의 보상을 수량으로 생각하기",
        "en": "Christiaan Huygens: reasoning quantitatively about chance rewards"
      },
      "provider": "University of St Andrews · MacTutor",
      "url": "https://mathshistory.st-andrews.ac.uk/Biographies/Huygens/",
      "focus": {
        "ko": "네덜란드 수학자 하위헌스가 우연의 게임에 관한 De Ratiociniis in Ludo Aleae를 썼다는 대학 소개를 읽습니다. 한 번의 결과와 여러 가능성을 확률로 가중한 보상을 구별해 봅니다.",
        "en": "Read the university account of Dutch mathematician Huygens and his De Ratiociniis in Ludo Aleae on games of chance. Separate one realized outcome from a probability-weighted reward."
      },
      "question": {
        "ko": "기대값이 가능한 실제 값 중 하나일 필요가 있나요?",
        "en": "Must an expectation be one of the possible actual values?"
      },
      "answer": {
        "ko": "필요하지 않습니다. 분포의 무게중심인 기대값은 관측된 어떤 한 국가 GDP나 펭귄 질량과도 다를 수 있습니다.",
        "en": "No. As a distribution’s balance point, it may differ from every individual recorded country GDP or penguin mass."
      }
    },
    {
      "kind": "reading",
      "title": {
        "ko": "확률로 가중한 평균과 선형성",
        "en": "Probability-weighted means and linearity"
      },
      "provider": "MIT OCW 18.05 · Reading 4b, §2 definition and §2.2",
      "url": "https://ocw.mit.edu/courses/18-05-introduction-to-probability-and-statistics-spring-2022/mit18_05_s22_class04-prep-b.pdf",
      "focus": {
        "ko": "§2의 기대값 정의와 §2.2의 선형성을 읽고 실제 다섯 품목의 E[Y−X]=E[Y]−E[X]를 직접 재현합니다. 이 장의 유한 자료에서는 적분가능성이 자동이지만 일반 모형에서는 조건을 확인합니다.",
        "en": "Read the definition in §2 and linearity in §2.2, then reproduce E[Y−X]=E[Y]−E[X] for five actual categories. Integrability is automatic for these finite data, but must be checked in general models."
      },
      "question": {
        "ko": "선형성에 X와 Y의 독립이 필요한가요?",
        "en": "Does linearity require independence of X and Y?"
      },
      "answer": {
        "ko": "유한 기대값을 갖는 경우 필요하지 않습니다. 독립 조건을 기대값의 선형성과 곱의 분해에 뒤섞지 않습니다.",
        "en": "No, when the relevant expectations are finite. Do not confuse linearity with factorizing expectations of products."
      }
    },
    {
      "kind": "reading",
      "title": {
        "ko": "분산의 정의·단위·변환을 증명하기",
        "en": "Prove variance definitions, units and transformations"
      },
      "provider": "MIT OCW 18.05 · Reading 5a, §3 definition, §3.3 and §3.5",
      "url": "https://ocw.mit.edu/courses/18-05-introduction-to-probability-and-statistics-spring-2022/mit18_05_s22_class05-prep-a.pdf",
      "focus": {
        "ko": "분산의 정의와 제곱 단위, Var(aX+b)=a²Var(X), E[X²]−(EX)²의 증명을 읽습니다. g→kg 변환에 적용하고 두 변수 분산의 합에는 필요한 공분산 항을 보충합니다.",
        "en": "Read the variance definition, squared units and proofs of Var(aX+b)=a²Var(X) and E[X²]−(EX)². Apply them to g→kg and retain the covariance term for a general two-variable sum or difference."
      },
      "question": {
        "ko": "Var(Y−X)=Var(Y)+Var(X)는 언제 맞나요?",
        "en": "When is Var(Y−X)=Var(Y)+Var(X) valid?"
      },
      "answer": {
        "ko": "유한 2차 모멘트가 있는 경우 공분산이 0일 때 맞습니다. 독립은 충분조건이지만 필요조건은 아닙니다. 실제 품목 짝 법칙의 공분산은 0이 아닙니다.",
        "en": "With finite second moments, it holds when covariance is zero. Independence is sufficient, but not necessary. Actual paired-category covariance here is nonzero."
      }
    }
  ],
  "sources": [
    {
      "provider": "World Bank",
      "url": "https://data.worldbank.org/indicator/NY.GDP.PCAP.KD",
      "lifeURL": "https://data.worldbank.org/indicator/SP.DYN.LE00.IN",
      "lifeDefinitionURL": "https://databank.worldbank.org/metadataglossary/world-development-indicators/series/SP.DYN.LE00.IN",
      "populationURL": "https://data.worldbank.org/indicator/SP.POP.TOTL",
      "indicatorCodes": [
        "NY.GDP.PCAP.KD",
        "SP.DYN.LE00.IN",
        "SP.POP.TOTL"
      ],
      "rawFile": "실제데이터/worldbank.csv",
      "sha256": "b2f0f3815ea20e087909038e352a72af9dd844d50448008d75e3440a642ddd02",
      "rawDownloaded": true,
      "retrievedOn": "2026-10-20",
      "period": "2024",
      "units": "constant 2015 USD/person; life expectancy years; population persons",
      "processing": "Sixteen actual country values; assigned uniform law. Chosen life>=80 groups have eight records each. Exact conditional moments, total expectation/variance and residual cross-term cancellation. Separate actual-population-weighted expectation is not an individual-income distribution or causal/population inferential claim."
    },
    {
      "provider": "Horst, Hill, Gorman / Palmer LTER",
      "url": "https://allisonhorst.github.io/palmerpenguins/",
      "dictionaryURL": "https://allisonhorst.github.io/palmerpenguins/reference/penguins.html",
      "rawFile": "work/textbooks-2026/raw/penguins.csv",
      "sha256": "f204db2c753b0937caac3cb35258562c14f073e4bbc76be24b4c51ce22767a93",
      "selectedFile": "실제데이터/penguins.csv",
      "selectedSHA256": "8e45d9c48a941cd2270abe99d7df7a92e7502bebca5efcfb82dde25dc0c15a08",
      "rawDownloaded": true,
      "retrievedOn": "2026-10-20",
      "license": "CC0",
      "processing": "Verify all344×8 original source cells, preserve missing rows4/272. Assign uniform law over342 valid paired mass/flipper rows. Species151/68/123 conditionals, exact total moments, covariance and unit conversion. Different uniform-species-first and independent-column experiments labeled as law changes, not new measured penguins."
    },
    {
      "provider": "SEC EDGAR / Apple2024 Form10-K",
      "url": "https://www.sec.gov/Archives/edgar/data/320193/000032019324000123/aapl-20240928.htm",
      "rawFile": "work/textbook-rewrite-2026/source-audit-math08/apple-2024.html",
      "sha256": "e75e4f3b5806d3008974a1e4d8459cbd9f2bbaac657b49aa3a7f846ff10d7760",
      "rawDownloaded": true,
      "retrievedOn": "2026-10-22",
      "period": "FY2023/FY2024, 53/52 weeks",
      "units": "million nominal USD net sales",
      "processing": "Direct original HTML table extraction corroborated by repeated actual tables; five same-category pairs retained. Exact expectation linearity, paired covariance and variance of changes; hardware4/services1 conditional moments. Separately weighted category law. No receipt, profit, future sales risk, valuation or week-adjusted-growth claim."
    },
    {
      "provider": "MIT OCW / John Tsitsiklis",
      "url": "https://ocw.mit.edu/courses/res-6-012-introduction-to-probability-spring-2018/resources/conditional-expectation-the-total-expectation-theorem/",
      "videoUrl": "https://www.youtube.com/watch?v=vJAG4EzSQZA",
      "videoId": "vJAG4EzSQZA",
      "webVerifiedOn": "2026-10-22",
      "originalHTMLArchived": false,
      "rawMediaDownloaded": false,
      "scope": "Official07.3 lesson/instructor and exact YouTube iframe target checked. Cache-miss fetch is not playback success. Optional basic05.8 expectation iframe _yJsO5955ZE independently located but not required enrichment."
    },
    {
      "provider": "University of St Andrews / MacTutor",
      "url": "https://mathshistory.st-andrews.ac.uk/Biographies/Huygens/",
      "webVerifiedOn": "2026-10-22",
      "originalHTMLArchived": false,
      "scope": "Only university probability/game-of-chance paragraph briefly paraphrased. No original treatise audit, invented conditional-expectation priority or strong publication-first claim."
    },
    {
      "provider": "MIT OCW / Jeremy Orloff and Jonathan Bloom",
      "url": "https://ocw.mit.edu/courses/18-05-introduction-to-probability-and-statistics-spring-2022/mit18_05_s22_class04-prep-b.pdf",
      "webVerifiedOn": "2026-10-22",
      "rawDownloaded": false,
      "originalPDFArchived": false,
      "scope": "Read §2 definition/mean need not be a possible value and §2.2 expectation linearity, with integrability supplied by this chapter. Dice motivation is not a guarantee of exact finite frequencies. Named distribution examples not reproduced."
    },
    {
      "provider": "MIT OCW / Jeremy Orloff and Jonathan Bloom",
      "url": "https://ocw.mit.edu/courses/18-05-introduction-to-probability-and-statistics-spring-2022/mit18_05_s22_class05-prep-a.pdf",
      "webVerifiedOn": "2026-10-22",
      "rawDownloaded": false,
      "originalPDFArchived": false,
      "scope": "Read §3 definition, units, §3.3 and §3.5 affine/second-moment proofs. Independent sum rule is sufficient, not necessary; general covariance term derived explicitly. No named-distribution table copied."
    },
    {
      "provider": "MIT OCW / John Tsitsiklis",
      "url": "https://ocw.mit.edu/courses/res-6-012-introduction-to-probability-spring-2018/c025b4baa48ff7801b96c3915ee62e5c_mHonq7Gjjqg.pdf",
      "webVerifiedOn": "2026-10-22",
      "rawDownloaded": false,
      "originalPDFArchived": false,
      "scope": "Official13.7 transcript read for conditional-variance and iterated-expectation algebra. Background verification only; learner case gives its own finite cross-term proof and original actual-data examples."
    }
  ],
  "review": {
    "chapter": "STAT-07",
    "scope": "AI author exact checks, not human expert certification or browser QA.",
    "checks": [
      "Protected hashes and all344×8 Palmer original cells preserved.",
      "Three exact total expectation/variance decompositions and zero within-group residual means.",
      "Actual uniform-record species weights differ from uniform-species-first law.",
      "Actual paired products and covariance; physical units and kg squared scaling.",
      "Actual paired company change mean1550, variance23940885.2, full covariance identity.",
      "Finite observed values and explicit finite selection laws distinguished from population, causal or future-risk claims."
    ],
    "studentReviewerResponse": {
      "status": "Passed with no unresolved recommendations.",
      "reviewFile": "work/textbook-rewrite-2026/stats07-pedagogy-review.json",
      "reviewedOn": "2026-10-22",
      "scope": "Independent AI student read all KO/EN cases, solutions and sources and reconstructed values from actual records, not human expert certification.",
      "storedValuesCompared": 4653,
      "hashesChecked": 12,
      "chartPointsChecked": 24,
      "independentColumnOrderedPairsEnumerated": 116964,
      "confirmed": [
        "All total expectation/variance identities, original selection-law weights and company paired variance119704426/5.",
        "Rounded penguin expectation displays exact239500/57 followed by approximation sign in both languages.",
        "Official MIT07.3, two specified readings and university Huygens introduction checked; actual playback remains parent QA."
      ]
    },
    "remaining": [
      "Parent integration, bilingual/mobile charts and actual video playback."
    ]
  }
}