---
title: "Diversification Ratio"
method: POST
path: "/portfolios/analysis/diversification-ratio"
tags: ["Portfolio Analysis"]
---

# Diversification Ratio

`POST /portfolios/analysis/diversification-ratio`

Compute the diversification ratio of one or several portfolio(s).

References
* [Yves Choueifaty and Yves Coignard, Toward Maximum Diversification, The Journal of Portfolio Management Fall 2008, 35 (1) 40-51](https://doi.org/10.3905/JPM.2008.35.1.40)
* [Tristan Froidure, Khalid Jalalzai and Yves Choueifaty, Portfolio Rho-Representativity, International Journal of Theoretical and Applied FinanceVol. 22, No. 07, 1950034 (2019)](https://www.worldscientific.com/doi/10.1142/S0219024919500341)

## Request body

- union
  - object
    - `assets` integer, required — The number of assets
    - `assetsCovarianceMatrix` array[], required — assetsCovarianceMatrix[i][j] is the covariance between the asset i and the asset j
      - number[]
    - `portfolios` object[], required
      - `assetsWeights` number[], required — assetsWeights[i] is the weight of the asset i in the portfolio, in percentage
  - object
    - `assets` object[], required
      - `assetPrices` number[], required — assetPrices[t] is the price of the asset at the time t; all the assetPrices arrays must have the same length
    - `portfolios` object[], required
      - `portfolioValues` number[], required — portfolioValues[t] is the value of the portfolio at the time t; all the portfolioValues arrays must have the same length, equal to the common length of the assetPrices arrays

## Response `200`

OK

- object
  - `portfolios` object[], required
    - `portfolioDiversificationRatio` number, required — The diversification ratio of the portfolio

---

[API](https://skmtc.net/portfoliooptimizer/apis/portfolio-optimizer.md) · [All operations](https://skmtc.net/portfoliooptimizer/apis/portfolio-optimizer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/portfoliooptimizer/portfolio-optimizer/versions/479fd4ac44aa/schema)
