Home / Expert Answers / Statistics and Probability / if-i-have-a-piecewise-nbsp-probability-mass-function-p-x-which-is-1-9-when-x-0-1-x-x-1-when-x-i-pa808

(Solved): If I have a piecewise probability mass function, p(x), which is 1/9 when x= 0 1/x(x+1) when x i ...



If I have a piecewise probability mass function, p(x), which is

1/9 when x= 0

1/x(x+1) when x is between 1,2, 3, ...., 8.

The question says:

The entropy of a random variable represents the amount of information in the variable. For a discrete random variable the entropy is given by -E(ln(p(x))). Calculate the entropy of X.

I'm reading this as "negative (the expected value of (the natural logarithm of p(x)))".

The standard expected value formula is in the picture attached. ? x * p(x)

Now how do I have to change that formula to calculate  -E(ln(p(x))).

My idea is that its ? x * ln(p(x)). 

Can someone confirm this and tell me what they get for their entropy?

 

Definition
Let X be a discrete rv with set of possible values D and pmf
p(x). The expected value or mean value of X, denoted

Definition Let X be a discrete rv with set of possible values D and pmf p(x). The expected value or mean value of X, denoted by E(X) or My or just u, is , E(X) = Mx = = Ex·p(x) XED


We have an Answer from Expert

View Expert Answer

Expert Answer


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe