Skip to content

Add Kihlstrom-Laffont and Grossman-Hart lectures on firms and financial structure - #408

Merged
mmcky merged 2 commits into
mainfrom
nov_penn6
Nov 11, 2026
Merged

mmcky merged 2 commits into
mainfrom
nov_penn6

Conversation

@mmcky

@mmcky mmcky commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Two new lectures in the Asset Pricing and Finance part, placed after BCG_incomplete_mkts:

  • entrepreneurial_stock_market: Kihlstrom and Laffont (1982), a competitive entrepreneurial model of a stock market, with their 1979 model as the benchmark without a stock market. Covers free entry and the Modigliani-Miller theorem, clienteles, the two-good exchange economy, second-best and first-best efficiency, the value of a stock market, and the "big K, little k" device used to compute each equilibrium. Four exercises, including equilibria with nonclassical price expectations.

  • financial_structure_incentives: Grossman and Hart (1982), debt as a bonding device for a manager whose investment investors cannot observe, drawing on their 1980 takeover paper. Covers bonding equilibria, the sustaining-debt function, underinvestment, comparative statics (noting where Propositions 1 and 7 need qualification), takeovers and dilution, and Leland's comment. Four exercises.

Also adds the bibliography entries both lectures cite.

…al structure

Two new lectures in the Asset Pricing and Finance part, placed after
BCG_incomplete_mkts:

- entrepreneurial_stock_market: Kihlstrom and Laffont (1982), a competitive
  entrepreneurial model of a stock market, with their 1979 model as the
  benchmark without a stock market. Covers free entry and the
  Modigliani-Miller theorem, clienteles, the two-good exchange economy,
  second-best and first-best efficiency, the value of a stock market, and
  the "big K, little k" device used to compute each equilibrium. Four
  exercises, including equilibria with nonclassical price expectations.

- financial_structure_incentives: Grossman and Hart (1982), debt as a bonding
  device for a manager whose investment investors cannot observe, drawing on
  their 1980 takeover paper. Covers bonding equilibria, the sustaining-debt
  function, underinvestment, comparative statics (noting where Propositions 1
  and 7 need qualification), takeovers and dilution, and Leland's comment.
  Four exercises.

Also adds the bibliography entries both lectures cite.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 11, 2026 00:02
@netlify

netlify Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for lustrous-melomakarona-3ee73e ready!

Name Link
🔨 Latest commit 31e5b89
🔍 Latest deploy log https://app.netlify.com/projects/lustrous-melomakarona-3ee73e/deploys/6af3bc20523535822ad3e21d
😎 Deploy Preview https://deploy-preview-408--lustrous-melomakarona-3ee73e.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 project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Note

Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.

🔵 Needs a closer look

The change introduces two substantial lecture notebooks with extensive mathematical content, plotting, and numerical routines, and the correctness and performance of the computed figures/exercises requires human domain review plus a full documentation build to validate runtime and outputs.

No open issues 🎉

What changed in this PR

Adds two new lectures to the Asset Pricing and Finance sequence covering (i) competitive entrepreneurial stock market equilibrium (Kihlstrom–Laffont) and (ii) financial structure as an incentives/bonding device under unobservable investment (Grossman–Hart), with navigation and bibliography updates.

Changes:

  • Added entrepreneurial_stock_market lecture with theory, computational examples, efficiency comparisons, and exercises/solutions.
  • Added financial_structure_incentives lecture with bonding equilibria, sustaining-debt function, comparative statics, takeover discussion, and exercises/solutions.
  • Updated lectures/_toc.yml to include both lectures after BCG_incomplete_mkts and extended quant-econ.bib with required citations.
File Description
lectures/​financial_structure_incentives.md Introduces a new lecture on Grossman–Hart (1982) modeling debt as a bonding device under managerial moral hazard, including numerical illustrations and exercises/solutions.
lectures/​entrepreneurial_stock_market.md Adds a new lecture on Kihlstrom–Laffont (1982) competitive entrepreneurial stock market equilibrium, comparing market structures with examples and exercises/solutions.
lectures/​_toc.yml Registers the two new lectures in the JupyterBook table of contents within the Asset Pricing and Finance part after BCG_incomplete_mkts.
lectures/​_static/​quant-econ.bib Appends BibTeX entries needed to support citations introduced by the two new lectures.

Review effort: Balanced

entrepreneurial_stock_market:
- equilibrium_with_risk_neutral: decide whether the price is r_top by
  testing excess demand for equity capital just below r_top, instead of
  comparing mu_1 (A/r_top + 1) with 1. The grid includes the threshold
  itself, where the two sides are equal only in exact arithmetic; with
  K* from a bounded minimizer they differ by about 1e-8, and under
  scipy 1.18 (used in CI) the comparison fell on the wrong side and
  brentq was called with no sign change. Results are unchanged.
- Shorten two figure captions to six words or fewer (qe-fig-004).
- Bold the list labels in "When is a stock market needed?"
  (qe-writing-005).

financial_structure_incentives:
- Shorten seven figure captions to six words or fewer (qe-fig-004).
- Swap the gh_ex2 and gh_ex3 labels so they follow display order.
- State the Proposition 6 cutoff precisely: the standardized threshold
  below about -0.84, a bankruptcy probability below about 20 percent
  (the exact cutoff is 20.05 percent).

quant-econ.bib: drop Stiglitz1972, which neither lecture cites.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

@github-actions
github-actions Bot temporarily deployed to pull request November 11, 2026 01:01 Inactive
@mmcky

mmcky commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

@thomassargent30 CI was failing on this PR. Here is what went wrong and what I changed; the changes are in 31e5b89, and CI now passes.

What failed

