Compute an exponentially weighted covariance matrix of assets returns.
References
643 matches
83 actions
Portfolio Optimizer
83 actions
Finance/Portfolio Optimizer
Compute an exponentially weighted covariance matrix of assets returns.
References
{
"type": "object",
"required": [
"assets"
],
"properties": {
"assets": {
"type": "array",
"items": {
"type": "object",
"required": [
"assetReturns"
],
"properties": {
"assetReturns": {
"type": "array",
"description": "assetReturns[t] is the return of the asset at the time t; all the assetReturns arrays must have the same length",
"items": {
"type": "number"
}
}
}
}
},
"decayFactor": {
"type": "number",
"description": "The exponential decay factor"
}
}
}{
"type": "object",
"required": [
"assetsCovarianceMatrix"
],
"properties": {
"assetsCovarianceMatrix": {
"type": "array",
"description": "assetsCovarianceMatrix[i][j] is the sample covariance between the asset i returns and the asset j returns",
"items": {
"type": "array",
"items": {
"type": "number"
}
}
}
}
}