Skip to content

Commit

Permalink
update pages
Browse files Browse the repository at this point in the history
  • Loading branch information
HumphreyYang committed Dec 13, 2023
1 parent 807f542 commit 999c72c
Show file tree
Hide file tree
Showing 45 changed files with 837 additions and 593 deletions.
2 changes: 1 addition & 1 deletion .buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: f3fc95a7bc48ba3103d3e4041eb3dc89
config: ef0b6c6d8a5d318e7f7170e3e60fc460
tags: 645f666f9bcd5a90fca523b33c5a78b7
20 changes: 10 additions & 10 deletions _sources/aiyagari.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "b16ea678",
"id": "e22f1e62",
"metadata": {},
"source": [
"(aiyagari)=\n",
Expand All @@ -26,7 +26,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "86bf607e",
"id": "d9d882ee",
"metadata": {
"tags": [
"hide-output"
Expand All @@ -39,7 +39,7 @@
},
{
"cell_type": "markdown",
"id": "7f98e622",
"id": "065ee35c",
"metadata": {},
"source": [
"## Overview\n",
Expand Down Expand Up @@ -67,7 +67,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "8356a29f",
"id": "72fe3957",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -81,7 +81,7 @@
},
{
"cell_type": "markdown",
"id": "98561f47",
"id": "ce20a084",
"metadata": {},
"source": [
"### References\n",
Expand Down Expand Up @@ -234,7 +234,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "120ad1ff",
"id": "0a140f09",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -347,7 +347,7 @@
},
{
"cell_type": "markdown",
"id": "c7d29143",
"id": "8158a0ac",
"metadata": {},
"source": [
"As a first example of what we can do, let's compute and plot an optimal accumulation policy at fixed prices."
Expand All @@ -356,7 +356,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "283f8c32",
"id": "25cf6ef2",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -399,7 +399,7 @@
},
{
"cell_type": "markdown",
"id": "fb17a980",
"id": "0269bc68",
"metadata": {},
"source": [
"The plot shows asset accumulation policies at different values of the exogenous state.\n",
Expand All @@ -416,7 +416,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "0b76e105",
"id": "fee17200",
"metadata": {},
"outputs": [],
"source": [
Expand Down
60 changes: 30 additions & 30 deletions _sources/arellano.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "7cbf9238",
"id": "496e6319",
"metadata": {},
"source": [
"(arellano)=\n",
Expand All @@ -26,7 +26,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "e644166c",
"id": "68b28f6e",
"metadata": {
"tags": [
"hide-output"
Expand All @@ -39,7 +39,7 @@
},
{
"cell_type": "markdown",
"id": "9080aec8",
"id": "c6d77cd0",
"metadata": {},
"source": [
"## Overview\n",
Expand Down Expand Up @@ -89,7 +89,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "a5ba7917",
"id": "5aaa721f",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -105,7 +105,7 @@
},
{
"cell_type": "markdown",
"id": "215cc3b2",
"id": "4fc4f0f2",
"metadata": {},
"source": [
"## Structure\n",
Expand Down Expand Up @@ -373,7 +373,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "8b07f07f",
"id": "68aa8870",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -418,7 +418,7 @@
},
{
"cell_type": "markdown",
"id": "63879cbf",
"id": "5c4eedee",
"metadata": {},
"source": [
"Notice how the class returns the data it stores as simple numerical values and\n",
Expand All @@ -434,7 +434,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "fc8476a4",
"id": "1b945030",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -445,7 +445,7 @@
},
{
"cell_type": "markdown",
"id": "d95cb4e0",
"id": "3253293a",
"metadata": {},
"source": [
"Here is a function to compute the bond price at each state, given $v_c$ and\n",
Expand All @@ -455,7 +455,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "67b0cae8",
"id": "3cccf412",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -481,7 +481,7 @@
},
{
"cell_type": "markdown",
"id": "d57cbb4a",
"id": "3232f613",
"metadata": {},
"source": [
"Next we introduce Bellman operators that updated $v_d$ and $v_c$."
Expand All @@ -490,7 +490,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "2aba90d1",
"id": "097fa430",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -540,7 +540,7 @@
},
{
"cell_type": "markdown",
"id": "3010cef3",
"id": "967ba9de",
"metadata": {},
"source": [
"Here is a fast function that calls these operators in the right sequence."
Expand All @@ -549,7 +549,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "d85e85d3",
"id": "a2181024",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -584,7 +584,7 @@
},
{
"cell_type": "markdown",
"id": "91bb5fcb",
"id": "1cbf191a",
"metadata": {},
"source": [
"We can now write a function that will use the `Arellano_Economy` class and the\n",
Expand All @@ -601,7 +601,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "e388166a",
"id": "ee02dc27",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -643,7 +643,7 @@
},
{
"cell_type": "markdown",
"id": "6d231eba",
"id": "01215d65",
"metadata": {},
"source": [
"Finally, we write a function that will allow us to simulate the economy once\n",
Expand All @@ -653,7 +653,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "87a744f7",
"id": "551bc3ef",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -721,7 +721,7 @@
},
{
"cell_type": "markdown",
"id": "929b6fa2",
"id": "24075419",
"metadata": {},
"source": [
"## Results\n",
Expand Down Expand Up @@ -817,7 +817,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "a84df2f9",
"id": "d34cad73",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -827,7 +827,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "426870f4",
"id": "750e5a1f",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -836,7 +836,7 @@
},
{
"cell_type": "markdown",
"id": "93f0b9e5",
"id": "0001f03e",
"metadata": {},
"source": [
"Compute the bond price schedule as seen in figure 3 of Arellano (2008)"
Expand All @@ -845,7 +845,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "7ad3ed22",
"id": "b6bd91df",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -879,7 +879,7 @@
},
{
"cell_type": "markdown",
"id": "8387488e",
"id": "871b799a",
"metadata": {},
"source": [
"Draw a plot of the value functions"
Expand All @@ -888,7 +888,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "7ca8c4c8",
"id": "8ed57d5d",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -906,7 +906,7 @@
},
{
"cell_type": "markdown",
"id": "7142af47",
"id": "8215951c",
"metadata": {},
"source": [
"Draw a heat map for default probability"
Expand All @@ -915,7 +915,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "e7da60ff",
"id": "e9becaa6",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -939,7 +939,7 @@
},
{
"cell_type": "markdown",
"id": "cf6f1f08",
"id": "b60c184d",
"metadata": {},
"source": [
"Plot a time series of major variables simulated from the model"
Expand All @@ -948,7 +948,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "61fa6ed0",
"id": "24059c36",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -995,7 +995,7 @@
},
{
"cell_type": "markdown",
"id": "55af4ed9",
"id": "f53518fe",
"metadata": {},
"source": [
"```{solution-end}\n",
Expand Down
Loading

0 comments on commit 999c72c

Please sign in to comment.