action portfoliooptimizer_post_assets_correlation_matrix_validation { label: "Correlation Matrix Validation" description: "Validate whether a matrix is an asset correlation matrix.\n\nReferences\n* [Wikipedia, Correlation and Dependence](https://en.wikipedia.org/wiki/Correlation_and_dependence#Correlation_matrices)\n" provider: portfoliooptimizer method: POST path: "/assets/correlation/matrix/validation" encoding: json input: { type: "object" required: ["assets", "assetsCorrelationMatrix"] properties: { assets: { type: "integer" description: "The number of assets" } assetsCorrelationMatrix: { type: "array" description: "assetsCorrelationMatrix[i][j] is the correlation between the asset i and the asset j" items: { type: "array" items: { type: "number" } } } } } output: { type: "object" required: ["message"] properties: { message: { type: "string" description: "Indicates whether the matrix is a valid correlation matrix" enum: ["valid correlation matrix", "invalid correlation matrix - non symmetric matrix", "invalid correlation matrix - non positive diagonal elements", "invalid correlation matrix - non positive semi-definite matrix"] } } } }