You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lectures/career.md
+65-62Lines changed: 65 additions & 62 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ jupytext:
4
4
extension: .md
5
5
format_name: myst
6
6
format_version: 0.13
7
-
jupytext_version: 1.17.2
7
+
jupytext_version: 1.17.1
8
8
kernelspec:
9
9
name: python3
10
10
display_name: Python 3 (ipykernel)
@@ -37,18 +37,6 @@ In addition to what's in Anaconda, this lecture will need the following librarie
37
37
!pip install quantecon
38
38
```
39
39
40
-
```{admonition} GPU acceleration
41
-
:class: warning
42
-
43
-
This lecture uses JAX for hardware acceleration and automatic differentiation.
44
-
45
-
For faster execution, consider running this lecture on a GPU.
46
-
47
-
You can access free GPUs on [Google Colab](https://colab.research.google.com/) by selecting "Runtime → Change runtime type → Hardware accelerator → GPU" from the menu.
48
-
49
-
To install JAX with GPU support locally, please consult the [JAX installation guide](https://jax.readthedocs.io/en/latest/installation.html).
50
-
```
51
-
52
40
## Overview
53
41
54
42
Next, we study a computational problem concerning career and job choices.
@@ -63,7 +51,7 @@ We begin with some imports:
63
51
import matplotlib.pyplot as plt
64
52
import jax.numpy as jnp
65
53
import jax
66
-
import quantecon as qe
54
+
import jax.random as jr
67
55
from typing import NamedTuple
68
56
from quantecon.distributions import BetaBinomial
69
57
from scipy.special import binom, beta
@@ -391,7 +379,7 @@ In particular, modulo randomness, reproduce the following figure (where the hori
391
379
392
380
```{hint}
393
381
:class: dropdown
394
-
To generate the draws from the distributions $F$ and $G$, use `quantecon.random.draw()`.
382
+
To generate the draws from the distributions $F$ and $G$, use `quantecon.jr.draw()`.
395
383
```
396
384
397
385
```{exercise-end}
@@ -410,41 +398,51 @@ $(\theta_i, \epsilon_j)$ = either 1, 2 or 3; meaning 'stay put',
0 commit comments