I want to compute conditional cross entropy for a distribution like P(X1;Y|X2) where X1 and X2 are independent to each other.

P(X1,Y|X2) can be written: P(X1,X2,Y)/P(X2)=P(Y|X1,X2)*P(X1|X2)*P(X2)/P(X2)=P(Y|X1,X2)*P(X1). So, ultimately P(X1,Y|X2) = P(Y|X1,X2)*P(X1). Now what will the entropy of the distribution P(Y|X1,X2)*P(X1) be? How can it be implemented for some raw data in MATLAB?

More Sandipan Karmakar's questions See All
Similar questions and discussions