would like to ask how we could use simulated asset returns (a matrix $R\in\mathbb{R}^{s\times d}$ from scenarios, row per sample and col per asset) to construct a risk parity portfolio (RPP).
by definition, RPP minimize the std.dev.(variance) of derivative of portfolio return std.dev.(variance) w.r.t. asset weights
$$ \underset{\mathbf{w}}{\min} \mathbb{V}_d[ \frac{\partial \sqrt{(\mathbb{V}_s[\mathbf{R}\mathbf{w}])}}{\partial \mathbf{w}} ] $$
where $\mathbf{w}$ is a col vector of portfolio weights, $\sqrt{\mathbb{V}_s[\mathbf{Rw}]}$ is std.dev. of portfolio returns in sampled scenarios, the external $\mathbb{V}_d$ is the std.dev. of derivatives (w.r.t. portfolio weights); overall this objective function aims to let each weight contribute equally towards risk in various scenarios.
the objective function is:
R = MatrixSymbol["R", {s, d}, Reals];
w = VectorSymbol["w", d, Reals];
StandardDeviation[D[StandardDeviation[R . w], w]] // Normal //
Rationalize // FullSimplify
1. is this objective function convex? what are suitable optimization algorithms? SGD/ADAM/etc.?
2. For application we may further add regularization terms to let weights be penalized for transaction cost and benchmarked upon, for example, equal weight (Talmud):
$$ \underset{\mathbf{w}}{\min} \mathbb{V}_d[ \frac{\partial \sqrt{(\mathbb{V}_s[\mathbf{R}\mathbf{w}])}}{\partial \mathbf{w}} ] + c\|\mathbf{w}-\mathbf{w}_0\|_1 + \lambda\|\mathbf{w}-\frac{1}{d}\|_1 $$
here $c$ is transaction cost (0.0015), $\mathbf{w}_0$ as portfolio weights prior to rebalancing, $\lambda=0.001$ a regularization constant, and $\frac{1}{d}$ as the equal weight.
would those 1-norm affect convexity? what are suitable optimization algorithms in this case?
3. since we can use the "classical" risk parity from the least square (from wiki https://en.wikipedia.org/wiki/Risk_parity), using covmat from scenario simulated returns directly, say the solution is $\mathbf{w}_{rp}$ $$ {\displaystyle {\underset {w}{\arg \min }}\sum _{i=1}^{N}\left[w_{i}-{\frac {\sigma (w)^{2}}{(\Sigma w)_{i}N}}\right]^{2}} $$
can we merge those into one obj fun to reach a trade-off among transaction cost, risk-parity style, and equal weight style? $$ \underset{\mathbf{w}}{\min} ~ c\|\mathbf{w}-\mathbf{w}_0\|_1 + \lambda_1\|\mathbf{w}-\mathbf{w}_{rp}\|_1 + \lambda_2\|\mathbf{w}-\frac{1}{d}\|_1 $$
