Project 5 — Exercises
These constructed exercises inherit the limited c5/ALIGN acceptance and the later whole-share boundary. This BIL17B bilingual teaching candidate awaits independent acceptance. Complete answers are in solutions.md; reference implementation: projects/project05/solutions_code.py. Code exercises use the teaching constructed panel in src/p05_constructed.py. It demonstrates methods, not market evidence. Real-price research remains blocked; see report Section 2.
Prerequisites: Chapters 16–17 (stationarity and cointegration), Chapters 29 and 31 (accounting and walk-forward evaluation), and Chapters 35–36 (costs, execution, and IS).
P5-01 — Hedge units, hand calculation. Training regression
P5-02 — Corporate actions, hand calculation. This is a corporate-action scenario independent of the P5-01 entry: before the events, the account already holds 5,681 shares of
P5-03 — Financing and borrow, hand calculation. Return to the original P5-01 entry, not the post-split/dividend P5-02 account. Initial cash is USD 1,000,000 with no holdings; ignore entry fees. This constructed cash model allows all short-sale proceeds to earn interest. Initial NAV is therefore also USD 1,000,000; gross target exposure alone would not establish it. Find post-entry cash. Friday 16:00 to Monday 09:30 lasts 65.5 hours in UTC or over a weekend without a DST change. Assume DFF 5.33% is known at interval start; this is a problem input, not a new historical rate check. The cash credit rate is DFF minus 25 bp; annual borrow is 25 bp; value the short at the available Friday close of USD 50. Under ACT/360, calculate days, interest, borrow charge, and ending cash.
P5-04 — IS across partial fills on two days, hand calculation. An exit sells
P5-05 — Correlation is not cointegration, code. For constructed TA/TB, calculate level correlation, daily-return correlation, and EG
P5-06 — Leakage diagnostics, code. Multiply every price after the first formation endpoint by 1.5. Re-estimate that window’s Formation and compare leakage_checks() in solutions_code.py: what does each of its three channels rule out, and why does passing not prove that all leakage is absent?
P5-07 — Critical values, code. For first-window CA/CB OLS residuals, report the EG statistic, its 5% critical value, and the ordinary ADF 5% critical value. Which determines the conclusion? How does the conclusion change if the ordinary ADF cutoff is used incorrectly?
P5-08 — Selection and multiple testing, code and interpretation. Run the three constructed pairs under v2, EG
P5-09 — Partial fills and leg risk, code. Set matched and independent: partial-fill rows, exit-retry rows, and the largest first-fill deviation “actual share ratio / ordered share ratio − 1.” What does cancellation of an entry remainder imply for PnL? Why can cancellation of an exit remainder not be treated as closing the position? What sample, capacity, and whole-share-domain limits constrain daily retries? Why can full-day volume not determine a 09:30 fill?
P5-10 — Research judgment. Real-price data are blocked by licensing. Write a report conclusion stating what is and is not supported, where authorized data would enter the pipeline, what must be rerun, and which results would lead to “the evidence does not support the strategy.”