Docsity

3 Solved Problems on Binomial Random Variable - Assignment | MATH 121B, Assignments of Mathematics

Toggle sidebar
bg1
Math 121b - Mathematical Tools for the Physical Sciences
Instructor: J. Metcalfe
Due: April 24, 2007
Assignment 20
1. Let X∼Bin(n, p) be a Binomial random variable (n= number of trials, p=the probability of
a success).
(a.) Show that
E[X2] = np(1 + (n−1)p).
Hint: Follow the proof of E[X], and write the extra x= 1 + (x−1). For the sum for the
latter term, consider the case x= 1 separately.
(b.) Conclude that
V[X] = np(1 −p).
(a.)
E[X2] =
n
X
x=1
x2p(x) =
n
X
x=1
(1 + (x−1))xp(x)
=
n
X
x=1
xp(x) +
n
X
x=1
(x−1)xn
xpx(1 −p)n−x
=E[X] +
n
X
x=2
(x−1)xn
xpx(1 −p)n−x
=np +
n
X
x=2
(x−1)xn!
x!(n−x)!px(1 −p)n−x
=np +n(n−1)p2
n
X
x=2
(n−2)!
(x−2)!(n−x)!px−2(1 −p)n−x
=np +n(n−1)p2
n−2
X
y=0
(n−2)!
y!((n−2) −y)!py(1 −p)(n−2)−y
=np +n(n−1)p2(p+ (1 −p))n−2
=np +n(n−1)p2.
where we have used in the second summation that the x= 1 term vanishes and
the substitution later y=x−2. For the last equality, we are using the Binomial
Theorem.
(b.) Since
V[X] = (E[X])2−E[X2] = n2p2−np(1 + (n−1)p) = −np +np2=np(1 −p).
1
pf2

Partial preview of the text

Download 3 Solved Problems on Binomial Random Variable - Assignment | MATH 121B and more Assignments Mathematics in PDF only on Docsity!

Math 121b - Mathematical Tools for the Physical Sciences

Instructor: J. Metcalfe Due: April 24, 2007

Assignment 20

  1. Let X ∼ Bin(n, p) be a Binomial random variable (n = number of trials, p=the probability of a success).

(a.) Show that E[X^2 ] = np(1 + (n − 1)p). Hint: Follow the proof of E[X], and write the extra x = 1 + (x − 1). For the sum for the latter term, consider the case x = 1 separately.

(b.) Conclude that V [X] = np(1 − p).

(a.)

E[X^2 ] =

∑^ n

x=

x^2 p(x) =

∑^ n

x=

(1 + (x − 1))xp(x)

∑^ n

x=

xp(x) +

∑^ n

x=

(x − 1)x

n x

px(1 − p)n−x

= E[X] +

∑^ n

x=

(x − 1)x

n x

px(1 − p)n−x

= np +

∑^ n

x=

(x − 1)x n! x!(n − x)!

px(1 − p)n−x

= np + n(n − 1)p^2

∑^ n

x=

(n − 2)! (x − 2)!(n − x)!

px−^2 (1 − p)n−x

= np + n(n − 1)p^2

n∑− 2

y=

(n − 2)! y!((n − 2) − y)!

py(1 − p)(n−2)−y

= np + n(n − 1)p^2 (p + (1 − p))n−^2 = np + n(n − 1)p^2.

where we have used in the second summation that the x = 1 term vanishes and the substitution later y = x − 2. For the last equality, we are using the Binomial Theorem. (b.) Since

V [X] = (E[X])^2 − E[X^2 ] = n^2 p^2 − np(1 + (n − 1)p) = −np + np^2 = np(1 − p).

  1. Suppose that 90% of all batteries from a certain supplier have acceptable voltages. A certain type of flashlight requires two type-D batteries, and the flashlight will work only if both its batteries have acceptable voltages. Among the ten randomly selected flashlights, what is the probability that at least nine will work? What assumptions did you make in the course of answering the question posed?

We shall assume that batteries work independently. Thus, the probability of getting two working batteries in any given flashlight is (.9)^2 = .81. Let X = the number of working flashingts among the 10 selected. Then X ∼ Bin(10, .81). We are asked for

P (X ≥ 9) = b(9; 10, .81) + b(10; 10, .81)

=

(.81)^9 (.19)^1 +

(.81)^10

= 10(.81)^9 (.19) + (.81)^10 ≈. 407.

  1. Customers at a gas station pay with a credit card (A), debit card (B), or cash (C). Assume that successive customers make independent choices, with P (A) = .5, P (B) = .2, and P (C) = .3.

(a.) Among the next 100 customers, what are the mean and variance of the number who pay with a debit card? Explain your reasoning.

(b.) Answer part (a.) for the number among the 100 who don’t pay with cash.

(a.) Consider paying with a debit card to be a success. Then the number amongst the next 100 customers who pay with debit = X ∼ Bin(100, .2). Thus,

E(X) = 100(.2) = 20, V (X) = 100(.2)(.8) = 16.

(b.) Now consider not paying with cash to be a success. Then the number amongst the next 100 customers who do not pay with case = X ∼ Bin(100, .7). Thus,

E(X) = 100(.7) = 70, V (X) = 100(.7)(.3) = 21.