金融 · MILP · 基数 · 追踪误差

以混合整数线性规划做稀疏指数追踪

短名单是另一个规划问题,不是把长名单四舍五入。

以基数限制的混合整数线性规划,用平均绝对偏差或最差期偏差追踪教学指数。平方追踪误差只是事后诊断,不会与二元变量一并放入二次模型。这不是戚厚铎的协方差模糊(distributionally robust)追踪模型。预设二十只可求到最优;三十六只可能超时。

运营问题
完全复制成本可能过高;稀疏投资组合须以有限持仓控制跟踪偏差。
决策对照
比较具基数约束的平均绝对偏差与最差期间混合整数模型。
解读指标
检查目标值、跟踪路径、持仓与求解间隙。

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.

查看数学形式

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.

按投资组合基数绘制的跟踪目标。
稀疏投资组合与其基准的每周跟踪差异。
所选稀疏持仓的求解权重。
NameSectorWeight
A18S517.8441%
A01S014.2313%
A04S314.0825%
A03S211.7649%
A15S211.4345%
A02S111.3991%
A07S010.254%
A11S48.9896%
空间教学视图
当前持仓权重与每周偏差;教学数据。TimeLimit 结果并非已证明最优。

当前持仓权重与每周偏差;教学数据。TimeLimit 结果并非已证明最优。

Notes and limits