Validate whether a matrix is a covariance matrix.
References
643 matches
83 actions
Portfolio Optimizer
83 actions
Finance/Portfolio Optimizer
Validate whether a matrix is a covariance matrix.
References
{
"type": "object",
"required": [
"assets",
"assetsCovarianceMatrix"
],
"properties": {
"assets": {
"type": "integer",
"description": "The number of assets"
},
"assetsCovarianceMatrix": {
"type": "array",
"description": "assetsCovarianceMatrix[i][j] is the covariance between the asset i and the asset j",
"items": {
"type": "array",
"items": {
"type": "number"
}
}
}
}
}{
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string",
"description": "Indicates whether the matrix is a valid covariance matrix",
"enum": [
"valid covariance matrix",
"invalid covariance matrix - non symmetric matrix",
"invalid covariance matrix - non positive diagonal elements",
"invalid covariance matrix - non positive semi-definite matrix"
]
}
}
}