Docsity

Solutions to Stat 331/Elec 331 Homework 2: Probability Distributions and Independence, Assignments of Probability and Statistics

Toggle sidebar
bg1
Stat 331/Elec 331, Solutions to Homework 2
1a. P(A) = 1/2, P (B) = 2/3, P (C) = 3/36 and P(A∩B∩C) = 1/36.
b. No, since for instance Aand Care not independent; P(A∩C) = 3/36 6=
P(A)P(C) (actually, if Coccurs, Amust also occur). That P(A∩B∩C) =
P(A)P(B)P(C) is not enough for independence.
2a. Let Ajbe the event that we get the ace of spades in the jth draw. Since
we draw with replacement and independently, the event that we get the ace
of spades for the first time in the kth draw is the event Ac
1∩Ac
2∩...∩Ac
k−1∩Ak
and by independence the probability of this is P(Ac
1)·... ·P(Ac
k−1)P(Ak) =
(51/52)k−11/52 (a geometric distribution with p= 1/52).
b. The probability that the ace of spades appears in the first trial is 1/52,
hence P(X= 1) = 1/52. That it appears in the second trial means that we
must draw something else in the first trial, which has probability 51/52, and
then draw the ace of spades from the remaining 51 cards which has prob-
ability 1/51. Hence P(X= 2) = 51/52 ·1/51 = 1/52 (formally we have
used the formula P(C∩D) = P(D|C)P(C) here). Similarly we will have
P(X=k) = 1/52 for k= 1,2, ..., 52.
Don’t confuse conditional and unconditional probabilities here: the probabil-
ity that the ace of spades appears in the 51st trial is 1/52 but the conditional
probability that it appears in the 51st trial given that it has not appeared
before is 1/2.
3. For each function f, check that f≥0 and R∞
−∞ f(x)dx = 1.
a. This is a pdf. To compute the distribution function, first take −1≤x≤
0. Then Rx
−1f(t)dt =Rx
−1−tdt =−[t2/2]x
−1= 1/2(1 −x2). For 0 ≤x≤1 we
have and Rx
−1f(t)dt = 1/2 + Rx
0tdt = 1/2(1 + x2). Hence
F(x) = (1/2(1 −x2) if −1≤x≤0
1/2(1 + x2) if 0 ≤x≤1
b. This is not a pdf since it is negative between 0 and 1 (that it has integral
equal to 1 does not help in this case).
1
pf2

Partial preview of the text

Download Solutions to Stat 331/Elec 331 Homework 2: Probability Distributions and Independence and more Assignments Probability and Statistics in PDF only on Docsity!

Stat 331/Elec 331, Solutions to Homework 2

1a. P (A) = 1/ 2 , P (B) = 2/ 3 , P (C) = 3/36 and P (A ∩ B ∩ C) = 1/36.

b. No, since for instance A and C are not independent; P (A ∩ C) = 3/ 36 6 = P (A)P (C) (actually, if C occurs, A must also occur). That P (A ∩ B ∩ C) = P (A)P (B)P (C) is not enough for independence.

2a. Let Aj be the event that we get the ace of spades in the jth draw. Since we draw with replacement and independently, the event that we get the ace of spades for the first time in the kth draw is the event Ac 1 ∩Ac 2 ∩...∩Ack− 1 ∩Ak and by independence the probability of this is P (Ac 1 ) · ... · P (Ack− 1 )P (Ak) = (51/52)k−^11 /52 (a geometric distribution with p = 1/52).

b. The probability that the ace of spades appears in the first trial is 1/52, hence P (X = 1) = 1/52. That it appears in the second trial means that we must draw something else in the first trial, which has probability 51/52, and then draw the ace of spades from the remaining 51 cards which has prob- ability 1/51. Hence P (X = 2) = 51/ 52 · 1 /51 = 1/52 (formally we have used the formula P (C ∩ D) = P (D|C)P (C) here). Similarly we will have P (X = k) = 1/52 for k = 1, 2 , ..., 52.

Don’t confuse conditional and unconditional probabilities here: the probabil- ity that the ace of spades appears in the 51st trial is 1/52 but the conditional probability that it appears in the 51st trial given that it has not appeared before is 1/2.

  1. For each function f , check that f ≥ 0 and

∫ (^) ∞ −∞ f^ (x)dx^ = 1.

a. This is a pdf. To compute the distribution function, first take − 1 ≤ x ≤

  1. Then

∫ (^) x − 1 f^ (t)dt^ =^

∫ (^) x − 1 −tdt^ =^ −[t (^2) /2]x − 1 = 1/2(1^ −^ x (^2) ). For 0 ≤ x ≤ 1 we

have and

∫ (^) x − 1 f^ (t)dt^ = 1/2 +^

∫ (^) x 0 tdt^ = 1/2(1 +^ x

(^2) ). Hence

F (x) =

{ 1 /2(1 − x^2 ) if − 1 ≤ x ≤ 0 1 /2(1 + x^2 ) if 0 ≤ x ≤ 1

b. This is not a pdf since it is negative between 0 and 1 (that it has integral equal to 1 does not help in this case).

c. This is a pdf with F (x) = x + 1, − 1 ≤ x ≤ 0 (the uniform distribution on [− 1 , 0]).

d. This is a pdf with F (x) =

∫ (^) x 1 (1/t (^2) )dt = [1/t]x 1 = 1^ −^1 /x, x^ ≥^1.

  1. For Y , first note that the range is (0, 1). Take an x in (0, 1) and start by finding the cdf:

FY (x) = P (Y ≤ x) = P (

X ≤ x) = P (X ≤ x^2 ) = FX (x^2 ) = x^2

since X ∼unif(0, 1). Differentiation gives fY (x) = 2x, 0 < x < 1..

For Z, note that the range is (1, ∞). Take an x > 1. Then

FZ (x) = P (Z ≤ x) = P (

X

≤ x) = P (X ≥

x

x

since X is uniform on (0, 1) (note that x > 1 and therefore 1/x is between 0 and 1). Hence Z has pdf

fZ (x) =

x^2

, x > 1.

  1. Let F be the cdf of X. First note that F (0) = P (X ≤ 0) = P (X = 0) =
    1. For x > 0, let A = {X = 0} and apply the Law of Total Probability to get

F (x) = P (X ≤ x) = P (X ≤ x|A)P (A) + P (X ≤ x|Ac)P (Ac).

Now, P (A) = 0. 2 , P (Ac) = 0. 8 , P (X ≤ x|A) = 1 and P (X ≤ x|Ac) = x/ 30 and hence

F (x) =

{ 0 .2 + 0. 8 x/ 30 if x ≥ 0 0 if x < 0

Since the range of X is uncountable, X is not discrete and since the cdf of X is not continuous at 0, X is not continuous. It is a mixture of a discrete part at 0 and a continuous part on (0,30).