Properties of Expectation

A First Course in Probability · 170 exercises

Q 7.6

A fair die is rolled 10 times. Calculate the expected sum of the10 rolls. 

6 step solution

Q.7.10

Consider 3 trials, each having the same probability of success. Let X denote the total number of successes in these trials. If E[X] = 1.8, what is

(a) the largest possible value of PX=3

(b) the smallest possible value of P{X=3}}?  

6 step solution

Q.7. 5

The county hospital is located at the center of a square whose sides are 3 miles wide. If an accident occurs within this square, then the hospital sends out an ambulance. The road network is rectangular, so the travel distance from the hospital, whose coordinates are (0,0), to the point (x, y) is |x|+|y|. If an accident occurs at a point that is uniformly distributed in the square, find the expected travel distance of the ambulance. 

5 step solution

Q.7.2

The game of Clue involves 6 suspects, 6 weapons, and 9 rooms. One of each is randomly chosen and the object of the game is to guess the chosen three.

 (a) How many solutions are possible? In one version of the game, the selection is made and then each of the players is randomly given three of the remaining cards. Let S, W, and R be, respectively, the numbers of suspects, weapons, and rooms in the set of three cards given to a specified player. Also, let X denote the number of solutions that are possible after that player observes his or her three cards. 

(b) Express X in terms of S, W, and R. 

(c) Find E[X]

6 step solution

Q.7.3

Gambles are independent, and each one results in the player being equally likely to win or lose 1 unit. Let W denote the net winnings of a gambler whose strategy is to stop gambling immediately after his first win. Find

 (a) P{W > 0}

 (b) P{W < 0} 

 (c) E[W] 

6 step solution

Q.7.4

