Skip to content

Commit 47b536c

Browse files
committed
2 parents 2ec5ba0 + ee47b4b commit 47b536c

File tree

12 files changed

+57
-13
lines changed

12 files changed

+57
-13
lines changed

.github/workflows/linkcheck.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Link Checker [Anaconda, Linux]
2+
on:
3+
pull_request:
4+
types: [opened, reopened]
5+
schedule:
6+
# UTC 12:00 is early morning in Australia
7+
- cron: '0 12 * * *'
8+
jobs:
9+
link-check-linux:
10+
name: Link Checking (${{ matrix.python-version }}, ${{ matrix.os }})
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os: ["ubuntu-latest"]
16+
python-version: ["3.9"]
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
- name: Setup Anaconda
21+
uses: conda-incubator/setup-miniconda@v2
22+
with:
23+
auto-update-conda: true
24+
auto-activate-base: true
25+
miniconda-version: 'latest'
26+
python-version: 3.9
27+
environment-file: environment.yml
28+
activate-environment: quantecon
29+
- name: Download "build" folder (cache)
30+
uses: dawidd6/action-download-artifact@v2
31+
with:
32+
workflow: cache.yml
33+
branch: main
34+
name: build-cache
35+
path: _build
36+
- name: Link Checker
37+
shell: bash -l {0}
38+
run: jb build lectures --path-output=./ --builder=custom --custom-builder=linkcheck
39+
- name: Upload Link Checker Reports
40+
uses: actions/upload-artifact@v2
41+
if: failure()
42+
with:
43+
name: linkcheck-reports
44+
path: _build/linkcheck

