Skip to content
START WITH A QUESTION

What would you like to understand?

Find an answer. See the moment it becomes clear. Follow the idea further.

← Concept directory

Answers for “关于条件熵的 Matlab 练习是什么?”

2 keyword matches

Understanding your question. You can explore the search results below now.

Meet the concept

↗

The exercise asks students to implement a Matlab function conditionalentropy(p) that computes the conditional entropy of X given Y from a 2D joint probability matrix p(x,y)p(x,y). It includes specific test cases to verify correctness, such as deterministic and uniform distributions.

Conditions: Input p is assumed to be a 2D joint probability array p(x,y)p(x,y).; Students may reuse existing entropy() and jointentropy() routines.

Find a method

↗

The lecturer models English text as a Markov chain where the probability of the next character X depends on the previous character Y. By conditioning on context, such as knowing the previous letter is Q, the uncertainty about the next letter (often U) is greatly reduced, demonstrating how conditional entropy H(X|Y) lowers average code length.

Conditions: The source is English text.; The previous character is treated as conditioning information for the next character.