v2

latestOpenAPI 3.0.1Apache 2.02026-07-2623201.3 MB
Assets / Correlation Matrix

Correlation Matrix Distance

Compute the distance between an asset correlation matrix and a reference correlation matrix, using one of the following distance metrics:

  • Euclidean distance (default), which is the distance induced by the Frobenius norm
  • Correlation matrix distance, defined in the first reference, which corresponds to the cosine distance between the two vectorized asset correlation matrices
  • Bures distance, defined in the second reference

References

post/assets/correlation/matrix/distance

Request body

assetsinteger required
distanceMetric'euclidean' | 'correlationMatrix' | 'bures'

The distance metric to use to compute the distance between the asset correlation matrix and the reference correlation matrix

Response

OK

assetsCorrelationMatrixDistancenumber required

The computed distance between the two correlation matrices