Skip to content

Add lecture on commodity price model#172

Merged
HengchengZhang merged 5 commits intomainfrom
add_commod_price
Apr 28, 2023
Merged

Add lecture on commodity price model#172
HengchengZhang merged 5 commits intomainfrom
add_commod_price

Conversation

@jstac
Copy link
Contributor

@jstac jstac commented Apr 23, 2023

Closes #145

Could someone please do a first review. I'm sure there will be typos.

Then I want to discuss adding an exercise. In the exercise, we might change harvests to a Markov process.

It would be good to add in the interest rate and we could make it stochastic.

Still need to add a reference to https://johnstachurski.net/edtc, where a more formal treatment with proofs can be found (in Ch 6).

@netlify
Copy link

netlify bot commented Apr 23, 2023

Deploy Preview for taupe-gaufre-c4e660 ready!

Name Link
🔨 Latest commit 7fbf4e7
🔍 Latest deploy log https://app.netlify.com/sites/taupe-gaufre-c4e660/deploys/644b11e78551560008578990
😎 Deploy Preview https://deploy-preview-172--taupe-gaufre-c4e660.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions
Copy link

github-actions bot commented Apr 23, 2023

@jstac
Copy link
Contributor Author

jstac commented Apr 23, 2023

@HengchengZhang could you please fix the merge conflict?

You will need to expand the bib file to include all new references from the open PRs.

@HengchengZhang
Copy link
Member

Hi @jstac, fixed by merging changes from main.

@jstac
Copy link
Contributor Author

jstac commented Apr 24, 2023

@shlff could you please review? Thanks.

Copy link
Member

@shlff shlff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for writing this great lecture @jstac . I've found the theory of commodity pricing very interesting and useful.

Please find my comments below.

1. can be traded by speculators and
1. have intrinsic value to consumers.

Total demand is the sum of consumer demand and demand by spectulators.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spectulators -> speculators?


Regarding quantities,

* supply is the sum of of carryover by speculators and the current harvest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sum of of -> sum of


## The Model

Consider a market for a single commodity, whose price is given at $t$ by
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is given at $t$ -> is given at time $t$?

We now know that an equilibrium can be obtained by finding a function $p^*$
that satisfies [](eq:dopf).

It can be shown that, under mild conditions there is exactly on function on
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exactly on function on -> exactly one function on

ax.plot(grid, price, 'k-', alpha=0.5, lw=2, label=r'$p^*$')
ax.legend()

plt.show()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we add x and y labels for the plot above?

error = max(np.abs(new_price - price))
price = new_price

ax.plot(grid, price, 'k-', alpha=0.5, lw=2, label=r'$p^*$')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we say label=r'approximation of $p^*$' instead?

@jstac
Copy link
Contributor Author

jstac commented Apr 28, 2023

Thanks @shlff , nice work, much appeciated.

@jstac jstac added the ready label Apr 28, 2023
@HengchengZhang
Copy link
Member

Many thanks @jstac and @shlff. I noticed that Shu's comments haven't been solved yet, but I also had a look at the commit John just made so I will assume they are solved.

Could you please give me a thumb up to confirm this?

@HengchengZhang HengchengZhang merged commit 4e5dd39 into main Apr 28, 2023
@HengchengZhang HengchengZhang deleted the add_commod_price branch April 28, 2023 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a lecture on the commodity pricing model

3 participants