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
Evaluate -8a - b if a = 10 and b = 6
ss7ja [257]
The answer is -86 .....
3 0
3 years ago
Fine the equation, in standard form, of the line passing through the points (3,-4) and (5,1)
Talja [164]

The point-slope form:

y-y_1=m(x-x_1)\\\\m=\dfrac{y_2-y_1}{x_2-x_1}

We have the points (3, -4) and (5, 1). Substitute:

m=\dfrac{1-(-4)}{5-3}=\dfrac{5}{2}\\\\y-(-4)=\dfrac{5}{2}(x-3)

The standard form: Ax+By=C

y+4=\dfrac{5}{2}(x-3)           <em>multiply both sides by 2</em>

2y+8=5(x+3)           <em>use distributive property</em>

2y+8=5x+15            <em>subtract 2y from both sides</em>

8=5x-2y+15          <em>subtract 15 from both sides</em>

-7=5x-2y

<h3>Answer: 5x - 2y = -7</h3>
5 0
3 years ago
Use calculus to find the volume of the following solid S: The base of S is the triangular region with vertices (0, 0), (3, 0), a
juin [17]

The Olmecs (/ˈɒlmɛks, ˈoʊl-/) were the earliest known major civilization in Mesoamerica following a progressive development in Soconusco. They lived in the tropical lowlands of south-central Mexico, in the present-day states of Veracruz and Tabasco. It has been speculated that the Olmecs derive in part from neighboring Mokaya or Mixe–Zoque.

4 0
3 years ago
And electronic store sells a large flat screen television for $1699 last month the store sold eight of those television sets abo
Lerok [7]

Answer:

$13,592

Step-by-step explanation:

3 0
3 years ago
if joe ran 390 feet, how many yards did joe run? a. 130 yards b. 210 yards c. 39 yards d. 11,270 yards
Julli [10]
A. There are 3 feet per yard. 

so... 390/3=130 yards 
5 0
3 years ago
Read 2 more answers
Other questions:
  • What is the answer to the equation 13=1/6y + 2x
    15·1 answer
  • Zohar is using scissors to cut a rectangle with a length of 5x – 2 and a width of 3x + 1 out of a larger piece of paper. The per
    11·1 answer
  • 10 number for the binary 1000
    12·1 answer
  • What is the median of this set of data?<br> 1, 2, 5, 6,9
    14·1 answer
  • If LMN=XYZ, which congruences are true by CPCTC? Check all that apply
    12·2 answers
  • Find the value of x that makes m ∥ n.
    12·1 answer
  • The base of a house has area 110 m². One night 12 mm of rain falls on the roof. All of the water goes into a tank which has base
    6·1 answer
  • Carly buys 3 more band concert tickets than choir concert tickets. Band concert tickets cost $3.50 per ticket. What is the cost
    11·1 answer
  • X- (2x + 1) = 8- (3x + 3)
    8·1 answer
  • What is the largest number that can be used to divide 36 other than itself​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!