You are on page 1of 7

Liz Kantor

Stat 104 Homework 3


Question 1. Let X be a discrete random variable with PMF given by
(
x2 /a if x = −3, −2, −1, 0, 1, 2, 3
pX (x) = .
0 otherwise
(a) Find the value of a.
(b) Calculate E(x).
Proof.
(a) Based on the definition of probability, we know:
X
pX (x) = 1
x
X
pX (−3) + pX (−2) + pX (−1) + pX (0) + pX (1) + pX (2) + pX (3) + pX (x) = 1
x∈{−3,−2,−1,0,1,2,3}
/

9/a + 4/a + 1/a + 0/a + 1/a + 4/a + 9/a + 0 = 1


28/a = 1
28 = a

(b) Based on the definition of expectation, we have:


X
E(x) = pX (x)(x)
x
= pX (−3)(−3) + pX (−2)(−2) + pX (−1)(−1) + pX (0)(0)
X
+ pX (1)(1) + pX (2)(2) + pX (3)(3) + pX (x)(x)
x∈{−3,−2,−1,0,1,2,3}
/

Since we know that pX (x) = 0 | x ∈


/ {−3, −2, −1, 0, 1, 2, 3}, we can write:
E(x) = pX (−3)(−3) + pX (−2)(−2) + pX (−1)(−1) + pX (0)(0)
X
+ pX (1)(1) + pX (2)(2) + pX (3)(3) + 0(x)
x∈{−3,−2,−1,0,1,2,3}
/

= 9/a(−3) + 4/a(−2) + 1/a(−1) + 0/a(0)


X
+ 1/a(1) + 4/a(2) + 9/a(3) + 0 x
x∈{−3,−2,−1,0,1,2,3}
/

=0
This makes sense since we have a symmetric PMF centered around 0.

1
Liz Kantor Problem Set 3 2

Question 2. The probability that a cellular phone company kiosk sells x number of new
phone contracts per day is shown below.



 .2 |x=4

.25 | x = 5




.35 | x = 6
P (X = x) =


 .10 | x = 8




 .10 | x = 10

0 | otherwise

(a) Find the mean, variance, and standard deviation for this probability distribution.

(b) Suppose the kiosk salesperson makes $80/day, plus a $25 bonus for each new phone
contract sold. What are the mean and variance of the salesperson’s daily salary?

Proof.

(a) The mean can be found with the definition of expectation:


X
E(X) = xP (X = x)
x
= 4(.2) + 5(.25) + 6(.35) + 8(.10) + 10(.10)
= 5.95

The variance can be found beginning with its definition:

V ar(X) = E(X − E(X))2


= E(X 2 ) − (EX)2
X
= xP (X 2 = x) − (EX)2
x

We now consider each possible outcome of X. If X = 4 (which has a .2 probability),


X 2 = 16. If X = 5 (which has a .25 probability), X 2 = 25. If X = 6 (which has
a .35 probability), X 2 = 36. If X = 8 (which has a .10 probability), X 2 = 64. If
X = 10 (which has a .10 probability), X 2 = 10. Thus, we arrive at the following
PMF for X 2 : 


 .2 | x = 16




 .25 | x = 25

.35 | x = 36
P (X 2 = x) =
.10 | x = 64



.10 | x = 100




0 | otherwise
Liz Kantor Problem Set 3 3

We substitute this PMF into the equation, and we also substitute in our part (a)
calculation of E(X):

V ar(X) = 16(.2) + 25(.25) + 36(.36) + 64(.10) + 100(.10) − (5.95)2 = 3.4075

Standard deviation is defined as the square root of the variance:


p √
SD(X) = V ar(X) = 3.4075 ≈ 1.85

(b) Let S be a random variable representing the daily salary. We consider S for each
outcome of X. For example, if X = 4, the salesperson will receive $80 + $25(4) =
$180. This gives us a PMF for S:

.2 | x = $80 + $25(4) = $180






 .25 | x = $80 + $25(5) = $205

.35 | x = $80 + $25(6) = $230
P (S = 80 + 25X = x) =


 .10 | x = $80 + $25(8) = $280




 .10 | x = $80 + $25(10) = $330

0 | otherwise

We can also calculate the PMF for S 2 by considering what S 2 becomes in each of
the above cases:



.2 | x = ($180)2 = $2 32, 400
.25 | x = ($205)2 = $2 42, 025





.35 | x = ($230)2 = $2 52, 900

P (S 2 = x) =


.10 | x = ($280)2 = $2 78, 400
.10 | x = ($330)2 = $2 108, 900






0 | otherwise

Now, we can calculate expectation and variance from their definitions:


X
E(S) = xP (S = x)
x
= $180(.2) + $205(.25) + $230(.35) + $280(.1) + $330(.1)
= $228.75
V ar(S) = E(S 2 ) − (ES)2
X
= xP (S 2 = x) − (ES)2
x
= $ 32, 400(.2) + $2 42, 025(.25) + $2 52, 900(.35) + $2 78, 400(.10)
2

+ $2 108, 900(.10) − ($228.75)2


= $2 1904.6875
Liz Kantor Problem Set 3 4

Question 3. In a population of students, the number of calculators owned is a random


variable X with P (X = 0) = .4, P (X = 1) = .5, P (X = 2) = .1.

(a) Find E(X).

(b) Find V ar(X).

Proof.

(a)
X
E(X) = xP (X = x) = 0P (X = 0) + 1P (X = 1) + 2P (X = 2) = .5 + 2(.1) = .7
x

(b) First, we use the same technique used for problems (1) and (2) to find the PMF
of X 2 : 


 .4 | x = 02 = 0
.5 | x = 12 = 1

P (X 2 = x) =


 .1 | x = 22 = 4

0 | otherwise

Now, we use the formula for variability:

V ar(X) = E(X 2 ) − (EX)2


X
= xP (X 2 = x) − (.7)2
x
= 0(.4) + 1(.5) + 4(.1) − .72
= .41

Question 4. You roll two dice.

(a) What is the probability of two sixes? Of exactly one six? Of no sixes?

(b) What is the expected number of sixes that will show?

Proof. Let A be a random variable representing the result of the first die and B be a
random variable representing the result of the second die.

(a) For two sixes to occur, A = 6 and B = 6. Since the dice rolls are independent, we
have:

P (two sixes) = P (A = 6, B = 6) = P (A = 6)P (B = 6) = (1/6)(1/6) = 1/36


Liz Kantor Problem Set 3 5

For one six to occur, (A = 6 and B 6= 6) or (A 6= 6 and B = 6).

P (exactly one six) = P ((A = 6, B 6= 6) ∪ (A 6= 6, B = 6))

By the Inclusion-Exclusion Principle:

= P (A = 6, B 6= 6) + P (A 6= 6, B = 6) − P (A = 6, B 6= 6, A 6= 6, B = 6))

