金融 · 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.
| Name | Sector | Weight |
|---|---|---|
| A18 | S5 | 17.8441% |
| A01 | S0 | 14.2313% |
| A04 | S3 | 14.0825% |
| A03 | S2 | 11.7649% |
| A15 | S2 | 11.4345% |
| A02 | S1 | 11.3991% |
| A07 | S0 | 10.254% |
| A11 | S4 | 8.9896% |
空间教学视图
当前持仓权重与每周偏差;教学数据。TimeLimit 结果并非已证明最优。
Notes and limits
- The plot of the solved MAD or \(L^\infty\) objective against \(K\) is the object of interest. Squared tracking error is reported as a diagnostic only.
- Minimum weight on a held name is 1%. Short sales and wash-sale constraints are off.
- Returns and the cap-weighted teaching index are illustrative, not an official benchmark.