Study Guide: Week 3#

Open-ended questions on the material from week 3. The exam asks multiple-choice versions of questions like these. No answers are given: each question can be answered in a few sentences from the pages listed under its heading. The exam’s format is described in Exam Preparation.

Notebooks as Reports#

Read: Reports with Jupyter Notebooks and examples 03 and 04 of the PyDoit Examples Walkthrough.

  1. The notes say notebooks are for reporting, not for pipeline steps. Give two concrete things that go wrong when computation lives in the notebook, and say how running the notebook as a doit task turns it into a build target.

  2. What does jupyter nbconvert --execute do? Why run a notebook from the command line instead of clicking “Run All”?

  3. Why are .ipynb files hard to track in Git? What does storing a notebook as a .py file with Jupytext fix?

ChartBook and Project Templates#

Read: Agenda Item 2 of the week 3 chapter for ChartBook.

  1. What is ChartBook, and what does chartbook docs build produce?

  2. What does Cookiecutter do? What does Cruft add on top of it? (Read: Project Structure.)

LaTeX#

Read: Introduction to LaTeX and LaTeX Essentials.

  1. What is LaTeX? How is writing in it different from writing in Word?

  2. Why is LaTeX a good fit for a report that a pipeline regenerates?

  3. In the document below, where does example_table.tex come from, and what happens to the PDF when the data changes?

    \begin{table}
    \centering
    \input{example_table.tex}
    \end{table}
    
  4. What is the difference between the tabular and table environments?

  5. What do \includegraphics and \input each bring into a document?

The Yield Curve and the Policy Path#

Read: Replicating the Gürkaynak, Sack, and Wright (2006) Treasury Yield Curve and Replicating the CME FedWatch Tool.

  1. Why does the Treasury yield curve have to be fitted with a model instead of read directly off bond prices?

  2. Gürkaynak, Sack, and Wright leave some Treasury securities out of the fit. Give two kinds they exclude and the reason for each.

  3. A 30-Day Fed Funds futures contract trades at 95.50. What average fed funds rate does the market expect for that month, and why?

  4. What does the CME FedWatch tool report, and what market data is it computed from?