Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

. Let the random variable X be five possible symbols {a, ,y, 8, e). Consider two probability distributions p(x) and q(x) over these symbols,

. Let the random variable X be five possible symbols {a, , y, 8, 8). Consider two probability distributions

. Let the random variable X be five possible symbols {a, ,y, 8, e). Consider two probability distributions p(x) and q(x) over these symbols, and two possible coding schemes C (x) and C (x) for this random variable: Symbol p(x) q(x) C(x) 1/2 1/2 0 10 B 8 C(x) 0 100 1/4 1/8 1/8 1/8 110 101 1/16 1/8 1110 110 1/16 1/8 1111 111 (a) Calculate H(p), H(q), D (p|lq) and D(q|lp). (b) The last two columns above represent codes for the random variable. Is code C optimal for p(x)? Is code C optimal for q(x)? (c) Assume that we use code C when the distribution is p. What is the average length of the codewords? By how much does it exceed the entropy H(p)? Relate your answer to D (pl|q). (d) Assume that we use code C when the distribution is q. What is the average length of the codewords? By how much does it exceed the entropy H(q)? Relate your answer to D(qllp).

Step by Step Solution

3.49 Rating (156 Votes )

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Bayesian Statistics An Introduction

Authors: Peter M. Lee

4th Edition

1118332571, 978-1118332573

More Books

Students also viewed these Programming questions

Question

What are the primary reasons for holding inventory?

Answered: 1 week ago