Skip to content

Commit 392d839

Browse files
authored
Merge branch 'main' into maint-software
2 parents 288e4ae + e2f75c7 commit 392d839

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+583
-531
lines changed

.github/workflows/cache.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v4
11+
uses: actions/checkout@v5
1212
- name: Setup Anaconda
1313
uses: conda-incubator/setup-miniconda@v3
1414
with:

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Checkout
10-
uses: actions/checkout@v4
10+
uses: actions/checkout@v5
1111
- name: Setup Anaconda
1212
uses: conda-incubator/setup-miniconda@v3
1313
with:

.github/workflows/execution.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
python-version: ["3.13"]
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1818
- uses: conda-incubator/setup-miniconda@v3
1919
with:
2020
auto-update-conda: true
@@ -56,7 +56,7 @@ jobs:
5656
python-version: ["3.13"]
5757
steps:
5858
- name: Checkout
59-
uses: actions/checkout@v4
59+
uses: actions/checkout@v5
6060
- uses: conda-incubator/setup-miniconda@v3
6161
with:
6262
auto-update-conda: true

.github/workflows/linkcheck.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@ jobs:
1313
steps:
1414
# Checkout the live site (html)
1515
- name: Checkout
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v5
1717
with:
1818
ref: gh-pages
1919
- name: Link Checker
2020
id: lychee
2121
uses: lycheeverse/lychee-action@v2
2222
with:
2323
fail: false
24-
args: --accept 403,503 **/*.html
24+
# Configuration is now specified in lychee.toml file
25+
args: **/*.html
2526
- name: Create Issue From File
2627
if: steps.lychee.outputs.exit_code != 0
2728
uses: peter-evans/create-issue-from-file@v5

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v4
12+
uses: actions/checkout@v5
1313
- name: Setup Anaconda
1414
uses: conda-incubator/setup-miniconda@v3
1515
with:

lectures/BCG_incomplete_mkts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ show up in differences in the two types of consumers’ demands for a
242242
typical firm’s bonds and equity, the only two assets that agents can now
243243
trade.
244244

245-
## Asset Markets
245+
## Asset markets
246246

247247
Markets are incomplete: *ex cathedra* we the model builders declare that only equities and bonds issued by representative
248248
firms can be traded.
@@ -548,7 +548,7 @@ $C$’s that appear in the pricing functions, then
548548
- $\check q = q(K,B)$ and
549549
$\check p = p(K,B)$.
550550

551-
## Pseudo Code
551+
## Pseudo code
552552

553553
Before displaying our Python code for computing a BCG incomplete markets equilibrium,
554554
we’ll sketch some pseudo code that describes its logical flow.
3.85 KB
Binary file not shown.
402 Bytes
Loading

lectures/_static/lecture_specific/orth_proj/orth_proj_thm2.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919
\draw[important line, thick] (Z1) -- (O) node[right] {};
2020
\draw[important line, thick] (Py) -- (Z2) node[right] {$S$};
2121
\draw[important line, blue,->] (O) -- (y) node[right] {$y$};
22+
\draw[important line, blue,->] (O) -- (Py') node[anchor = north west, text width=5em] {$P y'$};
2223
\draw[dotted line] (0.54,0.27) -- (0.51,0.33);
2324
\draw[dotted line] (0.57,0.36) -- (0.51,0.33);
2425
\draw[dotted line] (-0.22,-0.11) -- (-0.25,-0.05);
2526
\draw[dotted line] (-0.31,-0.08) -- (-0.25,-0.05);
2627
\draw[dashed line, black] (y) -- (Py);
27-
\draw[dashed line, black] (y') -- (Py') node[anchor = north west, text width=5em] {$P y'$};
28+
\draw[dashed line, black] (y') -- (Py');
2829
\end{tikzpicture}
2930

3031
\end{document}

lectures/additive_functionals.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ import matplotlib.pyplot as plt
7777
from scipy.stats import norm, lognorm
7878
```
7979

80-
## A Particular Additive Functional
80+
## A particular additive functional
8181

8282
{cite}`Hansen_2012_Eca` describes a general class of additive functionals.
8383

@@ -123,7 +123,7 @@ initial condition for $y$.
123123
The nonstationary random process $\{y_t\}_{t=0}^\infty$ displays
124124
systematic but random *arithmetic growth*.
125125

126-
### Linear State-Space Representation
126+
### Linear state-space representation
127127

128128
A convenient way to represent our additive functional is to use a [linear state space system](https://python-intro.quantecon.org/linear_models.html).
129129

@@ -872,7 +872,7 @@ Notice tell-tale signs of these probability coverage shaded areas
872872
* the green one for the stationary component $s_t$ converges to a
873873
constant band
874874

875-
### Associated Multiplicative Functional
875+
### Associated multiplicative functional
876876

877877
Where $\{y_t\}$ is our additive functional, let $M_t = \exp(y_t)$.
878878

@@ -929,7 +929,7 @@ It is interesting to how the martingale behaves as $T \rightarrow +\infty$.
929929

930930
Let's see what happens when we set $T = 12000$ instead of $150$.
931931

932-
### Peculiar Large Sample Property
932+
### Peculiar large sample property
933933

934934
Hansen and Sargent {cite}`Hans_Sarg_book` (ch. 8) describe the following two properties of the martingale component
935935
$\widetilde M_t$ of the multiplicative decomposition
@@ -958,7 +958,7 @@ It remains constant at unity, illustrating the first property.
958958

959959
The purple 95 percent frequency coverage interval collapses around zero, illustrating the second property.
960960

961-
## More About the Multiplicative Martingale
961+
## More about the multiplicative martingale
962962

963963
Let's drill down and study probability distribution of the multiplicative martingale $\{\widetilde M_t\}_{t=0}^\infty$ in
964964
more detail.
@@ -973,7 +973,7 @@ where $H = [F + D(I-A)^{-1} B]$.
973973

974974
It follows that $\log {\widetilde M}_t \sim {\mathcal N} ( -\frac{t H \cdot H}{2}, t H \cdot H )$ and that consequently ${\widetilde M}_t$ is log normal.
975975

976-
### Simulating a Multiplicative Martingale Again
976+
### Simulating a multiplicative martingale again
977977

978978
Next, we want a program to simulate the likelihood ratio process $\{ \tilde{M}_t \}_{t=0}^\infty$.
979979

@@ -984,7 +984,7 @@ After accomplishing this, we want to display and study histograms of $\tilde{M}_
984984

985985
Here is code that accomplishes these tasks.
986986

987-
### Sample Paths
987+
### Sample paths
988988

989989
Let's write a program to simulate sample paths of $\{ x_t, y_{t} \}_{t=0}^{\infty}$.
990990

@@ -1257,7 +1257,7 @@ These probability density functions help us understand mechanics underlying the
12571257
* Enough mass moves toward the right tail to keep $E \widetilde M_T = 1$
12581258
even as most mass in the distribution of $\widetilde M_T$ collapses around $0$.
12591259

1260-
### Multiplicative Martingale as Likelihood Ratio Process
1260+
### Multiplicative martingale as likelihood ratio process
12611261

12621262
[This lecture](https://python.quantecon.org/likelihood_ratio_process.html) studies **likelihood processes**
12631263
and **likelihood ratio processes**.

0 commit comments

Comments
 (0)