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
Help help help help
stich3 [128]

Answer:

i think the first graph is the correct

5 0
2 years ago
Anyone wanna help me with this‍‍
Angelina_Jolie [31]

Question 1 Answer: both of them equal 20

Step-by-step explanation: when you add 9+3 it equals 12 then you add 8 and that makes 20. 9+8 also equals 17 then you add 3 which equals 20

8 0
3 years ago
use the formulas for lowering powers to rewrite the expression in terms of the first power of cosine cos^4
Firdavs [7]

The expression cos⁴ θ in terms of the first power of cosine is <u>[ 3 + 2cos 2θ + cos 4θ]/8.</u>

The power-reducing formula, for cosine, is,

cos² θ = (1/2)[1 + cos 2θ].

In the question, we are asked to use the formulas for lowering powers to rewrite the expression in terms of the first power of cosine cos⁴ θ.

We can do it as follows:

cos⁴ θ

= (cos² θ)²

= {(1/2)[1 + cos 2θ]}²

= (1/4)[1 + cos 2θ]²

= (1/4)(1 + 2cos 2θ + cos² 2θ] {Using (a + b)² = a² + 2ab + b²}

= 1/4 + (1/2)cos 2θ + (1/4)(cos ² 2θ)

= 1/4 + (1/2)cos 2θ + (1/4)(1/2)[1 + cos 4θ]

= 1/4 + cos 2θ/4 + 1/8 + cos 4θ/8

= 3/8 + cos 2θ/4 + cos 4θ/8

= [ 3 + 2cos 2θ + cos 4θ]/8.

Thus, the expression cos⁴ θ in terms of the first power of cosine is <u>[ 3 + 2cos 2θ + cos 4θ]/8</u>.

Learn more about reducing trigonometric powers at

brainly.com/question/15202536

#SPJ4

5 0
2 years ago
A ball is thrown from an initial height of 6 feet with an initial upward velocity of 28/fts
vagabundo [1.1K]
Does this show answer like multiple choice
7 0
3 years ago
Brainlest 5 starred and thanked daily if you get this correct<br> Try your hardest
mart [117]
The cycle number two is the answer
8 0
3 years ago
Other questions:
  • What is the endpoint formula given midpoint?
    6·1 answer
  • - A phone call costs $0,58 for the first 3 minutes and $0.15
    14·1 answer
  • Please help me with #13 and #14! Please explain how you did it! Thanks!
    6·2 answers
  • Solve for x need help asap
    8·1 answer
  • A line contains the point (8, –5). If the slope of the line is 5/7 write the equation of the line using point-slope form.
    14·1 answer
  • You are buying a pair of shoes online. The price of the
    6·1 answer
  • Write an experession that shows 10 ^4
    8·1 answer
  • Pls help :)<br><br><br><br><br><br><br><br><br><br><br><br>.................​
    10·1 answer
  • a bag has 6 green, 4 red, 5 yellow and 15 blue marbles what is the possibility that the marble is red or blue
    5·1 answer
  • Which point lies on the line described by the equation below? y+4=4(x-3
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!