1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Bas_tet [7]
3 years ago
5

A source of information randomly generates symbols from a four letter alphabet {w, x, y, z }. The probability of each symbol is

as follows: P(w) = 1 2 ; P(x) = 1 4 ; P(y) = 1 8 ; and P(z) = 1 8 . These symbols are now encoded into binary codes using the scheme shown below. Let the random variable L denote the length of the binary code and pL(l) denote the PMF of L.symbol codew 0x 10y 110z 111Find the expectation and variance of L.
Mathematics
1 answer:
koban [17]3 years ago
5 0

The expected length of code for one encoded symbol is

\displaystyle\sum_{\alpha\in\{w,x,y,z\}}p_\alpha\ell_\alpha

where p_\alpha is the probability of picking the letter \alpha, and \ell_\alpha is the length of code needed to encode \alpha. p_\alpha is given to us, and we have

\begin{cases}\ell_w=1\\\ell_x=2\\\ell_y=\ell_z=3\end{cases}

so that we expect a contribution of

\dfrac12+\dfrac24+\dfrac{2\cdot3}8=\dfrac{11}8=1.375

bits to the code per encoded letter. For a string of length n, we would then expect E[L]=1.375n.

By definition of variance, we have

\mathrm{Var}[L]=E\left[(L-E[L])^2\right]=E[L^2]-E[L]^2

For a string consisting of one letter, we have

\displaystyle\sum_{\alpha\in\{w,x,y,z\}}p_\alpha{\ell_\alpha}^2=\dfrac12+\dfrac{2^2}4+\dfrac{2\cdot3^2}8=\dfrac{15}4

so that the variance for the length such a string is

\dfrac{15}4-\left(\dfrac{11}8\right)^2=\dfrac{119}{64}\approx1.859

"squared" bits per encoded letter. For a string of length n, we would get \mathrm{Var}[L]=1.859n.

You might be interested in
If you do 2+2 does it equal 22? or am i dum?
VMariaS [17]

I thought it was eight bro;;-;

8 0
3 years ago
Read 2 more answers
What is the equation of the line in slope-intercept form?
Anna35 [415]
<span>To write an equation in slope-intercept form, given a graph of that equation, pick two points on the line and use them to find the slope. This is the value of m in the equation. Next, find the coordinates of the y -intercept--this should be of the form (0, b) . ... Therefore, the equation for this line is y = - x + 2 .</span>
5 0
3 years ago
Read 2 more answers
1. Rosie orders dessert at the cafe. The total bill is $50. She tips the waiter 10%.
laila [671]

Answer:

5

Step-by-step explanation:

this means it'll be $55

3 0
2 years ago
Which of the following illustrates the truth value of the given conjunction?
Roman55 [17]

Answer:

an integer is  a rational number sometimes(eg.17=17/1) but not always.

a rational number can be written in the form p/q where p and q are integers.

Step-by-step explanation:

6 0
3 years ago
Find an equation for the line below.
vodka [1.7K]

Answer:

A(-6,-5) B(4,1)

Step-by-step explanation:

am not that sure

7 0
2 years ago
Read 2 more answers
Other questions:
  • A square with the side length s has an area of 324 square centimeters. This equation shows the area of the square. x^{2} =324 Wh
    14·1 answer
  • Kelly is reading a 288 page book
    6·1 answer
  • Solve the following 6x+2x=2(4x-7)- 6 help please I'd appreciate it &lt;3
    6·2 answers
  • Help! 1. Baby Yoda wants some soup, so he wanders around trying to find some. He starts at the bottom of the grid, and ends clos
    12·2 answers
  • At a basketball game, 55% of people attending were supporting the home team, while
    8·1 answer
  • Which of the following sets of ordered pairs represents a function?
    7·1 answer
  • Helpppppppppppppppppppppppppp
    8·1 answer
  • Two boxes sit on a desk. One has 5 pencils that are yellow, blue, red, green, and brown. The other box
    8·2 answers
  • Factoring trinomials
    5·1 answer
  • How many 4 digit EVEN numbers can be made using the numbers 0, 1, 2, 3 (repetition allowed)
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!