Professional Documents
Culture Documents
Glucose (𝐶6 𝐻12 𝑂6 ) with oxygen produces carbon dioxide and water.
The chemical equation is
𝑂2 + 𝐶6 𝐻12 𝑂6 → 𝐶𝑂2 + 𝐻2 𝑂
◼ Compare the number of each atom on the left side with the number on the right
𝐎: 2𝑥 + 6𝑦 = 2𝑧 + 𝑤
𝐂: 6𝑦 = 𝑧
H: 12𝑦 = 2𝑤
Wassily Leontief
A simple economy of three sectors
The final demand for coal, steel, and electricity are 10, 5,
6, respectively.
Power Iron-Steel
Question: How much coal, steel, and electricity should be industry industry
produced to meet the final demand?
A simple economy of three sectors
Coal Steel Electric
Coal 0.2 0.3 0.2
Question: How much coal, steel, and electricity should be
Steel 0.4 0.1 0.2
produced to meet the final demand?
Electric 0.1 0.3 0.2
795
32
1985 24.84
𝐱= ≈ 20.68
96 18.36
1175
64
Application 3. Linear regression
◼ Linear regression:
𝑦𝑖 = 𝛽0 + 𝛽1 𝑥1,𝑖 + 𝛽2 𝑥2,𝑖 + · · · +𝛽𝐾 𝑥𝑘,𝑖 + 𝜀𝑖 , where 𝑖 = 1,2, … , 𝑛
𝒀 = 𝑋𝜷 + 𝛆
• To find the 𝜷 that minimizes the sum of squared residuals, we need to take the derivative
of Eq. 1 with respect to 𝜷 . This gives us the following equation:
𝝏𝒆𝑇 𝒆
= − 2𝑋 𝑇 𝒀 + 2𝑋 𝑇 𝑋𝜷 =𝟎
𝝏𝜷
• To check this is a minimum, we would take the derivative of this with respect to
𝛽መ again – this gives us 𝑋 𝑇 𝑋, which is positive definite if X is of full rank.
Ordinary least squares (OLS) estimator 𝒀 = 𝑋𝜷 + 𝛆
= 𝑋𝑇 𝒀
𝑋 𝑇 𝑋𝜷
= (𝑋 𝑇 𝑋)−1 𝑋 𝑇 Y
𝜷