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
Solve the equation v + f – e = 2 for e.
3241004551 [841]
V+F-E=2
F-E=2-V
-E=2-V-F
E=-2+V+F
6 0
3 years ago
Simifyimg expressions pleaseeeeeeeee help me please I'm begging
seraphim [82]
   -3(6-10v-5v)
=-3(6-15v)
=-18+45v
-18+45v is the final answer.
8 0
3 years ago
If you roll two dice, find the probability of rolling a sum equal to either six or eight.
Yanka [14]

Answer:

6/12=1/2 the probability of rolling q sum equal to either six or eight

5 0
3 years ago
Write the expression as a product of polynomials: a(p–q)+q–p
Oxana [17]

Answer:

if p and q are symmetric matrices and PQ=QP then which of the following is/are true (A) QP^-1=P^-1Q (B) PQ is a skew symmetric (C) P^-1Q is symmetric (D) and both (A) an (C)

4 0
4 years ago
32. What would be the volume in liters of 720 g of oil if the density of the oil is 0.9 g/mL?
dusya [7]

Answer:

D= m/v. if D = 0.9 C.M m/720 = 648

5 0
3 years ago
Other questions:
  • Plz answer and thank you
    10·2 answers
  • What does x equal in 1/3x=24
    8·2 answers
  • 2 thousands + 12 hundreds the sum in standard form
    6·1 answer
  • I found a place that will give me 20% discount if I spend over $50.My bill $75.How much money will I save? What is my final bill
    6·1 answer
  • Guys I need the rights sneer ASAP ready the question and look at the pic
    15·1 answer
  • How to solve x squared +3x + xk + 3k
    15·1 answer
  • Which postulate or theorem justifies the following statement? If two angles are a linear pair, then they are supplementary angle
    14·1 answer
  • How do I understand graphs?
    11·1 answer
  • What if I don’t have a opposite in my trigonometry is it Sah Coh or toa
    12·2 answers
  • Please answer this question, and happy valentines day!! <3
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!