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
Copy file name to clipboardExpand all lines: in-work/supply_demand_foundations_v2.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ We shall eventually describe two classic welfare theorems:
30
30
31
31
***first welfare theorem:** for a given a distribution of wealth among consumers, a competitive equilibrium allocation of goods solves a social planning problem.
32
32
33
-
***second welfare theorem:** An allocation of goods to consumers that solves a social planning problem can be supported by a compeitive equilibrium with an appropriate initial distribution of wealth.
33
+
***second welfare theorem:** An allocation of goods to consumers that solves a social planning problem can be supported by a competitive equilibrium with an appropriate initial distribution of wealth.
34
34
35
35
Key infrastructure concepts that we'll encounter in this lecture are
36
36
@@ -128,13 +128,13 @@ supply to demand brings us a **key finding:**
128
128
129
129
It also brings a useful **competitive equilibrium computation strategy:**
130
130
131
-
* after solving the welfare problem for an optimal quantity, we can read a competive equilibrium price from either supply price or demand price at the competitive equilibrium quantity
131
+
* after solving the welfare problem for an optimal quantity, we can read a competitive equilibrium price from either supply price or demand price at the competitive equilibrium quantity
132
132
133
133
Soon we'll derive generalizations of the above demand and supply
134
134
curves from other objects.
135
135
136
136
Our generalizations will extend the preceding analysis of a market for a single good to the analysis
137
-
of $n$ simulataneous markets in $n$ goods.
137
+
of $n$ simultaneous markets in $n$ goods.
138
138
139
139
In addition
140
140
@@ -261,7 +261,7 @@ Consider a single-consumer, multiple-goods economy without production.
261
261
262
262
The only source of goods is the single consumer's endowment vector $e$.
263
263
264
-
A competitive equilibium price vector induces the consumer to choose $c=e$.
264
+
A competitive equilibrium price vector induces the consumer to choose $c=e$.
265
265
266
266
This implies that the equilibrium price vector satisfies
267
267
@@ -293,7 +293,7 @@ where $W$ is measured in "dollars" (or some other **numeraire**) and component $
293
293
294
294
Whether the consumer's budget constraint is {eq}`eq:old2` or {eq}`eq:old2p` and whether we take $W$ as a free parameter or instead as an endogenous variable will affect the consumer's marginal utility of wealth.
295
295
296
-
Consequently, how we set $\mu$ determines whether we are constucting
296
+
Consequently, how we set $\mu$ determines whether we are constructing
297
297
298
298
* a **Marshallian** demand curve, as when we use {eq}`eq:old2` and solve for $\mu$ using equation {eq}`eq:old4` below, or
299
299
* a **Hicksian** demand curve, as when we treat $\mu$ as a fixed parameter and solve for $W$ from {eq}`eq:old2p`.
@@ -578,7 +578,7 @@ $$
578
578
c = (\Pi^\top \Pi + H )^{-1} ( \Pi^\top b - h)
579
579
$$ (eq:old5)
580
580
581
-
This equation is the counterpart of equilbrium quantity {eq}`eq:old1` for the scalar $n=1$ model with which we began.
581
+
This equation is the counterpart of equilibrium quantity {eq}`eq:old1` for the scalar $n=1$ model with which we began.
582
582
583
583
### General $\mu\neq 1$ case
584
584
@@ -671,7 +671,7 @@ Thus, as for the single-good case, with multiple goods a competitive equilib
671
671
672
672
(This is another version of the first welfare theorem.)
673
673
674
-
We can deduce a competitive equilbrium price vector from either
674
+
We can deduce a competitive equilibrium price vector from either
In the class of multiple consumer economies that we are studying here, it turns out that there
767
767
exists a single **representative consumer** whose preferences and endowments can be deduced from lists of preferences and endowments for the separate individual consumers.
Copy file name to clipboardExpand all lines: lectures/business_cycle.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,11 +15,11 @@ kernelspec:
15
15
16
16
## Overview
17
17
18
-
This lecture is about illustrateing business cycles in different countries and period.
18
+
This lecture is about illustrating business cycles in different countries and period.
19
19
20
20
The business cycle refers to the fluctuations in economic activity over time. These fluctuations can be observed in the form of expansions, contractions, recessions, and recoveries in the economy.
21
21
22
-
In this lecture, we will see expensions and contractions of economies from 1960s to the recent pandemic using [World Bank API](https://documents.worldbank.org/en/publication/documents-reports/api).
22
+
In this lecture, we will see expansions and contractions of economies from 1960s to the recent pandemic using [World Bank API](https://documents.worldbank.org/en/publication/documents-reports/api).
23
23
24
24
In addition to what's in Anaconda, this lecture will need the following libraries to get World bank data
25
25
@@ -49,7 +49,7 @@ So let's explore how to query data together.
49
49
50
50
We can use `wb.series.info` with parameter `q` to query available data from the World Bank (`imfpy. searches.database_codes()` in `imfpy`)
51
51
52
-
For example, GDP growth is a key indicator to show the expension and contraction of level of economic activities.
52
+
For example, GDP growth is a key indicator to show the expansion and contraction of level of economic activities.
53
53
54
54
Let's retrive GDP growth data together
55
55
@@ -97,7 +97,7 @@ wb.series.info(q='consumption')
97
97
wb.series.info(q='capital account') # TODO: Check if it is to be plotted
Copy file name to clipboardExpand all lines: lectures/long_run_growth.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,8 +148,8 @@ ax.set_ylabel("GDP per capita (current US$) ")
148
148
149
149
### Plot for lower middle income and low income
150
150
151
-
Finally, we compare time-series graphs of GDP per capita between a lower middle income country and a low income country. Again, keeping Pakistan fixed in our set as a lower middle income country, we choose Democratic Republic of Congo as our second country from a low income group. Congo is chosen for no particular reason apart from its unstable political atmoshpere and a dwindling economy.
152
-
On comapring we see quite a bit of difference between these countries. With Pakistan's GDP per capita being almost four times as much. Further strengthning our assumption that countries from different income groups can be quite different.
151
+
Finally, we compare time-series graphs of GDP per capita between a lower middle income country and a low income country. Again, keeping Pakistan fixed in our set as a lower middle income country, we choose Democratic Republic of Congo as our second country from a low income group. Congo is chosen for no particular reason apart from its unstable political atmosphere and a dwindling economy.
152
+
On comparing we see quite a bit of difference between these countries. With Pakistan's GDP per capita being almost four times as much. Further strengthening our assumption that countries from different income groups can be quite different.
Copy file name to clipboardExpand all lines: lectures/lp_intro.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
@@ -412,7 +412,7 @@ By deploying the following steps, any linear programming problem can be transfor
412
412
413
413
1. **Objective Function:** If a problem is originally a constrained **maximization** problem, we can construct a new objective function that is the additive inverse of the original objective function. The transformed problem is then a **minimization** problem.
414
414
415
-
2. **Decision Variables:** Given a variable $x_j$ satisfying $x_j \le 0$, we can introduce a new variable $x_j' = - x_j$ and subsitute it into original problem. Given a free variable $x_i$ with no restriction on its sign, we can introduce two new variables $x_j^+$ and $x_j^-$ satisfying $x_j^+, x_j^- \ge 0$ and replace $x_j$ by $x_j^+ - x_j^-$.
415
+
2. **Decision Variables:** Given a variable $x_j$ satisfying $x_j \le 0$, we can introduce a new variable $x_j' = - x_j$ and substitute it into original problem. Given a free variable $x_i$ with no restriction on its sign, we can introduce two new variables $x_j^+$ and $x_j^-$ satisfying $x_j^+, x_j^- \ge 0$ and replace $x_j$ by $x_j^+ - x_j^-$.
416
416
417
417
3. **Inequality constraints:** Given an inequality constraint $\sum_{j=1}^n a_{ij}x_j \le 0$, we can introduce a new variable $s_i$, called a **slack variable** that satisfies $s_i \ge 0$ and replace the original constraint by $\sum_{j=1}^n a_{ij}x_j + s_i = 0$.
Copy file name to clipboardExpand all lines: lectures/simple_linear_regression.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ Let us consider a simple dataset of 10 observations for variables $x_i$ and $y_i
44
44
|9| 1800 | 27 |
45
45
|10 | 250 | 2 |
46
46
47
-
Let us think about $y_i$ as sales for an ice-cream cart, while $x_i$ is a variable that records the day's temperature in Celcius.
47
+
Let us think about $y_i$ as sales for an ice-cream cart, while $x_i$ is a variable that records the day's temperature in Celsius.
48
48
49
49
```{code-cell} ipython3
50
50
x = [32, 21, 24, 35, 10, 11, 22, 21, 27, 2]
@@ -54,7 +54,7 @@ df.columns = ['X', 'Y']
54
54
df
55
55
```
56
56
57
-
We can use a scatter plot of the data to see the relationship between $y_i$ (ice-cream sales in dollars (\$\'s)) and $x_i$ (degrees celcius).
57
+
We can use a scatter plot of the data to see the relationship between $y_i$ (ice-cream sales in dollars (\$\'s)) and $x_i$ (degrees Celsius).
58
58
59
59
```{code-cell} ipython3
60
60
ax = df.plot(
@@ -407,9 +407,9 @@ df.dropna(inplace=True)
407
407
df
408
408
```
409
409
410
-
We have now droped the number of rows in our DataFrame from 62156 to 12445 removing a lot of empty data relationships.
410
+
We have now dropped the number of rows in our DataFrame from 62156 to 12445 removing a lot of empty data relationships.
411
411
412
-
Now we have a dataset containing life expectency and GDP per capita for a range of years.
412
+
Now we have a dataset containing life expectancy and GDP per capita for a range of years.
413
413
414
414
It is always a good idea to spend a bit of time understanding what data you actually have.
415
415
@@ -458,8 +458,8 @@ df.plot(x='gdppc', y='life_expectency', kind='scatter', xlabel="GDP per capita"
458
458
459
459
This data shows a couple of interesting relationships.
460
460
461
-
1. there are a number of countries with similar GDP per capita levels but a wide range in Life Expectency
462
-
2. there appears to be a positive relationship between GDP per capita and life expectency. Countries with higher GDP per capita tend to have higher life expectency outcomes
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
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 Expectency (Years)", logx=True);
473
+
df.plot(x='gdppc', y='life_expectency', 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.
@@ -488,7 +488,7 @@ df
488
488
```{code-cell} ipython3
489
489
data = df[['log_gdppc', 'life_expectency']].copy() # Get Data from DataFrame
0 commit comments