But clearly, P (A = 6, B 6= 6, A 6= 6, B = 6) = 0 since A = 6 and A 6= 6 cannot


both be true:

= P (A = 6, B 6= 6) + P (A 6= 6, B = 6) − 0
= P (A = 6, B 6= 6) + P (A 6= 6, B = 6)

Since A and B are independent dice rolls:

= P (A = 6)P (B 6= 6) + P (A 6= 6)P (B = 6) = (1/6)(5/6) + (5/6)(1/6) = 5/18

For no sixes to occur, A 6= 6 and B 6= 6. Since the dice rolls are independent, we
have:

P (no sixes) = P (A 6= 6, B 6= 6) = P (A 6= 6)P (B 6= 6) = (5/6)(5/6) = 25/36

(b) Let X be a random variable representing the number of sixes rolled. By the
definition of expectation:
X
E(X) = xP (X = x)
x
= 0P (X = 0) + 1P (X = 1) + 2P (X = 2)
= 1(5/18) + 2(1/36)
= 1/3
Liz Kantor Problem Set 3 6

Question 6. If random variable X has mean µ and variance σ 2 , show (using the a + bX
rule) what the mean and variance of Z = (X − µ)/σ are.
2
Proof. The a + bX rule has two parts: µa+bX = a + bµX and σa+bX = b2 σX
2 . Simplifying

our definition of Z, we have

Z = (X − µ)/σ = (1/σ)X − µ/σ

Thus, a = 1/σ and b = −µ/σ. Therefore, Z’s mean is given by:

E(Z) = a + bµX
= (1/σ) − (µ/σ)(σ)
= (1/σ) − µ

Z’s variance is given by:

V ar(Z) = b2 V ar(X)
= (−µ/σ)2 (σ 2 )
= µ2

Question 7. Find the variance of each of the following bets from the class notes. Which
bet is riskiest and which bet is safest?
(a) You get $5 with probability 1.
(b) You get $10 with probability .5, or $0 with probability .5.
(c) You get $5 with probability .5, $10 with probability .25, and $0 with probability
.25.
(d) You get $5 with probability .5, $105 with probability .25, or lose $95 with proba-
bility .25.
Proof. In each part, let X be a random variable representing winnings in dollars. We
can begin by observing that each part’s PMF is symmetric around X = 5, so each part’s
E(X) = 5 and each part’s (EX)2 = 25.
(a)
(
2 1 | x = 52 = 25
P (X = x) =
0 | otherwise
V ar(X) = E(X 2 ) − (EX)2
X
= xP (X 2 = x) − 25
x
= 25(1) − 25
=0
Liz Kantor Problem Set 3 7

(b)

2
.5 | x = 10 = 100

P (X 2 = x) = .5 | x = 02 = 0

0 | otherwise

V ar(X) = E(X 2 ) − (EX)2


X
= xP (X 2 = x) − 25
x
= 100(.5) + 0(.5) − 25
= 25

(c)



.5 | x = 52 = 25
| x = 102 = 100

.25
P (X 2 = x) =


.25 | x = 02 = 0

0 | otherwise
V ar(X) = E(X 2 ) − (EX)2
X
= xP (X 2 = x) − 25
x
= 25(.5) + 100(.25) + 0(.25) − 25
= 12.5

(d)



.5 | x = 52 = 25
| x = 1052 = 11025

.25
P (X 2 = x) =
.25

 | x = (−95)2 = 9025

0 | otherwise
V ar(X) = E(X 2 ) − (EX)2
X
= xP (X 2 = x) − 25
x
= 25(.5) + 11025(.25) + 9025(.25) − 25
= 5000

Bet (d) is the riskiest because it has the highest variance, and bet (a) is the safest
because it has the lowest variance.

You might also like