Docsity

Probability and Random Variables - Ship Dynamics | STAT 3704, Assignments of Statistics

Toggle sidebar
bg1
Homework 3
STAT 3704
1. A student buys cereal once a week. When she does, she always chooses either Raisin Bran or
Cheerios. Suppose that for the first week back on campus, she flips a fair coin to decide whether to buy
Raisin Bran or Cheerios. Also, for each purchase after the first, she will stick with the same brand next
week with probability 1/5 or she will switch to the other brand with probability 4/5. What is the
probability that her cereal purchases for the next four weeks will be Cheerios, Raisin Bran, Raisin Bran,
and Cheerios, in that order? Give your answer either in fraction form or to four decimal places.
Answer: Noting that
P
(
switch
)
=4
5, P
(
stick
)
=1
5
, we get that
P
(
C , RB , RB , C
)
=
(
1
2
)(
4
5
)(
1
5
)(
4
5
)
=8
125 =0.0640
2. A couple wants to have a child. To check whether they have successfully conceived or not, they buy a
pregnancy test from the local drugstore. The label on the box states that the test has a sensitivity of
95% and a specificity of 90%. The couple uses the test, and the results come back positive. Assuming
that they had a 70% chance of conceiving in the first place, what is the probability that given the positive
test result, the woman really is pregnant? Give your answer to four decimal places.
Answer: Let
R
denote the event “the woman is pregnant” and let
T
denote the event “the test comes
back positive”. We are given that
P
(
R
)
=0.7, P
(
T∨R
)
=0.95
(the sensitivity!), and
P
(
T
'
∨R '
)
=0.90
(the specificity!) in the problem statement, we can use the complement rule on the conditional
probabilities to get
P
(
T
'
|
R
)
=0.05
and
P
(
T
|
R'
)
=0.10
, respectively. Since the question is asking for
, we use Bayes’ Rule as follows:
P
(
R
|
T
)
=P
(
T
|
R
)
P(R)
P
(
T
|
R
)
P
(
R
)
+P
(
T
|
R '
)
P(R ' )=.95 (.7)
.95
(
.7
)
+.1(.3 )≈0.9568
So there is about a 96% chance the woman really is pregnant.
3. For each situation, define the random variable in question, and identify the appropriate distribution
and all relevant parameters for that variable.
Example: You flip a fair coin 10 times and count the number of times the coin comes up heads.
Example Answer: Let
X
= # of heads. Then
X
is binomial with parameters
n=10
and
p=1
2
.
a) A physicist counts the number of particles striking a sensor. He knows from theory that in a given
hour, an average of 20 particles should hit the sensor.
Answer: Let
X
be the number of particles hitting the sensor in an hour, then
X
is Poisson with
Îť=20
particles/hour.
b) An engineer tests the lifetime of a new laptop battery. She expects it to last 3 hours before
completely draining.
Answer: Let
X
be the lifetime of the battery, in hours. Then
X
is exponential with parameter
Îť=1
3
(since the expectation is 3 hours and
E
(
X
)
=1
Îť
).
pf3

Partial preview of the text

Download Probability and Random Variables - Ship Dynamics | STAT 3704 and more Assignments Statistics in PDF only on Docsity!

Homework 3

STAT 3704

1. A student buys cereal once a week. When she does, she always chooses either Raisin Bran or

Cheerios. Suppose that for the first week back on campus, she flips a fair coin to decide whether to buy

Raisin Bran or Cheerios. Also, for each purchase after the first, she will stick with the same brand next

week with probability 1/5 or she will switch to the other brand with probability 4/5. What is the

probability that her cereal purchases for the next four weeks will be Cheerios, Raisin Bran, Raisin Bran,

and Cheerios, in that order? Give your answer either in fraction form or to four decimal places.

Answer: Noting that

P ( switch ) =

, P ( stick )=

, we get that

P ( C , RB , RB ,C )=

2. A couple wants to have a child. To check whether they have successfully conceived or not, they buy a

pregnancy test from the local drugstore. The label on the box states that the test has a sensitivity of

95% and a specificity of 90%. The couple uses the test, and the results come back positive. Assuming

that they had a 70% chance of conceiving in the first place, what is the probability that given the positive

test result, the woman really is pregnant? Give your answer to four decimal places.

Answer: Let R denote the event “the woman is pregnant” and let T denote the event “the test comes

back positive”. We are given that P ( R )=0.7, P ( T ∨ R )=0.95 (the sensitivity!), and P

T

'

∨ R '

(the specificity!) in the problem statement, we can use the complement rule on the conditional

probabilities to get P

T

'

| R

and P

T

| R

'

, respectively. Since the question is asking for

P ( R ∨ T ), we use Bayes’ Rule as follows:

P

R

T

P ( T | R ) P ( R )

P ( T | R ) P ( R ) + P ( T | R ' ) P ( R ' )

So there is about a 96% chance the woman really is pregnant.

3. For each situation, define the random variable in question, and identify the appropriate distribution

and all relevant parameters for that variable.

Example: You flip a fair coin 10 times and count the number of times the coin comes up heads.

Example Answer: Let X = # of heads. Then X is binomial with parameters n = 10 and p =

.

a) A physicist counts the number of particles striking a sensor. He knows from theory that in a given

hour, an average of 20 particles should hit the sensor.

Answer: Let X be the number of particles hitting the sensor in an hour, then X is Poisson with Îť = 20

particles/hour.

b) An engineer tests the lifetime of a new laptop battery. She expects it to last 3 hours before

completely draining.

Answer: Let X be the lifetime of the battery, in hours. Then X is exponential with parameter

Îť =

(since the expectation is 3 hours and

E ( X ) =

Îť

).

c) A gambler runs simulations on his computer to model playing roulette when betting $1 on red (the

probability of winning such a bet is

). The gambler wants to know how many plays it will take to win

10 times.

Answer: Let X be the number of plays it takes to win a game (including the final winning play!). Then X

is Negative Binomial with

r =10, p =

.

d) A fishery technician knows that there are 100 fish in a tank, with 40 males and 60 females. The

technician takes a sample of 10 fish and counts the number of females.

Answer: Let

X

be the number of female fish in the sample. Then

X

is Hypergeometric with

N =100, n =10, G = 60.

e) A student parks his car illegally so that he can make it to his class in time. He is gone for 60 minutes,

all told. Upon returning, he finds that the VT police have written him a parking ticket. The student

wants to know how long the car had been parked there before the ticket was written (no cynical

answers, please!).

Answer: Let X be the time in minutes at which the ticket was written, using 0 as the time the student

left the car. Then X is uniform on the interval

[0,60]

.

f) A basketball player playing in tonight’s game has a 30% 3-pointer history over the season. How many

3-point shots will he take before he makes one this game?

Answer: Let X be the number of shots he takes to make the 3-pointer (including the one that goes in!)

Then X is Geometric with p =0.3. If you want the number of misses before he makes the first one,

then this number will just be X − 1.