The Exercise 3 solution in entrepreneurial_stock_market (equilibrium_with_risk_neutral) raised ValueError: f(a) and f(b) must have different signs from brentq. The lecture runs fine with scipy 1.16 but fails with scipy 1.18, which CI uses. This isn't a scipy bug. The code sat on a floating-point knife-edge, and the scipy version only decided which side it landed on.

Why

μ_grid deliberately includes the threshold value of $\mu_1$ itself. At that grid point, the function chose between returning r_top and calling brentq by testing μ_1 * (A / r_top + 1) >= 1.

But threshold is computed from $E g_K(K^\ast)$, while the test uses r_top $= E g(K^\ast) / (1 + K^\ast)$. By (esm-kstar) these are equal at the exact $K^\ast$. However, $K^\ast$ comes from minimize_scalar(method='bounded'), which is accurate only to about 1e-7 despite xatol=1e-12, because its stopping rule also has a relative tolerance of order $\sqrt{\epsilon}$. So at the threshold the two sides of the test differ by about 1e-8, and the sign of the difference depends on the minimizer's internals:

scipy threshold * (A / r_top + 1) - 1 what happened
1.16.3 +3.1e-9 returned r_top
1.18.0 −9.7e-9 called brentq, which raised

In the second case, brentq got an upper bracket at $(1 - 10^{-9}) , r_{top}$. Excess demand there should be just below zero, but it was +7.9e-8, because the cautious type's numerically optimal equity is about 1e-7 rather than exactly 0. Both ends of the bracket were positive, so brentq raised.

The fix

The function now tests excess demand for equity capital just below r_top, which is the condition brentq actually needs, instead of comparing two quantities that agree only in exact arithmetic:

r_hi = (1 - 1e-9) * r_top
if excess(r_hi) >= 0:
    return r_top
return brentq(excess, 0.05 * r_top, r_hi, xtol=1e-12)

Economically the test is the same: if the market for equity capital clears just below r_top, the risk-neutral investors can hold every firm and the price is r_top, which by (esm-kstar) is the same as $\mu_1 \ge$ threshold. Every printed output of both lectures is identical before and after the change, under both scipy versions, so no text needed to change.

Also in the same commit (no change to results)

  • Shortened nine figure captions to six words or fewer, following the QuantEcon style guide, for example "Bonding equilibria at fixed debt" and "Market value and leverage across firms".
  • Bolded the list labels Set-up costs, Uncertainty and Risk aversion in "When is a stock market needed?", which the style guide prefers to italics.
  • Swapped the gh_ex2 and gh_ex3 labels so the label numbers follow the order in which the exercises appear. The exercises and the links to them are unchanged.
  • Stated the Proposition 6 cutoff precisely: the third condition holds when the standardized threshold $x / \sigma$ is below about −0.84, that is, when the probability of bankruptcy is below about 20 percent. The exact cutoff is 20.05 percent, so "below 20 percent" was very slightly off.
  • Removed the Stiglitz1972 bibliography entry, which neither lecture cites.

The failed CI run also had no traceback attached. That was a separate bug in the workflow, now handled in #410.

@mmcky

mmcky commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

thanks @thomassargent30

@mmcky
mmcky merged commit 88444ce into main Nov 11, 2026
9 checks passed
@mmcky
mmcky deleted the nov_penn6 branch November 11, 2026 01:47
mmcky added a commit that referenced this pull request Nov 11, 2026
… to diamond1967

#408 added Diamond (1967), "The Role of a Stock Market in a General
Equilibrium Model with Technological Uncertainty", under the key
Diamond1967. lecture-python.myst already holds the same entry, with
identical fields, under diamond1967 (cited in ge_arrow). The lectures
monorepo merges the series' bibliographies into one quant-econ.bib,
which cannot hold two keys that differ only in case, so its nightly
refuses the new key. This renames the entry and the lecture's four
citations to diamond1967; readers see no difference.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMXuHMiWb8victibwcU
mmcky added a commit that referenced this pull request Nov 11, 2026
… to diamond1967 (#411)

… to diamond1967

#408 added Diamond (1967), "The Role of a Stock Market in a General
Equilibrium Model with Technological Uncertainty", under the key
Diamond1967. lecture-python.myst already holds the same entry, with
identical fields, under diamond1967 (cited in ge_arrow). The lectures
monorepo merges the series' bibliographies into one quant-econ.bib,
which cannot hold two keys that differ only in case, so its nightly
refuses the new key. This renames the entry and the lecture's four
citations to diamond1967; readers see no difference.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMXuHMiWb8victibwcU
mmcky added a commit to QuantEcon/lectures that referenced this pull request Nov 11, 2026
QuantEcon/lecture-python-advanced.myst#408 added
entrepreneurial_stock_market and financial_structure_incentives to
advanced's toc, which drift issue #51 reports. One of
them cited Diamond (1967) as Diamond1967, a key intermediate already
holds as diamond1967; QuantEcon/lecture-python-advanced.myst#411
renamed it upstream, and #53 brought the renamed
entry into the merged bibliography, so every key the two lectures cite
now resolves there.

`tools/promote --toc advanced --exclude jax` promotes both, canonical
in advanced with no assets and no rewrites (2 promoted, 72 unchanged,
4 product pages skipped). Advanced's 72 pooled entries, unchanged in
text, record its current pin, aa81cd9, as when advanced was promoted.
`tools/drift-check --accept-toc advanced` then puts advanced's _toc.yml
under the toc watch at aa81cd9, and the README's count of pool
lectures follows, from 298 to 300.


Claude-Session: https://claude.ai/code/session_01WT8bMXuHMiWb8victibwcU

Co-authored-by: Claude Opus 5.5 <[email protected]>

This branch was previously deployed

1 inactive deployment
pull request — 31e5b89c Deployed Nov 11, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants