Want the predictions to match at each knot: \[ \sum_{i=1}^{4} \theta_{ij}\left(\mathrm{knot}_j\right)^{i-1} = \sum_{i=1}^{4} \theta_{i,j+1}\left(\mathrm{knot_{j}}\right)^{i-1} \]
Also want derivatives to match at each knot: \[
\sum_{i=2}^{4} (i-1)\theta_{ij}\left(\mathrm{knot}_j\right)^{i-2} = \sum_{i=2}^{4} (i-1)\theta_{i,j+1}\left(\mathrm{knot_{j}}\right)^{i-2}
\]
Full Problem
Each knot produces two linear equations
Can write overall as \(C\mathbf{\theta} = \mathbf{d}\)
Annualized risk defined as \(\sqrt{T_{y}}\sqrt{\mathrm{var(\rho)}}\)
Covariance Formulation
Can also measure risk based on covariance matrix between daily returns of each asset: \[
\Gamma_{ij} = \frac{1}{T}\sum_{i=1}^T \left(R_{it} -\bar{\rho}_i\right)\left(R_{jt} - \bar{\rho}_j\right)
\]