Skip to content

[commod_price] Update editorial suggestions #443

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jul 8, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions lectures/commod_price.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ s = yf.download('CT=F', '2016-1-1', '2023-4-1')['Adj Close']
fig, ax = plt.subplots()

ax.plot(s, marker='o', alpha=0.5, ms=1)
ax.set_ylabel('price', fontsize=12)
ax.set_ylabel('cotton price in USD', fontsize=12)
ax.set_xlabel('date', fontsize=12)

plt.show()
Expand Down Expand Up @@ -138,7 +138,7 @@ We assume that the sequence $\{ Z_t \}_{t \geq 1}$ is {ref}`IID <iid-theorem>` w
Speculators can store the commodity between periods, with $I_t$ units
purchased in the current period yielding $\alpha I_t$ units in the next.

Here $\alpha \in (0,1)$ is a depreciation rate for the commodity.
In general, $\alpha$ is a factor. Here $\alpha \in (0,1)$ is a depreciation rate for the commodity.

For simplicity, the risk free interest rate is taken to be
zero, so expected profit on purchasing $I_t$ units is
Expand Down Expand Up @@ -173,6 +173,7 @@ $$
\alpha \mathbb{E}_t \, p_{t+1} - p_t \leq 0
$$ (eq:arbi)

This means that if the expected price is lower than the current price, there is no room for arbitrage.

Profit maximization gives the additional condition

Expand All @@ -181,7 +182,7 @@ $$
$$ (eq:pmco)


We also require that the market clears in each period.
We also require that the market clears, with supply equaling demand in each period.

We assume that consumers generate demand quantity $D(p)$ corresponding to
price $p$.
Expand Down Expand Up @@ -233,7 +234,7 @@ conditions above.
More precisely, we seek a $p$ such that [](eq:arbi) and [](eq:pmco) hold for
the corresponding system [](eq:eosy).

To this end, suppose that there exists a function $p^*$ on $S$
To this end, we apply the idea of [**ansatz**](https://en.wikipedia.org/wiki/Ansatz) here by supposing that there exists a function $p^*$ on $S$
satisfying

$$
Expand Down Expand Up @@ -283,7 +284,7 @@ But then $D(p^*(X_t)) = X_t$ and $I_t = I(X_t) = 0$.

As a consequence, both [](eq:arbi) and [](eq:pmco) hold.

We have found an equilibrium.
We have found an equilibrium, which verifies the ansatz.


### Computing the equilibrium
Expand Down