# 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](../exam_prep.md).

## Notebooks as Reports

*Read: [Reports with Jupyter Notebooks](../Week4/reports_with_jupyter_notebooks.md)
and examples 03 and 04 of the
[PyDoit Examples Walkthrough](./doit_examples.md).*

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](../overview_w3.md) for ChartBook.*

4. What is ChartBook, and what does `chartbook docs build` produce?
5. What does Cookiecutter do? What does Cruft add on top of it? (Read:
   [Project Structure](./project_structure.md).)

## LaTeX

*Read: [Introduction to LaTeX](../Week4/intro_to_LaTeX.md) and
[LaTeX Essentials](../Week4/latex_essentials.md).*

6. What is LaTeX? How is writing in it different from writing in Word?
7. Why is LaTeX a good fit for a report that a pipeline regenerates?
8. In the document below, where does `example_table.tex` come from, and what
    happens to the PDF when the data changes?

    ```latex
    \begin{table}
    \centering
    \input{example_table.tex}
    \end{table}
    ```

9. What is the difference between the `tabular` and `table` environments?
10. 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](../notebooks/_02_replicate_GSW2005_ipynb.ipynb)
and [Replicating the CME FedWatch Tool](../notebooks/_02_fedwatch_replication_ipynb.ipynb).*

11. Why does the Treasury yield curve have to be fitted with a model instead
    of read directly off bond prices?
12. Gürkaynak, Sack, and Wright leave some Treasury securities out of the
    fit. Give two kinds they exclude and the reason for each.
13. 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?
14. What does the CME FedWatch tool report, and what market data is it
    computed from?
