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

  • Base URL
    https://api.portfoliooptimizer.io/v1
  • URL
    https://api.portfoliooptimizer.io/v1/assets/correlation/matrix/distance
  • Auth
    API key in header X-API-Key

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

Changes

No recorded changes to this operation across all 22 revisions of this API.