You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 02c67ca
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: lectures/input_output.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,7 +118,7 @@ A basic framework for their analysis is
118
118
119
119
120
120
121
-
After introducing the input-ouput model, we describe some of its connections to {doc}`linear programming lecture <lp_intro>`.
121
+
After introducing the input-output model, we describe some of its connections to {doc}`linear programming lecture <lp_intro>`.
122
122
123
123
124
124
## Input output analysis
@@ -307,7 +307,7 @@ L
307
307
```
308
308
309
309
```{code-cell} ipython3
310
-
x = L @ d # solving for gross ouput
310
+
x = L @ d # solving for gross output
311
311
x
312
312
```
313
313
@@ -434,7 +434,7 @@ $$
434
434
435
435
The primal problem chooses a feasible production plan to minimize costs for delivering a pre-assigned vector of final goods consumption $d$.
436
436
437
-
The dual problem chooses prices to maxmize the value of a pre-assigned vector of final goods $d$ subject to prices covering costs of production.
437
+
The dual problem chooses prices to maximize the value of a pre-assigned vector of final goods $d$ subject to prices covering costs of production.
438
438
439
439
By the [strong duality theorem](https://en.wikipedia.org/wiki/Dual_linear_program#Strong_duality),
440
440
optimal value of the primal and dual problems coincide:
@@ -482,7 +482,7 @@ plt.show()
482
482
483
483
## Leontief inverse
484
484
485
-
We have discussed that gross ouput $x$ is given by {eq}`eq:inout_2`, where $L$ is called the Leontief Inverse.
485
+
We have discussed that gross output $x$ is given by {eq}`eq:inout_2`, where $L$ is called the Leontief Inverse.
486
486
487
487
Recall the {doc}`Neumann Series Lemma <eigen_II>` which states that $L$ exists if the spectral radius $r(A)<1$.
488
488
@@ -551,7 +551,7 @@ The above figure indicates that manufacturing is the most dominant sector in the
551
551
552
552
### Output multipliers
553
553
554
-
Another way to rank sectors in input output networks is via outuput multipliers.
554
+
Another way to rank sectors in input output networks is via output multipliers.
555
555
556
556
The **output multiplier** of sector $j$ denoted by $\mu_j$ is usually defined as the
557
557
total sector-wide impact of a unit change of demand in sector $j$.
df.plot(x='gdppc', y='life_expectency', kind='scatter', xlabel="GDP per capita", ylabel="Life Expectency (Years)",);
456
+
df.plot(x='gdppc', y='life_expectancy', kind='scatter', xlabel="GDP per capita", ylabel="Life Expectancy (Years)",);
457
457
```
458
458
459
459
This data shows a couple of interesting relationships.
460
460
461
461
1. there are a number of countries with similar GDP per capita levels but a wide range in Life Expectancy
462
-
2. there appears to be a positive relationship between GDP per capita and life expectancy. Countries with higher GDP per capita tend to have higher life expectency outcomes
462
+
2. there appears to be a positive relationship between GDP per capita and life expectancy. Countries with higher GDP per capita tend to have higher life expectancy outcomes
463
463
464
464
Even though OLS is solving linear equations -- one option we have is to transform the variables, such as through a log transform, and then use OLS to estimate the transformed variables
465
465
@@ -470,7 +470,7 @@ ln -> ln == elasticities
470
470
By specifying `logx` you can plot the GDP per Capita data on a log scale
471
471
472
472
```{code-cell} ipython3
473
-
df.plot(x='gdppc', y='life_expectency', kind='scatter', xlabel="GDP per capita", ylabel="Life Expectancy (Years)", logx=True);
473
+
df.plot(x='gdppc', y='life_expectancy', kind='scatter', xlabel="GDP per capita", ylabel="Life Expectancy (Years)", logx=True);
474
474
```
475
475
476
476
As you can see from this transformation -- a linear model fits the shape of the data more closely.
@@ -486,11 +486,11 @@ df
486
486
**Q4:** Use {eq}`eq:optimal-alpha` and {eq}`eq:optimal-beta` to compute optimal values for $\alpha$ and $\beta$
487
487
488
488
```{code-cell} ipython3
489
-
data = df[['log_gdppc', 'life_expectency']].copy() # Get Data from DataFrame
489
+
data = df[['log_gdppc', 'life_expectancy']].copy() # Get Data from DataFrame
Copy file name to clipboardExpand all lines: lectures/time_series_with_matrices.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -504,7 +504,7 @@ print("Sigma_y = ", Sigma_y)
504
504
505
505
Notice that the covariance between $y_t$ and $y_{t-1}$ -- the elements on the superdiagonal -- are **not** identical.
506
506
507
-
This is is an indication that the time series respresented by our $y$ vector is not **stationary**.
507
+
This is is an indication that the time series represented by our $y$ vector is not **stationary**.
508
508
509
509
To make it stationary, we'd have to alter our system so that our **initial conditions** $(y_1, y_0)$ are not fixed numbers but instead a jointly normally distributed random vector with a particular mean and covariance matrix.
0 commit comments