Study Guide: Lecture 0#
Open-ended questions on the material from Lecture 0. 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.
Portfolio Selection (Markowitz 1952)#
Read: Portfolio Selection: Markowitz (1952) and its appendix.
Expected return is linear in the portfolio weights and variance is not. Explain how that produces diversification, and why a portfolio can carry less risk than any single asset in it.
Start from the closed-form minimum-variance portfolio. Name the one change to the problem that removes the closed form, say how the problem is solved instead, and describe how the two frontiers differ.
Clone, Install, Run#
Read: Clone and Run.
List the steps of the homework cycle (clone, install, run, edit, test, push). Say what a
requirements.txtguarantees about getting my result on your machine and what it does not.What is the difference between a pin (
pandas==2.2.3) and a floor (pandas>=2.0) inrequirements.txt? Why is a pin the reproducible choice?Why does the course use one environment per project? What goes wrong when two projects’ requirements are installed into the same environment?
What does running
doitin a project do, and which file does it read to find out what to do?
Tests#
Read: Homework 0, “Why are we doing it this way?”, and the two videos linked there.
What is a unit test, and what does running
pytestdo?What is test-driven development? How does the homework workflow (run
pytest, read the failing test, write the code that passes it) imitate it?
The Data#
Read: A Tour of the Data.
What is a PERMNO, and why do the course’s CRSP pulls identify a stock by PERMNO rather than by ticker?
Why should the rest of a pipeline read a saved file instead of pulling from the data provider each time it runs?
The Bloomberg Terminal has the broadest coverage of any source we use. Why is it the hardest one to build an automated pipeline around?