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
Is it possible to draw a triangle with numbers 5,6,11
Tatiana [17]

Answer:

No

Step-by-step explanation:

Let's use the Pythagorean Theorem. For those of you that don't know, it is a^2 + b^2 = c^2\\.  

11 is the bigger side in this case, so our formula would go like this: 5^2 + 6^2 = 11^2\\.

We now calculate to see if this is true.

25 + 36 \neq 121

Therefore, the answer is wrong.

8 0
3 years ago
Read 2 more answers
3. Classify the number: -4
BabaBlast [244]

Answer:

Aight.

Rational, Real, Integer, Negative

7 0
3 years ago
Read 2 more answers
Whats the rule for the pattern 8,6,9,7,10.....?
Delicious77 [7]

Answer:

subtract 2 and add 3

Step-by-step explanation:

8-2=6

6+3=9

9-2=7

7+3=10

4 0
3 years ago
Kathleen deposits $20 into her account that earns 2.5% interest that is compounded twice a year. How much money will Kathleen ha
Arada [10]
A=20×(1+0.025÷2)^(2×30)
A=42.14
8 0
3 years ago
A box contains five slips of paper. Each slip has one of the number 4, 6, 7, 8, or 9 written on it and all numbers are used. The
max2010maxim [7]
A. If the player chooses 6, 4, and 8 each time, they have 3/5 chances to win.

6+4= 10

6+8= 14

8+4= 12

These are all even so as long as they get one of these combinations they will win

b. All three combinations still work when multiplied

6*4=24
6*8=48
8*4= 32
6 0
3 years ago
Other questions:
  • 6 + y = 20 please help meeee
    8·2 answers
  • Help ASAP please with this question.
    13·2 answers
  • Every time you have your cholesterol measured, the measurement may be slightly different due to random fluctuations and measurem
    6·1 answer
  • Julie and Eric row their boat (at a constant speed) 18 miles downstream for 3 hours helped by the current. Rowing at the same ra
    7·1 answer
  • 6p = -42 what is the answer???????????
    12·2 answers
  • 2/3x - 1-4x + 5/6x = -20 solve for x
    6·1 answer
  • A question on my test:
    10·1 answer
  • Kaelyn used 2
    8·2 answers
  • 4x+3−2x=15<br> what is x?
    10·2 answers
  • Help pls iready math equation
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!