Case studyGoalPath
CourseMIE479 Financial Engineering
Capstone, U of T
WithMax Zhang
Chenny Jiang
Melody Nguyen
SupervisorProf. Roy H. Kwon
StatusIn build
final report Dec 2026
PeriodSep – Dec 2026

Investing toward a number by a date

Open the five-minute investor demo →

Most portfolio tools answer a question nobody asked. The investor the capstone brief describes is not looking for the best portfolio. They have this much, they need that much by that date, and they would rather not lose sleep on the way. GoalPath is a decision-support system for that person. It takes current wealth and holdings, a terminal target, a deadline, a risk aversion and a cap on how many positions to hold, and it returns three things: the trade to make now, whether the target is still reachable under the model, and what the shortfall looks like if it is not.

How it decides

Every month the system runs the same loop. It fits return forecasts inside the training window, standardising the predictors, reducing them with principal components and regressing each asset’s next return on the result. It turns those forecasts into joint scenarios by resampling the residual vectors across assets together, so that shocks which moved together in history move together in the future. It checks whether any policy can meet the expected-wealth target under the trading constraints. If one can, it optimises over the remaining horizon with a concave utility of terminal wealth, binary variables for which assets are held, and proportional fees that come out of cash whenever a trade happens. Then it executes only the current trade. Everything after that is a plan, redone next month with another month of data.

EVERY MONTH · UNTIL THE DEADLINEThe investorwealth, holdings, goal, deadline,risk aversion, holding limitMarket dataeverything to dateForecast and simulatePCA-OLS, joint bootstrapStill reachable?expected-wealth checkPlan, trade onceutility, holding limit, feesNext monthobserve what happened, update the account, plan againFuture trades are plans, not commitments. Only today's trade is executed; the rest is redone with next month's information.

Figure 1. One month. If the target is not reachable, the system says so and shows the bound that proves it, rather than presenting a portfolio that happens to satisfy the constraint on paper.

Three questions, kept apart

The design separates what the future might look like, whether the goal is feasible, and which feasible policy the investor would prefer. They are easy to blur. A risk aversion expressed only through utility does not shrink the set of feasible policies; a hard risk limit does, and the two should not be confused. A time-limited integer solve that fails to find a plan reaching the target has not proved the target impossible; only a valid upper bound below the target does that. And expected terminal wealth, the probability of reaching the goal and the mean shortfall below it answer three different questions, so the system reports all three rather than the most flattering one.

My part of the proposal

Four-person team. For the proposal in September I wrote the justification of the modelling choices and the evaluation plan. The justification argues for receding-horizon planning over dynamic programming across a state space that would not fit; for PCA-OLS before an elastic net; for resampling residuals jointly, and in stationary blocks when history allows; for a concave utility with a separate expected-wealth constraint and CVaR as a diagnostic rather than the objective; for the holding limit inside the optimisation as binary variables rather than as a cleanup of small positions afterwards, which could invalidate the goal or change the costs; and for fees deducted from cash as they occur rather than approximated by a turnover penalty. The evaluation plan holds the rest of the system fixed while one component changes, puts equal weight in the benchmark set as a serious contender, and keeps a later holdout out of every model-selection decision.

When Prof. Kwon’s feedback on the proposal came back in October, I wrote the team’s revision note. It reframed the design as multi-period optimisation with receding-horizon execution, after Boyd and co-authors (2017), derived a two-slope terminal utility, one slope for surplus and a steeper one for deficit, as a linear program with no binaries, set out the planning problem with forecast dynamics and a covariance penalty, and worked out the cash threshold at which a goal reached early can simply be funded and the risk taken off.

Reproducing the system, then testing the idea

For the progress report I first reproduced my teammate’s full system on my own machine: the locked environment, the licensed data release, a solver licence, and one fix for a platform incompatibility. All 24 reference accounts reproduced; sixty monthly returns per method match the saved series to within 2e-12. A result I cannot reproduce is not a result I will build on.

My own recount of a teammate’s saved runs on my own machine. Agreement between two runs of the same code is not validation of the method.

Then I ran the comparison the revision note called for: five methods over twelve five-month episodes from 2014 to 2018, sixty accounts in all, every one independently recounted, with thirteen timeout reruns on unchanged settings. Three of the arms isolate what planning adds. B0 chooses today’s trade with no provisional future trades. B1 adds them. B2 adds regime-conditioned return and covariance forecasts on top.

MethodGoals reached
GoalPath, the team system9 of 12
Ledoit-Wolf mean-variance10 of 12
B0: no future trades8 of 12
B1: provisional future trades8 of 12
B2: B1 with regime forecasts8 of 12

Adding provisional future trades changed mean terminal wealth by −$10.87. Adding regime forecasts on top of that changed it by −$522.62. Both paired intervals include zero. On this sample, planning ahead and knowing the regime bought nothing measurable, and that is the finding I reported.

The first, simpler Boyd planner, on twelve five-month episodes from 2014 to 2018. Both paired intervals include zero. Five-month episodes do not validate a five-year product, and the revised planner has no matched backtest yet, so there is no revised ranking.

The diagnosis is more useful than the ranking. The first planner applied the utility to a single projected terminal wealth, so once the projection cleared the goal the steep shortfall slope was never active, and the forecast understated how much risk the portfolio was carrying. I rebuilt the planner so the utility applies to each terminal outcome across joint scenarios, with stock-specific forecasts, the full covariance, signed positions, cash, and trading and borrowing over a provisional trade sequence, plus a structured future-trade variant. Sixty model checks pass, and a 3,550-stock, 8,192-path signal solves in about three minutes. The matched backtest of the revised planner has not run yet, so there is no revised ranking to report, and I am not going to guess at one.

I wrote the Boyd extension section of the team’s progress report, with the five-arm table above, repaired its build, and produced the companion package: a short progress note, the team’s slide deck and the source.

Where it stands

The proposal went in at the end of September 2026 and the progress report on 23 October. The revised planner’s backtest, the November progress meeting, and the final report, code and demonstration in December are what remains. Five-month episodes do not validate a product meant to run for five years, and nothing on this page should be read as saying they do.

Team of four: Max Zhang, Chenny Jiang, Melody Nguyen and me, supervised by Prof. Roy H. Kwon. The reference system is Max’s build. The replication, the five-arm comparison, the diagnosis and the revised planner are mine, with Codex in the loop for reproduction, implementation and drafting, under checks I set and recounted by hand. The proposal’s problem definition, its review of the optimisation and estimation literature, and its framework sections are my teammates’.

← All work