Chapter 3 · Section 9 practice

Extension: Financial Factors and Model Comparison

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. Read factor names

Warm-up. Print the five predictor names.

Write your answer, then run it.

2. Read market loading

Warm-up. Print the Mkt-RF coefficient.

Write your answer, then run it.

3. Read alpha uncertainty

Warm-up. Print the 95% interval for const.

Write your answer, then run it.

4. Read adjusted fit

Build your skills. Print adjusted R-squared.

Write your answer, then run it.

5. Choose a search criterion

Build your skills. Given three candidate models, print the best by adjusted R-squared and the best by RMSE s.

Write your answer, then run it.

6. Fit a nested comparison

Build your skills. Fit a market-factor-only model on train and print its adjusted R-squared beside the five-factor value.

Write your answer, then run it.

7. Compare AIC

Build your skills. Print the market-only AIC and five-factor AIC.

Write your answer, then run it.

8. Evaluate five factors later

Challenge. Print five-factor test adjusted R-squared using the course formula, with k=5 and n equal to the test sample size.

Write your answer, then run it.

9. Calculate a factor VIF

Challenge. Regress HML on the other four factors and reconstruct HML VIF.

Write your answer, then run it.

10. Simplify the PPT factor example

Challenge. In the PPT illustration, CMA has p=0.18; all other slope p-values are below 0.05. Print a predictor list without CMA, and explain what to do next.

Write your answer, then run it.

Reference answers are locked until all 10 attempts are submitted.