Computes the operator-norm precision distortion \(\mathrm{C\text{-}RAFE} = \|\Sigma^{1/2} \hat\Sigma^{-1} \Sigma^{1/2} - I\|_2\).
Usage
compute_crafe(Sigma, Sigma_hat, variant = c("none", "cc05", "cc0", "cv", "i"))Arguments
- Sigma
Realised covariance matrix.
- Sigma_hat
Forecast covariance matrix.
- variant
Covariance restriction applied to
Sigma, from the nested sequence of Section 3.3; seerestrict_cov().
Details
The metric is zero if and only if \(\hat\Sigma = \Sigma\), and is invariant to the common scaling of both arguments.
Argument order
The realised covariance comes first, matching compute_crafe() in the
replication code of Salcher, Stöckl & Hanke (2026) so that paper code runs
unchanged against this package. The metric is not symmetric in its
arguments, so the order matters.
