---
title: "Calculate the mutual information between variables"
method: POST
path: "/statisticalOperations/higherDimensionMutualInformation"
tags: ["Statistical operations"]
---

# Calculate the mutual information between variables

`POST /statisticalOperations/higherDimensionMutualInformation`

## Request body

- object
  - `k` integer, required — number of neighbors (must be < to len(X))
  - `base` integer — takes 2 (unit =bits), 10 (unit= nats)
  - `X` array[], required — list of list of the variables, it can take more than 2 variables
    - number[]

## Response `200`

mutual information between the variables

## Other responses

- `403` — Invalid Input

## Changes

- **2024-07-22** `3063ef5d8a81` — 1 info
  - api operation id `controller.statisticalOperations.higherDimensionMutualInformation` removed and replaced with `debiaiServer.controller.statisticalOperations.higherDimensionMutualInformation`
- **2024-07-19** `30f824d14afd` — 1 info
  - api operation id `debiaiServer.controller.statisticalOperations.higherDimensionMutualInformation` removed and replaced with `controller.statisticalOperations.higherDimensionMutualInformation`
- **2024-07-11** `67ad9bcbaea3` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/debiai/apis/debiai-backend-api/changes/statisticalOperations/higherDimensionMutualInformation/post.md)

---

[API](https://skmtc.dev/debiai/apis/debiai-backend-api.md) · [All operations](https://skmtc.dev/debiai/apis/debiai-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/debiai/debiai-backend-api/revisions/3063ef5d8a81/schema)
