Finance · MILP · Cardinality · Tracking error

Sparse Index Tracking as a MILP

A short list is a different programme, not a rounded long list.

A cardinality-constrained mixed-integer linear programme tracks a teaching index using mean absolute deviation or worst-period deviation. Squared tracking error is only a post-solve diagnostic; it is not placed in the same model as the binary variables. This is not Qi Houduo’s covariance-ambiguity tracking model. The default twenty-name universe solves to optimality; the thirty-six-name universe may time out.

OPERATIONAL PROBLEM
Full replication can be costly; a sparse portfolio must control tracking deviation with limited holdings.
DECISION CONTRAST
Compare cardinality-constrained mean-absolute-deviation and worst-period mixed-integer formulations.
READOUT
Inspect objective, tracking path, holdings, and solver gap.

A benchmark can be tracked with every name in the universe, or with a short list. This essay writes the short-list version as a mixed-integer linear programme: minimise mean absolute deviation (or the worst-period deviation) subject to a cardinality cap \(K\) and a minimum weight on names that are held. Squared tracking error is computed afterwards as a diagnostic. It is never placed in the same model as the binary variables — highs-js does not solve MIQP, so the objective on this page is the linear MAD or L∞ objective, not a quadratic tracking error.

Wash-sale constraints stay off. This is not Qi Houduo’s covariance-ambiguity tracking model.

VIEW MATHEMATICAL FORMULATION

Cardinality, MAD, and \(L^\infty\)

With period returns \(R_{ti}\) and index return \(r_t^I\), weights \(x\) and binaries \(z\),

\[ \sum_i x_i=1,\qquad \sum_i z_i\le K,\qquad \ell z_i\le x_i\le z_i, \]

the MAD programme introduces slacks \(u_t^+,u_t^-\) so that \(x^\top R_t - r_t^I = u_t^+-u_t^-\) and minimises \(\frac1T\sum_t(u_t^++u_t^-)\). The \(L^\infty\) toggle minimises a single \(\tau\) such that \(|x^\top R_t-r_t^I|\le\tau\) in every period. The default sandbox uses the first 20 names and all 52 weeks, which closes to optimality in the verifier. The full 36-name universe is available; it often hits the time limit, and a TimeLimit incumbent is not treated as Optimal.

Sandbox

Holdings used
8
Mean absolute deviation
0.002
Worst-period deviation
0.009
Squared tracking error (diagnostic)
0.00001
MIP gap
0

Held 8 names (K = 8). MAD is 0.0021; worst-period deviation is 0.0093. Squared tracking error 9.70e-6 is a diagnostic only and was not in the programme.

Tracking objective by portfolio cardinality.
Weekly tracking difference between the sparse portfolio and its benchmark.
Solved weights for the selected sparse holdings.
NameSectorWeight
A18S517.8441%
A01S014.2313%
A04S314.0825%
A03S211.7649%
A15S211.4345%
A02S111.3991%
A07S010.254%
A11S48.9896%
Spatial teaching view
Current held weights and weekly deviations; teaching data only. TimeLimit results are incumbents.

Current held weights and weekly deviations; teaching data only. TimeLimit results are incumbents.

Notes and limits