Chapter 3 · Section 3 practice

From Prices to a CAPM Regression

Work from question 1 to 10. Edit your Python box, click Run Code, review the result, then click Submit attempt. Reference answers unlock after all ten attempts are submitted. This records completion, not correctness. Each box runs independently. Progress is saved in this browser.

Submitted: 0 / 10

1. Interpret positive alpha

Warm-up. For illustrative daily alpha=0.001, beta=1.5, market excess=-0.01 and RF=0.0002, print the fitted total return in percent. Explain why positive alpha can coexist with a loss.

Write your answer, then run it.

2. Read alpha

Warm-up. Print daily alpha as a decimal, rounded to six places.

Write your answer, then run it.

3. Interpret financial slopes

Warm-up. For beta=0.6 and beta=1.5, print the fitted excess-return changes when market excess rises by one percentage point; describe defensive and aggressive sensitivity.

Write your answer, then run it.

4. Check alignment

Build your skills. Print whether train and test share any dates.

Write your answer, then run it.

5. Read an excess return

Build your skills. Print the first NVDA return, RF, and their difference.

Write your answer, then run it.

6. Predict at zero market excess

Build your skills. Predict excess return when Market is zero.

Write your answer, then run it.

7. Predict a positive scenario

Build your skills. Predict excess return at Market=0.01.

Write your answer, then run it.

8. Recover total return

Challenge. Predict at Market=0.01 and add RF=0.0002; print total return as a percentage.

Write your answer, then run it.

9. Compare two market scenarios

Challenge. Predict at -1% and +1% market excess return; print their difference in percentage points.

Write your answer, then run it.

10. Separate a conditional scenario from a forecast

Challenge. Print a forecast-scope sentence after calculating beta.

Write your answer, then run it.

Reference answers are locked until all 10 attempts are submitted.