返回题库

Quant Interview Practice Questions

专题
Probability & Statistics
难度
L2
来源
MyntBit

题目详情

A fair six-sided die is rolled. Each face has an equal probability of landing face up. Calculate the Shannon entropy of the outcome, expressed in bits. The Shannon entropy H(X)H(X) is defined as: H(X)=pilog2piH(X) = - \sum p_i \log_2 p_i, where pip_i is the probability of outcome ii.