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
Simplify 4a+a+6a <br> Help!!!
maw [93]

Your answer here is 11a

5 0
3 years ago
Read 2 more answers
What is 15% of ____ is 27
serious [3.7K]

Answer:

it's 180

15% of 180 is 27

hope it helps :)

3 0
3 years ago
Read 2 more answers
Yanni read 24 pages of
Aleks [24]
There are 23 pages left to read
5 0
3 years ago
(Pls help me)
Delicious77 [7]

Answer:

\boxed{ \tt{in \:  a  \:  quadratic  \:  equation \: the \: highest \: power \:  is \: 2}} \\ \boxed{ \tt{hence \: she \: was \: not \: correct}}

6 0
3 years ago
PLEASE HELP 30 points!!!!<br><br>what is the slope of this line in the picture?
Alex Ar [27]
The answer is 1/4
because the answer 3/12 = 1/4
6 0
4 years ago
Other questions:
  • The mass of the particles that a river can transport is proportional to the sixth power of the speed of the river. A certain riv
    14·1 answer
  • Square root of 2 divided by 2
    14·1 answer
  • Translate the sentence into an inequality. Eight times the sum of a number and 20 is greater than or equal to 25. Use the variab
    8·1 answer
  • Can someone help me answer this question asap
    12·1 answer
  • jaden made a pot of chili with 48 ounces of ground beef and 2 tablespoons of chili powder.he made another pot of chili with the
    5·2 answers
  • Kimberly makes a conjecture that the sum of two odd integers is always an even integer. Which choice is the best proof of her co
    10·1 answer
  • 33. A labourer is engaged for 20 days on the condition that he will receive 120 for each day he
    12·1 answer
  • A water tank is 5m tall and has a diameter of 3,5m. Calculate the capacity (volume) of the tank. Use pi=3,14
    15·1 answer
  • What is the solution for the system of equations {4x−3y=36x−2y=4?
    7·1 answer
  • Two students, Joseph and Madelyn, line up one behind the other. How many different ways can they stand in line?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!