-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
minor fixes in tax_smoothing_1.rst #23
Conversation
@natashawatkins thanks. I will do the suggested changes. |
@natashawatkins what should be the Title or the heading of this lecture? |
|
||
The class also contains a “method”, for simulating the model. This is an | ||
extension of a similar method in the LQ class, adapted to take into | ||
account the fact that the model’s matrices depend on the state of the | ||
world. | ||
world | ||
|
||
Below we import all functionality from this code. | ||
|
||
(You should download `the | ||
file <https://github.com/QuantEcon/TaxSmoothing/blob/master/lq_markov.py>`__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you be able to implement this function (https://quanteconpy.readthedocs.io/en/latest/util/notebooks.html) and place the file in QuantEcon.Notebooks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will do
source/rst/tax_smoothing_1.rst
Outdated
We begin by solving a version of the Barro (1979) model by mapping it | ||
into the original LQ framework. As mentioned `in this | ||
lecture <http://lectures.quantecon.org/py/perm_income_cons.html>`__, the | ||
As mentioned `in this lecture <http://lectures.quantecon.org/py/perm_income_cons.html>`__, the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have :doc:``
directive to refer to other lectures
@natashawatkins I will do all the suggested changes. |
source/rst/tax_smoothing_1.rst
Outdated
@@ -12,7 +12,7 @@ How to Pay for a War: Part 1 | |||
|
|||
.. contents:: :depth: 2 | |||
|
|||
**Co-author: Sebastian Graves <https://github.com/sebgraves> ** | |||
**Co-author**: `Sebastian Graves <https://github.com/sebgraves>`__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you keep it bolded though?
source/rst/tax_smoothing_1.rst
Outdated
@@ -23,7 +23,7 @@ This notebook constructs generalizations of Barro’s classic 1979 :cite:`Barro1 | |||
of tax smoothing | |||
|
|||
Our generalizations are adaptations of extensions of | |||
his 1979 model suggested by Barro (1999, 2003) | |||
his 1979 model suggested by Barro (1999, 2003) :cite:`barro2003religion` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you cite both papers here
source/rst/tax_smoothing_1.rst
Outdated
@@ -518,7 +518,7 @@ To implement the extension to the Barro model in which :math:`p_{t,t+1}` | |||
varies over time, we must allow the M matrix to be time-varying. From | |||
the mapping of the Barro model into the ``LQ`` framework, this means that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LQ shouldn't be highlighted here
@@ -138,11 +147,11 @@ This notebook describes: | |||
|
|||
A `sequel to this | |||
notebook <https://github.com/QuantEcon/TaxSmoothing/blob/master/Tax_Smoothing_2.ipynb>`__ | |||
describes applies Markov LQ control to settings in which a government | |||
describes applies Markov ``LQ`` control to settings in which a government |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this shouldn't be highlighted
@@ -138,11 +147,11 @@ This notebook describes: | |||
|
|||
A `sequel to this | |||
notebook <https://github.com/QuantEcon/TaxSmoothing/blob/master/Tax_Smoothing_2.ipynb>`__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you use :doc:``
to refer to other lectures
|
||
To map into the LQ framework, we will use | ||
To map into the ``LQ`` framework, we will use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't be highlighted
R[0, 0] = R[0, 0] + 1e-9 | ||
|
||
We can now create an instance of an LQ model: | ||
We can now create an instance of an ``LQ`` model: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't be highlighted
|
||
LQBarro = qe.LQ(Q, R, A, B, C=C, N=W, beta=β) | ||
P, F, d = LQBarro.stationary_values() | ||
x0 = np.array([[100, 1, 25]]) | ||
|
||
We can see the isomorphism by noting that consumption is a martingale in | ||
the permanent income model, and that taxation is a martingale in Barro’s | ||
model. We can check this using the F matrix of the LQ model. As | ||
model. We can check this using the :math:`F` matrix of the ``LQ`` model. As |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new line + shouldn't be highlighted
@@ -489,9 +499,9 @@ Barro model a large number of times: | |||
|
|||
We can see a similar, but smoother pattern, if we plot government debt | |||
over time. Debt is smoother due to the persistence of the government |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new line
No description provided.