{
  "cases": {
    "ko": "<div class=\"case-studies\"><article class=\"case-study\" id=\"hessian-case-country-ko\"><h3>국가 사례 · 실제 GDP 자료에 맞춘 식에서 두 계수를 따로 움직이기</h3><p>한국의 2014~2024년 공개 1인당 실질 GDP 11개를 사용합니다. t=연도−2019(년), 예측식 a+b t를 정하고 관측과의 차이를 제곱한 손실을 만듭니다. a는 2015 USD/명, b는 2015 USD/명/년입니다. 이 장에서 미분하는 함수는 <strong>우리가 선택한 적합 손실</strong>입니다. 현실의 GDP를 정책으로 바꾸는 인과 함수를 미분하는 것이 아닙니다.</p><div data-tex=\"L(a,b)=\\frac1{2n}\\sum_{i=1}^n(a+bt_i-y_i)^2,\\qquad n=11\"></div><h4>1. 한 변수만 바꾸고 나머지는 고정하기</h4><div data-tex=\"\\frac{\\partial L}{\\partial a}=\\frac1n\\sum_i(a+bt_i-y_i),\\qquad \\frac{\\partial L}{\\partial b}=\\frac1n\\sum_i t_i(a+bt_i-y_i)\"></div><p>첫 편미분은 b를 고정한 채 a를 조금 움직일 때 손실이 바뀌는 비율입니다. 둘째는 a를 고정하고 기울기 b만 바꿉니다. 두 편미분을 열로 모으면 gradient가 됩니다. n이 아니라 2n으로 나눈 덕분에 제곱을 미분할 때의 2가 없어집니다.</p><div data-tex=\"\\nabla L=\\frac1nX^{\\mathsf T}(X\\theta-y),\\qquad\\theta=(a,b)^{\\mathsf T},\\qquad H=\\nabla^2L=\\frac1nX^{\\mathsf T}X=\\begin{bmatrix}1&amp;0\\\\0&amp;10\\end{bmatrix}\"></div><p>중심화한 연도의 합이 0이고 제곱합이 110이라서 교차 성분은 0입니다. H는 gradient가 두 계수 변화에 따라 어떻게 달라지는지 나타냅니다. 이것은 GDP 관측 자체의 공분산 행렬이 아닙니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>실제 자료로 계산한 기준점과 최적점</caption><thead><tr><th scope=\"col\">항목</th><th scope=\"col\">기준 (a=33,000, b=700)</th><th scope=\"col\">손실 최소점</th></tr></thead><tbody><tr><th scope=\"row\">a</th><td>33,000.000000</td><td>33,290.089779</td></tr><tr><th scope=\"row\">b</th><td>700.000000</td><td>754.475929</td></tr><tr><th scope=\"row\">∂L/∂a</th><td>-290.089779</td><td>0</td></tr><tr><th scope=\"row\">∂L/∂b</th><td>-544.759285</td><td>0</td></tr><tr><th scope=\"row\">L ((2015 USD/명)²)</th><td>100,058.201324</td><td>43,144.027508</td></tr></tbody></table></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: gradient 두 숫자의 크기를 그대로 비교해 어느 계수가 더 중요하다고 할까요?</summary><div><p>각 편미분의 단위가 다릅니다. ∂L/∂a는 2015 USD/명, ∂L/∂b는 (2015 USD/명)×년입니다. a와 b의 기준 단위나 척도를 바꾸면 숫자 크기도 달라집니다. Hessian의 (a,a) 성분은 무차원, (b,b) 성분은 년²이며 교차 성분의 단위는 년입니다. 서로 다른 단위의 숫자를 중요도 순위로 읽지 않습니다.</p></div></details><h4>2. 정확한 손실·1차 접선·2차 변화를 비교하기</h4><p>그림은 b=700을 고정하고 기준 a=33,000에서 a만 움직인 계산 시나리오입니다. 점들이 새로 측정한 GDP는 아닙니다. 2차식이 정확한 곡선과 겹치는 것은 이 손실이 이차다항식이기 때문입니다. 일반 함수의 유한 변화에서는 나머지항이 남습니다.</p><div data-case-chart=\"country\"></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 최소점에서 a를 100, b를 10만큼 함께 바꾸면?</summary><div><div data-tex=\"L(\\widehat\\theta+d)-L(\\widehat\\theta)=\\frac12d^{\\mathsf T}Hd=\\frac12[100^2+10(10)^2]=5500\"></div><p>gradient가 0이라 1차항이 사라집니다. 이 값의 단위는 (2015 USD/명)²이며 정부 정책의 비용이나 GDP 증가액이 아닙니다. 이 문제에서는 이차식이므로 유한한 변화에도 위 등식이 정확합니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: H의 두 대각 성분이 양수면 각 좌표를 따로 바꾸는 것만 확인하면 되나요?</summary><div><p>일반 행렬에서는 교차 성분도 확인해야 합니다. 여기서는 대각 H의 두 성분이 양수이므로 모든 비영 변화 d에 대해 dᵀHd>0입니다. 회사 사례에서는 교차 성분이 0이 아니므로 함께 검토합니다. 일반 함수의 극값 조건은 다음 장에서 정리합니다.</p></div></details><p class=\"source-note\">자료: <a href=\"https://data.worldbank.org/indicator/NY.GDP.PCAP.KD\" target=\"_blank\" rel=\"noopener\">World Bank · 한국 실질 GDP/명 2014~2024</a> · <a href=\"math18-sources/korea-2014-2024-two-parameter-loss-input.csv\" download>실측·선택 모형 CSV</a></p></article><article class=\"case-study\" id=\"hessian-case-person-ko\"><h3>가구 사례 · 실제 자료의 공분산과 손실의 Hessian은 같을까?</h3><p>UCI 공개 자료의 같은 하루에서 1,440개 주방·세탁실 에너지 관측(Wh)을 사용합니다. 두 계통을 각각 상수 a,b로 요약하는 모형을 선택합니다. 이는 실제 소비가 하루 내내 일정했다고 주장하거나 실제 계량값을 수정하는 작업이 아닙니다. 각 관측행에 같은 비중을 둔 손실을 만듭니다.</p><div data-tex=\"L(a,b)=\\frac1{2n}\\sum_i[(E_{i1}-a)^2+(E_{i2}-b)^2],\\qquad n=1440\"></div><div data-tex=\"\\nabla L=\\begin{bmatrix}a-\\bar E_1\\\\b-\\bar E_2\\end{bmatrix},\\qquad H=\\begin{bmatrix}1&amp;0\\\\0&amp;1\\end{bmatrix}\"></div><p>실측 열의 평균은 â≈1.411805556 Wh, b̂≈2.907638889 Wh입니다. 각 편미분이 0인 곳은 각 평균입니다. 손실의 단위는 Wh², gradient 성분은 Wh, H의 성분은 무차원입니다. 이 모형에서는 한 열의 상수를 바꿔도 다른 열의 편미분이 바뀌지 않아 교차 성분이 0입니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>관측 변동을 요약한 C와 선택 손실의 H</caption><thead><tr><th scope=\"col\">행렬</th><th scope=\"col\">첫 대각 성분</th><th scope=\"col\">교차 성분</th><th scope=\"col\">둘째 대각 성분</th><th scope=\"col\">단위</th></tr></thead><tbody><tr><th scope=\"row\">16장 실제 중심 공분산 C</th><td>46.388055073</td><td>9.042895930</td><td>77.397719425</td><td>Wh²</td></tr><tr><th scope=\"row\">이 장의 손실 Hessian H</th><td>1</td><td>0</td><td>1</td><td>무차원</td></tr></tbody></table></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 실측 두 열이 함께 변하면 Hessian에도 교차항이 꼭 생기나요?</summary><div><p>자료의 공변동 C와 어떤 함수를 미분할지 정한 H는 서로 다른 대상입니다. 이 손실은 두 제곱을 따로 더하므로 혼합편미분이 0입니다. 관측 공분산의 교차 성분 약 9.0429 Wh²가 없어졌다는 뜻이 아닙니다. 다른 가중치나 두 계수를 결합한 손실을 선택하면 H도 달라질 수 있습니다.</p></div></details><p>그림은 b를 실측 평균에 고정하고 a만 그 평균에서 Δa만큼 바꾸는 계산입니다. 원자료 값과 모형 변화는 구분합니다.</p><div data-case-chart=\"person\"></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 평균점에서 두 상수를 각각 0.5 Wh, −0.25 Wh 바꾸면 손실은?</summary><div><div data-tex=\"\\Delta L=\\frac12[(0.5)^2+(-0.25)^2]=0.15625\\ \\mathrm{Wh}^2\"></div><p>실제 에너지의 변화량이 아니라 선택한 상수 요약의 적합 손실 변화입니다. 이차식이므로 Hessian으로 계산한 값과 원래 1,440행에 다시 대입한 값이 정확히 같습니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 두 열을 Wh 대신 kWh로 적으면 gradient와 Hessian은?</summary><div><p>값과 모형 상수를 모두 1,000으로 나누고 같은 형태의 손실을 kWh²로 정의하면 gradient 숫자는 1,000분의 1이고 Hessian 숫자는 여전히 I입니다. H의 단위는 계속 무차원입니다. 이와 달리 공분산 숫자는 100만분의 1이 됩니다. 무엇의 단위를 바꿨는지 먼저 적어야 미분값을 비교할 수 있습니다.</p></div></details><p>두 에너지 계통에는 여러 가전이 포함됩니다. 기록된 분별 Wh를 전체 가구의 순간전력 kW로 바꾸어 부르지 않으며, 한 가구의 하루에서 개인 행동이나 전국 소비를 추론하지 않습니다.</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=\"math18-sources/household-two-mean-loss-input.csv\" download>실측·선택 모형 CSV</a></p></article><article class=\"case-study\" id=\"hessian-case-company-ko\"><h3>기업 사례 · 매출 비교 모형에 두 조절값을 넣고 교차편미분 찾기</h3><p>Apple의 실제 FY2023 품목 벡터 x로 FY2024 실제 z를 비교합니다. 15장의 동일배수 αx를 확장해 서비스 품목에만 δ를 더하는 참조식 αx+δs를 선택합니다. s=(0,0,0,0,1)입니다. α는 무차원, δ는 백만 명목 USD이고, 모형 값은 실제 공시가 아닙니다. δ를 서비스 사업의 인과효과나 실제 회계 조정이라고 해석하지 않습니다.</p><div data-tex=\"L(\\alpha,\\delta)=\\frac1{2n}\\|X\\theta-z\\|_2^2,\\qquad X=[x\\ \\ s]\\in\\mathbb R^{5\\times2},\\quad\\theta=(\\alpha,\\delta)^{\\mathsf T},\\quad n=5\"></div><div data-tex=\"\\nabla L=\\frac15X^{\\mathsf T}(X\\theta-z),\\qquad H=\\frac15\\begin{bmatrix}50742927363&amp;85200\\\\85200&amp;1\\end{bmatrix}\"></div><p>서비스 행에서는 예측이 α×85,200+δ입니다. α를 바꾸면 서비스 오차가 바뀌고, 따라서 δ 편미분도 바뀝니다. 그 변화가 혼합편미분 Hαδ=Hδα=17,040입니다. 모든 자료가 미분 가능한 다항식 손실에 들어가므로 이 사례는 매끄럽고 혼합편미분의 대칭 조건을 만족합니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>기준 (α=1, δ=0)에서의 미분값과 단위</caption><thead><tr><th scope=\"col\">항목</th><th scope=\"col\">값</th><th scope=\"col\">단위</th></tr></thead><tbody><tr><th scope=\"row\">∂L/∂α</th><td>-182,941,167.800</td><td>(백만 USD)²</td></tr><tr><th scope=\"row\">∂L/∂δ</th><td>-2,193.800</td><td>백만 USD</td></tr><tr><th scope=\"row\">Hαα</th><td>10,148,585,472.600</td><td>(백만 USD)²</td></tr><tr><th scope=\"row\">Hαδ=Hδα</th><td>17,040.000</td><td>백만 USD</td></tr><tr><th scope=\"row\">Hδδ</th><td>0.200</td><td>무차원</td></tr></tbody></table></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 서비스 편미분 −2,193.8은 어떻게 직접 확인하나요?</summary><div><div data-tex=\"\\left.\\frac{\\partial L}{\\partial\\delta}\\right|_{(1,0)}=\\frac{85200-96169}{5}=-2193.8\"></div><p>서비스 선택벡터 s가 마지막 행만 고르기 때문입니다. 이 음수는 α를 1로 고정한 채 작은 양의 δ를 주면 선택한 손실이 1차적으로 감소한다는 뜻입니다. 실제 서비스 매출을 정책으로 바꿀 때의 기울기는 아닙니다.</p></div></details><p>그림은 α=1을 고정하고 δ만 바꾸는 단면입니다. 전체 두 변수의 최적점과, α를 고정한 이 단면의 최소점은 구별합니다. 1차 접선이 음수가 되더라도 실제 제곱손실은 음수가 아닙니다. 접선은 기준점 부근의 1차 근사이며 이차식이 곡률을 보완합니다.</p><div data-case-chart=\"company\"></div><h4>1. 두 변수를 함께 맞추고 다시 검산하기</h4><div data-tex=\"\\widehat\\alpha=\\frac{\\sum_{i=1}^{4}x_i z_i}{\\sum_{i=1}^{4}x_i^2}\\approx0.999543440980,\\qquad\\widehat\\delta=z_5-\\widehat\\alpha x_5\\approx11007.898828504\"></div><p>δ를 자유롭게 두면 서비스 행은 맞출 수 있고, α는 나머지 네 제품 행의 손실로 정해집니다. 전체 손실 최소점의 gradient는 (0,0)입니다. 아래 근사치는 실제 공시 매출과 구분해 적었습니다.</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\">두 계수 참조값 (실측 아님)</th></tr></thead><tbody><tr><th scope=\"row\">iPhone</th><td>200,583</td><td>201,183</td><td>200,491.422</td></tr><tr><th scope=\"row\">Mac</th><td>29,357</td><td>29,984</td><td>29,343.597</td></tr><tr><th scope=\"row\">iPad</th><td>28,300</td><td>26,694</td><td>28,287.079</td></tr><tr><th scope=\"row\">웨어러블·홈·액세서리</th><td>39,845</td><td>37,005</td><td>39,826.808</td></tr><tr><th scope=\"row\">서비스</th><td>85,200</td><td>96,169</td><td>96,169.000</td></tr></tbody></table></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: H의 교차 성분이 있어도 최소점이 유일한가요?</summary><div><div data-tex=\"\\det H=\\frac{43483887363}{25}&gt;0,\\qquad H_{\\alpha\\alpha}&gt;0\"></div><p>이 실수대칭 2×2 H는 양의 정부호입니다. 모든 비영 변화 d에 대해 dᵀHd>0이므로 이 이차 손실의 최소점은 유일합니다. 다만 서로 다른 단위의 두 계수에서 H의 숫자 고유값이나 gradient 크기를 경제적 중요도라고 부르지 않습니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: α를 1에 고정한 단면에서 최소 δ는 전체 최적 δ와 같나요?</summary><div><p>고정 단면에서는 서비스 오차만 δ에 따라 변하므로 δ=96,169−85,200=10,969입니다. 두 계수를 함께 조정할 때의 δ≈11,007.899와 다릅니다. “나머지를 고정한다”는 편미분의 조건이 실제 계산 결과를 바꿉니다.</p></div></details><p>선택한 참조식의 제곱오차 합은 약 11,388,900.951582 (백만 USD)²이며, 이 장의 L은 이를 2n=10으로 나눈 값입니다. 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=\"math18-sources/apple-scale-plus-services-offset-loss.csv\" download>실측·선택 모형 CSV</a></p></article><p><a href=\"math18-sources/chosen-loss-profiles-and-derivatives.csv\" download>계산 시나리오·편미분·1차/2차식 CSV</a> · <a href=\"math18-sources/loss-definitions-parameters-gradients-hessians.csv\" download>손실·계수·정확 분수·Hessian CSV</a> · <a href=\"math18-sources/provenance.json\" download>원자료·가공·단위·SHA-256</a></p></div>",
    "en": "<div class=\"case-studies\"><article class=\"case-study\" id=\"hessian-case-country-en\"><h3>Country case · Move two fitting coefficients separately</h3><p>Use eleven Korean real-GDP-per-capita observations from 2014–2024. Let t=year−2019 in years and fit a+b t. The intercept a has constant 2015 USD/person units; b has constant 2015 USD/person/year units. We differentiate <strong>our chosen fitting loss</strong>, not a causal function describing policy interventions on actual GDP.</p><div data-tex=\"L(a,b)=\\frac1{2n}\\sum_{i=1}^n(a+bt_i-y_i)^2,\\qquad n=11\"></div><h4>1. Vary one input while fixing the other</h4><div data-tex=\"\\frac{\\partial L}{\\partial a}=\\frac1n\\sum_i(a+bt_i-y_i),\\qquad \\frac{\\partial L}{\\partial b}=\\frac1n\\sum_i t_i(a+bt_i-y_i)\"></div><p>The first partial holds b fixed while changing a; the second holds a fixed while changing b. Stack them as a column gradient. The factor 1/(2n) cancels the factor two from differentiating each square.</p><div data-tex=\"\\nabla L=\\frac1nX^{\\mathsf T}(X\\theta-y),\\qquad\\theta=(a,b)^{\\mathsf T},\\qquad H=\\nabla^2L=\\frac1nX^{\\mathsf T}X=\\begin{bmatrix}1&amp;0\\\\0&amp;10\\end{bmatrix}\"></div><p>Centered years sum to zero and their squares sum to 110, so the cross entries vanish. H describes how the gradient changes with coefficients. It is not the covariance matrix of GDP observations.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Reference and optimum computed from actual inputs</caption><thead><tr><th scope=\"col\">Quantity</th><th scope=\"col\">Reference a=33,000, b=700</th><th scope=\"col\">Loss minimum</th></tr></thead><tbody><tr><th scope=\"row\">a</th><td>33,000.000000</td><td>33,290.089779</td></tr><tr><th scope=\"row\">b</th><td>700.000000</td><td>754.475929</td></tr><tr><th scope=\"row\">∂L/∂a</th><td>-290.089779</td><td>0</td></tr><tr><th scope=\"row\">∂L/∂b</th><td>-544.759285</td><td>0</td></tr><tr><th scope=\"row\">L ((2015 USD/person)²)</th><td>100,058.201324</td><td>43,144.027508</td></tr></tbody></table></div><details class=\"case-answer\"><summary>Think first, then reveal: Do the two raw gradient magnitudes rank coefficient importance?</summary><div><p>Their units differ: ∂L/∂a has 2015 USD/person units; ∂L/∂b has (2015 USD/person)×year units. Rescaling a coordinate changes its numerical derivative. Hessian entry (a,a) is dimensionless, (b,b) has year² units, and cross entries have year units. Do not rank importance by unlike-unit numbers.</p></div></details><h4>2. Compare exact loss, first-order tangent and second-order change</h4><p>The plot fixes b=700 and changes a from 33,000. Every point is a calculated scenario, not a new GDP observation. The quadratic expression coincides with exact loss because this loss is a quadratic polynomial. General finite changes can retain a remainder.</p><div data-case-chart=\"country\"></div><details class=\"case-answer\"><summary>Think first, then reveal: At the optimum, what if a increases by 100 and b by 10?</summary><div><div data-tex=\"L(\\widehat\\theta+d)-L(\\widehat\\theta)=\\frac12d^{\\mathsf T}Hd=\\frac12[100^2+10(10)^2]=5500\"></div><p>The first-order term vanishes at zero gradient. Units are (2015 USD/person)², not a policy cost or GDP increment. The finite-change identity is exact for this quadratic loss.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Is checking positive diagonal entries enough for every Hessian?</summary><div><p>Cross entries matter in general. Here H is diagonal with positive entries, so dᵀHd>0 for every nonzero d. The company example includes nonzero cross entries. General extremum conditions follow in the next chapter.</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 · Korean real GDP/person 2014–2024</a> · <a href=\"math18-sources/korea-2014-2024-two-parameter-loss-input.csv\" download>Observations/chosen model CSV</a></p></article><article class=\"case-study\" id=\"hessian-case-person-en\"><h3>Household case · Is data covariance the Hessian of the loss?</h3><p>Use the same 1,440 public UCI kitchen/laundry energy observations in Wh. Choose constants a and b to summarize the channels. This does not assert constant actual consumption or alter meter readings. Give each observation row equal weight.</p><div data-tex=\"L(a,b)=\\frac1{2n}\\sum_i[(E_{i1}-a)^2+(E_{i2}-b)^2],\\qquad n=1440\"></div><div data-tex=\"\\nabla L=\\begin{bmatrix}a-\\bar E_1\\\\b-\\bar E_2\\end{bmatrix},\\qquad H=\\begin{bmatrix}1&amp;0\\\\0&amp;1\\end{bmatrix}\"></div><p>Observed column means are â≈1.411805556 Wh and b̂≈2.907638889 Wh. Each partial vanishes at its mean. Loss has Wh² units, gradient components Wh, and Hessian entries are dimensionless. Changing one constant leaves the other partial unchanged, so cross entries are zero.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Observed variation C versus the selected loss Hessian H</caption><thead><tr><th scope=\"col\">Matrix</th><th scope=\"col\">First diagonal</th><th scope=\"col\">Cross entry</th><th scope=\"col\">Second diagonal</th><th scope=\"col\">Units</th></tr></thead><tbody><tr><th scope=\"row\">Chapter 16 centered covariance C</th><td>46.388055073</td><td>9.042895930</td><td>77.397719425</td><td>Wh²</td></tr><tr><th scope=\"row\">This loss Hessian H</th><td>1</td><td>0</td><td>1</td><td>Dimensionless</td></tr></tbody></table></div><details class=\"case-answer\"><summary>Think first, then reveal: Must covarying data columns create a cross entry in this Hessian?</summary><div><p>Data covariance C and the Hessian H of a specified function are different objects. This loss separately adds two squared errors, so the mixed partial is zero. The actual covariance of about 9.0429 Wh² has not disappeared. Another weighting or coupled loss can give another Hessian.</p></div></details><p>The plot fixes b at its observed mean and varies a by Δa from its mean. All profile points are calculated model changes, distinct from observations.</p><div data-case-chart=\"person\"></div><details class=\"case-answer\"><summary>Think first, then reveal: At the means, what is the loss increase for changes of 0.5 Wh and −0.25 Wh?</summary><div><div data-tex=\"\\Delta L=\\frac12[(0.5)^2+(-0.25)^2]=0.15625\\ \\mathrm{Wh}^2\"></div><p>This changes the fit of a constant summary, not actual physical energy. Since the loss is quadratic, the Hessian calculation equals substitution into every one of the 1,440 records exactly.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: How do gradient and Hessian change when both channels use kWh?</summary><div><p>Divide observations and model constants by 1,000 and define the same loss form in kWh². Numerical gradient entries divide by 1,000, while the dimensionless Hessian remains I. Covariance numbers instead divide by one million. Specify the transformed quantities before comparing derivatives.</p></div></details><p>The circuits contain several appliances. Recorded minute energy in Wh is not instantaneous household power in kW. One household day does not identify personal behavior or national consumption.</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 two submeters (CC BY 4.0)</a> · <a href=\"math18-sources/household-two-mean-loss-input.csv\" download>Observations/chosen model CSV</a></p></article><article class=\"case-study\" id=\"hessian-case-company-en\"><h3>Company case · Two reference-model controls create mixed partials</h3><p>Compare Apple’s actual FY2024 vector z with FY2023 categories x. Extend the common-multiplier reference αx by adding δ only to services: αx+δs, with s=(0,0,0,0,1). α is dimensionless; δ has million nominal USD units. This chosen reference is not a reported figure, a causal services effect or an actual accounting adjustment.</p><div data-tex=\"L(\\alpha,\\delta)=\\frac1{2n}\\|X\\theta-z\\|_2^2,\\qquad X=[x\\ \\ s]\\in\\mathbb R^{5\\times2},\\quad\\theta=(\\alpha,\\delta)^{\\mathsf T},\\quad n=5\"></div><div data-tex=\"\\nabla L=\\frac15X^{\\mathsf T}(X\\theta-z),\\qquad H=\\frac15\\begin{bmatrix}50742927363&amp;85200\\\\85200&amp;1\\end{bmatrix}\"></div><p>The services prediction is α×85,200+δ. Changing α alters its residual and therefore the δ partial. That change gives Hαδ=Hδα=17,040. These polynomial losses are smooth and satisfy the conditions for symmetric mixed partials.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Derivatives and units at reference (α=1, δ=0)</caption><thead><tr><th scope=\"col\">Quantity</th><th scope=\"col\">Value</th><th scope=\"col\">Units</th></tr></thead><tbody><tr><th scope=\"row\">∂L/∂α</th><td>-182,941,167.800</td><td>(million USD)²</td></tr><tr><th scope=\"row\">∂L/∂δ</th><td>-2,193.800</td><td>million USD</td></tr><tr><th scope=\"row\">Hαα</th><td>10,148,585,472.600</td><td>(million USD)²</td></tr><tr><th scope=\"row\">Hαδ=Hδα</th><td>17,040.000</td><td>million USD</td></tr><tr><th scope=\"row\">Hδδ</th><td>0.200</td><td>Dimensionless</td></tr></tbody></table></div><details class=\"case-answer\"><summary>Think first, then reveal: How is the services partial −2,193.8 checked directly?</summary><div><div data-tex=\"\\left.\\frac{\\partial L}{\\partial\\delta}\\right|_{(1,0)}=\\frac{85200-96169}{5}=-2193.8\"></div><p>The indicator s selects only the final row. The negative derivative means a small positive δ, with α fixed at one, initially lowers this chosen loss. It is not the causal derivative of actual services sales.</p></div></details><p>The plot holds α=1 and varies δ. Its restricted minimum differs from the joint two-variable minimum. The first-order tangent can become negative even though exact squared loss cannot. The tangent is local; the quadratic term supplies curvature.</p><div data-case-chart=\"company\"></div><h4>1. Fit both variables and verify again</h4><div data-tex=\"\\widehat\\alpha=\\frac{\\sum_{i=1}^{4}x_i z_i}{\\sum_{i=1}^{4}x_i^2}\\approx0.999543440980,\\qquad\\widehat\\delta=z_5-\\widehat\\alpha x_5\\approx11007.898828504\"></div><p>A free δ fits the services row; the other four product rows determine α. The joint optimum has zero gradient. Keep calculated reference values distinct from actual filings.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Filings versus chosen two-coefficient 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\">Two-coefficient reference (not observed)</th></tr></thead><tbody><tr><th scope=\"row\">iPhone</th><td>200,583</td><td>201,183</td><td>200,491.422</td></tr><tr><th scope=\"row\">Mac</th><td>29,357</td><td>29,984</td><td>29,343.597</td></tr><tr><th scope=\"row\">iPad</th><td>28,300</td><td>26,694</td><td>28,287.079</td></tr><tr><th scope=\"row\">Wearables, Home and Accessories</th><td>39,845</td><td>37,005</td><td>39,826.808</td></tr><tr><th scope=\"row\">Services</th><td>85,200</td><td>96,169</td><td>96,169.000</td></tr></tbody></table></div><details class=\"case-answer\"><summary>Think first, then reveal: Is the minimum unique despite nonzero cross entries?</summary><div><div data-tex=\"\\det H=\\frac{43483887363}{25}&gt;0,\\qquad H_{\\alpha\\alpha}&gt;0\"></div><p>The symmetric 2×2 H is positive definite. Thus dᵀHd>0 for every nonzero d, giving a unique minimum of this quadratic loss. Different coefficient units still prevent interpreting raw Hessian eigenvalues or gradient magnitudes as economic importance.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: With α fixed at one, is the best δ the same as the joint optimum?</summary><div><p>No. On that slice only services residual changes, so δ=96,169−85,200=10,969. Joint fitting instead gives δ≈11,007.899. The “hold other inputs fixed” condition changes the actual calculation.</p></div></details><p>The sum of squared errors is about 11,388,900.951582 (million USD)². This chapter’s L divides it by 2n=10. Unequal 53/52-week fiscal years and nominal units remain. A good fit does not establish forecasting accuracy, valuation or causation.</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, actual category sales</a> · <a href=\"math18-sources/apple-scale-plus-services-offset-loss.csv\" download>Observations/chosen model CSV</a></p></article><p><a href=\"math18-sources/chosen-loss-profiles-and-derivatives.csv\" download>Calculated scenarios, partials and linear/quadratic expressions CSV</a> · <a href=\"math18-sources/loss-definitions-parameters-gradients-hessians.csv\" download>Losses, parameters, exact fractions and Hessians CSV</a> · <a href=\"math18-sources/provenance.json\" download>Inputs, transformations, units and SHA-256</a></p></div>"
  },
  "chartData": {
    "country": [
      {
        "x": -500.0,
        "y": 370103.09069753694,
        "modelY": 245103.09069753694,
        "quadraticY": 370103.09069753694,
        "label": {
          "ko": "-500.00",
          "en": "-500.00"
        }
      },
      {
        "x": -400.0,
        "y": 296094.1128227951,
        "modelY": 216094.11282279514,
        "quadraticY": 296094.1128227951,
        "label": {
          "ko": "-400.00",
          "en": "-400.00"
        }
      },
      {
        "x": -300.0,
        "y": 232085.1349480533,
        "modelY": 187085.1349480533,
        "quadraticY": 232085.1349480533,
        "label": {
          "ko": "-300.00",
          "en": "-300.00"
        }
      },
      {
        "x": -200.0,
        "y": 178076.1570733115,
        "modelY": 158076.1570733115,
        "quadraticY": 178076.1570733115,
        "label": {
          "ko": "-200.00",
          "en": "-200.00"
        }
      },
      {
        "x": -100.0,
        "y": 134067.17919856968,
        "modelY": 129067.17919856968,
        "quadraticY": 134067.17919856968,
        "label": {
          "ko": "-100.00",
          "en": "-100.00"
        }
      },
      {
        "x": 0.0,
        "y": 100058.20132382786,
        "modelY": 100058.20132382786,
        "quadraticY": 100058.20132382786,
        "label": {
          "ko": "0.00",
          "en": "0.00"
        }
      },
      {
        "x": 100.0,
        "y": 76049.22344908604,
        "modelY": 71049.22344908604,
        "quadraticY": 76049.22344908604,
        "label": {
          "ko": "100.00",
          "en": "100.00"
        }
      },
      {
        "x": 200.0,
        "y": 62040.245574344226,
        "modelY": 42040.245574344226,
        "quadraticY": 62040.245574344226,
        "label": {
          "ko": "200.00",
          "en": "200.00"
        }
      },
      {
        "x": 300.0,
        "y": 58031.26769960241,
        "modelY": 13031.267699602407,
        "quadraticY": 58031.26769960241,
        "label": {
          "ko": "300.00",
          "en": "300.00"
        }
      },
      {
        "x": 400.0,
        "y": 64022.28982486059,
        "modelY": -15977.710175139411,
        "quadraticY": 64022.28982486059,
        "label": {
          "ko": "400.00",
          "en": "400.00"
        }
      },
      {
        "x": 500.0,
        "y": 80013.31195011878,
        "modelY": -44986.68804988123,
        "quadraticY": 80013.31195011878,
        "label": {
          "ko": "500.00",
          "en": "500.00"
        }
      }
    ],
    "person": [
      {
        "x": -1.0,
        "y": 62.392887249228394,
        "modelY": 61.892887249228394,
        "quadraticY": 62.392887249228394,
        "label": {
          "ko": "-1.00",
          "en": "-1.00"
        }
      },
      {
        "x": -0.75,
        "y": 62.174137249228394,
        "modelY": 61.892887249228394,
        "quadraticY": 62.174137249228394,
        "label": {
          "ko": "-0.75",
          "en": "-0.75"
        }
      },
      {
        "x": -0.5,
        "y": 62.017887249228394,
        "modelY": 61.892887249228394,
        "quadraticY": 62.017887249228394,
        "label": {
          "ko": "-0.50",
          "en": "-0.50"
        }
      },
      {
        "x": -0.25,
        "y": 61.924137249228394,
        "modelY": 61.892887249228394,
        "quadraticY": 61.924137249228394,
        "label": {
          "ko": "-0.25",
          "en": "-0.25"
        }
      },
      {
        "x": 0.0,
        "y": 61.892887249228394,
        "modelY": 61.892887249228394,
        "quadraticY": 61.892887249228394,
        "label": {
          "ko": "0.00",
          "en": "0.00"
        }
      },
      {
        "x": 0.25,
        "y": 61.924137249228394,
        "modelY": 61.892887249228394,
        "quadraticY": 61.924137249228394,
        "label": {
          "ko": "0.25",
          "en": "0.25"
        }
      },
      {
        "x": 0.5,
        "y": 62.017887249228394,
        "modelY": 61.892887249228394,
        "quadraticY": 62.017887249228394,
        "label": {
          "ko": "0.50",
          "en": "0.50"
        }
      },
      {
        "x": 0.75,
        "y": 62.174137249228394,
        "modelY": 61.892887249228394,
        "quadraticY": 62.174137249228394,
        "label": {
          "ko": "0.75",
          "en": "0.75"
        }
      },
      {
        "x": 1.0,
        "y": 62.392887249228394,
        "modelY": 61.892887249228394,
        "quadraticY": 62.392887249228394,
        "label": {
          "ko": "1.00",
          "en": "1.00"
        }
      }
    ],
    "company": [
      {
        "x": 0.0,
        "y": 13171692.6,
        "modelY": 13171692.6,
        "quadraticY": 13171692.6,
        "label": {
          "ko": "0.00",
          "en": "0.00"
        }
      },
      {
        "x": 2500.0,
        "y": 8312192.6,
        "modelY": 7687192.6,
        "quadraticY": 8312192.6,
        "label": {
          "ko": "2,500.00",
          "en": "2,500.00"
        }
      },
      {
        "x": 5000.0,
        "y": 4702692.6,
        "modelY": 2202692.6,
        "quadraticY": 4702692.6,
        "label": {
          "ko": "5,000.00",
          "en": "5,000.00"
        }
      },
      {
        "x": 7500.0,
        "y": 2343192.6,
        "modelY": -3281807.4,
        "quadraticY": 2343192.6,
        "label": {
          "ko": "7,500.00",
          "en": "7,500.00"
        }
      },
      {
        "x": 10000.0,
        "y": 1233692.6,
        "modelY": -8766307.4,
        "quadraticY": 1233692.6,
        "label": {
          "ko": "10,000.00",
          "en": "10,000.00"
        }
      },
      {
        "x": 12500.0,
        "y": 1374192.6,
        "modelY": -14250807.4,
        "quadraticY": 1374192.6,
        "label": {
          "ko": "12,500.00",
          "en": "12,500.00"
        }
      },
      {
        "x": 15000.0,
        "y": 2764692.6,
        "modelY": -19735307.4,
        "quadraticY": 2764692.6,
        "label": {
          "ko": "15,000.00",
          "en": "15,000.00"
        }
      },
      {
        "x": 17500.0,
        "y": 5405192.6,
        "modelY": -25219807.4,
        "quadraticY": 5405192.6,
        "label": {
          "ko": "17,500.00",
          "en": "17,500.00"
        }
      },
      {
        "x": 20000.0,
        "y": 9295692.6,
        "modelY": -30704307.4,
        "quadraticY": 9295692.6,
        "label": {
          "ko": "20,000.00",
          "en": "20,000.00"
        }
      }
    ]
  },
  "chartMeta": {
    "country": {
      "plotType": "loss-taylor-profile",
      "seriesKeys": [
        "y",
        "modelY",
        "quadraticY"
      ],
      "seriesLabels": {
        "y": {
          "ko": "선택 손실의 정확 계산",
          "en": "Exact calculated chosen loss"
        },
        "modelY": {
          "ko": "기준점의 1차 접선",
          "en": "First-order tangent at reference"
        },
        "quadraticY": {
          "ko": "2차식 (이 사례는 정확식과 겹침)",
          "en": "Quadratic expression (coincides here)"
        }
      },
      "xlabel": {
        "ko": "기준 a=33,000에서의 Δa (2015 USD/명)",
        "en": "Δa from reference a=33,000 (2015 USD/person)"
      },
      "ylabel": {
        "ko": "선택 손실 L ((2015 USD/명)²)",
        "en": "Chosen loss L ((2015 USD/person)²)"
      },
      "legend": {
        "ko": "모든 곡선은 실제 입력으로 정의한 선택 손실의 계산 시나리오 · 2차식은 정확식과 겹침",
        "en": "All curves are scenarios of a chosen loss based on actual inputs · quadratic and exact curves coincide"
      },
      "note": {
        "ko": "원자료의 새 관측이나 현실의 인과 변화가 아닙니다. 다른 매개변수는 고정하며 1차 접선이 음수여도 실제 제곱손실은 음수가 아닙니다.",
        "en": "Not new observations or causal real-world changes. Other parameters are fixed; a negative tangent does not make exact squared loss negative."
      },
      "heldParameter": "b=700"
    },
    "person": {
      "plotType": "loss-taylor-profile",
      "seriesKeys": [
        "y",
        "modelY",
        "quadraticY"
      ],
      "seriesLabels": {
        "y": {
          "ko": "선택 손실의 정확 계산",
          "en": "Exact calculated chosen loss"
        },
        "modelY": {
          "ko": "기준점의 1차 접선",
          "en": "First-order tangent at reference"
        },
        "quadraticY": {
          "ko": "2차식 (이 사례는 정확식과 겹침)",
          "en": "Quadratic expression (coincides here)"
        }
      },
      "xlabel": {
        "ko": "실측 주방 평균에서의 Δa (Wh)",
        "en": "Δa from observed kitchen mean (Wh)"
      },
      "ylabel": {
        "ko": "선택 손실 L (Wh²)",
        "en": "Chosen loss L (Wh²)"
      },
      "legend": {
        "ko": "모든 곡선은 실제 입력으로 정의한 선택 손실의 계산 시나리오 · 2차식은 정확식과 겹침",
        "en": "All curves are scenarios of a chosen loss based on actual inputs · quadratic and exact curves coincide"
      },
      "note": {
        "ko": "원자료의 새 관측이나 현실의 인과 변화가 아닙니다. 다른 매개변수는 고정하며 1차 접선이 음수여도 실제 제곱손실은 음수가 아닙니다.",
        "en": "Not new observations or causal real-world changes. Other parameters are fixed; a negative tangent does not make exact squared loss negative."
      },
      "heldParameter": "b=observed laundry mean"
    },
    "company": {
      "plotType": "loss-taylor-profile",
      "seriesKeys": [
        "y",
        "modelY",
        "quadraticY"
      ],
      "seriesLabels": {
        "y": {
          "ko": "선택 손실의 정확 계산",
          "en": "Exact calculated chosen loss"
        },
        "modelY": {
          "ko": "기준점의 1차 접선",
          "en": "First-order tangent at reference"
        },
        "quadraticY": {
          "ko": "2차식 (이 사례는 정확식과 겹침)",
          "en": "Quadratic expression (coincides here)"
        }
      },
      "xlabel": {
        "ko": "서비스 참조 조절값 δ (백만 명목 USD)",
        "en": "Services-reference offset δ (million nominal USD)"
      },
      "ylabel": {
        "ko": "선택 손실 L ((백만 USD)²)",
        "en": "Chosen loss L ((million USD)²)"
      },
      "legend": {
        "ko": "모든 곡선은 실제 입력으로 정의한 선택 손실의 계산 시나리오 · 2차식은 정확식과 겹침",
        "en": "All curves are scenarios of a chosen loss based on actual inputs · quadratic and exact curves coincide"
      },
      "note": {
        "ko": "원자료의 새 관측이나 현실의 인과 변화가 아닙니다. 다른 매개변수는 고정하며 1차 접선이 음수여도 실제 제곱손실은 음수가 아닙니다.",
        "en": "Not new observations or causal real-world changes. Other parameters are fixed; a negative tangent does not make exact squared loss negative."
      },
      "heldParameter": "alpha=1"
    }
  },
  "models": {
    "losses": {
      "country": {
        "n": 11,
        "normalization": "1/(2*n)",
        "parameterOrder": [
          "a",
          "b"
        ],
        "parameterUnits": [
          "constant2015USD/person",
          "constant2015USD/person/year"
        ],
        "reference": [
          33000.0,
          700.0
        ],
        "optimum": [
          33290.08977874742,
          754.47592853475
        ],
        "optimumExactFractions": [
          "457738734457777/13750000000",
          "3017903714139/4000000000"
        ],
        "gradientAtReference": [
          -290.08977874741817,
          -544.7592853475
        ],
        "gradientAtOptimum": [
          0.0,
          0.0
        ],
        "hessian": [
          [
            1.0,
            0.0
          ],
          [
            0.0,
            10.0
          ]
        ],
        "hessianDeterminant": 10.0,
        "lossAtReference": 100058.20132382786,
        "lossAtOptimum": 43144.027508348896,
        "interpretation": "Differentiation of a specified smooth fitting objective holding observations fixed; not a causal GDP/energy/sales response."
      },
      "person": {
        "n": 1440,
        "normalization": "1/(2*n)",
        "parameterOrder": [
          "a_kitchen",
          "b_laundry"
        ],
        "parameterUnits": [
          "Wh",
          "Wh"
        ],
        "reference": [
          1.4118055555555555,
          2.907638888888889
        ],
        "optimum": [
          1.4118055555555555,
          2.907638888888889
        ],
        "optimumExactFractions": [
          "2033/1440",
          "4187/1440"
        ],
        "gradientAtReference": [
          0.0,
          0.0
        ],
        "gradientAtOptimum": [
          0.0,
          0.0
        ],
        "hessian": [
          [
            1.0,
            0.0
          ],
          [
            0.0,
            1.0
          ]
        ],
        "hessianDeterminant": 1.0,
        "lossAtReference": 61.892887249228394,
        "lossAtOptimum": 61.892887249228394,
        "interpretation": "Differentiation of a specified smooth fitting objective holding observations fixed; not a causal GDP/energy/sales response."
      },
      "company": {
        "n": 5,
        "normalization": "1/(2*n)",
        "parameterOrder": [
          "alpha",
          "delta_services"
        ],
        "parameterUnits": [
          "dimensionless",
          "million nominal USD"
        ],
        "reference": [
          1.0,
          0.0
        ],
        "optimum": [
          0.9995434409800056,
          11007.898828503527
        ],
        "optimumExactFractions": [
          "43464034402/43483887363",
          "159555410920649/14494629121"
        ],
        "gradientAtReference": [
          -182941167.8,
          -2193.8
        ],
        "gradientAtOptimum": [
          0.0,
          0.0
        ],
        "hessian": [
          [
            10148585472.6,
            17040.0
          ],
          [
            17040.0,
            0.2
          ]
        ],
        "hessianDeterminant": 1739355494.52,
        "lossAtReference": 13171692.6,
        "lossAtOptimum": 1138890.095158185,
        "interpretation": "Differentiation of a specified smooth fitting objective holding observations fixed; not a causal GDP/energy/sales response."
      }
    },
    "country": {
      "X": [
        [
          1.0,
          -5.0
        ],
        [
          1.0,
          -4.0
        ],
        [
          1.0,
          -3.0
        ],
        [
          1.0,
          -2.0
        ],
        [
          1.0,
          -1.0
        ],
        [
          1.0,
          0.0
        ],
        [
          1.0,
          1.0
        ],
        [
          1.0,
          2.0
        ],
        [
          1.0,
          3.0
        ],
        [
          1.0,
          4.0
        ],
        [
          1.0,
          5.0
        ]
      ],
      "y": [
        29470.6732991655,
        30171.7906545222,
        31005.4072876388,
        31979.9027302467,
        32852.8887488942,
        33496.3113815643,
        33215.9298928108,
        34792.9397214598,
        35809.0138105144,
        36347.7036392553,
        37048.4264001496
      ],
      "centerYear": 2019
    },
    "household": {
      "meansWh": [
        1.4118055555555555,
        2.907638888888889
      ],
      "actualCenteredCovarianceWh2": [
        [
          46.38805507330247,
          9.04289592978395
        ],
        [
          9.04289592978395,
          77.39771942515432
        ]
      ],
      "covarianceIsNotThisLossHessian": true
    },
    "company": {
      "X": [
        [
          200583.0,
          0.0
        ],
        [
          29357.0,
          0.0
        ],
        [
          28300.0,
          0.0
        ],
        [
          39845.0,
          0.0
        ],
        [
          85200.0,
          1.0
        ]
      ],
      "y": [
        201183,
        29984,
        26694,
        37005,
        96169
      ],
      "categoryOrder": [
        "iPhone",
        "Mac",
        "iPad",
        "Wearables, Home and Accessories",
        "Services"
      ],
      "FY2023": [
        200583,
        29357,
        28300,
        39845,
        85200
      ],
      "restrictedAlpha1BestDelta": 10969,
      "jointSSE": 11388900.951581853
    }
  },
  "enrichment": [
    {
      "kind": "video",
      "title": {
        "ko": "편미분 입문: 하나를 바꾸고 나머지는 고정하기",
        "en": "Partial derivatives, introduction"
      },
      "provider": "Khan Academy",
      "url": "https://www.youtube.com/watch?v=AXqhWeUEtQU",
      "videoId": "AXqhWeUEtQU",
      "creatorPage": "https://en.khanacademy.org/math/multivariable-calculus/multivariable-derivatives/partial-derivatives/v/partial-derivatives-introduction",
      "verifiedOn": "2026-10-22",
      "focus": {
        "ko": "본문의 공식 영어 영상에서 두 입력 중 하나를 고정한다는 뜻을 먼저 확인하세요. 회사 사례의 α 고정 단면과 두 변수 동시 최적점이 왜 다른지 연결합니다.",
        "en": "Use the official English video to understand holding one input fixed. Connect this to the company’s fixed-α slice versus joint optimum."
      },
      "question": {
        "ko": "∂L/∂δ를 계산할 때 α도 함께 바꾸나요?",
        "en": "Does α change when computing ∂L/∂δ?"
      },
      "answer": {
        "ko": "그 편미분에서는 α를 고정합니다. 두 계수를 함께 바꾸는 방향의 변화는 gradient와 변화벡터의 내적으로 계산하는 다른 질문입니다.",
        "en": "Hold α fixed for that partial. Simultaneous changes instead require the gradient paired with a change vector."
      },
      "verificationNote": "Official Khan lesson and matching verified official YouTube title/channel metadata checked. No guessed timestamps, media download or playback claim."
    },
    {
      "kind": "thinker",
      "title": {
        "ko": "루트비히 오토 헤세 · 이차 변화를 표로 정리하기",
        "en": "Ludwig Otto Hesse: organizing second-order structure"
      },
      "provider": "University of St Andrews · MacTutor",
      "url": "https://mathshistory.st-andrews.ac.uk/Biographies/Hesse/",
      "focus": {
        "ko": "대학 아카이브는 헤세(1811–1874)의 대수함수·불변량 연구와 Hessian determinant를 소개합니다. 행렬 전체와 그 행렬식 한 숫자를 구별해 보세요.",
        "en": "The university archive introduces Hesse (1811–1874), algebraic functions, invariants and the Hessian determinant. Distinguish the whole matrix from its determinant."
      },
      "question": {
        "ko": "det H만 알면 모든 함수의 최소점을 판정하나요?",
        "en": "Does det H alone classify minima of every function?"
      },
      "answer": {
        "ko": "아닙니다. 이 장의 실수대칭 2×2 양의 정부호 검사도 한 대각 성분과 행렬식을 함께 봅니다. 일반 극값에서는 정지점·미분가능 조건과 퇴화한 경우도 확인해야 합니다.",
        "en": "No. Even the symmetric 2×2 positive-definiteness test also checks a diagonal entry. General extrema require stationarity, differentiability conditions and care with degenerate cases."
      }
    },
    {
      "kind": "reading",
      "title": {
        "ko": "편미분의 극한 정의와 다른 변수 고정",
        "en": "Limit definitions and holding other variables fixed"
      },
      "provider": "OpenStax · Rice University · Calculus Volume 3 §4.3",
      "url": "https://openstax.org/books/calculus-volume-3/pages/4-3-partial-derivatives",
      "focus": {
        "ko": "정의 (4.12)·(4.13)과 다른 변수를 상수로 두는 설명을 읽습니다. 실측값을 고정하고 선택한 손실의 어떤 매개변수를 미분하는지 적어 보세요.",
        "en": "Read definitions (4.12)/(4.13) and the fixed-other-input explanation. Identify the parameter being differentiated while observations remain fixed."
      },
      "question": {
        "ko": "GDP 사례의 ∂L/∂a에서 관측한 y도 a에 따라 바꾸나요?",
        "en": "Does observed y change with a when calculating the GDP loss partial?"
      },
      "answer": {
        "ko": "이 적합 문제에서는 y와 연도를 고정하고 계수만 바꿉니다. 실제 경제에 개입해 y가 변하는 문제는 별도 모형과 자료가 필요합니다.",
        "en": "No. Hold observed y and years fixed while varying the coefficient. Intervening in the economy to change y requires another model and evidence."
      }
    },
    {
      "kind": "reading",
      "title": {
        "ko": "Gradient의 미분으로 읽는 Hessian",
        "en": "The Hessian as the derivative of the gradient"
      },
      "provider": "Bright, Edelman and Johnson · MIT 18.S096 Matrix Calculus notes §12.1",
      "url": "https://ocw.mit.edu/courses/18-s096-matrix-calculus-for-machine-learning-and-beyond-january-iap-2023/mit18_s096iap23_lec_full.pdf",
      "focus": {
        "ko": "인쇄 87~88쪽 §12.1의 gradient·Hessian·2차 변화식을 읽습니다. 이 장의 손실은 매끄러운 이차다항식이라 2차식이 정확하지만 일반 함수에서는 조건과 나머지를 확인해야 합니다.",
        "en": "Read §12.1, printed pages 87–88, on gradients, Hessians and second-order change. Our smooth quadratic losses have exact quadratic expressions; general functions need regularity and remainder conditions."
      },
      "question": {
        "ko": "1차 근사와 원함수 차이를 Hessian 한 항만으로 언제나 정확히 설명하나요?",
        "en": "Does a Hessian term always exactly account for finite change beyond the linear approximation?"
      },
      "answer": {
        "ko": "일반적으로는 나머지항이 있습니다. 이 사례들은 이차다항식이므로 더 높은 차수 항이 0인 특별한 경우입니다. 혼합편미분의 대칭도 필요한 매끄러움 조건을 확인합니다.",
        "en": "Generally a remainder remains. These quadratic examples have no higher-order terms. Symmetry of mixed partials also requires the appropriate regularity conditions."
      }
    }
  ],
  "sources": [
    {
      "id": "worldbank",
      "provider": "World Bank",
      "title": "NY.GDP.PCAP.KD Korea2014–2024",
      "url": "https://data.worldbank.org/indicator/NY.GDP.PCAP.KD",
      "retrievedOn": "2026-10-20",
      "rawDownloaded": true
    },
    {
      "id": "household",
      "provider": "Hebrail, G. and Berard,A. · UCI",
      "title": "Individual Household Electric Power Consumption",
      "url": "https://archive.ics.uci.edu/dataset/235/individual+household+electric+power+consumption",
      "doi": "10.24432/C58K54",
      "license": "CC BY4.0",
      "retrievedOn": "2026-10-22",
      "rawDownloaded": true
    },
    {
      "id": "apple",
      "provider": "SEC EDGAR/Apple Inc.",
      "title": "Apple2024Form10-K category net sales2023/2024",
      "url": "https://www.sec.gov/Archives/edgar/data/320193/000032019324000123/aapl-20240928.htm",
      "retrievedOn": "2026-10-22",
      "rawDownloaded": true
    },
    {
      "id": "video",
      "provider": "Khan Academy",
      "title": "Partial derivatives, introduction",
      "url": "https://www.youtube.com/watch?v=AXqhWeUEtQU",
      "creatorPage": "https://en.khanacademy.org/math/multivariable-calculus/multivariable-derivatives/partial-derivatives/v/partial-derivatives-introduction",
      "webVerifiedOn": "2026-10-22",
      "rawDownloaded": false
    },
    {
      "id": "hesse",
      "provider": "University of St Andrews·MacTutor",
      "title": "Ludwig Otto Hesse biography",
      "url": "https://mathshistory.st-andrews.ac.uk/Biographies/Hesse/",
      "webVerifiedOn": "2026-10-22",
      "rawDownloaded": false
    },
    {
      "id": "partial",
      "provider": "OpenStax·Rice University",
      "title": "Calculus Volume3 §4.3,definitions4.12/4.13",
      "url": "https://openstax.org/books/calculus-volume-3/pages/4-3-partial-derivatives",
      "webVerifiedOn": "2026-10-22",
      "rawDownloaded": false,
      "readingScope": "Definitions and fixed-variable interpretation, not literal worked-example transcription."
    },
    {
      "id": "hessian",
      "provider": "Bright,Edelman,Johnson·MIT",
      "title": "18.S096 Matrix Calculus notes §12.1 printed87–88",
      "url": "https://ocw.mit.edu/courses/18-s096-matrix-calculus-for-machine-learning-and-beyond-january-iap-2023/mit18_s096iap23_lec_full.pdf",
      "webVerifiedOn": "2026-10-22",
      "rawDownloaded": false,
      "readingScope": "Gradient/Hessian/quadratic approximation under appropriate smoothness; no unqualified universal necessary-PD minimum claim."
    }
  ],
  "review": {
    "reviewType": "AI economics/management applied-case review,not human expert certification.",
    "numericalChecks": {
      "countryOptimum": [
        "33290.08977874741818181818181818181818181818181818181818181818181818182",
        "754.47592853475"
      ],
      "countryReferenceGradient": [
        "-290.0897787474181818181818181818181818181818181818181818181818181818182",
        "-544.7592853475"
      ],
      "countryReferenceLoss": "100058.2013238278620212643563636363636363636363636363636363636363636364",
      "countryOptimumLoss": "43144.02750834889889535957460743801652892561983471074380165289256198347",
      "householdMeansWh": [
        "1.411805555555555555555555555555555555555555555555555555555555555555556",
        "2.907638888888888888888888888888888888888888888888888888888888888888889"
      ],
      "householdMinimumLossWh2": "61.89288724922839506172839506172839506172839506172839506172839506172840",
      "companyOptimum": [
        "0.9995434409800055575587799362592144335649009624172041161489290467050187",
        "11007.89882850352649599194943071493026027043800205420930411124522073241"
      ],
      "companyReferenceGradient": [
        "-182941167.8",
        "-2193.8"
      ],
      "companyHessian": [
        [
          "10148585472.6",
          "17040"
        ],
        [
          "17040",
          "0.2"
        ]
      ],
      "companyHessianDeterminant": "1739355494.52",
      "companySSE": "11388900.95158185211399771328213667004020106977573121904694415855600192",
      "allExactCentralDifferenceAndQuadraticIdentityChecksPassed": true
    },
    "criticalDistinctions": [
      "Differentiatechosenloss,holdingactualobservationsfixed;notcausalGDP/energy/salesresponse.",
      "Allthreelossesusenormalizer1/(2n)withobservationrowcountspecified.",
      "GradientcomponentandHessianentryunitsdependontheparametercoordinates. Rawgradient/eigenvaluemagnitudesarenotcoordinate-freeeconomicimportance.",
      "Data covariance andlossHessianaredifferentobjects;thehouseholdcovariancehasnonzerocrossentrybutthislossHessianI2doesnot.",
      "Thesechosenquadraticobjectivesaresmoothandhaveexactsecond-orderfinite-changeidentities;generalfunctionsneedconditions/remainders.",
      "Companysliceholdsalpha1andbestdelta10969;fulljointfitgivesdifferentdelta11007.8988.",
      "Allloss-profilepointsarecomputedscenarios,notnewmeasurements. Negativefirst-ordertangentsdonotimplynegativeactualsquaredloss.",
      "Actualfilingsandderivedreferencepredictionsremainseparate;unequalfiscalperiods/nominalunitsremain."
    ],
    "studentReviewerResponse": "Independent AI neutral-student/pedagogy review completed2026-10-22,no case changes requested. Reviewed KO/ENcases,models,all5CSVs/provenance,11/1440/5original inputrows andimmutable sourcehashes. Fraction recomputation independently verified losses,gradients,Hessians,two-parameteroptima,finite-directionquadraticTayloridentities,270central-differencechecks plus174profileitems across29rows(444checks). Decimal100comparison relative1e-62passed. Confirmeddata covariance≠lossHessianI2;companyfixed-alpha bestdelta10969 differsfromjoint11007.8988;componentunits andnoncausalinterpretations. Directly checkedMacTutor,OpenStaxdefinitions4.12/4.13,MITprinted87–88. KhanofficialpagebodyunavailableandYouTube429duringreview:no playbackcertification claimed. This isAIstatic/numerical review,not human expert certification.",
    "remaining": "Parent integration andKO/ENmobile/desktopQA;showprofilesascalculatedscenarios withcorrectunits/heldparameters,andseparatecoincidentexact/quadraticlegendlabels.",
    "artifactChecks": {
      "sourceInputsUnchanged": true,
      "downloadLinksExist": true,
      "sourceLinksPreserved": true,
      "uniqueIds": true,
      "profilePoints": {
        "country": 11,
        "person": 9,
        "company": 9
      },
      "exactDerivativeChecksPassed": true
    }
  }
}