47. An Inattentive Permanent Income Consumer#

47.1. Overview#

The LQ Permanent Income Model gives a consumer an endowment with a permanent and a purely transitory component and two information structures.

In the first, he sees the two components separately, consumes his permanent income, and raises his consumption permanently by \(1-\beta\) of each transitory shock, saving the rest.

In the second, which Muth [1960] posed, he sees only the sum, runs a Kalman filter on it, and treats the fraction \(K\) of each surprise as permanent.

The modeler hands him \(K\).

Rational Inattention and Endogenous Information lets a decision maker buy the precision of his own signal at a price \(\theta\) per nat of Shannon’s mutual information.

This lecture puts that consumer in Muth’s model.

He sees his income, as his own budget requires, and then decides how much to pay to learn how much of it will last.

We report three results.

Equation (46.15) of Rational Inattention and Endogenous Information bounds the rank of the weight \(Q\) on conditional variance by the number of controls.

This consumer has one control, so he buys one number.

That number is his wealth, the present value of his endowment net of his debt, which weights an endowment component of persistence \(\rho\) by \(1/(1-\beta\rho)\).

He reads his income for free, so he pays only for the remainder, which weights that component by \(\beta\rho/(1-\beta\rho)\) and a purely transitory component by zero.

A consumer facing \(\theta \geq \theta^* = 2\beta K \sigma_2^2 / [1 - \beta(1-K)^2]\) buys nothing and is Muth’s consumer, and a consumer facing a lower price holds his posterior variance at the root of a single Euler equation.

His consumption responds to a permanent shock sluggishly and to a transitory shock far too strongly, and the variance of his consumption growth exceeds a fully informed consumer’s by \((1-\beta^2)\) times the posterior variance he settles for.

The lecture proceeds as follows.

The consumer as a linear regulator describes the matrices that LQ Control: Foundations and Permanent Income II: LQ Techniques use for the model of The LQ Permanent Income Model.

What imprecision costs him describes the rank bound on \(Q\) and the three closed forms that the permanent income model delivers for \(H + \beta \tilde B^\top P \tilde B\), for \(Q\), and for \(P\).

What he already knows describes the information his budget hands him and the one dimension of uncertainty it leaves.

What he buys describes the single combination of the endowment components that his signal reports.

How much he buys describes his bill, his Euler equation for precision, the price \(\theta^*\) at which he stops buying, and the transition of a consumer who starts well informed.

Consumption and debt describes his impulse responses and his consumption growth.

What the plan costs describes the loss decomposition of Rational Inattention and Endogenous Information and checks it against an exact calculation.

Two forces in the weight on conditional variance describes the reward and the deterrent inside \(Q\) and compares them with the two terms that Turmuhambetova [2005] found in her continuous-time model.

47.2. The consumer as a linear regulator#

The consumer minimizes

(47.1)#\[\mathbb{E}_0 \sum_{t=0}^{\infty} \beta^t (c_t - \gamma)^2\]

subject to the budget constraint

(47.2)#\[c_t + b_t = \beta b_{t+1} + y_t ,\]

where \(\gamma\) is a bliss level of consumption, \(\beta = R^{-1}\), and \(b_t\) is one-period debt falling due at \(t\).

The LQ Permanent Income Model writes the return with a factor \(\tfrac12\) that (47.1) drops, which rescales the price of information introduced below and changes nothing else.

The endowment has the two components of The LQ Permanent Income Model,

(47.3)#\[z_{t+1} = \check{A} z_t + \check{C} w_{t+1} , \qquad y_t = \check{G} z_t ,\]

with

\[\begin{split} \check{A} = \begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix}, \qquad \check{C} = \begin{bmatrix} \sigma_1 & 0 \\ 0 & \sigma_2 \end{bmatrix}, \qquad \check{G} = \begin{bmatrix} 1 & 1 \end{bmatrix} , \end{split}\]

so \(z_{1t}\) is a permanent component and \(z_{2t}\) a purely transitory one.

Following Permanent Income II: LQ Techniques, the state is

\[\begin{split} x_t = \begin{bmatrix} z_t \\ b_t \end{bmatrix} \end{split}\]

and the control is \(u_t = c_t - \gamma\).

The bliss level \(\gamma\) drops out of the rule for \(c_t\), as Permanent Income II: LQ Techniques notes and as the consumption function (95.10) of The LQ Permanent Income Model shows, because it never enters his Euler equation.

The rule for \(u_t = c_t - \gamma\) therefore carries the intercept \(-\gamma\).

Carrying \(\gamma\) would add a constant to the state, which makes \(\tilde A\) block triangular and leaves the lower right block of the Riccati equation the original one, so the blocks of \(P\), \(F\), and \(Q\) that multiply \(z_t\) and \(b_t\) come out the same.

Those blocks are the whole of the attention problem, so we set \(\gamma = 0\) and write \(u_t = c_t\).

The budget constraint (47.2) and the endowment (47.3) give the law of motion \(x_{t+1} = \tilde A x_t + \tilde B u_t + \tilde C w_{t+1}\) with

\[\begin{split} \tilde A = \begin{bmatrix} \check{A} & 0 \\ -R \check{G} & R \end{bmatrix}, \qquad \tilde B = \begin{bmatrix} 0 \\ R \end{bmatrix}, \qquad \tilde C = \begin{bmatrix} \check{C} \\ 0 \end{bmatrix} . \end{split}\]

The return (47.1) puts the weight \(R_{\mathrm{LQ}} = 0\) on the state and the weight \(H = 1\) on the control.

A problem with \(R_{\mathrm{LQ}} = 0\) admits the solution \(u_t = 0\), which holds consumption at its bliss level forever and violates the transversality condition

\[ \mathbb{E}_0 \sum_{t=0}^{\infty} \beta^t b_t^2 < \infty . \]

Permanent Income II: LQ Techniques enforces that condition by putting a small weight \(\varepsilon > 0\) on \(b_t^2\), and we do the same.

The limit of the solution as \(\varepsilon \downarrow 0\) is what the consumer of The LQ Permanent Income Model uses, and (47.5) below reports it.

β = 0.95
σ1, σ2 = 0.15, 0.30
R = 1 / β
ε = 1e-10                                   # stands in for transversality

A_check = np.array([[1.0, 0.0],
                    [0.0, 0.0]])
C_check = np.array([[σ1, 0.0],
                    [0.0, σ2]])
G_check = np.array([[1.0, 1.0]])

A_lq = np.block([[A_check,         np.zeros((2, 1))],
                 [-R * G_check,    np.array([[R]])]])
B_lq = np.array([[0.0], [0.0], [R]])
C_lq = np.vstack([C_check, np.zeros((1, 2))])
R_lq = np.diag([0.0, 0.0, ε])
H_lq = np.array([[1.0]])
def riccati(A, B, R, H, β, tol=1e-16, max_iter=200_000):
    """Iterate the Riccati equation and return P and the feedback gain F."""
    P = R.copy()
    for _ in range(max_iter):
        S = H + β * B.T @ P @ B
        P_new = R + β * A.T @ P @ A - β**2 * A.T @ P @ B @ np.linalg.solve(S, B.T @ P @ A)
        if np.max(np.abs(P_new - P)) < tol:
            P = P_new
            break
        P = P_new
    return P, β * np.linalg.solve(H + β * B.T @ P @ B, B.T @ P @ A)


P, F = riccati(A_lq, B_lq, R_lq, H_lq, β)

The present value of the endowment stream is \(\check{G}(I - \beta \check{A})^{-1} z_t\), so total wealth is \(\omega^\top x_t\) with

(47.4)#\[\omega^\top = \begin{bmatrix} \check{G}(I - \beta \check{A})^{-1} & -1 \end{bmatrix} .\]

The consumption function (95.10) of The LQ Permanent Income Model sets \(c_t = (1 - \beta) \omega^\top x_t\), so

(47.5)#\[F = -(1 - \beta) \omega^\top .\]
ω = np.append(G_check @ np.linalg.inv(np.eye(2) - β * A_check), -1.0)

