Docsity

Solution to Quiz 4 for Statistical Methods | MATH 183, Quizzes of Data Analysis & Statistical Methods

Toggle sidebar
bg1
Winter 2007 Solutions to Quiz 4 Page: 1
Mathematical Statistics MATH 183
Problem 1(worth 15 pts) This question asks you to compute the ex-
pectation of a geometric random variable Xwith probability p= 0.25.
Since E[X] = 1/p, we have the expected # of attempts is E[X] = 4.
Problem 2( (a) worth 15 pts, (b) worth 25 pts) (a) This question
asks you to compute the P[Y= 8] where Yis a negative binomial ran-
dom variable with probability p= 0.80 and number of successes r= 6.
Since the formula for
P[Y=k] = k−1
r−1pr(1 −p)k−r,
plugging in r,k, and pas above, we get the probability that exactly
8 missiles destroy the target is 7
5(0.8)6(0.2)2= 0.22020096, or about
22%.
(b) The question could be done one of two ways. Firstly the probability
that the gunboat (which has a stock of 10 missiles) destroys the target
equals the sum
10
X
k=0
P(exactly k missiles destroy) =
10
X
k=6
P(exactly k missiles destroy)
since we need at least 6 direct hits for destruction. Plugging in the
formula from (a), we have
5
5(0.8)6(0.2)0+6
5(0.8)6(0.2)1+7
5(0.8)6(0.2)2
+8
5(0.8)6(0.2)3+9
5(0.8)6(0.2)4
= 0.262144 + 0.3145728 + 0.22020096
+ 0.117440512 + 0.0528482304
= 0.9672065024 ≈96.7%
The second way to do this involves the Central Limit Theorem (This
was recommended by the hint but it was prefectly valid to do using the
negative binomial distribution).
pf3
pf4
pf5

Partial preview of the text

Download Solution to Quiz 4 for Statistical Methods | MATH 183 and more Quizzes Data Analysis & Statistical Methods in PDF only on Docsity!

Mathematical Statistics MATH 183

Problem 1 (worth 15 pts) This question asks you to compute the ex- pectation of a geometric random variable X with probability p = 0.25. Since E[X] = 1/p, we have the expected # of attempts is E[X] = 4.

Problem 2 ( (a) worth 15 pts, (b) worth 25 pts) (a) This question asks you to compute the P [Y = 8] where Y is a negative binomial ran- dom variable with probability p = 0.80 and number of successes r = 6. Since the formula for

P [Y = k] =

k − 1 r − 1

pr(1 − p)k−r,

plugging in r, k, and p as above, we get the probability that exactly 8 missiles destroy the target is

5

(0.8)^6 (0.2)^2 = 0.22020096, or about 22%.

(b) The question could be done one of two ways. Firstly the probability that the gunboat (which has a stock of 10 missiles) destroys the target equals the sum

∑^10

k=

P (exactly k missiles destroy) =

∑^10

k=

P (exactly k missiles destroy)

since we need at least 6 direct hits for destruction. Plugging in the formula from (a), we have

