a2rl.utils.better_than_random#

a2rl.utils.better_than_random(Y, X)[source]#

Tests if the information gain of the input series given a conditioning series H(Y|X) is better than random.

Parameters:
  • Y (ndarray) – tokenized input 1D array. The entropy is calculated on this series.

  • X (ndarray) – tokenized input 1D array. The conditioning array

Return type:

bool

Returns:

A True/False indicating whether information is exchanged between X and Y