Stat 330 Solution Homework 5: Discrete Dsn's 1 Racing Candidate
Stat 330 Solution Homework 5: Discrete Dsn's 1 Racing Candidate
1 Racing Candidate
Suppose that 40% of a large population are in favor of candidate A. A pollster selects a random sample of
20 people and asks them about their opinion about the candidate. Let X be the number of people in favor
of candidate A.
a) What is the sample space of X, what is the distribution of X?
The sample space, or the image of X is the set of all possible values of X. The possible values for X
are the integers from zero through 20: Im(X) = {0, . . . , 20}
X has a Binomial distribution with parameters n = 20 and success rate p = P ( person in favor of
A) = 0.4, i.e.
X ∼ B20,0.4
b) What is the probability that 10 people in the sample are in favor of candidate A?
20
P (X = 10) = 0.41 0 · 0.61 0 = 0.117.
10
c) What is the probability that between 6 and 10 people in the sample are in favor of candidate A? (limits
are included)
2 Snow in October
After October 1st the probability that a blizzard will occur on any particular day in the Midwest of Northern
America is 0.1. To simplify the problem, assume for the following questions that October has infinitely many
days.
a) What is the probability that there won’t be a blizzard in the first 10 days of October?
The probability that there will not be a blizzard is .910 = 0.349.
1
b) What is the probability that the first blizzard will occur on October 20?
P ( no blizzard in nineteen days, blizzard on 20th ) = 0.919 · 0.1 = 0.0135.
c) What is the expected date for the first blizzard (starting October 1st)?
For the expected value, we need some random variable X together with its probability mass function.
One way to define X is X := ” date of first blizzard” or, since it’s not easy to compute with dates X
= ”# of days until first blizzard including day of blizzard”.
This random variable has a geometric distribution with p = 0.1, we write X ∼ Geo0.1 .
For a geometric random variable we already know the expected value:
1 1
E[X] = = = 10.
p 0.1
The expected date for the first blizzard would therefore be Oct 10th.
d) How does the distribution change when October only has 31 days? with infinitely many days, X has
a geometric distribution; when we are only looking at the first 31 days, Let Y be the variable where
October has 31 days, as it should. Y can be 31 at most, on top of that we have the event, that there is no
blizzard in October. The probability for no snow storm in October is 0.931 , and P (Y = k) = P (X = k)
for any value of k of less than 32. From that we can compute the expected value, the variance and the
distribution ...
2
a) no deaths occurred?
X has a P o.6 distribution.
e−0.6
P (X = 0) = 0.60 = e−0.6 = 0.5488
0!
e−0.6 e−0.6
P (1 ≤ X ≤ 2) = P (X = 1) + P (X = 2) = 0.61 + 0.62 = 0.4281
1! 2!
P (X ≥ 3) = 1 − P (X ≤ 2) = 1 − 0.9769 = 0.0231
b) Find (under appropriate model assumptions) the probability that among the next 25 jobs submitted
there are less than 5 with fatal errors.
X ∼ B25,0.05 but we can use the Poisson approximation with λ = 25 · 0.05 = 1.25.
table look-up 0.9912 + 0.9906
P (X < 5) = P (X ≤ 4) = B25,0.05 (4) ≈ P o1.25 (4) = = 0.9909.
2
X = the total number of jobs processed until the first with a fatal error.
3
Then,
Another correct answer is to interpret X as the number of jobs processed before the first one with a
fatal error. With this interpretation, X has a modified geometric distribution with p = .05. In other
words, X = Y − 1, where Y has a geometric distribution with p = .05. Then,
Y = the total number of jobs processed until the 2nd with a fatal error.
pY (k) = P (k jobs, 1 fatal among the first k-1, one fatal job in the end) =
k−1 k−2 k−1
= ·0.95 0.05 · 0.05 = · 0.95k−2 0.052 .
1 |{z} |{z} 1
| {z } 1st fatal job 2nd fatal job
choose one bad job among k − 1
6 Homicides in Chicago
It has been suggested that the number of homicides that happen during one month in Des Moines follow a
Poisson distribution with parameter λ = 3.
(a) What is the probability that there occur less than 4 homicides in Des Moines in two months? Let X
be the number of homicides in Des Moines in two months. Then X ∼ P o6 and
(b) In a given month the number of homicides in Chicago has been 24. Does this indicate that Chicago is
as safe as Des Moines? Explain why or why not.
There are many acceptable answers, depending on your interpretation. Here is a great answer from
Dr. Hofmann.
In order to make a comparison between Chicago or DSM, we will have to adjust rates to the same units
- i.e. we could for example look at homicide rates per 100,000 people. Based on a single number for
Chicago, we can’t draw any conclusion about its safety, but ... we can google for the FBI crime data by
city and find out, that Chicago had a population of close to 3 Mio people in 2006 and 201 homicides in
the first 6 months. This gives us a annual homicide rate in Chicago of 2 · 201/30 = 13.4 per 100,000
people.
Des Moines has roughly 200,000 people, which would correspond to annual homicide rate of 3/2·12 = 18
per 100,000 people. BUT: I made up the above murder rate - the murder rate in Des Moines for 2006
is actually just 2 per 100,000!
So yes, Des Moines is safer than Chicago in terms of homicides.