Home > freetb4matlab > info-theory > conditionalentropy_YX.m

# conditionalentropy_YX

%

## SYNOPSIS

function val=conditionalentropy_YX(XY)

## DESCRIPTION

% -*- texinfo -*-
% @deftypefn {Function File} {} conditionalentropy_YX (@var{xy})
%
% Computes the
% @iftex
% @tex
% $H(\frac{Y}{X}) = \sum_i{P(X_i) H(\frac{Y}{X_i})$, where
% $H(\frac{Y}{X_i}) = \sum_k{-P(\frac{Y_k}{X_i}) \log(P(\frac{Y_k}{X_i}))$.
% @end tex
% @end iftex
% @ifinfo
% H(Y/X) = SUM( P(Xi)*H(Y/Xi) ), where H(Y/Xi) = SUM( -P(Yk/Xi)log(P(Yk/Xi)))
% @end ifinfo
% The matrix @var{xy} must have @var{y} along rows and @var{x} along columns.
% @iftex
% @tex
% $X_i = \sum{COL_i} %$Y_i = \sum{ROW_i}
% $H(Y|X) = H(X,Y) - H(X)$
% @end tex
% @end iftex
% @ifinfo
% Xi = SUM( COLi )
% Yi = SUM( ROWi )
% H(Y|X) = H(X,Y) - H(X)
% @end ifinfo
% @end deftypefn
% @seealso{entropy, conditionalentropy_XY}

## CROSS-REFERENCE INFORMATION

This function calls:
This function is called by:

Generated on Sat 16-May-2009 00:04:49 by m2html © 2003