print(f"present-value weights ω = {ω}")
print(f"F from the Riccati eq  = {F.ravel()}")
print(f"-(1-β) ω'              = {-(1 - β) * ω}")
present-value weights ω = [20.  1. -1.]
F from the Riccati eq  = [-1.   -0.05  0.05]
-(1-β) ω'              = [-1.   -0.05  0.05]

The permanent component carries the weight \(1/(1-\beta) = 20\) and the transitory component the weight \(1\): the present value of a permanent dollar of endowment is twenty times the present value of a transitory one.

47.3. What imprecision costs him#

Write \(\hat x_t = \mathbb{E}[x_t \mid \mathcal{F}_t]\) for the mean of the state under his own information.

Rational Inattention and Endogenous Information shows that a consumer who observes only his own signals sets \(u_t = -F \hat x_t\) and bears the loss

(47.6)#\[L_{\text{full}} + \sum_{t \geq 0} \beta^t \operatorname{tr}(Q \hat\Sigma_t) , \qquad Q = R_{\mathrm{LQ}} + \beta \tilde A^\top P \tilde A - P .\]

Here \(P\) solves the Riccati equation (46.11) of that lecture.

The matrix \(F = \beta(H + \beta \tilde B^\top P \tilde B)^{-1} \tilde B^\top P \tilde A\) is the feedback matrix that \(P\) delivers.

The weights \(R_{\mathrm{LQ}} = 0\) and \(H = 1\) are what (47.1) puts on the state and on the control.

The matrix \(\hat\Sigma_t\) is the conditional covariance of \(x_t\) given his information.

We write \(H\) for the matrix that LQ Control: Foundations calls \(Q\), as Rational Inattention and Endogenous Information does, because \(Q\) here is the weight on the conditional covariance.

For a given \(\Sigma_0\) the term \(L_{\text{full}}\) does not involve his attention plan, and the section on what the plan costs returns to that qualification.

That lecture states the sum converges when \(\beta \rho(\tilde A)^2 < 1\), which fails here: \(\tilde A\) has the eigenvalues \(1\), \(0\), and \(R\), so \(\beta \rho(\tilde A)^2 = 1/\beta\).

The free income observation of the next section rescues it, by holding \(\Sigma_t\) at \(\operatorname{diag}(h_{t-1} + \sigma_1^2, \sigma_2^2, 0)\) and so bounded.

Equation (46.15) of Rational Inattention and Endogenous Information writes

(47.7)#\[Q = F^\top (H + \beta \tilde B^\top P \tilde B) F\]

and bounds the rank of \(Q\) by the number of controls, because \(H + \beta \tilde B^\top P \tilde B\) is positive definite and carries the dimension of the control.

A consumer with one control buys information about at most one linear combination of the state, however many components his endowment has, and the combination is the one his decision rule uses.

The permanent income model makes (47.7) explicit.

With \(H = 1\) and \(\tilde B = (0, 0, R)^\top\),

(47.8)#\[H + \beta \tilde B^\top P \tilde B = \frac{1}{\beta}, \qquad Q = \frac{1}{\beta} F^\top F = \frac{(1-\beta)^2}{\beta} \omega \omega^\top , \qquad P = \frac{1}{1 - \beta} F^\top F ,\]

in the limit \(\varepsilon \downarrow 0\).

Both \(Q\) and \(P\) are multiples of \(\omega\omega^\top\), so \(Q = \tfrac{1-\beta}{\beta} P\).

S = H_lq + β * B_lq.T @ P @ B_lq
Q = R_lq + β * A_lq.T @ P @ A_lq - P

print(f"H + β B'PB                     = {S.item():.10f}   (1/β = {1/β:.10f})")
print(f"max |Q - F'(H + β B'PB)F|      = {np.max(np.abs(Q - F.T @ S @ F)):.2e}")
print(f"max |Q - F'F/β|                = {np.max(np.abs(Q - F.T @ F / β)):.2e}")
print(f"max |Q - (1-β)²/β · ωω'|       = {np.max(np.abs(Q - (1-β)**2/β * np.outer(ω, ω))):.2e}")
print(f"max |P - F'F/(1-β)|            = {np.max(np.abs(P - F.T @ F / (1-β))):.2e}")
print(f"rank of Q                      = {np.linalg.matrix_rank(Q, tol=1e-8)}")
H + β B'PB                     = 1.0526315811   (1/β = 1.0526315789)
max |Q - F'(H + β B'PB)F|      = 8.88e-16
max |Q - F'F/β|                = 2.11e-09
max |Q - (1-β)²/β · ωω'|       = 2.11e-09
max |P - F'F/(1-β)|            = 3.80e-08
rank of Q                      = 1

The identity (47.7) holds for every \(\varepsilon\), because the Riccati equation implies it.

The three closed forms (47.8) hold only in the limit, so their residuals scale with \(\varepsilon = 10^{-10}\) rather than with a rounding error, with constants that run to a few hundred.

Because \(Q\) is proportional to \(\omega \omega^\top\),

(47.9)#\[\operatorname{tr}(Q \hat\Sigma_t) = \frac{(1-\beta)^2}{\beta} \, \omega^\top \hat\Sigma_t \omega = \frac{1}{\beta} \operatorname{Var}_t \bigl( (1 - \beta) \omega^\top x_t \bigr) .\]

The quantity \((1-\beta) \omega^\top x_t\) is the consumption that a fully informed consumer would choose in the same position.

His loss from imprecision at \(t\) is therefore \(\beta^{-1}\) times the conditional variance of the consumption he would have chosen had he known where he stood.

47.4. What he already knows#

The consumer’s debt obeys \(b_{t+1} = R(b_t + c_t - y_t)\).

He chooses \(c_t\) and he carries \(b_t\) from the previous period, so he knows \(b_{t+1}\) if and only if he knows \(y_t\).

A consumer ignorant of both would not know his own debt, and the conditional covariance \(\hat\Sigma_t\) would spread into the \(b\) direction.

We give him his income, which is the reading that keeps his accounts straight, and he pays only to decompose it.

Write \(p_t\) for the variance of \(z_{1t}\) conditional on his information through \(t-1\), \(g_t\) for that variance after he reads \(y_t\), and \(h_t\) for that variance after he buys whatever he buys.

Reading \(y_t = z_{1t} + z_{2t}\) pins down the sum of the two components, so his remaining uncertainty lies along the single direction \((1, -1)\):

(47.10)#\[\begin{split}\hat\Sigma_t = h_t \begin{bmatrix} 1 \\ -1 \\ 0 \end{bmatrix} \begin{bmatrix} 1 & -1 & 0 \end{bmatrix} .\end{split}\]

The standard updating formulas give

(47.11)#\[K_t = \frac{p_t}{p_t + \sigma_2^2}, \qquad g_t = \frac{p_t \sigma_2^2}{p_t + \sigma_2^2} = K_t \sigma_2^2 = (1 - K_t) p_t , \qquad p_{t+1} = h_t + \sigma_1^2 ,\]

where \(K_t\) is the gain he applies to the income surprise \(y_t - \hat z_{1,t-1}\) and \(p_{t+1}\) follows from the random walk in \(z_1\).

Muth’s consumer buys nothing, so \(h_t = g_t\), and we write \(g^{\mathrm{M}}\) and \(p^{\mathrm{M}}\) for the variances he settles at.

Equation (47.11) has the fixed point

\[ p^{\mathrm{M}} = \frac{\sigma_1^2 + \sqrt{\sigma_1^4 + 4 \sigma_1^2 \sigma_2^2}}{2} , \]

which (95.22) of The LQ Permanent Income Model writes \(\Sigma\); we write \(p^{\mathrm{M}}\) because \(\Sigma\) here is a covariance matrix of the state.

Substituting (47.10) and (47.4) into (47.9), and using \(\omega^\top(1, -1, 0)^\top = \beta/(1-\beta)\), gives

