Skip to content
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

Merged
merged 8 commits into from
May 17, 2019
Merged

Conversation

AnjuJoon
Copy link
Collaborator

No description provided.

@AnjuJoon AnjuJoon added the ready Ready to review label May 15, 2019
@AnjuJoon
Copy link
Collaborator Author

@natashawatkins thanks. I will do the suggested changes.

@AnjuJoon
Copy link
Collaborator Author

@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>`__
Copy link
Member

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will do

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
Copy link
Member

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

@AnjuJoon
Copy link
Collaborator Author

@natashawatkins I will do all the suggested changes.

@@ -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>`__
Copy link
Member

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?

@@ -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`
Copy link
Member

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 Show resolved Hide resolved
@@ -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
Copy link
Member

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

@natashawatkins natashawatkins removed the ready Ready to review label May 16, 2019
@@ -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
Copy link
Member

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>`__
Copy link
Member

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
Copy link
Member

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:
Copy link
Member

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
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new line

@AnjuJoon AnjuJoon merged commit f5d4bba into master May 17, 2019
@AnjuJoon AnjuJoon deleted the clean_tax_smoothing_1 branch May 17, 2019 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants