Exercise Hints & Worked Solutions
Session 1
This companion is meant to be used in stages. Try the exercise first. Open the hint if you need a direction, then compare your work with the detailed solution. The solutions emphasize the reasoning behind each calculation, not only the final number.
On the website, the hints and solutions are collapsed until selected. In the PDF, every hint and solution is printed in full so the document can be read offline or used as a conventional solutions manual.
Exercises and Solutions
Exercise 1: Build the two-clock ledger
Problem. [core] For one monthly macroeconomic series, record the reference period, first-release date, first value, next revision date, and revised value. Explain which cells would appear in vintages dated one day before each release and one day after it. Why would storing only a single date create either misalignment or look-ahead bias?
Exercise 2: Open the release
Problem. [core, pencil] Before a release, \alpha\sim\mathcal N(1.5,0.36). The indicator satisfies y=\alpha+\varepsilon, with H=0.64, and the released value is 0.5. Compute v,F,K,a^+, and P^+. Explain the result in words. Repeat for a release equal to 1.5 and distinguish the effect on the posterior mean from the effect on its variance.
Exercise 3: Reproduce the unit test
Problem. [core, computational] Implement the local level filter and reproduce the two-period numerical unit test from the notes without hard-coding any intermediate values. Add assertions for both filtered means and variances. Then replace y_2 by a missing value and verify that the second update is skipped.
Exercise 4: Signal and noise
Problem. [core, pencil] Derive the steady-state predicted variance and gain for the local level model. Compute \bar K for q\in\{0.01,0.1,1,10\}. For each value, state whether variation in the observed series is being attributed mainly to state movement or measurement noise.
Exercise 5: A ragged update
Problem. [core, pencil] Let \alpha\mid\Omega_{r^-}\sim\mathcal N(0,1), Z=(1,2)', and H=\operatorname{diag}(1,4). At vintage r, only the first observation is released and its value is 1. At the next vintage, the second observation is released with value -1. Perform the two scalar updates in release order. Identify the reference-period rows and the release dates separately.
Exercise 6: Why time alone does not narrow a fixed-target band
Problem. [core, pencil] Consider the local level model and a target h periods ahead. Show that its variance is P_{\tau\mid\tau}+hQ. Advance one period with no observation and show that the variance for the same fixed target is unchanged.
Exercise 7: Derive the quarterly weights
Problem. [core, pencil] Let a quarterly flow be the sum of three monthly levels. Use a first-order log approximation to derive the five monthly-growth weights used to map a monthly latent process into quarter-on-quarter growth. Explain why an end-of-quarter stock variable would require a different aggregation rule.
Exercise 8: Decompose the news
Problem. [core] Using the numbers in Exercise 2, compute the revision as Kv. Then suppose a parameter is re-estimated after the release and moves the reported nowcast by another 0.1 percentage point. Write a small revision table that separates data news from parameter re-estimation.
Exercise 9: Evaluate 2008Q4
Problem. [core, data] Retrieve the GDP vintages corresponding to the advance, final, and current estimates of 2008Q4 real GDP growth. Document the retrieval dates and units. For a January 2009 nowcast of -4.0 percent, compute errors against the first release and the later vintage. State which target answers which economic question.
Exercise 10: Further state-space practice
Problem. [extra] Put an ARMA(1,1) process in state-space form and verify the dimensions of T,R,Z,Q,H. Then derive the Joseph covariance form from the shorter covariance update when K is the optimal gain.