(47.12)#\[\operatorname{tr}(Q \hat\Sigma_t) = \frac{(1-\beta)^2}{\beta} \cdot \frac{\beta^2}{(1-\beta)^2} \, h_t = \beta h_t .\]
p_muth = (σ1**2 + np.sqrt(σ1**4 + 4 * σ1**2 * σ2**2)) / 2
K_muth = p_muth / (p_muth + σ2**2)
g_muth = K_muth * σ2**2

e = np.array([1.0, -1.0, 0.0])
print(f"Muth's prior variance  p = {p_muth:.6f}")
print(f"Muth's gain            K = {K_muth:.6f}")
print(f"Muth's posterior       g = {g_muth:.6f}")
print(f"consumption response 1 - β(1-K) = {1 - β*(1 - K_muth):.6f}")
print(f"\ntr(Q Σ̂) at h = g      = {np.trace(Q @ (g_muth * np.outer(e, e))):.8f}")
print(f"β h                    = {β * g_muth:.8f}")
Muth's prior variance  p = 0.057635
Muth's gain            K = 0.390388
Muth's posterior       g = 0.035135
consumption response 1 - β(1-K) = 0.420869

tr(Q Σ̂) at h = g      = 0.03337819
β h                    = 0.03337819

47.5. What he buys#

Rational Inattention and Endogenous Information has the consumer whiten the state by its prior covariance and measure the eigenvectors of \(\Sigma^{1/2} Q \Sigma^{1/2}\).

With \(Q = q \omega \omega^\top\) of rank one, \(q = (1-\beta)^2/\beta\), that matrix is \(q (\Sigma^{1/2}\omega)(\Sigma^{1/2}\omega)^\top\), whose single eigenvector with a positive eigenvalue is \(\Sigma^{1/2}\omega\).

The direction the consumer measures is therefore \(\Sigma^{-1/2} \Sigma^{1/2}\omega = \omega\), whatever his nonsingular prior covariance.

He buys a noisy reading of \(\omega^\top x_t\), his own wealth.

Reading \(y_t\) for free narrows the problem to the subspace of directions that income leaves uncertain, but it does not change the answer.

Writing the columns of \(N\) for a basis of that subspace turns the weight into \(N^\top Q N = q (N^\top\omega)(N^\top\omega)^\top\), still of rank one, and the same argument inside the subspace returns the direction \(N^\top\omega\).

A reading of \((N^\top\omega)^\top\zeta\), where \(\zeta\) holds the coordinates of \(x_t\) in the subspace, is a reading of \(\omega^\top x_t\) up to quantities the consumer already knows.

Let

\[ \check{A} = \operatorname{diag}(\rho_1, \ldots, \rho_n), \qquad \check{G} = \begin{bmatrix} 1 & \cdots & 1 \end{bmatrix} , \]

so that \(y_t = \sum_i z_{it}\) and the component \(z_i\) has persistence \(\rho_i\).

The first \(n\) entries of \(\omega\) are then \(1/(1 - \beta \rho_i)\) and its last entry remains \(-1\).

The consumer knows \(\sum_i z_{it}\) already, so a reading of \(\sum_i \omega_i z_{it}\) and a reading of

(47.13)#\[\sum_{i=1}^n \Bigl( \frac{1}{1 - \beta \rho_i} - 1 \Bigr) z_{it} = \sum_{i=1}^n \frac{\beta \rho_i}{1 - \beta \rho_i} \, z_{it}\]

tell him the same thing.

His one channel reports a persistence-weighted sum of the components of his endowment and puts no weight at all on a purely transitory one.

He already knows everything about a transitory component that he needs: it adds to his income this period and to nothing else.

def measured_combination(ρ, Σ_z):
    """Directions a consumer with endowment persistences ρ would measure.

    He reads y = z_1 + ... + z_n for free, so the problem lives in the
    subspace orthogonal to the vector of ones.  Σ_z is his prior covariance
    over z.  Which directions carry positive eigenvalues does not depend on
    the price; how many he buys does.
    """
    n = len(ρ)
    q = (1 - β)**2 / β
    ω_z = 1.0 / (1.0 - β * np.asarray(ρ))
    Q_z = q * np.outer(ω_z, ω_z)

    ones = np.ones(n)                                   # y = ones' z, read for free
    Σ_y = Σ_z - np.outer(Σ_z @ ones, Σ_z @ ones) / (ones @ Σ_z @ ones)
    N = np.linalg.svd(ones.reshape(1, -1))[2][1:].T      # basis for {v : ones'v = 0}
    L = np.linalg.cholesky(N.T @ Σ_y @ N)                # whiten inside the subspace
    λ, U = np.linalg.eigh(L.T @ (N.T @ Q_z @ N) @ L)
    λ = np.maximum(λ, 0.0)

    order = np.argsort(λ)[::-1]
    combos = np.column_stack([N @ np.linalg.solve(L.T, U[:, j]) for j in order])
    return ω_z, λ[order], combos


def canonical(a):
    """Shift a combination by the multiple of the vector of ones that zeroes its
    last weight, then scale it.  Adding a multiple of the vector of ones changes
    no information, because the consumer reads the sum of the components."""
    a = a - a[-1]
    a = a / np.abs(a).max()
    a = a if a[0] > 0 else -a
    return a + 0.0                                      # clear negative zeros


for ρ in [(1.0, 0.0), (1.0, 0.8, 0.0), (1.0, 0.8, 0.5, 0.0)]:
    n = len(ρ)
    Σ_prior = np.diag(np.linspace(0.02, 0.09, n))       # an arbitrary prior
    ω_z, λ, combos = measured_combination(ρ, Σ_prior)
    pers = np.array([β * r / (1 - β * r) for r in ρ])
    print(f"persistences ρ          = {np.array(ρ)}")
    print(f"  present-value ω       = {np.round(ω_z, 4)}")
    print(f"  combination he measures = {np.round(canonical(combos[:, 0]), 4)}")
    print(f"  βρ/(1-βρ), normalized = {np.round(pers / np.abs(pers).max(), 4)}")
    print(f"  positive eigenvalues  = {int((λ > 1e-12).sum())} of {n - 1}\n")
persistences ρ          = [1. 0.]
  present-value ω       = [20.  1.]
  combination he measures = [1. 0.]
  βρ/(1-βρ), normalized = [1. 0.]
  positive eigenvalues  = 1 of 1

persistences ρ          = [1.  0.8 0. ]
  present-value ω       = [20.      4.1667  1.    ]
  combination he measures = [1.     0.1667 0.    ]
  βρ/(1-βρ), normalized = [1.     0.1667 0.    ]
  positive eigenvalues  = 1 of 2

persistences ρ          = [1.  0.8 0.5 0. ]
  present-value ω       = [20.      4.1667  1.9048  1.    ]
  combination he measures = [1.     0.1667 0.0476 0.    ]
  βρ/(1-βρ), normalized = [1.     0.1667 0.0476 0.    ]
  positive eigenvalues  = 1 of 3

The combination the consumer measures and the persistence weights (47.13) agree once the combination is shifted by the multiple of the vector of ones that zeroes its weight on the purely transitory component.

Shifting by the vector of ones costs him nothing, because he reads the sum of the components for free.

The count of positive eigenvalues confirms (47.7): however many components his endowment has, one number is worth buying.

The prior in that cell is arbitrary, and the answer does not depend on it.

A random walk has no stationary prior to use in any case, so the following cell draws prior covariances at random and recovers the same combination each time.

rng_prior = np.random.default_rng(7)
ρ_test = (1.0, 0.8, 0.0)

for trial in range(4):
    root = rng_prior.normal(size=(3, 3))
    Σ_prior = root @ root.T + 0.2 * np.eye(3)
    _, λ, combos = measured_combination(ρ_test, Σ_prior)
    print(f"prior {trial}: combination {np.round(canonical(combos[:, 0]), 6)}   "
          f"positive eigenvalues {int((λ > 1e-12).sum())}")

