nispace.stats.coloc.mutualinfo

nispace.stats.coloc.mutualinfo(x, y, n_neighbors=3)[source]

Compute mutual information between x and y using sklearn.

Parameters:
  • x (numpy.ndarray) – shape (n_values, n_predictors)

  • y (numpy.ndarray) – shape (n_values, 1) or (n_values,)

  • n_neighbors (int, optional) – Number of neighbors for MI estimation. Defaults to 3.

Returns:

mutual information between x and y

Return type:

float