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
What is the distance between the florist’s shop (D) and the car wash (E)? Explain using coordinate subtraction.
VARVARA [1.3K]

Answer:

hi! once you link the picture I will answer the problem.

Step-by-step explanation:

5 0
3 years ago
How does having a different strategy to try when you encounter a roadblock help?
UkoKoshka [18]

Answer:

It always helps to have at least one emergency strategy for each subject because it is easy to just lose focus or not be interested. It can help by getting you back on track or solve a problem.

Step-by-step explanation:

5 0
3 years ago
Perfect Squaress less than 30​
levacccp [35]

The perfect whole squares are 1, 4, 9, 16, 25, 36, 49, 64, 81, 100.

Less than 30 are:

<h2>1, 4, 9, 16, 25</h2>
5 0
4 years ago
What is the length of side AC of the triangle? Pls hurry
kodGreya [7K]

Answer:

Step-by-step explanation:

According to the first triangle inequality theorem, the lengths of any two sides of a triangle must add up to more than the length of the third side. This means that you cannot draw a triangle that has side lengths 2, 7 and 12, for instance, since 2 + 7 is less than 12.

3 0
3 years ago
Read 2 more answers
How can you tell whether the parabola had a vertical or horizontal shift?
Schach [20]
If the x is squared, the parabola is vertical (opens up or down). If the y is squared, it is horizontal (opens left or right). If a is positive, the parabola opens up or to the right. If it is negative, it opens down or to the left.
3 0
3 years ago
Other questions:
  • Can someone please explain how to solve it ?? ​
    11·1 answer
  • How far and what direction the decimal move from meters to centimeters?
    9·1 answer
  • Rewrite the following without an exponent:<br> 4^-4. (-4 is the exponent).<br><br> Thank you!
    15·1 answer
  • Help please
    7·1 answer
  • What is 5 (3x + 2y) -2 (3x + 2y) ?
    13·1 answer
  • AB passes through A(-3,0) and B(-6, 5). What is the equation of the line that passes through the origin and is parallel to AB?
    13·1 answer
  • The committee is planning a party and 150 guests are expected. Each table seats 12 people. How many tables will be needed to sea
    7·1 answer
  • PLEASE HELP MEEEEEEE
    12·1 answer
  • A deposit plus $8 per hour<br> *translate the expression*
    6·1 answer
  • Please help<br>much appreciated ​
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!