pers = np.array([β * r / (1 - β * r) for r in ρ_test])
print(f"\nβρ/(1-βρ), normalized:  {np.round(pers / np.abs(pers).max(), 6)}")
prior 0: combination [1.       0.166667 0.      ]   positive eigenvalues 1
prior 1: combination [1.       0.166667 0.      ]   positive eigenvalues 1
prior 2: combination [1.       0.166667 0.      ]   positive eigenvalues 1
prior 3: combination [1.       0.166667 0.      ]   positive eigenvalues 1

βρ/(1-βρ), normalized:  [1.       0.166667 0.      ]

Whitening by the prior decides how precisely he measures, and the rank-one \(Q\) decides what he measures.

47.6. How much he buys#

The consumer chooses the sequence \(\{h_t\}\) to minimize

(47.14)#\[\sum_{t \geq 0} \beta^t \Bigl[ \beta h_t + \frac{\theta}{2} \bigl( \log g_t - \log h_t \bigr) \Bigr] \qquad \text{subject to} \quad 0 < h_t \leq g_t = \mathcal{G}(h_{t-1}) ,\]

where (47.12) supplies the loss, (47.16) below supplies the bill, and (47.11) supplies

(47.15)#\[\mathcal{G}(h) = \frac{(h + \sigma_1^2)\sigma_2^2}{h + \sigma_1^2 + \sigma_2^2} .\]

Equation (46.21) of Rational Inattention and Endogenous Information takes the prior variance to be the affine function \(a^2 h + c^2\) of the posterior variance.

Here the free income observation intervenes between the two, so \(\mathcal{G}\) is nonlinear.

47.6.1. The information bill#

Rational Inattention and Endogenous Information prices a signal at \(\tfrac12\log\det(I + \Sigma_t G_t^\top G_t)\) nats, where \(G_t\) holds the combinations the decision maker measures.

That lecture adds that a decision maker who also sees an exogenous signal pays the same bill with \(\Sigma_t\) replaced by the posterior the exogenous signal alone delivers.

Income is the exogenous signal here, so that rule replaces \(\Sigma_t\) by \(g_t\) and gives

(47.16)#\[\frac{\theta}{2} \log \frac{g_t}{h_t} ,\]

the mutual information between the consumer’s purchased signal and the permanent component, conditional on his history and on the income he has just read.

He pays for what his signal adds to his income data and not for the overlap between them.

47.6.2. The Euler equation for precision#

Collecting the terms of (47.14) that contain \(h_t\) gives

\[ \beta^t \Bigl[ \beta h_t - \frac{\theta}{2}\log h_t + \frac{\beta\theta}{2} \log \mathcal{G}(h_t) \Bigr] , \]

because the logarithm splits the bill at \(t\) into a term in \(h_t\) and a term in \(h_{t-1}\).

The objective is therefore a sum of functions of one \(h_t\) each, and only the constraints \(h_t \leq \mathcal{G}(h_{t-1})\) tie the dates together.

Differentiating with respect to \(h_t\) gives the Euler equation

(47.17)#\[\beta - \frac{\theta}{2 h_t} + \frac{\beta \theta}{2} \frac{\mathcal{G}'(h_t)}{\mathcal{G}(h_t)} = 0, \qquad \frac{\mathcal{G}'(h)}{\mathcal{G}(h)} = \frac{\sigma_2^2}{(h + \sigma_1^2)(h + \sigma_1^2 + \sigma_2^2)} ,\]

which generalizes (46.22) and which involves \(h_t\) alone.

