Documente Academic
Documente Profesional
Documente Cultură
Problem 1 (Page 99, number 8). Each time a component is tested, the trial
is a success S or failure F . Suppose the component is tested repeatedly until
a success occurs on three consecutive trials. Let Y denote the number of trials
necessary to achieve this. List all outcomes corresponding to the five smallest
possible values of Y , and state which Y value is associated with each one.
Sequences Value of Y
SSS 3
F SSS 4
F F SSS 5
SF SSS 5
F F F SSS 6
F SF SSS 6
SF F SSS 6
SSF SSS 6
F F F F SSS 7
SF F F SSS 7
F SF F SSS 7
F F SF SSS 7
F SSF SSS 7
SF SF SSS 7
SSF F SSS 7
1
now we know that SSS is the only sequence which give us Y = 3, and we know
that F SSS is the only sequence that gives us Y = 4.
For any value of Y greater than 4 we always end with the sequence F SSS
and for the trials before the last 4 we can have any arrangement of Ss and F s
as long as there no three consecutive Ss. In the cases Y = 5 and Y = 6 there
is no room for 3 consecutive Ss before the ending F SSS, and therefore any
arrangement of Ss and F s works. In the table above we see that there are two
sequences for which Y = 5, and four for which Y = 6.
For the case Y = 7 we have to be careful. We know we have to end with
F SSS but we also have to consider what is acceptable on the three trails be-
fore that ending. A possible outcome of this experiment can be the sequence
SSSF SSS in which case Y 6= 7 but in fact Y = 3. Every other arrangement
of Ss and F s works, in fact there are 7 such possibilities, all shown in the table
above.
Problem 2 (Page 107, number 12). Airlines sometimes overbook flights. Sup-
pose that for a plane with 50 seats, 55 passengers have tickets. Define the
random variable Y as the number of ticketed passengers who actually show up
for the flight. The probability mass function of Y appears in the accompanying
table.
y 45 46 47 48 49 50 51 52 53 54 55
p(y) .05 .10 .12 .14 .25 .17 .06 .05 .03 .02 .01
(a) What is the probability that the flight will accommodate all ticketed
passengers who show up?
(b) What is the probability that not all ticketed passengers who show up can
be accommodated?
(c) If you are the first person on the standby list (which means you will be
the first one to get on the plane if there are any seats available after all
ticketed passengers have been accommodated), what is the probability that
you will be able to take the flight? What is this probability if you are the
third person on the standby list?
Solution to Problem 2.
(a) The flight will accommodate all ticketed passengers who show up if 50 or
fewer of such passengers show up, ie., if Y ≤ 50. Therefore the probability
that the flight will accommodate all ticketed passengers who show up is
50
X
P (Y ≤ 50) = P (Y = i) = p(45) + . . . + p(50)
i=45
= .05 + .10 + .12 + .14 + .25 + .17 = .83
2
(b) Not all ticketed passengers who show up can be accommodated if too
many show up, i.e., if Y > 50. So the probability that not all ticketed
passengers who show up can be accommodated is
(c) The first person on the standby list will be able to take the flight if 49
or fewer ticketed passengers show up. So the probability that first person
on the standby list gets on the flight is
49
X
P (Y ≤ 49) = P (Y = i) = p(45) + . . . + p(49)
i=45
= .05 + .10 + .12 + .14 + .25 = .66
Similarly the third person on the standby list will be able to take the flight
if 47 or fewer ticketed passengers show up. So the probability that third
person on the standby list gets on the flight is
47
X
P (Y ≤ 47) = P (Y = i) = p(45) + p(46) + p(47) = .05 + .10 + .12 = .27
i=45
Problem 3 (Page 117, number 38). Possible values of X, the number of com-
ponents in a system submitted for repair that must be replaced, are 1, 2, 3, and
4 with corresponding probabilities .15, .35, .35, and .15, respectively.
(a) Calculate E(X) and then E(5 - X).
(b) Would the repair facility be better off charging a flat fee of $75 or else
the amount $[150/(5 − X)]?
Solution to Problem 3.
3
(a) Expected values:
4
X
E(X) = kP (X = k)
k=1
= 1P (X = 1) + 2P (X = 2) + 3P (X = 3) + 4P (X = 4)
= 1 × .15 + 2 × .35 + 3 × .35 + 4 × .15
= .15 + .70 + 1.05 + .60 = 2.50
We can compute E(5 − X) in two ways. We learnt that for any two
constants a and b we have that
E(aX + b) = aE(X) + b.
The second approach uses the fact that for any function h(x) the expected
value of h(X) is given by
X
E[h(X)] = h(k)P (X = k). (1)
k
(b) Would the repair facility be better off charging a flat fee of $75 or else
the amount $[150/(5 − X)]?
Using formula (1) that we saw above we have that
4
X 150
E[150/(5 − X)] = P (X = k)
5−k
k=1
150 150 150 150
= P (X = 1) + P (X = 2) + P (X = 3) + P (X = 4)
4 3 2 1
= 37.5 × .15 + 50 × .35 + 75 × .35 + 150 × .15 = 71.875
4
> x=1:4 # sets the values of X
> p=c(.15, .35, .35, .15) # sets the pmf
> sum(p) # verifies that the p’s add to 1
[1] 1
> EX=sum(x*p) # computes E(X)
> EX
[1] 2.5
> sum((5-x)*p) # computes E(5-X)
[1] 2.5
> sum(p*150/(5-x)) # computes E[150/(5-X)]
[1] 71.875
• The chance that the ith child has a food allergy is p = 1/20 = .05, i.e., the
same for all children.
• The fact that the children are selected at random assures independence,
i.e., the fact that a given has a food allergy is not affected nor it affects by
what happens with the rest of the children.
5
• For each child that has a food allergy we add 1 to the counter X, i.e., X
is the total number of children with a food allergy
Now we answer the questions
(a)
3 3
X X 25
P (X ≤ 3) = P (X = i) = .05i .9525−i
i=0 i=0
i
≈ 0.277 + 0.365 + 0.231 + 0.093 = .966
2 2
X X 25
P (X < 3) = P (X = i) = .05i .9525−i
i=0 i=0
i
≈ 0.277 + 0.365 + 0.231 = .873
In R
(b)
P (X ≥ 4) = 1 − P (X < 4) = 1 − P (X ≤ 3) ≈ 1 − .966 = .034
6
> n=25
> p=.05
> x=0:25
> mean=sum(dbinom(x,n,p)*x); mean
[1] 1.25
> var=sum(dbinom(x,n,p)*(x-mean)^2); var
[1] 1.1875
> sqrt(var)
[1] 1.089725
(e) Now we want the probability that no children, in a sample of 50, has a
food allergy. This we do using Y ∼ Bin(50, .05) and computing
50
P (Y = 0) = .050 .955 0 = .9550 ≈ .077
0
In R
> dbinom(0,50,.05)
[1] 0.07694498
> .95^50
[1] 0.07694498
Problem 5 (Page 135, number 84). The Centers for Disease Control and Pre-
vention reported in 2012 that 1 in 88 American children had been diagnosed with
an autism spectrum disorder (ASD).
(a) If a random sample of 200 American children is selected, what are
the expected value and standard deviation of the number who have been
diagnosed with ASD?
(b) Referring back to (a), calculate the approximate probability that at least
2 children in the sample have been diagnosed with ASD?
(c) If the sample size is 352, what is the approximate probability that fewer
than 5 of the selected children have been diagnosed with ASD?
Solution to Problem 5. Let X be the number of children, in a random sample
of n children that are diagnosed with ASD. Following a reasoning similar to teh
one used in the last problem we can see that X is a binomial random variable
with parameters n and p = 1/88.
(a) For the case of a random sample of 200 children, then X ∼ B(n =
200, p = 1/88), and so
p
E(X) = np = 200/88 ≈ 2.273, σX = np(1 − p) ≈ 1.499.
7
(b) The probability that at least 2 children in the sample have been diagnosed
with ASD is
200 200
P (X ≥ 2) = 1−P (X ≤ 1) = 1− (87/88)200 + (1/88)(87/88)199 ≈ .665
0 1
In R
> n=200
> p=1/88
> round(1-pbinom(1,n,p),3)
[1] 0.665
> lam=n*p
> lam
[1] 2.272727
> round(1-ppois(1,lam),3)
[1] 0.663
(c) If the sample size is n = 352 the probability that fewer than 5 of the se-
lected children have been diagnosed with ASD is computed using the Poison
approximation with λ = np = 4:
4
X 4i
P (X < 5) ≈ e−4
i=0
i!
40 41 42 43 44
−4
=e + + + +
0! 1! 2! 3! 4!
32 32
= e−4 1 + 4 + 8 + + ≈ .629
3 3
In R
> n=352
> p=1/88
> lam=n*p; lam
[1] 4
> round(ppois(4,lam),3)
[1] 0.629