Skip to content

Commit b51ec91

Browse files
authored
MAINT: Upgrade anaconda and README (#398)
* upgrade to anaconda=2024.02 * update to standard readme * update status page with diagnostic information * fix space * update reference style * tmp: disable build cache for full build * remove interpolation in lecture series * Revert "tmp: disable build cache for full build" This reverts commit 7a09aae.
1 parent 5d1472e commit b51ec91

File tree

6 files changed

+30
-46
lines changed

6 files changed

+30
-46
lines changed

README.md

+10-36
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,16 @@
1-
# lecture-python-intro
1+
# A First Course in Quantitative Economics with Python
22

3-
An undergraduate lecture series for the foundations of computational economics
3+
An Undergraduate Lecture Series for the Foundations of Computational Economics
44

5-
## Content ideas
5+
## Jupyter notebooks
66

7-
Content ideas in no particular order.
7+
Jupyter notebook versions of each lecture are available for download
8+
via the website.
89

9-
Open individual issues and PRs for the ones we decide to add.
10+
## Contributions
1011

11-
1. Geometric Series (existing lecture)
12-
2. Leontief Systems (from Networks Book)
13-
3. Luenberger
14-
4. IO Visualizations (from Networks Book)
15-
5. PyPGM (Eileen Nielson ... Youtube Star)
16-
6. Baby Version of https://python.quantecon.org/re_with_feedback.html (Cagan Model)
17-
7. Baby Version of "unpleasant arithmetic and Friedmans optimal quantity of money"
18-
8. Schelling Segregation Model
19-
9. Solow Model
20-
10. Simulations of Wealth Distribution
21-
11. Baby model of Lake Model (Eigenvalue Extension)
22-
12. Diamond Dybvig Model
23-
13. Moral Harzard - Wallace
24-
14. Philips Curve and Nairu
25-
15. Baby version of the Markov Chain Lecture
26-
16. Baby linear programming lecture
27-
17. Basic Nonlinear Demand and Supply (non-linear solver) OOP lecture
28-
18. Asset Pricing (Harrison/Kreps Model)
29-
19. Two Models of Asset Bubbles
30-
20. cobweb model -- start people thinking about expectations
31-
21. social mobility lecture
32-
22. Baby version of cattle cycles model
33-
23. Bi-matrix games.
34-
24. Shortest path lecture (existing)
35-
25. Pricing an American option
36-
26. Baby version of LLN / CLT lecture --- less maths, more simulation, all in one dimension
37-
27. Baby version of heavy tails lecture
38-
30. Lecture on solving linear equations and matrix algebra
39-
31. Lecture on eigenvalues, Perron-Frobenius and the Neumann series lemma
40-
32. Overlapping generations
12+
To comment on the lectures please add to or open an issue in the issue tracker (see above).
4113

42-
Get Tom's network intermediary paper.
14+
We welcome pull requests!
15+
16+
Please read the [QuantEcon style guide](https://manual.quantecon.org/intro.html) first, so that you can match our style.

environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ channels:
44
- conda-forge
55
dependencies:
66
- python=3.11
7-
- anaconda=2023.09
7+
- anaconda=2024.02
88
- pip
99
- pip:
1010
- jupyter-book==0.15.1

lectures/_config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ latex:
3737
sphinx:
3838
extra_extensions: [sphinx_multitoc_numbering, sphinxext.rediraffe, sphinx_exercise, sphinx_togglebutton, sphinx.ext.intersphinx, sphinx_proof, sphinx_tojupyter]
3939
config:
40+
bibtex_reference_style: author_year
4041
# false-positive links
4142
linkcheck_ignore: ['https://doi.org/https://doi.org/10.2307/1235116', 'https://math.stackexchange.com/*', 'https://stackoverflow.com/*']
4243
# myst-nb config

lectures/heavy_tails.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
1919
```{code-cell} ipython3
2020
:tags: [hide-output]
2121
22-
!pip install --upgrade yfinance pandas_datareader interpolation
22+
!pip install --upgrade yfinance pandas_datareader
2323
```
2424

2525
We use the following imports.
@@ -31,7 +31,6 @@ import yfinance as yf
3131
import pandas as pd
3232
import statsmodels.api as sm
3333
34-
from interpolation import interp
3534
from pandas_datareader import wb
3635
from scipy.stats import norm, cauchy
3736
from pandas.plotting import register_matplotlib_converters
@@ -602,7 +601,7 @@ def empirical_ccdf(data,
602601
fw = np.empty_like(aw, dtype='float64')
603602
for i, a in enumerate(aw):
604603
fw[i] = a / np.sum(aw)
605-
pdf = lambda x: interp(data, fw, x)
604+
pdf = lambda x: np.interp(x, data, fw)
606605
data = np.sort(data)
607606
j = 0
608607
for i, d in enumerate(data):

lectures/inequality.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ We will install the following libraries.
6868
```{code-cell} ipython3
6969
:tags: [hide-output]
7070
71-
!pip install --upgrade quantecon interpolation
71+
!pip install quantecon
7272
```
7373

7474
And we use the following imports.
@@ -79,7 +79,6 @@ import numpy as np
7979
import matplotlib.pyplot as plt
8080
import quantecon as qe
8181
import random as rd
82-
from interpolation import interp
8382
```
8483

8584
## The Lorenz curve
@@ -746,7 +745,7 @@ Here is one solution:
746745
747746
```{code-cell} ipython3
748747
def lorenz2top(f_val, l_val, p=0.1):
749-
t = lambda x: interp(f_val, l_val, x)
748+
t = lambda x: np.interp(x, f_val, l_val)
750749
return 1- t(1 - p)
751750
```
752751

lectures/status.md

+14-3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@ This table contains the latest execution statistics.
1818

1919
(status:machine-details)=
2020

21-
These lectures are built on `linux` instances through `github actions` and `amazon web services (aws)` to
22-
enable access to a `gpu`. These lectures are built on a [p3.2xlarge](https://aws.amazon.com/ec2/instance-types/p3/)
23-
that has access to `8 vcpu's`, a `V100 NVIDIA Tesla GPU`, and `61 Gb` of memory.
21+
These lectures are built on `linux` instances through `github actions`.
22+
23+
These lectures are using the following python version
24+
25+
```{code-cell} ipython
26+
!python --version
27+
```
28+
29+
and the following package versions
30+
31+
```{code-cell} ipython
32+
:tags: [hide-output]
33+
!conda list
34+
```

0 commit comments

Comments
 (0)