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]
2 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]2 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
0.3(-2 1/6) + 0.35 I will Medal PLEASE ANSWER SOOOON
Mice21 [21]
0.3 * (-(2 1/6))) + 0.35 = -0.3
That's how I got it.
8 0
2 years ago
Read 2 more answers
Find the perimeter and area
stiks02 [169]

Answer:

The area is 63a

The perimeter is 39b

Step-by-step explanation:

8 0
3 years ago
The function f(x) is given by the set of ordered pairs.
My name is Ann [436]
Answer: f(0) = 6.

Explanation:

Ther ordered pairs are: (x,y) or (x, f(x) )

So, (1,0) means that f(1) = 0 which denies the fourth choice.

(-10,2) means that f(-10) = 2 which denies the first choice

(0,6) means that f(0) = 6, which is the third choice. So, that is the true equation.
4 0
3 years ago
Read 2 more answers
What is the general equation of a line?
zheka24 [161]
That sir would be I think its y=mx+b
7 0
3 years ago
Read 2 more answers
Hans leaned a 17 ft ladder against his house. He placed the base of the ladder 8 ft from his house, and the top of the ladder re
Fynjy0 [20]

Answer:

b

Step-by-step explanation:

so 17 squared minus 8 squared is 225. the square root of 225 is 15

7 0
3 years ago
Other questions:
  • Pls show me how to do this
    13·1 answer
  • You made two deposits to your bank account this month. One deposit was $24.61 and the second deposit was $16.49. Your balance at
    6·1 answer
  • If AABCAFED, which of the following statements is correct?
    10·1 answer
  • Approaching deadline help is highly appreciated thanks in advance
    12·1 answer
  • What are the factors for 51
    9·1 answer
  • Students are finding it difficult to determine if a certain graph is a function. Which is the BEST strategy for the students to
    9·1 answer
  • 6 * 2/8 =<br> (Write as a fraction or a mixed number)
    5·2 answers
  • In one town, 4% of 18-29 year olds own a house, as do 21% of 30-50 year olds and 55% of those over 50. According to a recent cen
    10·1 answer
  • Solve the equation 2x^2 + 5x – 8 = 5/2x + 20 by writing a linear-quadratic system and solving using the intersection feature of
    14·2 answers
  • Please help me! I’ll mark as brilliant
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!