---
title: "Empirical Tracking Error"
method: POST
path: "/portfolios/analysis/empirical-tracking-error"
tags: ["Portfolio Analysis / Risk Measures"]
---

# Empirical Tracking Error

`POST /portfolios/analysis/empirical-tracking-error`

Compute the empirical tracking error between a portfolio and a benchmark.

References
* [Konstantinos Benidis; Yiyong Feng; Daniel P. Palomar, Optimization Methods for Financial Index Tracking: From Theory to Practice , now, 2018.](https://ieeexplore.ieee.org/document/8384194)

## Request body

- union
  - object
    - `benchmarkReturns` number[], required — benchmarkReturns[t] is the arithmetic return of the benchmark at the time t; the benchmarkReturns array must have the same length as all the portfolioReturns arrays and all the assetReturns arrays
    - `assets` object[], required
      - `assetReturns` number[], required — assetReturns[t] is the arithmetic return of the asset at the time t; all assetReturns arrays must have the same length; all assetReturns arrays must have the same length as the benchmarkReturns array
    - `portfolios` object[], required
      - `assetsWeights` number[], required — assetsWeights[i] is the weight of the asset i in the portfolio, in percentage; all the assetsWeights arrays must have the same length as the assets array
  - object
    - `benchmarkReturns` number[], required — benchmarkReturns[t] is the arithmetic return of the benchmark at the time t; the benchmarkReturns array must have the same length as all the portfolioReturns arrays
    - `portfolios` object[], required
      - `portfolioReturns` number[], required — portfolioReturns[t] is the arithmetic return of the portfolio at the time t; all the portfolioReturns arrays must have the same length as the benchmarkReturns array

## Response `200`

OK

- object
  - `portfolios` object[], required
    - `portfolioEmpiricalTrackingError` number, required — The empirical tracking error of the portfolio v.s. the benchmark

---

[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/revisions/efac1128c762/schema)
