{
  "cases": {
    "ko": "<div class=\"case-studies\"><article class=\"case-study\" id=\"projection-case-country-ko\"><h3>국가 사례 · 11년의 실측값을 “가장 가까운 직선”으로 요약하기</h3><p>한국의 2014~2024년 1인당 실질 GDP를 고정 사본에서 모두 선택합니다. 단위는 2015년 불변 USD/명이며 임금·개인소득·PPP가 아닙니다. 들쭉날쭉한 실제 값 11개를 한 직선으로 완전히 통과시키려는 대신, <strong>선택한 11년의 제곱 차이 합을 가장 작게</strong> 만드는 직선을 찾습니다. 이는 이미 관측한 기간을 요약하는 기술적 모형입니다.</p><h4>1. 직선도 관측 개수만큼의 긴 벡터가 된다</h4><p>2019년을 중심으로 u=연도−2019라고 쓰면 u는 −5부터 5까지입니다. 모든 직선의 적합값은 a1+b u입니다. 따라서 관측벡터 y를 두 방향 1과 u가 만드는 부분공간에 투영하는 문제가 됩니다. 여기서 “직선”은 연도–GDP 그림에 그린 선이고, 투영은 11개 관측값을 성분으로 가진 공간에서 계산한다는 두 관점을 연결하세요. 연도를 고정한 세로 방향의 GDP 차이를 제곱해 더하는 것이 목표입니다. 연도–GDP 그림에서 각 점을 기울어진 선에 수직으로 내린 최단거리의 제곱을 최소화하는 문제와는 다르며, 여기서 직교는 11차원 관측공간에서의 뜻입니다.</p><div data-tex=\"X=\\begin{bmatrix}1&amp;-5\\\\1&amp;-4\\\\\\vdots&amp;\\vdots\\\\1&amp;5\\end{bmatrix}\\in\\mathbb R^{11\\times2},\\quad\\widehat y=X\\widehat\\beta=a\\mathbf1+b\\mathbf u,\\quad\\min_{a,b}\\|y-a\\mathbf1-b\\mathbf u\\|_2^2\"></div><p>u의 합은 0이고 제곱합은 110이므로 두 열은 직교합니다. 정규방정식은 큰 행렬의 역행렬을 실제로 만들 필요 없이 아래처럼 풀립니다. 선형독립인 두 열이므로 이 사례의 계수도 유일합니다.</p><div data-tex=\"X^{\\mathsf T}X=\\begin{bmatrix}11&amp;0\\\\0&amp;110\\end{bmatrix},\\qquad a=\\frac{\\sum y_i}{11},\\qquad b=\\frac{\\sum u_i y_i}{110}\"></div><div data-tex=\"\\widehat G(t)\\approx33290.08977875+754.47592853(t-2019)\"></div><p>a는 2019년 위치의 <em>적합값</em>으로, 관측한 2019년 GDP와 같다고 가정하지 않습니다. b의 단위는 2015 USD/명/년입니다. 약 754.48이라는 계수는 이 기간을 직선으로 요약한 기울기이며 매년의 실제 증가액이나 정책의 인과효과가 아닙니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>실측과 같은 표본에 적합한 직선: 표시값 반올림</caption><thead><tr><th scope=\"col\">연도</th><th scope=\"col\">실측 GDP/명</th><th scope=\"col\">직선 적합값</th><th scope=\"col\">잔차 = 실측−적합</th></tr></thead><tbody><tr><th scope=\"row\">2014</th><td>29,470.67</td><td>29,517.71</td><td>-47.04</td></tr><tr><th scope=\"row\">2015</th><td>30,171.79</td><td>30,272.19</td><td>-100.40</td></tr><tr><th scope=\"row\">2016</th><td>31,005.41</td><td>31,026.66</td><td>-21.25</td></tr><tr><th scope=\"row\">2017</th><td>31,979.90</td><td>31,781.14</td><td>198.76</td></tr><tr><th scope=\"row\">2018</th><td>32,852.89</td><td>32,535.61</td><td>317.27</td></tr><tr><th scope=\"row\">2019</th><td>33,496.31</td><td>33,290.09</td><td>206.22</td></tr><tr><th scope=\"row\">2020</th><td>33,215.93</td><td>34,044.57</td><td>-828.64</td></tr><tr><th scope=\"row\">2021</th><td>34,792.94</td><td>34,799.04</td><td>-6.10</td></tr><tr><th scope=\"row\">2022</th><td>35,809.01</td><td>35,553.52</td><td>255.50</td></tr><tr><th scope=\"row\">2023</th><td>36,347.70</td><td>36,307.99</td><td>39.71</td></tr><tr><th scope=\"row\">2024</th><td>37,048.43</td><td>37,062.47</td><td>-14.04</td></tr></tbody></table></div><div data-case-chart=\"country\"></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 잔차가 단지 작아 보이는지 말고 어떻게 최적해를 확인할까요?</summary><div><div data-tex=\"\\mathbf1^{\\mathsf T}e=0,\\qquad\\mathbf u^{\\mathsf T}e=0,\\qquad e=y-\\widehat y\"></div><p>정확한 입력의 유리수 계산에서는 두 내적이 모두 0입니다. 잔차는 모델이 움직일 수 있는 두 방향에 직교합니다. 화면에서 반올림한 잔차를 더하면 0이 조금 어긋날 수 있습니다. SSE는 약 949,168.605184 (2015 USD/명)²입니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 최적 직선을 전체적으로 100 USD/명 올리면 더 좋아질 수 있나요?</summary><div><div data-tex=\"\\|e-100\\mathbf1\\|_2^2=\\|e\\|_2^2+11(100)^2\"></div><p>잔차와 1의 내적이 0이므로 교차항이 사라집니다. SSE가 정확히 110,000만큼 늘어납니다. 이것은 관측 공간에서 직교한 잔차가 “가장 가까운 점”을 보장하는 구체적 확인입니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 잔차가 작으면 2025년 예측도 정확하고 특정 정책이 성공했다는 뜻일까요?</summary><div><p>그렇지 않습니다. 이 계산은 2014~2024 자료를 모두 본 뒤 같은 자료에 맞춘 결과입니다. 미래 검증 자료도 정책 비교집단도 없습니다. GDP의 시계열 의존성·구조 변화·지표 개정도 남습니다. 여기서는 표본 밖 예측이나 통계적 신뢰구간·인과 추론을 하지 않습니다.</p></div></details><p class=\"source-note\">자료: <a href=\"https://data.worldbank.org/indicator/NY.GDP.PCAP.KD\" target=\"_blank\" rel=\"noopener\">World Bank · NY.GDP.PCAP.KD, 한국 2014~2024</a> · <a href=\"math15-sources/korea-2014-2024-gdp-linear-projection.csv\" download>원자료 선택·계산 CSV</a></p></article><article class=\"case-study\" id=\"projection-case-person-ko\"><h3>가구 사례 · 하루를 한 전력값으로 요약하면 왜 평균이 나올까?</h3><p>앞 장들과 같은 UCI 공개 자료의 완전한 하루, 2006년 12월 17일의 1,440개 분평균 전력(kW)을 사용합니다. 원문 시 표기별로 60개씩 묶은 평균을 q₀,…,q₂₃으로 만듭니다. 이는 실제 분평균에서 계산한 시간 묶음 평균이며 순간 피크를 측정한 값이 아닙니다. 원문 시각의 시간대나 각 분의 시작·끝 정렬을 새로 가정하지 않습니다.</p><h4>1. 모든 시간에 같은 c를 주는 부분공간</h4><div data-tex=\"\\widehat q=c\\mathbf1_{24},\\qquad \\min_c\\sum_{h=0}^{23}(q_h-c)^2,\\qquad c=\\frac{\\sum_hq_h}{24}=\\frac{169523}{72000}\\ \\mathrm{kW}\"></div><p>계산한 c는 약 2.354486111 kW입니다. 24차원 자료에서 한 방향인 1을 따라 움직일 수 있게 한 최소제곱 투영입니다. 실제 전력이 하루 내내 일정했다고 관측한 것은 아닙니다. 시간 묶음의 길이가 모두 1시간이므로 이 상수 모형의 하루 에너지는 c×24시간=56.507666667 kWh로 원자료 합과 같습니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>실제 시간 묶음 평균과 상수 투영: 일부 기록</caption><thead><tr><th scope=\"col\">원문 시 표기</th><th scope=\"col\">60분 평균 kW</th><th scope=\"col\">상수 적합 kW</th><th scope=\"col\">잔차 kW</th></tr></thead><tbody><tr><th scope=\"row\">00</th><td>1.882467</td><td>2.354486</td><td>-0.472019</td></tr><tr><th scope=\"row\">06</th><td>1.303300</td><td>2.354486</td><td>-1.051186</td></tr><tr><th scope=\"row\">12</th><td>1.915867</td><td>2.354486</td><td>-0.438619</td></tr><tr><th scope=\"row\">18</th><td>3.697100</td><td>2.354486</td><td>1.342614</td></tr><tr><th scope=\"row\">23</th><td>0.437733</td><td>2.354486</td><td>-1.916753</td></tr></tbody></table></div><div data-case-chart=\"person\"></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 상수 c를 0.1 kW 더 크게 정하면 손실은 어떻게 달라질까요?</summary><div><div data-tex=\"\\sum_h(q_h-c-0.1)^2=\\sum_h(q_h-c)^2+24(0.1)^2\"></div><p>최적 c에서 잔차합이 0이므로 교차항이 사라집니다. 제곱합은 0.24 kW²만큼 커집니다. 여기서 손실은 시간평균 전력의 제곱차이며 전기요금이나 kWh 자체와는 다른 양입니다.</p></div></details><h4>2. 길이가 다른 묶음에서는 같은 표도 다른 질문이 된다</h4><p>같은 하루를 이번에는 원문 시 표기 00~05의 360분과 06~23의 1,080분으로 묶습니다. 두 평균값에 같은 가중치를 주는 것은 “두 묶음”을 동등하게 대하는 질문입니다. 하루 전체의 시간평균을 유지하려면 묶음의 실제 길이 6시간·18시간을 반영해야 합니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>같은 실측 자료를 길이가 다른 두 묶음으로 재집계</caption><thead><tr><th scope=\"col\">원문 시 표기</th><th scope=\"col\">기록 분 수</th><th scope=\"col\">기간 환산 (h)</th><th scope=\"col\">묶음 평균 (kW)</th><th scope=\"col\">에너지 (kWh)</th></tr></thead><tbody><tr><th scope=\"row\">00-05</th><td>360</td><td>6</td><td>2.115639</td><td>12.693833</td></tr><tr><th scope=\"row\">06-23</th><td>1080</td><td>18</td><td>2.434102</td><td>43.813833</td></tr></tbody></table></div><div data-tex=\"\\min_c\\left[6(q_A-c)^2+18(q_B-c)^2\\right],\\quad c=\\frac{6q_A+18q_B}{24}\\approx2.354486111\"></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 두 묶음 평균을 그냥 더해 2로 나누면 왜 다른 값이 나오나요?</summary><div><p>무가중 평균은 약 2.274870370 kW입니다. 이것도 “두 숫자에 같은 가중치를 주는 손실”에는 맞지만, 6시간과 18시간을 같은 길이처럼 취급하므로 하루의 시간평균과는 다릅니다. 시간 가중치 W=diag(6,18)를 쓰면 가중 잔차합 6eA+18eB=0이고 원자료 에너지를 보존합니다.</p><div data-tex=\"\\mathbf1^{\\mathsf T}W e=0,\\qquad W=\\operatorname{diag}(6,18)\"></div></div></details><p>가중치는 단순한 장식이 아니라 무엇을 가깝다고 보는지의 정의입니다. 여기서는 기간을 반영하는 양의 가중치이며, 오차 분산을 추정해 만든 통계 가중치라고 주장하지 않습니다. 한 가구의 하루를 요약한 결과를 전국 가구의 전력이나 개인의 생활 습관으로 일반화하지 않습니다.</p><p class=\"source-note\">자료: <a href=\"https://archive.ics.uci.edu/dataset/235/individual+household+electric+power+consumption\" target=\"_blank\" rel=\"noopener\">Hebrail·Berard · UCI 가구 전력 자료 (CC BY 4.0)</a> · <a href=\"math15-sources/household-2006-12-17-hourly-constant-projection.csv\" download>원자료 선택·계산 CSV</a></p><p class=\"source-note\"><a href=\"math15-sources/household-unequal-duration-weighted-projection.csv\" download>6시간·18시간 묶음과 가중 계산 CSV</a></p></article><article class=\"case-study\" id=\"projection-case-company-ko\"><h3>기업 사례 · 작년의 매출 구성을 같은 비율로 늘린 기준선에 올해를 투영하기</h3><p>Apple FY2023·FY2024의 공시 순매출을 앞 장과 같은 다섯 품목 순서로 놓습니다. x는 FY2023 실제 벡터, z는 FY2024 실제 벡터입니다. 단위는 백만 명목 USD입니다. 이제 <strong>“다섯 품목이 같은 α배였다면”이라는 한 방향의 참조 모형</strong> αx를 정하고, 실제 z와 가장 가까운 α를 찾습니다. 이것은 실제 공시 전체를 본 뒤 만든 구성 비교이며 사전 예측이나 기업 가치 평가가 아닙니다.</p><div data-tex=\"\\widehat z=\\alpha x,\\qquad \\min_\\alpha\\|z-\\alpha x\\|_2^2,\\qquad\\widehat\\alpha=\\frac{x^{\\mathsf T}z}{x^{\\mathsf T}x}=\\frac{51657633202}{50742927363}\\approx1.018026272557\"></div><p>x는 영벡터가 아니므로 분모가 양수이고 α는 유일합니다. 원점을 지나는 한 방향만 허용했으므로, 각 품목을 마음대로 따로 바꾸는 모형과는 다릅니다. α는 무차원이고 αx는 원래와 같은 매출 단위를 갖습니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>실제 공시와 기술적 비례 참조 모형: 백만 USD</caption><thead><tr><th scope=\"col\">품목</th><th scope=\"col\">FY2023 실제 x</th><th scope=\"col\">FY2024 실제 z</th><th scope=\"col\">참조 αx (실측 아님)</th><th scope=\"col\">잔차 z−αx</th></tr></thead><tbody><tr><th scope=\"row\">iPhone</th><td>200,583</td><td>201,183</td><td>204,198.764</td><td>-3,015.764</td></tr><tr><th scope=\"row\">Mac</th><td>29,357</td><td>29,984</td><td>29,886.197</td><td>97.803</td></tr><tr><th scope=\"row\">iPad</th><td>28,300</td><td>26,694</td><td>28,810.144</td><td>-2,116.144</td></tr><tr><th scope=\"row\">웨어러블·홈·액세서리</th><td>39,845</td><td>37,005</td><td>40,563.257</td><td>-3,558.257</td></tr><tr><th scope=\"row\">서비스</th><td>85,200</td><td>96,169</td><td>86,735.838</td><td>9,433.162</td></tr></tbody></table></div><div data-case-chart=\"company\"></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 서비스 잔차가 양수이면 “오류”이거나 서비스가 이만큼 더 벌었다고 해석할까요?</summary><div><p>서비스 실제 공시 96,169가 비례 참조값 약 86,735.838보다 9,433.162 높다는 뜻입니다. 잔차는 선택한 동일배수 모형과 구성의 차이입니다. 원공시가 틀렸다는 뜻도 아니고 특정 행동의 인과효과도 아닙니다. 비교 기준을 바꾸면 잔차도 달라집니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 국가 직선 사례처럼 이 잔차도 합이 반드시 0일까요?</summary><div><div data-tex=\"x^{\\mathsf T}e=0,\\qquad \\mathbf1^{\\mathsf T}e\\approx840.800122881\\ne0\"></div><p>여기서는 잔차가 직교해야 할 방향이 x 하나뿐입니다. 모형에 1 방향의 절편을 넣지 않았으므로 잔차합 0은 보장되지 않습니다. 실제로 합은 위와 같이 0이 아닙니다. “최소제곱 잔차합은 언제나 0”이라는 암기는 조건을 빠뜨린 것입니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 비례계수를 α보다 0.01 크게 바꾸면 왜 반드시 더 멀어지나요?</summary><div><div data-tex=\"\\|z-(\\widehat\\alpha+0.01)x\\|_2^2=\\|e\\|_2^2+(0.01)^2\\|x\\|_2^2\"></div><p>e와 x의 내적이 0이어서 교차항이 사라집니다. SSE는 약 115,228,189.236445 (백만 USD)²이고, 어느 다른 계수를 쓰더라도 이 한 방향 안에서는 더 작아지지 않습니다. 그러나 “이 모형 안의 최적”은 경영적으로 옳은 예측이나 객관적 우열을 보장하지 않습니다.</p></div></details><p>전체 매출비 391,035/383,285를 맞추는 것과 품목별 제곱차를 최소화하는 것은 목적이 달라 α가 같을 필요가 없습니다. FY2023은 53주, FY2024는 52주이며, 이 예는 기간 길이·가격 변화·물량·환율을 분리하지 않습니다. 차이는 매출 단위의 제곱으로 가중되므로 큰 품목의 절대 차이가 손실에 더 큰 영향을 줍니다. 품목 비중이나 다른 가중치로 바꾸면 다른 투영 문제입니다.</p><p class=\"source-note\">자료: <a href=\"https://www.sec.gov/Archives/edgar/data/320193/000032019324000123/aapl-20240928.htm\" target=\"_blank\" rel=\"noopener\">SEC EDGAR · Apple 2024 Form 10-K, 품목별 순매출</a> · <a href=\"math15-sources/apple-sales-one-direction-projection.csv\" download>원자료 선택·계산 CSV</a></p></article><p><a href=\"math15-sources/projection-parameters-and-checks.csv\" download>계수·제곱합의 정확 분수와 계산값</a> · <a href=\"math15-sources/provenance.json\" download>원자료·선택·가중치·가공과 SHA-256</a> · 기술적 투영, 통계적 추론, 인과효과와 미래 예측은 서로 다른 주장입니다.</p></div>",
    "en": "<div class=\"case-studies\"><article class=\"case-study\" id=\"projection-case-country-en\"><h3>Country case · Summarize eleven observed years with the closest line</h3><p>Select every Korean real-GDP-per-capita observation from 2014 through 2024 in the fixed snapshot. Units are constant 2015 USD/person, not wages, personal income or PPP dollars. Instead of forcing one line through all eleven observations, <strong>minimize their sum of squared differences</strong>. This is a descriptive fit to an already observed period.</p><h4>1. A line becomes a vector with one entry per observation</h4><p>Center time at 2019: u=year−2019 runs from −5 to 5. Every fitted line has vector a1+b u, so project observed y onto the span of the two directions 1 and u. The line on a year–GDP plot and the projection in eleven-dimensional observation space are two views of the same fit. The objective holds each year fixed and minimizes squared vertical GDP differences. It does not minimize squared shortest perpendicular distances to the sloping line in the year–GDP plot; orthogonality here refers to the eleven-dimensional observation space.</p><div data-tex=\"X=\\begin{bmatrix}1&amp;-5\\\\1&amp;-4\\\\\\vdots&amp;\\vdots\\\\1&amp;5\\end{bmatrix}\\in\\mathbb R^{11\\times2},\\quad\\widehat y=X\\widehat\\beta=a\\mathbf1+b\\mathbf u,\\quad\\min_{a,b}\\|y-a\\mathbf1-b\\mathbf u\\|_2^2\"></div><p>The u-values sum to zero and their squares sum to 110, making the columns orthogonal. Solve the normal equations directly without constructing an inverse. The two independent columns give unique coefficients here.</p><div data-tex=\"X^{\\mathsf T}X=\\begin{bmatrix}11&amp;0\\\\0&amp;110\\end{bmatrix},\\qquad a=\\frac{\\sum y_i}{11},\\qquad b=\\frac{\\sum u_i y_i}{110}\"></div><div data-tex=\"\\widehat G(t)\\approx33290.08977875+754.47592853(t-2019)\"></div><p>The intercept a is the fitted value at 2019, not necessarily the actual 2019 observation. The slope has constant 2015 USD/person/year units. About 754.48 describes the fitted historical trend, not each year’s actual increment or a causal policy effect.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Observations and in-sample line: displayed values rounded</caption><thead><tr><th scope=\"col\">Year</th><th scope=\"col\">Observed GDP/person</th><th scope=\"col\">Fitted line</th><th scope=\"col\">Residual = observed−fitted</th></tr></thead><tbody><tr><th scope=\"row\">2014</th><td>29,470.67</td><td>29,517.71</td><td>-47.04</td></tr><tr><th scope=\"row\">2015</th><td>30,171.79</td><td>30,272.19</td><td>-100.40</td></tr><tr><th scope=\"row\">2016</th><td>31,005.41</td><td>31,026.66</td><td>-21.25</td></tr><tr><th scope=\"row\">2017</th><td>31,979.90</td><td>31,781.14</td><td>198.76</td></tr><tr><th scope=\"row\">2018</th><td>32,852.89</td><td>32,535.61</td><td>317.27</td></tr><tr><th scope=\"row\">2019</th><td>33,496.31</td><td>33,290.09</td><td>206.22</td></tr><tr><th scope=\"row\">2020</th><td>33,215.93</td><td>34,044.57</td><td>-828.64</td></tr><tr><th scope=\"row\">2021</th><td>34,792.94</td><td>34,799.04</td><td>-6.10</td></tr><tr><th scope=\"row\">2022</th><td>35,809.01</td><td>35,553.52</td><td>255.50</td></tr><tr><th scope=\"row\">2023</th><td>36,347.70</td><td>36,307.99</td><td>39.71</td></tr><tr><th scope=\"row\">2024</th><td>37,048.43</td><td>37,062.47</td><td>-14.04</td></tr></tbody></table></div><div data-case-chart=\"country\"></div><details class=\"case-answer\"><summary>Think first, then reveal: How can optimality be checked beyond judging whether the residuals look small?</summary><div><div data-tex=\"\\mathbf1^{\\mathsf T}e=0,\\qquad\\mathbf u^{\\mathsf T}e=0,\\qquad e=y-\\widehat y\"></div><p>Both inner products are exactly zero using rational arithmetic on the retained inputs. The residual is perpendicular to both model directions. Summing displayed rounded residuals may leave a small discrepancy. SSE is about 949,168.605184 (2015 USD/person)².</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Could moving the entire optimal line up by 100 USD/person improve it?</summary><div><div data-tex=\"\\|e-100\\mathbf1\\|_2^2=\\|e\\|_2^2+11(100)^2\"></div><p>The cross term vanishes because e is orthogonal to 1. SSE increases by exactly 110,000. This concretely verifies why an orthogonal residual identifies the closest point in observation space.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Does a small residual establish an accurate 2025 forecast or a successful policy?</summary><div><p>No. The fit uses all eleven years and evaluates the same data. There is no future holdout or policy comparison group. Time dependence, structural change and statistical revisions remain. No out-of-sample forecast, confidence interval or causal inference is made here.</p></div></details><p class=\"source-note\">Source: <a href=\"https://data.worldbank.org/indicator/NY.GDP.PCAP.KD\" target=\"_blank\" rel=\"noopener\">World Bank · NY.GDP.PCAP.KD, Korea 2014–2024</a> · <a href=\"math15-sources/korea-2014-2024-gdp-linear-projection.csv\" download>Selected inputs/calculations CSV</a></p></article><article class=\"case-study\" id=\"projection-case-person-en\"><h3>Household case · Why does the closest constant equal a mean?</h3><p>Use the same complete UCI day, 17 December 2006, with 1,440 reported minute-average powers in kW. Average the sixty records with each hour label to obtain q₀,…,q₂₃. These are derived group means, not instantaneous peaks. No unsupported timezone or start/end alignment of minute timestamps is introduced.</p><h4>1. A subspace assigning the same c to every hour</h4><div data-tex=\"\\widehat q=c\\mathbf1_{24},\\qquad \\min_c\\sum_{h=0}^{23}(q_h-c)^2,\\qquad c=\\frac{\\sum_hq_h}{24}=\\frac{169523}{72000}\\ \\mathrm{kW}\"></div><p>The result is about 2.354486111 kW: a least-squares projection of 24 observations onto the direction 1. It does not observe constant actual power throughout the day. Because all groups contain one hour, c×24 hours=56.507666667 kWh preserves the observed daily energy sum.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Selected actual hourly means and constant projection</caption><thead><tr><th scope=\"col\">Source hour label</th><th scope=\"col\">60-minute mean kW</th><th scope=\"col\">Fitted constant kW</th><th scope=\"col\">Residual kW</th></tr></thead><tbody><tr><th scope=\"row\">00</th><td>1.882467</td><td>2.354486</td><td>-0.472019</td></tr><tr><th scope=\"row\">06</th><td>1.303300</td><td>2.354486</td><td>-1.051186</td></tr><tr><th scope=\"row\">12</th><td>1.915867</td><td>2.354486</td><td>-0.438619</td></tr><tr><th scope=\"row\">18</th><td>3.697100</td><td>2.354486</td><td>1.342614</td></tr><tr><th scope=\"row\">23</th><td>0.437733</td><td>2.354486</td><td>-1.916753</td></tr></tbody></table></div><div data-case-chart=\"person\"></div><details class=\"case-answer\"><summary>Think first, then reveal: What happens to the loss if c is increased by 0.1 kW?</summary><div><div data-tex=\"\\sum_h(q_h-c-0.1)^2=\\sum_h(q_h-c)^2+24(0.1)^2\"></div><p>At the optimal c the residuals sum to zero, eliminating the cross term. The loss rises by 0.24 kW². This sum of squared power differences is distinct from energy in kWh or an electricity bill.</p></div></details><h4>2. Unequal-duration groups change the weighting question</h4><p>Regroup the same records into the 360 minutes with source hour labels 00–05 and the 1,080 minutes labeled 06–23. Equal weights treat two groups equally. To retain the whole-day mean over time, use their actual durations of six and eighteen hours.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Unequal-duration regrouping of the same observations</caption><thead><tr><th scope=\"col\">Source hour labels</th><th scope=\"col\">Recorded minutes</th><th scope=\"col\">Duration (h)</th><th scope=\"col\">Group mean (kW)</th><th scope=\"col\">Energy (kWh)</th></tr></thead><tbody><tr><th scope=\"row\">00-05</th><td>360</td><td>6</td><td>2.115639</td><td>12.693833</td></tr><tr><th scope=\"row\">06-23</th><td>1080</td><td>18</td><td>2.434102</td><td>43.813833</td></tr></tbody></table></div><div data-tex=\"\\min_c\\left[6(q_A-c)^2+18(q_B-c)^2\\right],\\quad c=\\frac{6q_A+18q_B}{24}\\approx2.354486111\"></div><details class=\"case-answer\"><summary>Think first, then reveal: Why does simply averaging the two group means give a different value?</summary><div><p>The unweighted average is about 2.274870370 kW. It correctly minimizes an equal-weight two-number loss, but treats six and eighteen hours as equally long. It is not the whole-day time average. Duration weights W=diag(6,18) give weighted residual sum 6eA+18eB=0 and preserve observed energy.</p><div data-tex=\"\\mathbf1^{\\mathsf T}W e=0,\\qquad W=\\operatorname{diag}(6,18)\"></div></div></details><p>Weights define the meaning of closeness. These positive weights represent duration; they are not claimed to estimate statistical error variances. This one-household day does not establish national electricity use or an individual’s lifestyle.</p><p class=\"source-note\">Source: <a href=\"https://archive.ics.uci.edu/dataset/235/individual+household+electric+power+consumption\" target=\"_blank\" rel=\"noopener\">Hebrail and Berard · UCI household power dataset (CC BY 4.0)</a> · <a href=\"math15-sources/household-2006-12-17-hourly-constant-projection.csv\" download>Selected inputs/calculations CSV</a></p><p class=\"source-note\"><a href=\"math15-sources/household-unequal-duration-weighted-projection.csv\" download>Six/eighteen-hour groups and weighted calculations CSV</a></p></article><article class=\"case-study\" id=\"projection-case-company-en\"><h3>Company case · Project this year onto a proportional reference of last year’s sales</h3><p>Use the same five ordered categories of Apple’s reported net sales. Let x be the actual FY2023 vector and z the actual FY2024 vector, both in million nominal USD. Choose the one-direction reference <strong>“all categories multiplied by the same α”</strong> and find the closest αx to z. This comparison uses both disclosed years; it is neither an advance forecast nor a valuation.</p><div data-tex=\"\\widehat z=\\alpha x,\\qquad \\min_\\alpha\\|z-\\alpha x\\|_2^2,\\qquad\\widehat\\alpha=\\frac{x^{\\mathsf T}z}{x^{\\mathsf T}x}=\\frac{51657633202}{50742927363}\\approx1.018026272557\"></div><p>The denominator is positive because x is nonzero, making α unique. Restricting the model to one direction through zero differs from allowing every category to change independently. α is dimensionless and αx retains sales units.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Actual filings versus a descriptive proportional reference: million USD</caption><thead><tr><th scope=\"col\">Category</th><th scope=\"col\">FY2023 actual x</th><th scope=\"col\">FY2024 actual z</th><th scope=\"col\">Reference αx (not observed)</th><th scope=\"col\">Residual z−αx</th></tr></thead><tbody><tr><th scope=\"row\">iPhone</th><td>200,583</td><td>201,183</td><td>204,198.764</td><td>-3,015.764</td></tr><tr><th scope=\"row\">Mac</th><td>29,357</td><td>29,984</td><td>29,886.197</td><td>97.803</td></tr><tr><th scope=\"row\">iPad</th><td>28,300</td><td>26,694</td><td>28,810.144</td><td>-2,116.144</td></tr><tr><th scope=\"row\">Wearables, Home and Accessories</th><td>39,845</td><td>37,005</td><td>40,563.257</td><td>-3,558.257</td></tr><tr><th scope=\"row\">Services</th><td>85,200</td><td>96,169</td><td>86,735.838</td><td>9,433.162</td></tr></tbody></table></div><div data-case-chart=\"company\"></div><details class=\"case-answer\"><summary>Think first, then reveal: Does a positive services residual mean an error or a causal gain?</summary><div><p>The reported services figure 96,169 is 9,433.162 above the reference value of about 86,735.838. This measures composition relative to the chosen common-multiplier model. It does not mean the filing is wrong or an intervention caused that amount. Changing the reference changes the residual.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Must these residuals sum to zero, as in the country-line example?</summary><div><div data-tex=\"x^{\\mathsf T}e=0,\\qquad \\mathbf1^{\\mathsf T}e\\approx840.800122881\\ne0\"></div><p>Only the direction x is included, so the residual must be orthogonal to x. No intercept direction 1 is included; zero residual sum is not guaranteed and does not hold here. “Least-squares residuals always sum to zero” omits the required condition.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Why must increasing α by 0.01 make this fit worse?</summary><div><div data-tex=\"\\|z-(\\widehat\\alpha+0.01)x\\|_2^2=\\|e\\|_2^2+(0.01)^2\\|x\\|_2^2\"></div><p>The cross term vanishes because e is orthogonal to x. SSE is about 115,228,189.236445 (million USD)². No different coefficient lowers it within this one-direction model. Mathematical optimality within a reference model does not establish a sound business forecast or an objective performance ranking.</p></div></details><p>Matching total sales by using 391,035/383,285 has a different objective from minimizing category-level squared differences, so its multiplier need not equal α. FY2023 has 53 weeks and FY2024 52; no adjustment separates duration, prices, quantities or exchange rates. Absolute differences in large categories influence this sales-unit loss more strongly. Shares or different weights define a different projection problem.</p><p class=\"source-note\">Source: <a href=\"https://www.sec.gov/Archives/edgar/data/320193/000032019324000123/aapl-20240928.htm\" target=\"_blank\" rel=\"noopener\">SEC EDGAR · Apple 2024 Form 10-K, category net sales</a> · <a href=\"math15-sources/apple-sales-one-direction-projection.csv\" download>Selected inputs/calculations CSV</a></p></article><p><a href=\"math15-sources/projection-parameters-and-checks.csv\" download>Exact coefficient/loss fractions and calculated values</a> · <a href=\"math15-sources/provenance.json\" download>Inputs, selection, weights, transformations and SHA-256</a> · Descriptive projection, statistical inference, causation and forecasting are different claims.</p></div>"
  },
  "chartData": {
    "country": [
      {
        "x": 2014,
        "y": 29470.6732991655,
        "modelY": 29517.710136073667,
        "residualY": -47.03683690816818,
        "label": {
          "ko": "2014년",
          "en": "2014"
        }
      },
      {
        "x": 2015,
        "y": 30171.7906545222,
        "modelY": 30272.186064608417,
        "residualY": -100.39541008621818,
        "label": {
          "ko": "2015년",
          "en": "2015"
        }
      },
      {
        "x": 2016,
        "y": 31005.4072876388,
        "modelY": 31026.661993143167,
        "residualY": -21.254705504368182,
        "label": {
          "ko": "2016년",
          "en": "2016"
        }
      },
      {
        "x": 2017,
        "y": 31979.9027302467,
        "modelY": 31781.137921677917,
        "residualY": 198.76480856878183,
        "label": {
          "ko": "2017년",
          "en": "2017"
        }
      },
      {
        "x": 2018,
        "y": 32852.8887488942,
        "modelY": 32535.613850212667,
        "residualY": 317.2748986815318,
        "label": {
          "ko": "2018년",
          "en": "2018"
        }
      },
      {
        "x": 2019,
        "y": 33496.3113815643,
        "modelY": 33290.08977874742,
        "residualY": 206.2216028168818,
        "label": {
          "ko": "2019년",
          "en": "2019"
        }
      },
      {
        "x": 2020,
        "y": 33215.9298928108,
        "modelY": 34044.56570728217,
        "residualY": -828.6358144713682,
        "label": {
          "ko": "2020년",
          "en": "2020"
        }
      },
      {
        "x": 2021,
        "y": 34792.9397214598,
        "modelY": 34799.04163581692,
        "residualY": -6.101914357118182,
        "label": {
          "ko": "2021년",
          "en": "2021"
        }
      },
      {
        "x": 2022,
        "y": 35809.0138105144,
        "modelY": 35553.51756435167,
        "residualY": 255.4962461627318,
        "label": {
          "ko": "2022년",
          "en": "2022"
        }
      },
      {
        "x": 2023,
        "y": 36347.7036392553,
        "modelY": 36307.99349288642,
        "residualY": 39.710146368881816,
        "label": {
          "ko": "2023년",
          "en": "2023"
        }
      },
      {
        "x": 2024,
        "y": 37048.4264001496,
        "modelY": 37062.46942142117,
        "residualY": -14.043021271568183,
        "label": {
          "ko": "2024년",
          "en": "2024"
        }
      }
    ],
    "person": [
      {
        "x": 0,
        "endX": 1,
        "y": 1.8824666666666667,
        "projectionMeanY": 2.354486111111111,
        "residualY": -0.47201944444444444,
        "durationHours": 1,
        "label": {
          "ko": "00시 표기",
          "en": "Hour label 00"
        }
      },
      {
        "x": 1,
        "endX": 2,
        "y": 3.3494,
        "projectionMeanY": 2.354486111111111,
        "residualY": 0.9949138888888889,
        "durationHours": 1,
        "label": {
          "ko": "01시 표기",
          "en": "Hour label 01"
        }
      },
      {
        "x": 2,
        "endX": 3,
        "y": 1.5872666666666666,
        "projectionMeanY": 2.354486111111111,
        "residualY": -0.7672194444444445,
        "durationHours": 1,
        "label": {
          "ko": "02시 표기",
          "en": "Hour label 02"
        }
      },
      {
        "x": 3,
        "endX": 4,
        "y": 1.6622,
        "projectionMeanY": 2.354486111111111,
        "residualY": -0.6922861111111112,
        "durationHours": 1,
        "label": {
          "ko": "03시 표기",
          "en": "Hour label 03"
        }
      },
      {
        "x": 4,
        "endX": 5,
        "y": 2.2157666666666667,
        "projectionMeanY": 2.354486111111111,
        "residualY": -0.13871944444444445,
        "durationHours": 1,
        "label": {
          "ko": "04시 표기",
          "en": "Hour label 04"
        }
      },
      {
        "x": 5,
        "endX": 6,
        "y": 1.9967333333333332,
        "projectionMeanY": 2.354486111111111,
        "residualY": -0.35775277777777775,
        "durationHours": 1,
        "label": {
          "ko": "05시 표기",
          "en": "Hour label 05"
        }
      },
      {
        "x": 6,
        "endX": 7,
        "y": 1.3033,
        "projectionMeanY": 2.354486111111111,
        "residualY": -1.0511861111111112,
        "durationHours": 1,
        "label": {
          "ko": "06시 표기",
          "en": "Hour label 06"
        }
      },
      {
        "x": 7,
        "endX": 8,
        "y": 1.6200333333333334,
        "projectionMeanY": 2.354486111111111,
        "residualY": -0.7344527777777777,
        "durationHours": 1,
        "label": {
          "ko": "07시 표기",
          "en": "Hour label 07"
        }
      },
      {
        "x": 8,
        "endX": 9,
        "y": 1.8905666666666667,
        "projectionMeanY": 2.354486111111111,
        "residualY": -0.46391944444444444,
        "durationHours": 1,
        "label": {
          "ko": "08시 표기",
          "en": "Hour label 08"
        }
      },
      {
        "x": 9,
        "endX": 10,
        "y": 2.5490666666666666,
        "projectionMeanY": 2.354486111111111,
        "residualY": 0.19458055555555556,
        "durationHours": 1,
        "label": {
          "ko": "09시 표기",
          "en": "Hour label 09"
        }
      },
      {
        "x": 10,
        "endX": 11,
        "y": 3.6289,
        "projectionMeanY": 2.354486111111111,
        "residualY": 1.274413888888889,
        "durationHours": 1,
        "label": {
          "ko": "10시 표기",
          "en": "Hour label 10"
        }
      },
      {
        "x": 11,
        "endX": 12,
        "y": 2.471,
        "projectionMeanY": 2.354486111111111,
        "residualY": 0.11651388888888889,
        "durationHours": 1,
        "label": {
          "ko": "11시 표기",
          "en": "Hour label 11"
        }
      },
      {
        "x": 12,
        "endX": 13,
        "y": 1.9158666666666666,
        "projectionMeanY": 2.354486111111111,
        "residualY": -0.43861944444444445,
        "durationHours": 1,
        "label": {
          "ko": "12시 표기",
          "en": "Hour label 12"
        }
      },
      {
        "x": 13,
        "endX": 14,
        "y": 1.6607666666666667,
        "projectionMeanY": 2.354486111111111,
        "residualY": -0.6937194444444444,
        "durationHours": 1,
        "label": {
          "ko": "13시 표기",
          "en": "Hour label 13"
        }
      },
      {
        "x": 14,
        "endX": 15,
        "y": 2.092633333333333,
        "projectionMeanY": 2.354486111111111,
        "residualY": -0.26185277777777777,
        "durationHours": 1,
        "label": {
          "ko": "14시 표기",
          "en": "Hour label 14"
        }
      },
      {
        "x": 15,
        "endX": 16,
        "y": 2.9854,
        "projectionMeanY": 2.354486111111111,
        "residualY": 0.6309138888888889,
        "durationHours": 1,
        "label": {
          "ko": "15시 표기",
          "en": "Hour label 15"
        }
      },
      {
        "x": 16,
        "endX": 17,
        "y": 3.326033333333333,
        "projectionMeanY": 2.354486111111111,
        "residualY": 0.9715472222222222,
        "durationHours": 1,
        "label": {
          "ko": "16시 표기",
          "en": "Hour label 16"
        }
      },
      {
        "x": 17,
        "endX": 18,
        "y": 3.4067666666666665,
        "projectionMeanY": 2.354486111111111,
        "residualY": 1.0522805555555557,
        "durationHours": 1,
        "label": {
          "ko": "17시 표기",
          "en": "Hour label 17"
        }
      },
      {
        "x": 18,
        "endX": 19,
        "y": 3.6971,
        "projectionMeanY": 2.354486111111111,
        "residualY": 1.342613888888889,
        "durationHours": 1,
        "label": {
          "ko": "18시 표기",
          "en": "Hour label 18"
        }
      },
      {
        "x": 19,
        "endX": 20,
        "y": 2.9084,
        "projectionMeanY": 2.354486111111111,
        "residualY": 0.5539138888888889,
        "durationHours": 1,
        "label": {
          "ko": "19시 표기",
          "en": "Hour label 19"
        }
      },
      {
        "x": 20,
        "endX": 21,
        "y": 3.3615,
        "projectionMeanY": 2.354486111111111,
        "residualY": 1.0070138888888889,
        "durationHours": 1,
        "label": {
          "ko": "20시 표기",
          "en": "Hour label 20"
        }
      },
      {
        "x": 21,
        "endX": 22,
        "y": 3.040766666666667,
        "projectionMeanY": 2.354486111111111,
        "residualY": 0.6862805555555556,
        "durationHours": 1,
        "label": {
          "ko": "21시 표기",
          "en": "Hour label 21"
        }
      },
      {
        "x": 22,
        "endX": 23,
        "y": 1.518,
        "projectionMeanY": 2.354486111111111,
        "residualY": -0.8364861111111112,
        "durationHours": 1,
        "label": {
          "ko": "22시 표기",
          "en": "Hour label 22"
        }
      },
      {
        "x": 23,
        "endX": 24,
        "y": 0.4377333333333333,
        "projectionMeanY": 2.354486111111111,
        "residualY": -1.9167527777777777,
        "durationHours": 1,
        "label": {
          "ko": "23시 표기",
          "en": "Hour label 23"
        }
      }
    ],
    "company": [
      {
        "x": 1,
        "y": 201183.0,
        "modelY": 204198.7638283581,
        "residualY": -3015.7638283580827,
        "previousYearActual": 200583.0,
        "label": {
          "ko": "iPhone",
          "en": "iPhone"
        }
      },
      {
        "x": 2,
        "y": 29984.0,
        "modelY": 29886.197283464244,
        "residualY": 97.80271653575707,
        "previousYearActual": 29357.0,
        "label": {
          "ko": "Mac",
          "en": "Mac"
        }
      },
      {
        "x": 3,
        "y": 26694.0,
        "modelY": 28810.143513371193,
        "residualY": -2116.1435133711916,
        "previousYearActual": 28300.0,
        "label": {
          "ko": "iPad",
          "en": "iPad"
        }
      },
      {
        "x": 4,
        "y": 37005.0,
        "modelY": 40563.25683004506,
        "residualY": -3558.2568300450575,
        "previousYearActual": 39845.0,
        "label": {
          "ko": "웨어러블·홈·액세서리",
          "en": "Wearables, Home and Accessories"
        }
      },
      {
        "x": 5,
        "y": 96169.0,
        "modelY": 86735.83842188076,
        "residualY": 9433.16157811924,
        "previousYearActual": 85200.0,
        "label": {
          "ko": "서비스",
          "en": "Services"
        }
      }
    ]
  },
  "chartMeta": {
    "country": {
      "plotType": "observed-with-fit",
      "seriesKeys": [
        "y",
        "modelY"
      ],
      "seriesLabels": {
        "y": {
          "ko": "실제 GDP/명",
          "en": "Observed GDP/person"
        },
        "modelY": {
          "ko": "같은 11년의 직선 투영",
          "en": "In-sample line projection"
        }
      },
      "xlabel": {
        "ko": "연도 (적합 범위 2014~2024)",
        "en": "Year (fit scope 2014–2024)"
      },
      "ylabel": {
        "ko": "1인당 실질 GDP (2015 USD/명)",
        "en": "Real GDP per capita (2015 USD/person)"
      },
      "legend": {
        "ko": "점: 실제 연간 관측 · 선: 같은 11개 관측에 맞춘 최소제곱 직선",
        "en": "Points: annual observations · line: least-squares fit to the same eleven values"
      },
      "note": {
        "ko": "2019 중심의 기술적 표본 내 투영입니다. 사전 예측·신뢰구간·정책 인과효과를 뜻하지 않습니다.",
        "en": "Descriptive in-sample projection centered at 2019, not an advance forecast, confidence interval or causal policy effect."
      }
    },
    "person": {
      "plotType": "bar-with-reference-lines",
      "seriesKeys": [
        "y",
        "projectionMeanY"
      ],
      "seriesLabels": {
        "y": {
          "ko": "실제 분평균의 시간 묶음 평균",
          "en": "Hourly groups of actual minute means"
        },
        "projectionMeanY": {
          "ko": "상수 투영 (실측 경로 아님)",
          "en": "Constant projection (not actual path)"
        }
      },
      "xlabel": {
        "ko": "원문 시 표기별 60개 분평균 (0~23)",
        "en": "Sixty-minute groups by source hour label (0–23)"
      },
      "ylabel": {
        "ko": "묶음 평균전력 (kW)",
        "en": "Grouped mean power (kW)"
      },
      "legend": {
        "ko": "막대: 실자료 시간평균 · 수평선: 24시간 에너지를 보존한 상수 투영",
        "en": "Bars: actual-data group means · horizontal line: constant projection preserving 24-hour energy"
      },
      "note": {
        "ko": "원자료 분평균을 재집계했습니다. 상수선은 실제 순간 경로나 피크가 아니며 마지막 막대는 24에서 끝납니다.",
        "en": "Regrouped source minute means. The constant line is not an observed instantaneous path or peak; the last bar ends at 24."
      }
    },
    "company": {
      "plotType": "bar-comparison",
      "seriesKeys": [
        "y",
        "modelY"
      ],
      "seriesLabels": {
        "y": {
          "ko": "FY2024 실제 공시",
          "en": "FY2024 actual filing"
        },
        "modelY": {
          "ko": "FY2023 방향의 비례 참조 투영",
          "en": "Proportional reference on FY2023 direction"
        }
      },
      "categoryLabels": {
        "ko": [
          "iPhone",
          "Mac",
          "iPad",
          "웨어러블·홈·액세서리",
          "서비스"
        ],
        "en": [
          "iPhone",
          "Mac",
          "iPad",
          "Wearables, Home and Accessories",
          "Services"
        ]
      },
      "xlabel": {
        "ko": "같은 순서의 다섯 품목",
        "en": "Five categories in common order"
      },
      "ylabel": {
        "ko": "순매출 또는 참조값 (백만 명목 USD)",
        "en": "Net sales or reference value (million nominal USD)"
      },
      "legend": {
        "ko": "실측 공시와 사후 기술적 참조값 비교 · 참조는 실제 공시·예측이 아님",
        "en": "Actual filings versus an after-the-fact descriptive reference · reference is not reported sales or a forecast"
      },
      "note": {
        "ko": "잔차는 비례 모형과의 구성 차이입니다. 회계기간은 FY2023 53주/FY2024 52주이며 기간·이익·인과를 보정하지 않았습니다.",
        "en": "Residuals describe differences from a proportional reference. FY2023 has 53 weeks and FY2024 52; periods, profits and causality are not adjusted or identified."
      }
    }
  },
  "models": {
    "countryProjection": {
      "years": [
        2014,
        2015,
        2016,
        2017,
        2018,
        2019,
        2020,
        2021,
        2022,
        2023,
        2024
      ],
      "centerYear": 2019,
      "X": [
        [
          1,
          -5
        ],
        [
          1,
          -4
        ],
        [
          1,
          -3
        ],
        [
          1,
          -2
        ],
        [
          1,
          -1
        ],
        [
          1,
          0
        ],
        [
          1,
          1
        ],
        [
          1,
          2
        ],
        [
          1,
          3
        ],
        [
          1,
          4
        ],
        [
          1,
          5
        ]
      ],
      "observedY": [
        29470.6732991655,
        30171.7906545222,
        31005.4072876388,
        31979.9027302467,
        32852.8887488942,
        33496.3113815643,
        33215.9298928108,
        34792.9397214598,
        35809.0138105144,
        36347.7036392553,
        37048.4264001496
      ],
      "coefficientOrder": [
        "intercept_at_2019",
        "slope_per_year"
      ],
      "beta": [
        33290.08977874742,
        754.47592853475
      ],
      "betaExactFraction": [
        "457738734457777/13750000000",
        "3017903714139/4000000000"
      ],
      "XtX": [
        [
          11,
          0
        ],
        [
          0,
          110
        ]
      ],
      "residualOrthogonalityExact": [
        0,
        0
      ],
      "SSE": 949168.6051836758,
      "SSEExactFraction": "2088170931404086706535403411/2200000000000000000000",
      "fitScope": "2014-2024 in-sample descriptive projection, not forecast or causation"
    },
    "householdProjection": {
      "hourlyMeansKW": [
        1.8824666666666667,
        3.3494,
        1.5872666666666666,
        1.6622,
        2.2157666666666667,
        1.9967333333333332,
        1.3033,
        1.6200333333333334,
        1.8905666666666667,
        2.5490666666666666,
        3.6289,
        2.471,
        1.9158666666666666,
        1.6607666666666667,
        2.092633333333333,
        2.9854,
        3.326033333333333,
        3.4067666666666665,
        3.6971,
        2.9084,
        3.3615,
        3.040766666666667,
        1.518,
        0.4377333333333333
      ],
      "constantKW": 2.354486111111111,
      "constantKWExactFraction": "169523/72000",
      "energyKWh": 56.507666666666665,
      "SSEHourlyMeansKW2": 17.12256620425926,
      "residualSumExact": 0,
      "unequalBlocks": {
        "durationHours": [
          6,
          18
        ],
        "meansKW": [
          2.115638888888889,
          2.434101851851852
        ],
        "weightedConstantKW": 2.354486111111111,
        "unweightedTwoBlockMeanKW": 2.2748703703703703,
        "weightedResidualSumExact": 0
      },
      "assumption": "Constant approximation to derived group means, not an observed constant physical path. Duration weighting is a physical aggregation choice, not an inverse-variance statistical claim."
    },
    "companyProjection": {
      "categoryOrder": [
        "iPhone",
        "Mac",
        "iPad",
        "Wearables, Home and Accessories",
        "Services"
      ],
      "actualFY2023": [
        200583,
        29357,
        28300,
        39845,
        85200
      ],
      "actualFY2024": [
        201183,
        29984,
        26694,
        37005,
        96169
      ],
      "alpha": 1.018026272557286,
      "alphaExactFraction": "51657633202/50742927363",
      "fittedReference": [
        204198.7638283581,
        29886.197283464244,
        28810.143513371193,
        40563.25683004506,
        86735.83842188076
      ],
      "residual": [
        -3015.7638283580827,
        97.80271653575707,
        -2116.1435133711916,
        -3558.2568300450575,
        9433.16157811924
      ],
      "directionDotResidualExact": 0,
      "residualSum": 840.8001228806638,
      "SSE": 115228189.2364451,
      "SSEExactFraction": "5847015636594952217/50742927363",
      "totalSalesRatio": 1.020219940775141,
      "unit": "million nominal USD",
      "assumption": "Unconstrained one-direction descriptive comparison using both disclosed years, with no intercept. Fitted values are not reported category sales or advance predictions."
    }
  },
  "enrichment": [
    {
      "kind": "video",
      "title": {
        "ko": "부분공간으로의 투영: 맞지 않는 식에서 가장 가까운 값 찾기",
        "en": "Projections onto subspaces"
      },
      "provider": "MIT OpenCourseWare · Gilbert Strang · 18.06 Lecture 15",
      "url": "https://www.youtube.com/watch?v=Y_Ac6KiQ1t0",
      "videoId": "Y_Ac6KiQ1t0",
      "creatorPage": "https://ocw.mit.edu/courses/18-06-linear-algebra-spring-2010/resources/lecture-15-projections-onto-subspaces/",
      "verifiedOn": "2026-10-22",
      "focus": {
        "ko": "본문에서 재생되는 공식 영어 강의입니다. 한 방향의 정사영을 여러 열이 만드는 부분공간으로 확장합니다. 그림의 벡터를 이 장의 11개 GDP 관측값과 대응시켜 보세요.",
        "en": "The official English lecture plays inside the chapter. Extend projection on one direction to a subspace spanned by several columns. Relate the geometry to the eleven GDP observations."
      },
      "question": {
        "ko": "두 계수를 맞추는 국가 직선 사례에서 잔차는 어떤 두 방향과 직교하나요?",
        "en": "In the two-coefficient country fit, which two directions are orthogonal to the residual?"
      },
      "answer": {
        "ko": "설계행렬의 두 열인 1과 year−2019입니다. y−Xβ가 그 열공간에 직교한다는 것은 Xᵀe=0이라는 두 방정식입니다.",
        "en": "The columns 1 and year−2019. Orthogonality of y−Xβ to their column space means the two normal equations Xᵀe=0."
      },
      "verificationNote": "MIT course page directly links this YouTube ID and official OCW lesson embeds it. No guessed timestamps, playback claim or downloaded video."
    },
    {
      "kind": "thinker",
      "title": {
        "ko": "예르겐 페데르센 그람 · 직교화와 실무 문제의 연결",
        "en": "Jørgen Pedersen Gram: orthogonality and practical problems"
      },
      "provider": "University of St Andrews · MacTutor",
      "url": "https://mathshistory.st-andrews.ac.uk/Biographies/Gram/",
      "focus": {
        "ko": "대학 아카이브는 그람(1850–1916)의 직교화 연구와 보험 실무·수치계산의 연결을 소개합니다. 이름이 붙은 절차도 앞선 연구와 이어진다는 점을 함께 읽습니다.",
        "en": "The university archive introduces Gram (1850–1916), orthogonalization, and links between insurance work and numerical mathematics. It also notes the process had earlier antecedents."
      },
      "question": {
        "ko": "국가 설계행렬의 두 열을 직교하게 중심화하면 무엇이 쉬워지나요?",
        "en": "What becomes easier when centering makes the country design columns orthogonal?"
      },
      "answer": {
        "ko": "XᵀX의 두 비대각 성분이 0이어서 평균과 기울기를 각각 계산할 수 있습니다. 직교화는 계산을 정리하지만 데이터의 인과 해석을 만들어 주지는 않습니다.",
        "en": "The off-diagonal entries of XᵀX vanish, separating mean and slope calculations. Orthogonality simplifies algebra without establishing causality."
      }
    },
    {
      "kind": "reading",
      "title": {
        "ko": "직교분해와 가장 가까운 벡터",
        "en": "Orthogonal decomposition and the closest vector"
      },
      "provider": "Georgia Tech · Interactive Linear Algebra §6.3",
      "url": "https://textbooks.math.gatech.edu/ila/projections.html",
      "focus": {
        "ko": "직교분해 정리와 한 직선으로의 투영 공식을 읽습니다. 기업의 실제 z를 참조 αx와 직교 잔차로 나누는 계산을 직접 확인하세요.",
        "en": "Read the orthogonal-decomposition theorem and line-projection recipe. Verify how actual company vector z splits into reference αx and an orthogonal residual."
      },
      "question": {
        "ko": "기업 잔차를 원래 방향 x에 다시 투영하면 무엇이 나오나요?",
        "en": "What is the projection of the company residual onto x?"
      },
      "answer": {
        "ko": "x≠0이고 xᵀe=0이므로 투영계수는 0, 투영벡터도 영벡터입니다. 이는 선택한 방향 안에 남은 차이가 없다는 뜻입니다.",
        "en": "Because x is nonzero and xᵀe=0, the projection coefficient and vector are zero. No residual component remains in that chosen direction."
      }
    },
    {
      "kind": "reading",
      "title": {
        "ko": "최소제곱의 해와 계수의 유일성 조건",
        "en": "Least-squares solutions and coefficient uniqueness"
      },
      "provider": "Georgia Tech · Interactive Linear Algebra §6.5",
      "url": "https://textbooks.math.gatech.edu/ila/least-squares.html",
      "focus": {
        "ko": "최소제곱과 정규방정식의 연결, 독립인 열일 때의 유일성 조건을 읽습니다. 고유한 적합벡터와 계수 유일성이 어떤 조건에서 구별되는지 확인합니다.",
        "en": "Read the normal equations and the independent-column condition for unique coefficients. Distinguish uniqueness of the fitted projection from uniqueness of its coefficients."
      },
      "question": {
        "ko": "설계행렬에 같은 열을 한 번 더 붙이면 투영값과 계수는 어떻게 될까요?",
        "en": "What if an identical column is appended to the design matrix?"
      },
      "answer": {
        "ko": "열공간은 그대로이므로 같은 유클리드 투영값을 얻지만, 중복한 두 열의 계수 합만 정해질 수 있어 개별 계수는 유일하지 않습니다.",
        "en": "The column space and Euclidean projection stay the same, but coefficients of duplicate columns need not be unique; only their combined contribution is fixed."
      }
    }
  ],
  "sources": [
    {
      "id": "worldbank",
      "title": "WDI NY.GDP.PCAP.KD Korea 2014-2024",
      "provider": "World Bank",
      "url": "https://data.worldbank.org/indicator/NY.GDP.PCAP.KD",
      "retrievedOn": "2026-10-20",
      "rawDownloaded": true,
      "publicSnapshot": "실제데이터/worldbank.csv"
    },
    {
      "id": "household",
      "title": "Individual Household Electric Power Consumption",
      "provider": "Hebrail, G. and Berard, A. · UCI",
      "url": "https://archive.ics.uci.edu/dataset/235/individual+household+electric+power+consumption",
      "doi": "10.24432/C58K54",
      "license": "CC BY 4.0",
      "retrievedOn": "2026-10-22",
      "rawDownloaded": true,
      "period": "17/12/2006 complete day, 1440 observed minute-averaged powers"
    },
    {
      "id": "apple",
      "title": "Apple 2024 Form 10-K, Products and Services Performance",
      "provider": "SEC EDGAR / Apple Inc.",
      "url": "https://www.sec.gov/Archives/edgar/data/320193/000032019324000123/aapl-20240928.htm",
      "retrievedOn": "2026-10-22",
      "rawDownloaded": true,
      "location": "Five-category net sales FY2023/FY2024, original local HTML table checked directly"
    },
    {
      "id": "video",
      "title": "15. Projections onto Subspaces",
      "provider": "MIT OpenCourseWare · Gilbert Strang",
      "url": "https://www.youtube.com/watch?v=Y_Ac6KiQ1t0",
      "creatorPage": "https://ocw.mit.edu/courses/18-06-linear-algebra-spring-2010/resources/lecture-15-projections-onto-subspaces/",
      "officialVideoLinkPage": "https://web.mit.edu/18.06/www/",
      "webVerifiedOn": "2026-10-22",
      "rawDownloaded": false
    },
    {
      "id": "gram",
      "title": "Jorgen Pedersen Gram biography",
      "provider": "University of St Andrews · MacTutor",
      "url": "https://mathshistory.st-andrews.ac.uk/Biographies/Gram/",
      "webVerifiedOn": "2026-10-22",
      "rawDownloaded": false
    },
    {
      "id": "projection",
      "title": "Interactive Linear Algebra §6.3 Orthogonal Projection",
      "provider": "Georgia Tech",
      "url": "https://textbooks.math.gatech.edu/ila/projections.html",
      "webVerifiedOn": "2026-10-22",
      "rawDownloaded": false
    },
    {
      "id": "least-squares",
      "title": "Interactive Linear Algebra §6.5 The Method of Least Squares",
      "provider": "Georgia Tech",
      "url": "https://textbooks.math.gatech.edu/ila/least-squares.html",
      "webVerifiedOn": "2026-10-22",
      "rawDownloaded": false
    }
  ],
  "review": {
    "reviewType": "AI economist/management case review; not human expert certification.",
    "numericalChecks": {
      "countryIntercept": "33290.0897787474181818181818181818181818181818181818181818182",
      "countrySlope": "754.47592853475",
      "countryXtX": [
        [
          11,
          0
        ],
        [
          0,
          110
        ]
      ],
      "countryExactResidualInnerProducts": [
        "0",
        "0"
      ],
      "countrySSE": "949168.605183675775697910641363636363636363636363636363636364",
      "householdConstantKW": "2.35448611111111111111111111111111111111111111111111111111111",
      "householdDailyEnergyKWh": "56.5076666666666666666666666666666666666666666666666666666667",
      "householdExactResidualSum": "0",
      "householdTwoBlockMeansKW": [
        "2.11563888888888888888888888888888888888888888888888888888889",
        "2.43410185185185185185185185185185185185185185185185185185185"
      ],
      "householdUnweightedTwoBlockMeanKW": "2.27487037037037037037037037037037037037037037037037037037037",
      "companyAlpha": "1.01802627255728592601103221455859860262354805129101160012631",
      "companyAlphaExact": "51657633202/50742927363",
      "companyExactDirectionDotResidual": "0",
      "companyResidualSum": "840.800122880663848861517642907534593433385160924618845585383",
      "companySSE": "115228189.236445101485186854926149050522999878587040201147727"
    },
    "criticalDistinctions": [
      "A fitted line in a year/GDP plot corresponds to a vector in eleven-dimensional observation space.",
      "Column-space projection is descriptive algebra without automatic inference, causation or forecasting.",
      "Centered year and intercept columns are independent and orthogonal; coefficients have appropriate different units.",
      "The intercept is a fitted2019value, not necessarily the observed2019GDP.",
      "The household groups preserve one-minute-mean semantics; no instantaneous values inferred.",
      "A constant projection is an approximation rather than an observed constant power path.",
      "Equal-duration24group means and duration-weighted6/18hour groups preserve the same energy. Equal-group and equal-time losses ask different questions.",
      "Positive duration weights are not automatically inverse-error-variance statistical weights.",
      "Company observed and reference fitted vectors are distinct. Sales residuals compare chosen composition, not reporting errors or causal gains.",
      "Without an intercept, least-squares residuals need not sum to zero; they are orthogonal to the included direction.",
      "Matching total sales and minimizing category squared errors are different objectives.",
      "Unequal fiscal weeks and nominal values remain unadjusted; no claim about quantities, profits, forecasts or managerial merit."
    ],
    "studentReviewerResponse": "Neutral-student/pedagogy agent read all KO/EN cases, resources, charts/models and provenance and independently recomputed inputs with Fraction/Decimal80: country coefficients/SSE/two zero inner products and100shift loss; all1440power records,24means,energy,6/18hour weighted versus unweighted means; company exact alpha/orthogonal residual/nonzero residual sum/SSE/.01perturbation identity. Five CSV and original/input hashes matched. Official MIT videoID, ILA readings and Gram biography checked. Added explicit vertical GDP residual versus perpendicular two-dimensional plot distance distinction, with orthogonality located in eleven-dimensional observation space. No unresolved mathematical,numerical or neutrality error reported. AI static review only,not human certification or playback verification.",
    "remaining": "Parent integration and bilingual/mobile browser QA. Preserve observed points versus fitted lines and derived household mean/bar semantics; actual embedded playback needs final-page verification.",
    "artifactChecks": {
      "sourceInputsUnchanged": true,
      "downloadLinksExist": true,
      "sourceLinksPreserved": true,
      "uniqueIds": true,
      "chartPoints": {
        "country": 11,
        "person": 24,
        "company": 5
      },
      "exactRationalChecksPassed": true
    }
  }
}