7.4. If X and Y have joint density function fX,Y(x,y)={1/y,if 0<y<1,0<x<y0,otherwise find

(a) E[X Y]

(b) E[X]

(c) E[Y]

6 step solution

Q. 7.7

Suppose that A and B each randomly and independently choose3 of 10objects. Find the expected number of objects

a. Chosen by both A and B; 

b. Not chosen by either A or B; 

c. Chosen by exactly one of A and B.  

12 step solution

Q. 7.8

N people arrive separately to a professional dinner. Upon arrival, each person looks to see if he or she has any friends among those present. That person then sits either at the table of a friend or at an unoccupied table if none of those present is a friend. Assuming that each of the N2 pairs of people is, independently, a pair of friends with probability p, find the expected number of occupied tables.

Hint: Let Xi equal 1 or 0, depending on whether the ith arrival sits at a previously unoccupied table. 

4 step solution

Q. 7.9

A total of n balls, numbered 1 through n, are put into n urns, also numbered 1 through n in such a way that ball i is equally likely to go into any of the urns 1,2,..i .

Find (a) the expected number of urns that are empty.

(b) the probability that none of the urns is empty. 

9 step solution

Q.7.11

Consider n independent flips of a coin having probability p of landing on heads. Say that a changeover occurs whenever an outcome differs from the one preceding it. For instance, if n = 5 and the outcome is HHTHT, then there are 3 changeovers. Find the expected number of changeovers. Hint: Express the number of changeovers as the sum of n  1 Bernoulli random variables. 

4 step solution

Q.7.12

A set of 1000 cards numbered 1 through 1000 is randomly distributed among 1000 people with each receiving one card. Compute the expected number of cards that are given to people whose age matches the number on the card. 

4 step solution

Q.7.15

In Example 2h,say that i andj,ij , form a matched pair if i chooses the hat belonging to j and j chooses the hat belonging to i. Find the expected number of matched pairs.

3 step solution

Q.7.16

 Let Z be a standard normal random variable,and, for a fixed x, set 

X={ZifZ>x0otherwise

Show thatE[X]=12πex2/2.

3 step solution

Q.7.17

 A deck of n cards numbered 1 through n is thoroughly shuffled so that all possible n! orderings can be assumed to be equally likely. Suppose you are to make n guesses sequentially, where the ith one is a guess of the card in position i. Let N denote the number of correct guesses. 

(a) If you are not given any information about your earlier guesses, show that for any strategy, E[N]=1. 

(b) Suppose that after each guess you are shown the card that was in the position in question. What do you think is the best strategy? Show that under this strategy

E[N]=1n+1n1++11n1xdx=log n

(c) Supposethatyouaretoldaftereachguesswhetheryou are right or wrong. In this case, it can be shown that the strategy that maximizes E[N] is one that keeps on guessing the same card until you are told you are correct and then changes to a new card. For this strategy, show that 

E[N]=1+12!+13!++1n!e1

Hint: For all parts, express N as the sum of indicator (that is, Bernoulli) random variables. 

9 step solution

Q.7.18

Cards from an ordinary deck of 52 playing cards are turned face upon at a time. If the 1st card is an ace, or the 2nd a deuce, or the 3rd a three, or ...,or the 13th a king,or the 14 an ace, and so on, we say that a match occurs. Note that we do not require that the (13n + 1) card be any particular ace for a match to occur but only that it be an ace. Compute the expected number of matches that occur.

3 step solution

Q.7.19

A certain region is inhabited by r distinct types of a certain species of insect. Each insect caught will, independently of the types of the previous catches, be of type i with probability 

Pi,i=1,,r1rPi=1

(a) Compute the mean number of insects that are caught before the first type 1 catch.

(b) Compute the mean number of types of insects that are caught before the first type 1 catch.

6 step solution

Q.7.14

An urn has m black balls. At each stage, a black ball is removed and a new ball that is black with probability p and white with probability 1  p is put in its place. Find the expected number of stages needed until there are no more black balls in the urn. note: The preceding has possible applications to understanding the AIDS disease. Part of the body’s immune system consists of a certain class of cells known as T-cells. There are 2 types of T-cells, called CD4 and CD8. Now, while the total number of T-cells in AIDS sufferers is (at least in the early stages of the disease) the same as that in healthy individuals, it has recently been discovered that the mix of CD4 and CD8 T-cells is different. Roughly 60 percent of the T-cells of a healthy person are of the CD4 type, whereas the percentage of the T-cells that are of CD4 type appears to decrease continually in AIDS sufferers. A recent model proposes that the HIV virus (the virus that causes AIDS) attacks CD4 cells and that the body’s mechanism for replacing killed T-cells does not differentiate between whether the killed T-cell was CD4 or CD8. Instead, it just produces a new T-cell that is CD4 with probability .6 and CD8 with probability .4. However, although this would seem to be a very efficient way of replacing killed T-cells when each one killed is equally likely to be any of the body’s T-cells (and thus has probability .6 of being CD4), it has dangerous consequences when facing a virus that targets only the CD4 T-cells 

4 step solution

Q.7.12

A group of n men and n women is lined up at random. 

(a) Find the expected number of men who have a woman next to them. 

(b) Repeat part (a), but now assuming that the group is randomly seated at a round table. 

7 step solution

Q.7.31

In Problem 7.6, calculate the variance of the sum of the rolls.

5 step solution

Q.7.32

In Problem 7.9, compute the variance of the number of empty urns.

6 step solution

Q.7.33

If E[X]=1and Var(X)=5 find

(a) E[(2+X2)]

(b) Var(4+3 X)

6 step solution

Q.7.34

If 10 married couples are randomly seated at a round table, compute 

(a) The expected number and 

(b) The variance of the number of wives who are seated next to their husbands.

7 step solution

Q.7.35

Cards from an ordinary deck are turned face up one at a time. Compute the expected number of cards that need to be turned face up in order to obtain

(a) 2 aces;

(b) 5 spades;

(c) all 13 hearts.

11 step solution

Q.7.20

 In an urn containing n balls, the ith ball has weight W(i),i = 1,...,n. The balls are removed without replacement, one at a time, according to the following rule: At each selection, the probability that a given ball in the urn is chosen is equal to its weight divided by the sum of the weights remaining in the urn. For instance, if at some time i1,...,ir is the set of balls remaining in the urn, then the next selection will be ij with probability W(ij)/k=1rW(ik), j = 1,...,r  Compute the expected number of balls that are withdrawn before the ball number 1 is removed.

3 step solution

Q.7.21

For a group of 100 people, compute 

(a) the expected number of days of the year that are birthdays of exactly 3 people;

(b) the expected number of distinct birthdays. 

6 step solution

Q.7.22

How many times would you expect to roll a fair die before all 6 sides appeared at least once? 

3 step solution

Q.7.23

Urn 1 contains 5 white and 6 black balls, while urn 2 contains 8 white and 10 black balls. Two balls are randomly selected from urn 1 and are put into urn 2. If 3 balls are then randomly selected from urn 2, compute the expected number of white balls in the trio.

 Hint: LetXi = 1 if the i th white ball initially in urn 1 is one of the three selected, and let Xi = 0 otherwise. Similarly, let Yi = 1 if the i the white ball from urn 2 is one of the three selected, and let Yi = 0 otherwise. The number of white balls in the trio can now be written as 15Xi+18Yi

4 step solution

Q.7.24

A bottle initially contains m large pills and n small pills. Each day, a patient randomly chooses one of the pills. If a small pill is chosen, then that pill is eaten. If a large pill is chosen, then the pill is broken in two; one part is returned to the bottle (and is now considered a small pill) and the other part is then eaten.

 (a) Let X denote the number of small pills in the bottle after the last large pill has been chosen and its smaller half returned. Find E[X].

 Hint: Define n + m indicator variables, one for each of the small pills initially present and one for each of the small pills created when a large one is split in two. Now use the argument of Example 2m.

(b) Let Y denote the day on which the last large pills chosen. Find E[Y]. 

Hint: What is the relationship between X and Y? 

7 step solution

Q.7.29

There are 4 different types of coupons, the first 2 of which comprise one group and the second 2 another group. Each new coupon obtained is type i with probability pi, where p1 = p2 = 1/8, p3 = p4 = 3/8. Find the expected number of coupons that one must obtain to have at least one of

(a) all 4 types;

(b) all the types of the first group; 

(c) all the types of the second group; 

(d) all the types of either group 

12 step solution

Q.7.3

If X and Y are independent and identically distributed with mean μ and variance σ2, find 

E(XY)2

3 step solution

Q. 7.25

Let X1,X2, be a sequence of independent and identically distributed continuous random variables. Let N2 be such that

X1X2XN-1<XN

That is, N is the point at which the sequence stops decreasing. Show that E[N]=e.

Hint: First find P{Nn}.

3 step solution

Q. 7.26

If X1,X2,,Xn are independent and identically distributed random variables having uniform distributions over (0,1), find

(a) EmaxX1,,Xn;

(b) EminX1,,Xn.

6 step solution

Q. 7.27

If 101 items are distributed among 10 boxes, then at least one of the boxes must contain more than 10 items. Use the probabilistic method to prove this result. 

3 step solution

Q. 7.28

The k-of-r-out-of- n circular reliability system, krn, consists of n components that are arranged in a circular fashion. Each component is either functional or failed, and the system functions if there is no block of r consecutive components of which at least k are failed. Show that there is no way to arrange 47 components, 8 of which are failed, to make a functional 3-of-12-out-of- 47 circular system.

3 step solution

Q.7.46

Consider the following dice game, as played at a certain gambling casino: Players1and 2 roll a pair of dice in turn. The bank then rolls the dice to determine the outcome according to the following rule: Player i, i = 1, 2, wins if his roll is strictly greater than the banks. For i = 1, 2, let

Ii=1     if i wins 0     otherwise 

and show that I1 and I2 are positively correlated. Explain why this result was to be expected.


5 step solution

Q.7.36

Let X be the number of 1s and Y the number of 2's that occur in n rolls of a fair die. Compute Cov(X, Y).

4 step solution

Q.7.37

A die is rolled twice. Let X equal the sum of the outcomes, and let Y equal the first outcome minus the second.

Compute Cov(X, Y).

4 step solution

Q.7.47

Consider a graph having nvertices labeled 1, 2, ... , n, and suppose that, between each of the n2 pairs of distinct vertices, an edge is independently present with probability p. The degree of a vertexi, designated as Di, is the number of edges that have vertex i as one of their vertices.

(a) What is the distribution of Di?

(b) Find ρ(Di, Dj), the correlation between Di and Dj.

6 step solution

Q.7.38

The random variables X and Y have a joint density function is given by 

f(x,y)={2e2x/x0x<,0yx0otherwise

Compute Cov(X,Y)

7 step solution

Q.7.39

Let X1, . . .be independent with common mean μ and common variance σ2, and set Yn=Xn+Xn+1+Xn+2. For j0, find CovYn,Yn+j.

4 step solution

Q.7.41

A pond contains 100 fish, of which 30 are carp. If 20 fish are caught, what are the mean and variance of the number of carp among the 20? What assumptions are you making?

4 step solution

Q.7.4

The joint density function ofXandYis given by

f(x,y)=1ye-(y+x/y),  x>0,y>0

Find E[X], E[Y] and show that Cov(X, Y)=1

5 step solution

Q.7.42

A group of 20 people consisting of 10 men and 10 women is randomly arranged into 10 pairs of 2 each. Compute the expectation and variance of the number of pairs that consist of a man and a woman. Now suppose the 20 people consist of 10 married couples. Compute the mean and variance of the number of married couples that are paired together.

8 step solution

Q.7.43

Let X1,X2,,Xn be independent random variables having an unknown continuous distribution function F and let Y1,Y2,,Ym be independent random variables having an unknown continuous distribution function G. Now order those n+mvariables, and let

Ii=1     if the i th smallest of the n+m     variables is from the X sample 0     otherwise 

The random variable R=i=1n+miIi is the sum of the ranks of the X sample and is the basis of a standard statistical procedure (called the Wilcoxon sum-of-ranks test) for testing whether F and G are identical distributions. This test accepts the hypothesis that F=G when R is neither too large nor too small. Assuming that the hypothesis of equality is in fact correct, compute the mean and variance of R.

Hint: Use the results of Example 3e.

4 step solution

Q.7.44

Between two distinct methods for manufacturing certain goods, the quality of goods produced by method i is a continuous random variable having distribution Fi,i=1,2. Suppose that goods are produced by method 1 and m by method 2 . Rank the n+m goods according to quality, and let

Xj=1     if the j th best was produced from      method 12     otherwise 

For the vector X1,X2,,Xn+m,  which consists of n 1's and m 2's, let R denote the number of runs of 1 . For instance, if n=5, m=2, and X=1,2,1,1,1,1,2, then R=2. If F1=F2 (that is, if the two methods produce identically distributed goods), what are the mean and variance of R ?

6 step solution

Q.7.45

If X1,X2,X3, and X4 are (pairwise) uncorrelated random variables, each having mean 0 and variance 1 , compute the correlations of

(a) X1+X2 and X2+X3

(b) X1+X2 and X3+X4.

7 step solution

Q.48

A fair die is successively rolled. Let X and Y denote, respectively, the number of rolls necessary to obtain a 6 and a 5. Find

 (a) E[X];

(b) E[XY=1];

(c) E[XY=5];

8 step solution

Q.49

There are two misshapen coins in a box; their probabilities for landing on heads when they are flipped are, respectively, .4 and .7. One of the coins is to be randomly chosen and flipped 10 times. Given that two of the first three flips landed on heads, what is the conditional expected number of heads in the 10 flips? 

4 step solution

7.59

There are n+1 participants in a game. Each person independently is a winner with probability p. The winners share a total prize of 1 unit. (For instance, if 4 people win, then each of them receives 14 whereas if there are no winners, then none of the participants receives anything.) LetAdenote a specified one of the players, and let X denote the amount that is received by A.

(a) Compute the expected total prize shared by the players.

(b) Argue that E[X]=1(1p)n+1n+1

(c) Compute E[X] by conditioning on whetherAis a winner, and conclude that E(1+B)-1=1-(1-p)n+1(n+1)p

When B is a binomial random variable with parameters n and p.

9 step solution

Q7.58

A coin having probability p of coming up heads is continually flipped until both heads and tails have appeared. Find 

(a) the expected number of flips, 

(b) the probability that the last flip lands on heads.

2 step solution

Show/ page