Writing \(p\) and \(K\) for the prior variance and the gain that \(h\) delivers next period, \(\mathcal{G}'(h)/\mathcal{G}(h) = (1-K)/p\).

The third term is the saving that precision today delivers tomorrow: a sharper posterior today is a sharper prior tomorrow, so tomorrow’s bill for any given posterior falls.

The date-\(t\) term \(\Phi(h) = \beta h - \tfrac{\theta}{2}\log h + \tfrac{\beta\theta}{2}\log\mathcal{G}(h)\) is strictly convex, because

\[ \Phi''(h) = \frac{\theta}{2}\Bigl[ \frac{1}{h^2} - \frac{\beta \sigma_2^2 (2 p + \sigma_2^2)}{p^2 (p + \sigma_2^2)^2} \Bigr] \geq \frac{\theta}{2} \cdot \frac{1 - \beta}{h^2} > 0 , \]

where \(p = h + \sigma_1^2 \geq h\) and \(\sigma_2^2(2p + \sigma_2^2) \leq (p + \sigma_2^2)^2\).

Equation (47.17) therefore has one root, and \(\Phi\) falls and then rises around it.

Raising \(h_t\) above \(h^*\) to loosen tomorrow’s constraint buys nothing, provided \(\sigma_1 > 0\).

Then \(\mathcal{G}\) has slope \(\sigma_2^4/(p+\sigma_2^2)^2 < 1\) and the strictly positive fixed point \(g^{\mathrm{M}}\), so \(\mathcal{G}(h) > h\) for every \(h < g^{\mathrm{M}}\), and in particular \(\mathcal{G}(h^*) > h^*\).

Tomorrow’s constraint is then slack whenever he sets \(h_t = h^*\) today.

Where it binds instead, at \(h_t = \mathcal{G}(h_{t-1}) < h^*\), the objective is still falling in \(h_t\) and a larger \(h_t\) would also loosen tomorrow’s constraint, so both motives push him against the same upper bound.

Date-by-date minimization is optimal in either case.

Equation (47.17) does not involve \(t\), so its root \(h^*\) is a constant and the optimal plan is

(47.18)#\[h_t = \min \bigl( h^*, \mathcal{G}(h_{t-1}) \bigr) .\]

The consumer holds his posterior variance at \(h^*\) from the first date at which his income data alone leave him vaguer than \(h^*\).

47.6.3. The price at which he stops buying#

Evaluating (47.17) at Muth’s fixed point \(h = g = K \sigma_2^2\), where \(\mathcal{G}'/\mathcal{G} = (1-K)^2/g\), gives the price

(47.19)#\[\theta^* = \frac{2 \beta K \sigma_2^2}{1 - \beta (1 - K)^2}\]

at which the consumer stops buying.

For \(\theta \geq \theta^*\) he buys nothing and is Muth’s consumer, and for \(\theta < \theta^*\) he buys and holds his posterior variance below Muth’s.

θ_star = 2 * β * g_muth / (1 - β * (1 - K_muth)**2)


def G(h):
    """Posterior variance that reading income alone delivers, given yesterday's h."""
    return (h + σ1**2) * σ2**2 / (h + σ1**2 + σ2**2)


def euler(h, θ):
    """Left side of the Euler equation for the posterior variance."""
    return β - θ / (2 * h) + β * θ / 2 * σ2**2 / ((h + σ1**2) * (h + σ1**2 + σ2**2))


def h_star(θ):
    """Posterior variance that the consumer holds."""
    if θ <= 0:
        return 0.0
    if euler(g_muth, θ) <= 0:                    # the corner: he buys nothing
        return g_muth
    return brentq(lambda h: euler(h, θ), 1e-16, g_muth, xtol=1e-18, rtol=8.9e-16)


print(f"θ* = {θ_star:.6f}\n")
print(" θ/θ*        h*       nats/period     K      fall in h below Muth")
for r in (0.02, 0.05, 0.2, 0.5, 0.8, 0.99, 1.0, 2.0):
    h = h_star(r * θ_star)
    nats = 0.5 * np.log(G(h) / h)
    K = (h + σ1**2) / (h + σ1**2 + σ2**2)
    print(f" {r:5.2f}   {h:.6f}     {nats:.4f}     {K:.4f}      "
          f"{1 - h/g_muth:6.1%}")
θ* = 0.103186

 θ/θ*        h*       nats/period     K      fall in h below Muth
  0.02   0.001050     1.4391     0.2074       97.0%
  0.05   0.002513     1.0264     0.2175       92.8%
  0.20   0.008722     0.4887     0.2576       75.2%
  0.50   0.019061     0.1999     0.3159       45.8%
  0.80   0.028700     0.0642     0.3626       18.3%
  0.99   0.034811     0.0029     0.3890        0.9%
  1.00   0.035135     0.0000     0.3904        0.0%
  2.00   0.035135     0.0000     0.3904        0.0%

A consumer facing \(0.99\theta^*\) holds his posterior variance 0.9 percent below Muth’s, and a consumer facing \(0.02\theta^*\) holds it 97 percent below and pays 1.44 nats a period for it.

Fig. 47.1 traces \(h^*\) and the nats he buys across prices.

ratios = np.linspace(0.005, 1.6, 400)
hs = np.array([h_star(r * θ_star) for r in ratios])
nats = 0.5 * np.log(G(hs) / hs)

fig, axes = plt.subplots(1, 2, figsize=(11, 4))

axes[0].plot(ratios, hs, lw=2, color='C0')
axes[0].axhline(g_muth, color='C3', linestyle='--', lw=1, label="Muth's posterior")
axes[0].axvline(1.0, color='k', linestyle=':', lw=1, label=r'$\theta^*$')
axes[0].set_xlabel(r'$\theta / \theta^*$')
axes[0].set_ylabel(r'posterior variance $h^*$')
axes[0].legend()

axes[1].plot(ratios, nats, lw=2, color='C0')
axes[1].axvline(1.0, color='k', linestyle=':', lw=1, label=r'$\theta^*$')
axes[1].set_xlabel(r'$\theta / \theta^*$')
axes[1].set_ylabel('nats per period')
axes[1].legend()

fig.tight_layout()
plt.show()
_images/83247db89748d6d2fd1e9db0d8b302bcef9c66563c14a54a88baeac1e25a575a.png

Fig. 47.1 Posterior variance and nats bought#

Value iteration on (47.14) confirms the policy (47.18).

def dynamic_program(θ, n_grid=1200, tol=1e-14, max_iter=40_000):
    """Value iteration on the attention problem, with yesterday's h as the state."""
    grid = np.linspace(1e-7, g_muth, n_grid)
    feasible = grid[None, :] <= G(grid)[:, None] + 1e-15
    bill = θ / 2 * np.log(np.where(feasible, G(grid)[:, None] / grid[None, :], 1.0))
    stage = np.where(feasible, β * grid[None, :] + bill, np.inf)
    V = np.zeros(n_grid)
    for _ in range(max_iter):
        total = stage + β * V[None, :]
        choice = np.argmin(total, axis=1)
        V_new = total[np.arange(n_grid), choice]
        if np.max(np.abs(V_new - V)) < tol:
            V = V_new
            break
        V = V_new
    return grid, grid[choice]


for r in (0.1, 0.5, 0.9, 1.3):
    θ = r * θ_star
    grid, policy = dynamic_program(θ)
    print(f"θ/θ* = {r:4.1f}:  Euler h* = {h_star(θ):.6f},  "
          f"max |policy − min(h*, G(h_prev))| = "
          f"{np.max(np.abs(policy - np.minimum(h_star(θ), G(grid)))):.1e}")
θ/θ* =  0.1:  Euler h* = 0.004741,  max |policy − min(h*, G(h_prev))| = 5.8e-06
θ/θ* =  0.5:  Euler h* = 0.019061,  max |policy − min(h*, G(h_prev))| = 2.9e-05
θ/θ* =  0.9:  Euler h* = 0.031906,  max |policy − min(h*, G(h_prev))| = 2.9e-05
θ/θ* =  1.3:  Euler h* = 0.035135,  max |policy − min(h*, G(h_prev))| = 2.9e-05

47.6.4. A consumer who starts well informed#

A consumer who begins knowing \(z_{1,-1}\) pays nothing until his income data alone leave him vaguer than \(h^*\), which takes four periods at \(\theta = 0.98\theta^*\) and none at \(\theta = 0.20\theta^*\).

Fig. 47.2 follows three such consumers.

fig, ax = plt.subplots()

for r, color in ((0.98, 'C0'), (0.60, 'C3'), (0.20, 'C4')):
    θ = r * θ_star
    h = 0.0
    path = []
    for t in range(12):
        h = min(h_star(θ), G(h))
        path.append(h)
    ax.plot(range(12), path, 'o-', ms=4, lw=2, color=color,
            label=rf'$\theta = {r:.2f}\,\theta^*$')

ax.axhline(g_muth, color='k', linestyle='--', lw=1, label='Muth')
ax.set_xlabel('period $t$')
ax.set_ylabel(r'posterior variance $h_t$')
ax.set_ylim(bottom=0.0)
ax.set_xlim(-0.4, 13.5)
ax.legend(loc='lower right')
plt.show()
_images/39e9bed451fe08f2ba3b649a64712a54a6a4f4a5f319537822b6c9c196d182be.png

Fig. 47.2 Posterior variance from a sharp start#

47.7. Consumption and debt#

Because he reads \(y_t\) without noise, \(\hat z_{1t} + \hat z_{2t} = y_t\), and the consumption function \(c_t = (1-\beta) \omega^\top \hat x_t\) collapses to

(47.20)#\[c_t = \beta \hat z_{1t} + (1 - \beta)(y_t - b_t) .\]

The consumer spends \(1 - \beta\) of his income net of the debt falling due and \(\beta\) of what he believes about the part of his income that will last.

Attention enters (47.20) through \(\hat z_{1t}\) alone.

He forms \(\hat z_{1t}\) in two steps.

Reading \(y_t\) moves his estimate to \(\hat z_{1,t-1} + K_t(y_t - \hat z_{1,t-1})\), and his purchased signal \(s_t = z_{1t} + e_t\), whose error has the variance \(\nu_t = g_t h_t / (g_t - h_t)\) that delivers the posterior variance \(h_t\), moves it the rest of the way:

(47.21)#\[\hat z_{1t} = (1 - \kappa_t) \bigl[ \hat z_{1,t-1} + K_t (y_t - \hat z_{1,t-1}) \bigr] + \kappa_t s_t , \qquad \kappa_t = 1 - \frac{h_t}{g_t} .\]

The weight \(\kappa_t\) on the purchased signal runs from \(0\) for Muth’s consumer to \(1\) for a consumer who pays nothing per nat.

def gains(θ, full_information=False):
    """Coefficients of ẑ₁ on z₁, on yesterday's estimate and on the transitory
    shock, with the posterior variance h, the gain K on the income surprise,
    and the weight κ on the purchased signal."""
    h = 0.0 if full_information else h_star(θ)
    p = h + σ1**2
    g = G(h)
    K = p / (p + σ2**2)
    κ = 1.0 if h <= 0 else (0.0 if g <= h * (1 + 1e-14) else 1 - h / g)
    return (1 - κ) * K + κ, (1 - κ) * (1 - K), (1 - κ) * K * σ2, h, K, κ


def impulse_response(θ, T=30, full_information=False):
    """Paths of c and b after a unit permanent or transitory shock at t = 0."""
    c_z, c_m, c_w, h, K, κ = gains(θ, full_information)
    out = {}
    for name, (d1, d2) in (('permanent', (1.0, 0.0)), ('transitory', (0.0, 1.0))):
        z1, m, b = 0.0, 0.0, 0.0
        cs, bs = [], []
        for t in range(T):
            if t == 0:
                z1 += σ1 * d1
            w2 = d2 if t == 0 else 0.0
            z1_hat = c_z * z1 + c_m * m + c_w * w2
            y = z1 + σ2 * w2
            c = β * z1_hat + (1 - β) * (y - b)
            cs.append(c)
            bs.append(b)
            m, b = z1_hat, R * (b + c - y)
        out[name] = (np.array(cs), np.array(bs))
    return out, h, K, κ
specs = ((0.05, 'C0', r'$\theta = 0.05\,\theta^*$'),
         (0.40, 'C2', r'$\theta = 0.40\,\theta^*$'),
         (1.00, 'C3', 'Muth'))
full, *_ = impulse_response(0.0, full_information=True)
paths = {r: impulse_response(r * θ_star)[0] for r, _, _ in specs}
fig, axes = plt.subplots(2, 2, figsize=(11, 7.5))

for col, shock in enumerate(('permanent', 'transitory')):
    for row, (series, symbol) in enumerate(((0, 'c'), (1, 'b'))):
        ax = axes[row, col]
        ax.plot(full[shock][series], color='k', linestyle='--', lw=1,
                label='full information')
        for r, color, label in specs:
            ax.plot(paths[r][shock][series], lw=2, color=color, label=label)
        ax.set_xlabel('periods after the shock')
        ax.set_ylabel(f'response of ${symbol}$, {shock} shock')
        if row == 0 and col == 0:
            ax.legend()

fig.tight_layout()
plt.show()
_images/27a99d04f2f3f7b59d6cecbfa26796bbe8443ef1f90fd68cc42dfd5050f42a79.png

Fig. 47.3 Impulse responses of consumption and debt#

idx = [0, 1, 2, 5, 10, 29]
print("response of consumption at t = 0, 1, 2, 5, 10, 29\n")
print(f"full information  permanent  {np.round(full['permanent'][0][idx], 4)}")
print(f"                  transitory {np.round(full['transitory'][0][idx], 4)}\n")
for r, _, _ in specs:
    out = paths[r]
    h, K, κ = gains(r * θ_star)[3:]
    name = 'Muth' if r >= 1 else f'θ = {r:.2f} θ*'
    print(f"{name:17s}  h = {h:.5f}  K = {K:.4f}  κ = {κ:.3f}")
    print(f"                   permanent  {np.round(out['permanent'][0][idx], 4)}")
    print(f"                   transitory {np.round(out['transitory'][0][idx], 4)}\n")
response of consumption at t = 0, 1, 2, 5, 10, 29

full information  permanent  [0.15 0.15 0.15 0.15 0.15 0.15]
                  transitory [0.015 0.015 0.015 0.015 0.015 0.015]

θ = 0.05 θ*        h = 0.00251  K = 0.2175  κ = 0.872
                   permanent  [0.1357 0.1493 0.1507 0.1508 0.1508 0.1508]
                   transitory [0.023  0.0154 0.0146 0.0145 0.0145 0.0145]

θ = 0.40 θ*        h = 0.01576  K = 0.2983  κ = 0.413
                   permanent  [0.0913 0.1289 0.1444 0.1545 0.1552 0.1553]
                   transitory [0.0649 0.0329 0.0198 0.0112 0.0105 0.0105]

Muth               h = 0.03513  K = 0.3904  κ = 0.000
                   permanent  [0.0631 0.1016 0.1251 0.1534 0.161  0.1617]
                   transitory [0.1263 0.077  0.0469 0.0106 0.0009 0.    ]

A permanent shock of \(\sigma_1 = 0.15\) moves a fully informed consumer by \(0.15\) and a transitory shock of \(\sigma_2 = 0.30\) moves him by \((1-\beta)\sigma_2 = 0.015\).

Muth’s consumer moves by \(0.063\) and \(0.126\).

Both numbers equal \(1 - \beta(1-K)\) times the income surprise, which is formula (95.24) of The LQ Permanent Income Model.

He meets less than half of the shock that matters on impact and responds more than eight times too strongly to the shock that does not.

Later income data correct him.

The debt panels of Fig. 47.3 show the same errors in his asset position.

A fully informed consumer holds his debt flat after a permanent shock and banks the whole of a transitory one, which is (95.21) of The LQ Permanent Income Model.

Muth’s consumer accumulates assets after a permanent shock, because he consumes too little of it, and dissipates the assets he banked after a transitory one.

Having saved too much of the permanent shock, he ends holding assets that support consumption at \(0.162\), above the \(0.150\) that the shock warrants.

Having consumed too much of the transitory shock, he ends with a long-run consumption response of \(0\) against the \(0.015\) that a fully informed consumer carries.

A consumer paying \(0.05 \theta^*\) per nat comes within ten percent of the fully informed response to the permanent shock on impact, and still over-responds to the transitory shock by half.

Inattention does not smooth his consumption.

His consumption growth is \(\Delta c_{t+1} = (1-\beta)\omega^\top \eta_{t+1}\), where the news \(\eta_{t+1}\) has the covariance \(\Sigma_{t+1} - \hat\Sigma_{t+1}\) that Rational Inattention and Endogenous Information derives from the law of total variance.

Substituting \(\Sigma_{t+1} = \operatorname{diag}(p_{t+1}, \sigma_2^2, 0)\) and (47.10), and using \(\omega^\top(1,-1,0)^\top = \beta/(1-\beta)\) again, gives

(47.22)#\[\operatorname{Var}(\Delta c) = \sigma_1^2 + (1-\beta)^2 \sigma_2^2 + (1 - \beta^2) h .\]

The first two terms are what a fully informed consumer bears, so any \(h > 0\) raises the variance of consumption growth, at every price and every calibration.

var_full = σ1**2 + (1 - β)**2 * σ2**2

print(f"full information  Var(Δc) = {var_full:.8f}\n")
print(" θ/θ*      h*       Var(Δc)     ratio to full information")
for r in (0.05, 0.3, 0.7, 1.0):
    h = h_star(r * θ_star)
    var = var_full + (1 - β**2) * h
    print(f" {r:5.2f}   {h:.6f}   {var:.8f}   {var/var_full:.4f}")

h_m = h_star(2 * θ_star)
print(f"\nat Muth's corner, from {var_full + (1 - β**2) * h_m:.10f}")
print(f"and from [1 - β(1-K)]²(p + σ2²) {(1 - β*(1 - K_muth))**2 * (p_muth + σ2**2):.10f}")
full information  Var(Δc) = 0.02272500

 θ/θ*      h*       Var(Δc)     ratio to full information
  0.05   0.002513   0.02296998   1.0108
  0.30   0.012340   0.02392817   1.0529
  0.70   0.025503   0.02521151   1.1094
  1.00   0.035135   0.02615066   1.1507

at Muth's corner, from 0.0261506565
and from [1 - β(1-K)]²(p + σ2²) 0.0261506565

Muth’s consumer bears fifteen percent more variance in his consumption growth than a fully informed consumer bears.

Equation (47.22) and the response \(1 - \beta(1-K)\) of (95.24), which multiplies an income innovation of variance \(p^{\mathrm{M}} + \sigma_2^2\), agree at Muth’s corner to the last digit printed.

His revisions add noise on top of the news that a fully informed consumer responds to, and buying attention removes most of it: the excess falls from fifteen percent to one percent as the price falls from \(\theta^*\) to \(0.05\theta^*\).

Consumption remains a martingale under his own information at every price.

His estimate obeys \(\hat x_{t+1} = (\tilde A - \tilde B F)\hat x_t + \eta_{t+1}\) with \(\mathbb{E}_t \eta_{t+1} = 0\), so \(c_t = (1-\beta)\omega^\top \hat x_t\) is a martingale if \(\omega^\top(\tilde A - \tilde B F) = \omega^\top\).

print(f"ω'(A - BF) = {ω @ (A_lq - B_lq @ F)}")
print(f"ω'         = {ω}")
ω'(A - BF) = [20.  1. -1.]
ω'         = [20.  1. -1.]

The present-value weights are a left eigenvector of the closed-loop matrix with eigenvalue one.

Nothing in that statement refers to how much the consumer knows, which is why (95.5) of The LQ Permanent Income Model survives his inattention.

47.8. What the plan costs#

The decomposition (47.6) and the per-period cost (47.12) give the loss

(47.23)#\[L_{\text{full}} + \frac{\beta h^*}{1 - \beta} , \qquad L_{\text{full}} = \operatorname{tr}(P \Sigma_0) + \frac{\beta}{1-\beta} \operatorname{tr}(P \tilde C \tilde C^\top) ,\]

at a consumer who holds \(h_t = h^*\) from date zero.

The date-zero mean \(\bar x_0\) is zero here, which drops the term \(\bar x_0^\top P \bar x_0\) that (46.12) of Rational Inattention and Endogenous Information carries.

We start the consumer at the date-zero conditional variance his own plan sustains, \(\Sigma_0 = \operatorname{diag}(h^* + \sigma_1^2, \sigma_2^2, 0)\), so \(\Sigma_0\) moves with \(\theta\) and carries a second \(h^*\) into the table below.

With \(P = (1-\beta)\omega\omega^\top\) the two pieces are

(47.24)#\[\operatorname{tr}(P \Sigma_0) + \frac{\beta}{1-\beta}\operatorname{tr}(P \tilde C \tilde C^\top) = \underbrace{\frac{1}{1-\beta}\operatorname{tr}(P \tilde C \tilde C^\top)}_{\text{free of the plan}} + \frac{h^*}{1-\beta} ,\]

because \(\Sigma_0 = \tilde C \tilde C^\top + \operatorname{diag}(h^*, 0, 0)\).

The term under the brace is what a fully informed consumer bears, since \(h^* = 0\) leaves him \(\Sigma_0 = \tilde C \tilde C^\top\), and it comes to \(9.09\) at this calibration.

Against a fully informed consumer he bears \((1+\beta) h^* / (1-\beta)\), which is \(39 h^*\) at \(\beta = 0.95\), because his plan worsens his date-zero prior as well as every posterior after it.

Against his own date-zero problem, which takes \(\Sigma_0\) as given, his plan trades the information term \(\beta h^*/(1-\beta) = 19 h^*\) of (47.23) against his bill, and Exercise 47.3 draws the frontier between them.

The two measures answer different questions, and the table below reports the first.

The following cell computes \(\mathbb{E}_0 \sum_t \beta^t c_t^2\) directly, by propagating the second moments of the linear system that (47.20) and (47.21) generate, and compares it with (47.23).

def exact_loss(θ, T=4000):
    """E Σ βᵗ c_t² from the second moments of (z₁, ẑ₁ carried in, b)."""
    c_z, c_m, c_w, h, K, κ = gains(θ)
    p, g = h + σ1**2, G(h)
    ν = np.inf if κ == 0 else g * h / (g - h)
    s_ξ = 0.0 if κ == 0 else κ * np.sqrt(ν)

    # ẑ₁ = c_z z₁ + c_m m + c_w w₂ + s_ξ ξ ;  c = β ẑ₁ + (1−β)(z₁ + σ₂ w₂ − b)
    G_c = np.array([β * c_z + (1 - β), β * c_m, -(1 - β)])
    H_c = np.array([β * c_w + (1 - β) * σ2, β * s_ξ])
    A_v = np.vstack([[1.0, 0.0, 0.0],
                     [c_z, c_m, 0.0],
                     R * (np.array([0.0, 0.0, 1.0]) + G_c - np.array([1.0, 0.0, 0.0]))])
    B_v = np.array([[0.0, 0.0, σ1],
                    [c_w, s_ξ, 0.0],
                    [R * (H_c[0] - σ2), R * H_c[1], 0.0]])

    M, total, disc = np.diag([p, 0.0, 0.0]), 0.0, 1.0
    for _ in range(T):
        total += disc * (G_c @ M @ G_c + H_c @ H_c)
        disc *= β
        M = A_v @ M @ A_v.T + B_v @ B_v.T
    return total, h, p


shock_term = β / (1 - β) * np.trace(P @ C_lq @ C_lq.T)
free_of_plan = σ1**2 / (1 - β) + (1 - β) * σ2**2 + shock_term
gaps = []

print(f"part of the loss free of the plan: {free_of_plan:.6f}\n")
print(" θ/θ*      h*       exact loss   decomposition   cost of imprecision   share")
for r in (0.02, 0.05, 0.3, 0.7, 1.0):
    total, h, p = exact_loss(r * θ_star)
    L_full = np.trace(P @ np.diag([p, σ2**2, 0.0])) + shock_term
    info = β * h / (1 - β)
    gaps.append(abs(total - L_full - info))
    print(f" {r:5.2f}   {h:.6f}  {total:11.7f}  {L_full + info:11.7f}       "
          f"{(1 + β) * h / (1 - β):9.6f}       {(1 + β) * h / (1 - β) / free_of_plan:6.2%}")
print(f"\nlargest discrepancy between the first two: {max(gaps):.1e}")
part of the loss free of the plan: 9.090000

 θ/θ*      h*       exact loss   decomposition   cost of imprecision   share
  0.02   0.001050    9.1309386    9.1309386        0.040939        0.45%
  0.05   0.002513    9.1879925    9.1879925        0.097993        1.08%
  0.30   0.012340    9.5712694    9.5712694        0.481269        5.29%
  0.70   0.025503   10.0846054   10.0846054        0.994605       10.94%
  1.00   0.035135   10.4602626   10.4602626        1.370263       15.07%

largest discrepancy between the first two: 3.4e-09

The two accounts agree to nine digits.

The residual reports \(\varepsilon = 10^{-10}\) and not the truncation of the sum at \(T = 4000\), which contributes about \(\beta^{4000} \approx 10^{-89}\).

The function exact_loss never touches \(P\), so the gap measures the error that \(\varepsilon\) puts into \(P\), and \((P_\varepsilon - P)/\varepsilon\) has the diagonal \((0, 19, 20)\) against the exact \(P\) of (47.8).

The gap is therefore about \(34\varepsilon\) and does not move with \(\theta\), because \(\Sigma_0\) and \(\tilde C \tilde C^\top\) are diagonal, so only that diagonal enters, and the plan moves \(\Sigma_0\) only in the entry where it vanishes.

Muth’s consumer bears fifteen percent more than a fully informed consumer, and a consumer at \(\theta = 0.3\theta^*\) five percent more.

Those shares are the excess variance of (47.22) again, and not by coincidence.

The term under the brace in (47.24) equals \(\operatorname{Var}(\Delta c)\) under full information divided by \((1-\beta)^2\), and \((1+\beta)h/(1-\beta)\) equals \((1-\beta^2)h\) divided by \((1-\beta)^2\), so the two ratios are the same number at any calibration.

The fraction of his loss that his imprecision carries is the fraction by which his consumption growth is too volatile.

47.9. Two forces in the weight on conditional variance#

Equation (46.14) of Rational Inattention and Endogenous Information makes \(Q\) vanish when \(\tilde B = 0\).

A consumer who cannot act on what he learns buys nothing, and the consumer here acts through his debt, which \(\tilde B\) carries.

The definition \(Q = R_{\mathrm{LQ}} + \beta \tilde A^\top P \tilde A - P\) separates a reward from a deterrent, and the derivation of (47.6) in Rational Inattention and Endogenous Information identifies the source of each.

The term \(R_{\mathrm{LQ}}\) is what a unit of conditional variance costs through the return directly, and it is zero here.

The term \(-P\) is the deterrent: a sharper posterior at \(t\) makes the news \(\eta_t\) that arrives at \(t\) more variable, because the law of total variance gives \(\eta_t\) the covariance \(\Sigma_t - \hat\Sigma_t\), and that variability costs the consumer \(\operatorname{tr}(P(\Sigma_t - \hat\Sigma_t))\).

The term \(\beta \tilde A^\top P \tilde A\) is the reward: a sharper posterior at \(t\) is a sharper prior at \(t+1\).

print(f"R_LQ            diag  {np.diag(R_lq)}")
print(f"−P              diag  {np.diag(-P)}")
print(f"+β A'PA         diag  {np.diag(β * A_lq.T @ P @ A_lq)}")
print(f"Q = the sum     diag  {np.diag(Q)}")
print(f"\neigenvalues of Q      {np.round(np.linalg.eigvalsh(Q), 12) + 0.0}")
R_LQ            diag  [0.e+00 0.e+00 1.e-10]
−P              diag  [-20.    -0.05  -0.05]
+β A'PA         diag  [21.05263158  0.05263158  0.05263158]
Q = the sum     diag  [1.05263158 0.00263158 0.00263158]

eigenvalues of Q      [0.         0.         1.05789474]

The reward outweighs the deterrent, because (46.14) of Rational Inattention and Endogenous Information writes \(Q\) as a positive semidefinite form.

With \(R_{\mathrm{LQ}} = 0\) his willingness to pay for precision about the permanent component is the difference between the \((1,1)\) entries of the two matrices, which at \(\beta = 0.95\) are \(21.05\) and \(20\).

Turmuhambetova [2005] found both forces in continuous time with a very different return function.

Her agent has the power utility \(C^\lambda / \lambda\), cannot see his wealth \(W_t\), and pays for precision at a rate \(\kappa_t\) whose cost rises more than proportionately.

Rational Inattention and Endogenous Information reports her first-order condition

\[ \kappa^* = \vartheta \gamma \Bigl( \tfrac{1}{2} V_{\hat W \hat W} - V_\gamma \Bigr) , \]

where \(\gamma\) is the posterior variance of his wealth and \(\vartheta\) scales his cost of precision.

Her \(\gamma\) is the posterior variance and not the bliss consumption of (47.1), and her \(\kappa_t\) is a rate of information and not the weight (47.21) puts on a purchased signal.

Her condition sets \(\kappa^* > 0\), so \(-V_\gamma\) exceeds \(-\tfrac12 V_{\hat W \hat W} > 0\), and that reward corresponds to \(\beta \tilde A^\top P \tilde A\) here.

Her \(\tfrac12 V_{\hat W \hat W} < 0\) is the deterrent and corresponds to \(-P\): buying precision makes his estimate of his own wealth more volatile, and a concave agent refuses the extra volatility.

Here \(Q \succeq 0\) holds for every linear-quadratic problem, so the deterrent never wins, and precision is worth something to any consumer whose actions move the state.

Her value function \(V = f(\gamma, t)\hat W^\lambda / \lambda\) makes \(V_{\hat W \hat W}\) diverge as \(\hat W\) falls to zero, so the deterrent can win, and an agent who estimates his wealth to be low buys nothing.

Her agent’s attention therefore varies with his wealth.

The consumer here plans his attention without reference to his wealth, because \(Q\) is a constant matrix and (47.18) depends on no realized data.

His consumption is the martingale that Hall [1978] derived, which (95.5) of The LQ Permanent Income Model draws from his first-order conditions.

The martingale does not make him indifferent to imprecision, because \(Q\) prices conditional variance through the action channel.

47.10. Concluding remarks#

We organize the lecture around the rank bound (47.7).

A decision maker with \(m\) controls pays to learn at most \(m\) linear combinations of the state, whatever the dimension of the state and whatever the persistence of its components, because imprecision reaches his objective only through the actions he takes.

For the permanent income consumer \(m = 1\), and he buys a reading of his wealth \(\omega^\top x_t\), which weights an endowment component of persistence \(\rho\) by \(1/(1-\beta\rho)\).

He already knows \(b_t\) and the sum of the components, so what he pays for is the persistence-weighted combination (47.13), which weights that component by \(\beta\rho/(1-\beta\rho)\) and a purely transitory one by zero.

Exercise 47.2 shows that adding a durable good and a second control does not give him a second number to buy, because his endowment still reaches him only through the one present value in his one budget constraint.

A second hidden state that enters his return directly does give him a second number.

Sims [2003] wanted sluggish and partial responses to shocks without adjustment costs or faulty expectations.

A consumer who pays \(\theta\) per nat responds sluggishly and partially, as Fig. 47.3 shows, and above \(\theta^*\) he settles for the filter that Muth [1960] handed him.

47.11. Exercises#

Exercise 47.1

This exercise asks how the consumer’s willingness to pay for attention depends on the mix of permanent and transitory variation in his endowment.

  1. Derive (47.19) from (47.17), using \(g = K\sigma_2^2 = (1-K)p\) at Muth’s fixed point.

  2. Plot \(\theta^*/\sigma_2^2\) against \(\sigma_1/\sigma_2\), holding \(\sigma_2\) fixed.

  3. Find the two limits as \(\sigma_1/\sigma_2 \to 0\) and \(\sigma_1/\sigma_2 \to \infty\), and say why a consumer whose endowment is almost entirely transitory pays nothing for attention.

Exercise 47.2

This exercise applies the rank bound (47.7) to a consumer with two controls.

Give the consumer a durable good.

He buys \(i_t\) of the durable at the fixed price \(q_d\), its stock obeys \(d_{t+1} = (1-\delta)d_t + i_t\), and his one-period loss is

\[ (c_t - \gamma)^2 + \psi (d_t - \bar d)^2 + \chi i_t^2 , \]

where \(\bar d\) is the stock he would like to hold and \(\chi\) charges him a small cost of adjusting it.

His budget constraint becomes \(c_t + q_d i_t + b_t = \beta b_{t+1} + y_t\), his state is \((z_{1t}, z_{2t}, z_{3t}, b_t, d_t)\) with a three-component endowment, and his controls are \((c_t - \gamma, i_t)\).

He observes \(y_t\), \(b_t\) and \(d_t\), so the three endowment components are his only hidden states.

Take persistences \((1, 0.8, 0)\) for the endowment and \(\delta = 0.10\), \(q_d = 1\), \(\psi = 0.5\), \(\chi = 0.02\).

Parts 1 and 2 ask about \(P\), \(F\) and \(Q\), which the shock variances do not enter.

The constant \(\bar d\) behaves as \(\gamma\) does: it shifts the intercept of his decision rule and leaves the blocks of \(P\), \(F\), and \(Q\) that multiply the endowment, his debt, and his stock unchanged, so the code below sets both constants to zero.

  1. Build the matrices, solve the Riccati equation, and verify (47.7). What is the rank of \(Q\)?

  2. What is the rank of the block of \(Q\) that multiplies the hidden endowment components? How many numbers does the consumer buy?

  3. Explain the answer to part 2 by inspecting the rows of \(F\), and find a modification of the problem that gives the consumer a second number to buy.

Exercise 47.3

This exercise traces the frontier between what the consumer pays for information and the loss he bears, which is the curve that the section on the frontier of Rational Inattention and Endogenous Information draws for a static problem.

That lecture finds a frontier of slope \(-\theta\).

The loss that the consumer’s own problem trades against his bill is \(\sum_t \beta^t \beta h_t\), which a constant plan makes \(\beta h/(1-\beta)\).

The nats beside it are the ones he actually pays for.

His bill at \(t\) is \(\tfrac{\theta}{2}[\log \mathcal{G}(h_{t-1}) - \log h_t]\), so with \(h_{-1}\) given and \(h_t = h\) at every date, the nats he buys discount to

(47.25)#\[\mathcal{N}(h) = \tfrac{1}{2}\log \mathcal{G}(h_{-1}) + \frac{\beta}{1-\beta} \cdot \tfrac{1}{2}\log \mathcal{G}(h) - \frac{1}{1-\beta} \cdot \tfrac{1}{2}\log h ,\]

where the term in \(\mathcal{G}(h)\) carries \(\beta/(1-\beta)\) and not \(1/(1-\beta)\), because a sharper posterior at \(t\) cheapens the bill at \(t+1\) and not the bill at \(t\).

Take \(h_{-1} = g^{\mathrm{M}}\), which puts Muth’s consumer at the origin.

  1. Plot \(\beta h^*/(1-\beta)\) against \(\mathcal{N}(h^*)\) for a grid of prices below \(\theta^*\).

  2. Differentiate both axes with respect to \(h\), use the Euler equation (47.17), and show that the slope is \(-\theta\), as in the static problem. Verify it numerically.

  3. A reader comparing steady states might instead measure the nats as \(\tfrac{1}{2}\log(\mathcal{G}(h)/h) \big/ (1-\beta)\), the per-period bill of a consumer who has always held \(h\). Show that this measure makes the frontier look steeper than \(-\theta\) by the factor

\[ \frac{1/h^* - \beta\, \mathcal{G}'(h^*)/\mathcal{G}(h^*)}{1/h^* - \mathcal{G}'(h^*)/\mathcal{G}(h^*)} , \]

report how large the factor is here, and say which term the second measure counts once too often.