lectures/_static/quant-econ.bib

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
77
@article{Orcutt_Winokur_69,
88
issn = {00129682, 14680262},
9-
url = {http://www.jstor.org/stable/1909199},
109
abstract = {Monte Carlo techniques are used to study the first order autoregressive time series model with unknown level, slope, and error variance. The effect of lagged variables on inference, estimation, and prediction is described, using results from the classical normal linear regression model as a standard. In particular, use of the t and x^2 distributions as approximate sampling distributions is verified for inference concerning the level and residual error variance. Bias in the least squares estimate of the slope is measured, and two bias corrections are evaluated. Least squares chained prediction is studied, and attempts to measure the success of prediction and to improve on the least squares technique are discussed.},
1110
author = {Guy H. Orcutt and Herbert S. Winokur},
1211
journal = {Econometrica},

lectures/cass_koopmans_1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ This lecture and {doc}`Cass-Koopmans Competitive Equilibrium <cass_koopmans_2>`
3030
and David Cass {cite}`Cass` used to analyze optimal growth.
3131

3232
The model can be viewed as an extension of the model of Robert Solow
33-
described in [an earlier lecture](https://lectures.quantecon.org/py/python_oop.html)
33+
described in [an earlier lecture](https://python-programming.quantecon.org/python_oop.html)
3434
but adapted to make the saving rate be a choice.
3535

3636
(Solow assumed a constant saving rate determined outside the model.)

lectures/geom_series.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ visualization!
769769
# Second view
770770
fig = plt.figure()
771771
T = 3
772-
ax = fig.gca(projection='3d')
772+
ax = plt.subplot(projection='3d')
773773
r = np.arange(0.01, 0.99, 0.005)
774774
g = np.arange(0.011, 0.991, 0.005)
775775

lectures/lagrangian_lqdp.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,8 @@ lq.stationary_values()
670670
671671
The preceding approach to imposing stability on a system of potentially unstable linear difference equations is not limited to linear quadratic dynamic optimization problems.
672672
673-
For example, the same method is used in our [Stability in Linear Rational Expectations Models](https://python.quantecon.org/re_with_feedback.html#Another-perspective) lecture.
673+
For example, the same method is used in our [Stability in Linear Rational Expectations Models](https://python.quantecon.org/re_with_feedback.html#another-perspective) lecture.
674+
674675
675676
Let's try to solve the model described in that lecture by applying the `stable_solution` function defined in this lecture above.
676677

lectures/linear_algebra.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ $x$ that makes the distance $\| y - Ax\|$ as small as possible.
838838
To solve this problem, one can use either calculus or the theory of orthogonal
839839
projections.
840840

841-
The solution is known to be $\hat x = (A'A)^{-1}A'y$ --- see for example chapter 3 of [these notes](https://lectures.quantecon.org/_downloads/course_notes.pdf).
841+
The solution is known to be $\hat x = (A'A)^{-1}A'y$ --- see for example chapter 3 of [these notes](https://python.quantecon.org/_static/lecture_specific/linear_algebra/course_notes.pdf).
842842

843843
### More Columns than Rows
844844

lectures/mle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Let's have a look at the distribution of the data we'll be working with in this
135135

136136
Treisman's main source of data is *Forbes'* annual rankings of billionaires and their estimated net worth.
137137

138-
The dataset `mle/fp.dta` can be downloaded from [here](https://lectures.quantecon.org/_downloads/mle/fp.dta)
138+
The dataset `mle/fp.dta` can be downloaded from [here](https://python.quantecon.org/_static/lecture_specific/mle/fp.dta)
139139
or its [AER page](https://www.aeaweb.org/articles?id=10.1257/aer.p20161068).
140140

141141
```{code-cell} python3

lectures/ols.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Along the way, we'll discuss a variety of topics, including
4747

4848
As an example, we will replicate results from Acemoglu, Johnson and Robinson's seminal paper {cite}`Acemoglu2001`.
4949

50-
* You can download a copy [here](https://economics.mit.edu/files/4123).
50+
* You can download a copy [here](http://economics.mit.edu/files/4123).
5151

5252
In the paper, the authors emphasize the importance of institutions in economic development.
5353

@@ -86,7 +86,7 @@ In this paper,
8686
- economic outcomes are proxied by log GDP per capita in 1995, adjusted for exchange rates.
8787
- institutional differences are proxied by an index of protection against expropriation on average over 1985-95, constructed by the [Political Risk Services Group](https://www.prsgroup.com/).
8888

89-
These variables and other data used in the paper are available for download on Daron Acemoglu's [webpage](https://economics.mit.edu/faculty/acemoglu/data/ajr2001).
89+
These variables and other data used in the paper are available for download on Daron Acemoglu's [webpage](http://economics.mit.edu/faculty/acemoglu/data/ajr2001).
9090

9191
We will use pandas' `.read_stata()` function to read in data contained in the `.dta` files to dataframes
9292

@@ -214,7 +214,7 @@ To view the OLS regression results, we can call the `.summary()`
214214
method.
215215

216216
Note that an observation was mistakenly dropped from the results in the
217-
original paper (see the note located in maketable2.do from Acemoglu's webpage), and thus the
217+
original paper (see the note located in `maketable2.do` from Acemoglu's webpage), and thus the
218218
coefficients differ slightly.
219219

220220
```{code-cell} python3

lectures/opt_transport.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ Here `'F'` stands for "Fortran", and we are using Fortran style column-major ord
376376
377377
(For an alternative approach, using Python's default row-major ordering, see [this
378378
lecture by Alfred
379-
Galichon](https://www.math-econ-code.org/mec-optim-b04).)
379+
Galichon](https://www.math-econ-code.org/dynamic-programming).)
380380
381381
**Interpreting the warning:**
382382

lectures/rational_expectations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
7373
import numpy as np
7474
```
7575

76-
We'll also use the LQ class from QuantEcon.py.
76+
We'll also use the LQ class from `QuantEcon.py`.
7777

7878
```{code-cell} ipython
7979
from quantecon import LQ

lectures/svd_intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ This
668668
669669
Dynamic mode decomposition was introduced by {cite}`schmid2010`,
670670
671-
You can read more about Dynamic Mode Decomposition here [[KBBWP16](https://python.quantecon.org/zreferences.html#id24)] and here [[BK19](https://python.quantecon.org/zreferences.html#id25)] (section 7.2).
671+
You can read more about Dynamic Mode Decomposition here {cite}`DMD_book` and here [[BK19](https://python.quantecon.org/zreferences.html#id25)] (section 7.2).
672672
673673
674674
We want to fit a **first-order vector autoregression**

lectures/wald_friedman.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ This leads to him having a higher expected loss when he puts equal weight on bot
759759
### A Notebook Implementation
760760

761761
To facilitate comparative statics, we provide
762-
a [Jupyter notebook](https://nbviewer.jupyter.org/github/QuantEcon/lecture-python-advanced.notebooks/blob/master/wald_friedman.ipynb) that
762+
a [Jupyter notebook](https://nbviewer.org/github/QuantEcon/lecture-python.notebooks/blob/master/wald_friedman.ipynb) that
763763
generates the same plots, but with sliders.
764764

765765
With these sliders, you can adjust parameters and immediately observe

0 commit comments

Comments
 (0)