Course Module: Project 4 Multi-Factor Strategy Execution Lab Contract Reference: qa/a7/ch35_ch36_batch/INTERFACE_CONTRACT.md Purpose: Complete reference solutions to pedagogical exercises in transaction-cost accounting and execution algorithms. All Project 4 performance examples are constructed scenarios, not empirical alpha evidence.
Result identity: Exercise 6 and its historical metrics retain the original R2R6 old-signal values. They are not new market results from the 2026-10-14 current-signal summary. The accounting and timing tests discussed in Exercises 3–4 also cannot establish correct fee semantics from an IS identity alone.
Exercise 1: Algebraic Proof & Verification of Implementation Shortfall Direct Identity
Problem Statement
Given a signed parent order Q, filled child quantities fi summing to F=∑ifi, unexecuted remainder R=Q−F, decision price Pdecision, arrival price Parrival, terminal mark price Pterminal, and explicit fees Fees=∑ici:
Prove algebraically that the 4-part Implementation Shortfall decomposition is identically equal to the direct amount method.
What is the value of realized fill VWAP when F=0? How does the decomposition evaluate under zero fill?
Solution
1. Algebraic Derivation
These formulas apply to one parent order. Each nonzero child fill must have the parent order’s direction, and quantity conservation Q=F+R must hold. Do not combine offsetting fills across parent orders and treat them as one valid case. The engine’s compute_is_decomposition checks that domain. Recall the definitions from INTERFACE_CONTRACT.md:
Fill VWAP: The formula Pfill_VWAP=F∑fiPfill,i has zero denominator and is mathematically undefined (None or NaN). It must never be recorded as 0.0.
The identity holds seamlessly. It checks the arithmetic of the two IS calculations; if a duplicated fee is inserted into both fee totals, the difference may still be zero. Check the fee and cash-flow semantics separately.
A quantitative trader configures a participation limit of ρ=20%.
If ρ is defined with denominator excluding own fills (exclusive rate: own_fill/external_vol), what fraction of the total consolidated tape does the trader execute?
If the exchange reports an inclusive rate of ρincl=20% (denominator includes own fills: own_fill/(external_vol+own_fill)), convert this to the equivalent exclusive rate.
State the boundary conversions at ρ=0 and ρ=1.
Solution
1. Exclusive to Inclusive Conversion
Let f=own_fill and V=external_volume.
Exclusive rate: ρexcl=f/V=0.20⟹f=0.20V.
Inclusive rate:
ρincl=V+ff=V+0.20V0.20V=1.200.20=61≈16.67%
The trader executes 16.67% of total combined tape.
At ρ=0.0: Both rates equal 0.0. Max fill capacity is 0 shares.
At ρexcl=1.0: own_fill=1.0×external_vol, so ρincl=1.0/(1.0+1.0)=0.50 (50% of total tape).
At ρincl=1.0: ρexcl=ρincl/(1−ρincl) tends to infinity, so the capacity helper returns no upper bound. This mathematical boundary does not guarantee an actual fill. The project configuration and simulate_slot_fill use the exclusive denominator; do not treat an inclusive 20% limit as the configured 20% exclusive limit.
All monetary amounts in this exercise are USD. A long order of 1,000 shares is executed at mid price S=100.00, with half-spread of 0.03 per share, temporary impact of 0.02 per share, permanent impact of 0.01 per share, and a 5 bps commission rate.
Compute the realized fill price Pfill and the cash deducted upon fill execution.
Explain why deducting the spread (30) or temporary impact (20) a second time from cash constitutes a fatal accounting error.
Because the fill price Pfill=100.05 already embeds the half-spread (0.03) and temporary impact (0.02), the trader pays the extra 50.00 (1,000×0.05) through the price of the purchased shares. If the ledger also subtracts 50.00 as a cash fee while the explicit commission field still contains only the actual 50.025 commission, cash no longer matches the ledger equation:
The extra 50.00 is a cash residual. However, if an erroneous duplicate is also entered as a second fee in both the ledger and both IS calculations, the accounting checks and the direct/decomposed IS identity may still agree. The identity alone does not prove that the fee was counted only once.
3. Permanent Impact Treatment
Permanent impact (0.01) shifts the subsequent market equilibrium mid price:
Snew=100.00+0.01=100.01
This enters portfolio valuation naturally when positions are marked to market (1,000×100.01) at subsequent closes. It is never charged as an explicit cash fee.
Exercise 4: Causal Volume Leakage Defense via Adversarial Perturbation
Problem Statement
Describe an adversarial unit test that checks a VWAP or POV execution algorithm for future-volume leakage.
Solution
Methodology
Create chronologically ordered execution slots S=[s0,s1,…,sK−1]. Each slot has a frozen forecast volume Vforecast,k, lagged observed volume Vobserved,k, realized volume Vrealized,k, and fill/confirmation time.
Schedule parent order Q and save the child request at each send time as Cbase.
Perturb only realized volume for the current or future slots, for example by multiplying it by 100 or setting it to zero. Keep the information available at the send being tested identical: frozen forecasts, lagged observations, fills already confirmed strictly before that send, and reservations for unresolved earlier children.
Compare the child request at each tested send.
Assertion: With the send-time information set held fixed, changing realized volume that is not yet visible cannot change the child request at that send. VWAP requests use the frozen forecast curve; POV requests use the lagged observed volume. Realized volume can constrain the later fill, not the earlier request.
A changed fill in an earlier slot may legitimately change a later child request if that fill has been confirmed before the later send, because the remaining parent quantity has changed. A fill confirmed at the same timestamp as a send is unavailable to that send in this engine. Therefore, do not require all later requests to match pathwise when the perturbation changes fills that have become known by then; compare under the same information set at each send.
The VWAP test covers invariance of the frozen schedule to realized-volume perturbation. The POV test verifies that POV sends zero in slot 0 when no lagged volume is observed and that changing slot 1 realized volume leaves its request unchanged when cumulative fills are held at zero. These tests do not guarantee pathwise equality of later requests when confirmed past fills differ and change the remaining parent quantity.
Exercise 5: Trade-Off Analysis of Execution Schedulers
Question
Why did VWAP outperform TWAP in Total Implementation Shortfall, while POV severely lagged in the fixed-parent-order experiment?
Solution
VWAP vs TWAP:
In this constructed experiment, the external-volume path uses a U-shaped intraday profile. Because TWAP trades constant quantities per slot (Q/13), its participation rate is higher in the modeled low-volume midday slots. Forecast VWAP follows the pre-frozen constructed curve. For the 10,000-share buy order, VWAP IS is 541.70 bps versus TWAP 552.74 bps; for the sell order the values are 248.95 and 257.01 bps. The result illustrates this path and does not establish a general empirical ranking.
POV difference:
POV sizes each child from lagged volume already observed at the send. Slot 0 has no earlier observed volume, so it sends 0 shares. Later child requests are bounded by the remaining parent quantity and the configured participation rate times lagged external volume. A fixed POV schedule does not roll an unfilled amount into larger later orders or raise its participation rate to catch up. If later observed volume is low or realized capacity binds, remainder R can remain at cutoff and incur opportunity cost.
Exercise 6: Turnover, Fees, and Net Results in the Constructed Path
Question
In the old-signal R2R6 constructed walk-forward run, filled one-sided annual turnover is about 5.2383x and filled total-notional turnover is about 10.4767x NAV. Commission is 5 bps and half-spread is 2.5 bps per traded dollar. Estimate the mechanical fee-and-spread drag, then compare it with the gross/TWAP CAGR difference and explain why those values need not match.
Solution
The old-signal R2R6 rerun reports annual filled one-sided risky turnover τone=5.2383 and total risky-notional turnover V/NAV=10.4767 for TWAP, approximately 2τone in this constructed long-short path. Filled dollar notional uses actual execution prices, while requested notional uses the decision price; this small difference does not imply a share overfill. Applying the configured proportional fee rates to filled risky notional gives a simple pre-impact estimate:
The combined fee-and-spread estimate is about 78.6 annualized bps under the turnover metric’s monthly rebalance-NAV normalization, before impact and financing. In this old-signal corrected constructed path, gross CAGR is -0.26% and TWAP CAGR is -0.73%, a difference of about -46.9 bps. The two numbers need not match: CAGR compounds a monthly path, while the simple estimate omits temporary/permanent impact, cash interest, borrow, and changes in the sequence of marked portfolio values. Gross is already negative, so this example does not show positive alpha being erased by costs.
The 2026-10-14 current-signal refresh is a separate saved summary identity. Its results are documented in the research report; do not substitute those values for the R2R6 figures used in this exercise.