conditional_entropy#
- conditional_entropy(x: Union[List, ndarray, Series], y: Union[List, ndarray, Series]) float [source]#
Calculate the conditional entropy of x given y: S(x|y).
Wikipedia: https://en.wikipedia.org/wiki/Conditional_entropy
- Parameters
- x: Union[List, np.ndarray, pd.Series]
A sequence of numerical_variable without nulls
- y: Union[List, np.ndarray, pd.Series]
A sequence of numerical_variable without nulls
- Returns
- float
Representing the conditional entropy