( 5 5

(0.8)^6 (0.2)^0 +

(0.8)^6 (0.2)^1 +

(0.8)^6 (0.2)^2

(0.8)^6 (0.2)^3 +

(0.8)^6 (0.2)^4

The second way to do this involves the Central Limit Theorem (This was recommended by the hint but it was prefectly valid to do using the negative binomial distribution).

Mathematical Statistics MATH 183

As we saw in the Airplane Problem in the second computer lab, the Central Limit Theorem can be used as a tool to avoid the computation of a long sum, or other times where we do not necessarily have an effecient way to compute the probability exactly.

Following the hint, let Y 1 be the geometric random variable representing the amount of missiles needed to be fired the get the first direct hit. Similarly let Y 2 be the amount of missiles needed to get the next direct hit, etc. Thus the sum Y 1 + Y 2 + · · · + Y 6 really represents the number of missiles need to get six direct hits. (Recall that a negative binomial random variable with parameters p = 0.8 and r = 6 is the sum of r = 6 independent geometric random variables with parameter p = 0.8.)

So using this reasoning, the probability that the gunboat destroys the target is precisely P [Y 1 + Y 2 + · · · + Y 6 ≤ 10] where the m = 10 repre- sents the maxinum number of missiles the boat can fire. Fortunately, the Central Limit Theorem gives a good way to approximate this prob- ability, and in fact given that the expectaion of Yi is 1/p = μ = 1. 25 and the standard deviation of Yi is

√ 1 −p p =^ σ^ = 0.^5590169944 Plugging these into the formula, we get

1 √ 2 π

(0.559)√ 6 −∞

e−t

(^2) / 2 dt

and after simplifying, we get this upper limit is 1.825741858. To evaluate this integral, we look it up in Table A.1 on page 851 or we look at the table given at the bottom of the quiz for zα. Since z 0. 03 = 1.881 and z 0. 04 = 1.751, we approximate that zα = 1.826 implies that α ≈ 0 .035. Thus the area under the tail is about 0.035 and the desired integral is about 1 − 0 .035 = 0.965 agreeing (approximately) with the above answer.

Note: The length of this second explanation is a reflection on the fact that I am writing this as a solution set for you rather than the length of time it would take to solve and write-up the problem using this method. This method indeed only had three steps: calculating μ and σ using the formulas for a geometric random variables, plugging these into the upper limit to get 1.826 and looking up zα on a table.

Mathematical Statistics MATH 183

This case the P -value is

P [Zobs′ ≤ zobs] = P [Zobs′ ≤ − 1 .825741858] =

2 π

−∞

et (^2) / 2 dt

2 π

  1. 825741858

et (^2) / 2 dt.

where this last equality is by the symmetry of the bell-curve about the y-axis. (Notice the minus signs disappeared when we reflected.) Thus the P -value is approx. 0.034 (less than 0.05 so we reject.)

Problem 5 (worth 15 pts) We calculate zobs using μ = 0.4365, μ 0 =

0 .5, n = 100 and σ =

1 12 and get zobs = − 2. 199704526. Deciding whether to accept or reject takes a little more care this time however. Since are testing versus the alternate hypothesis H 1 μ 6 = 1/2, this is the double-sided case. So since we want area at the tails to add up to 0.02 (what we mean by level of significance) but we have both tails contributing (think of the outside of a confidence interval) this time, we really only compare with zα/ 2 = z 0. 01 = 2.326 (wherer the last equality by chart we gave you. Tnus we check absolute values (like in problem 4) and get

2 .199704526 = |zobs| < z 0. 01 = 2. 326 thus we do not reject.

Note if you use z 0. 02 = 2.054 instead you would indeed conclude the wrong result from this test. Finally, the P -value is

P [|Zobs′ | ≥ |zobs|] = P [|Zobs′ | ≥ 2 .199704526] = 2 ·

2 π

  1. 199704526

et (^2) / 2 dt

= 2 · (0.01391393274) = 0. 02782786548.

Bonus (worth 10 pts) A uniform random variable on the interval [0, 1] is a continous random variable with pdf given as

f (x) =

1 if 0 ≤ x ≤ 1 0 outside the unit interval.

Mathematical Statistics MATH 183

i.e. it’s constant everywhere and has the property that

∫ −∞^ f^ (x)dx^ = 1 0 f^ (x)dx^ = 1.^ Thus you already have all the tools you need to cal- culate the mean and variance of this particular continuous random variable.

Namely,

μ = E[X] =

0

x · f (x)dx =

0

xdx = 1/ 2 , and

E[X^2 ] =

0

x^2 · f (x)dx =

0

x^2 dx = 1/ 3.

Thus the Variance

V ar[X] = E[X^2 ] − E[X]^2 =

)^2 = 1/ 3 − 1 /4 = 1/ 12

resulting in the standard deviation of

V ar[X] =

1