Docsity

Probability & Random Processes Midterm 1 - UC Berkeley - Fall 2008, Exams of Probability and Statistics

Toggle sidebar
bg1
Department of EECS - University of California at Berkeley
EECS 126 - Probability and Random Processes - Fall 2008
Midterm 1: 10/09/2008
Name:
SID:
1. Short Questions (20%); 4% each
1.1. Define “Random Variable”
Answer:
A random variable is a real-valued function of the outcome or a random experiment (80%).
Details: To specify the random experiment, one defines a probability space (set of outcomes Ω
and probability P(A) of sets Aof outcomes). The random variable is then a function X: Ω → <
(20%).
1.2. Complete the sentence: A, B , C are mutually independent if and only if
Answer:
P(A∩B) = P(A)P(B), P (B∩C) = P(B)P(C), P (A∩C) = P(A)P(C),
P(A∩B∩C) = P(A)P(B)P(C).
1
pf3
pf4
pf5

Partial preview of the text

Download Probability & Random Processes Midterm 1 - UC Berkeley - Fall 2008 and more Exams Probability and Statistics in PDF only on Docsity!

Department of EECS - University of California at Berkeley EECS 126 - Probability and Random Processes - Fall 2008 Midterm 1: 10/09/

Name:

SID:

  1. Short Questions (20%); 4% each

1.1. Define “Random Variable”

Answer:

A random variable is a real-valued function of the outcome or a random experiment (80%). Details: To specify the random experiment, one defines a probability space (set of outcomes Ω and probability P (A) of sets A of outcomes). The random variable is then a function X : Ω → < (20%).

1.2. Complete the sentence: A, B, C are mutually independent if and only if

Answer:

P (A ∩ B) = P (A)P (B), P (B ∩ C) = P (B)P (C), P (A ∩ C) = P (A)P (C), P (A ∩ B ∩ C) = P (A)P (B)P (C).

1.3. Bayes’s Rule. Assume that {A 1 ,... , An} form a partition of Ω and that pm = P (Am) and qm = P [B|Am] for m = 1,... , n. Derive P [Am|B] in terms of p’s and q’s.

Answer:

P [Am|B] = P (Am ∩ B) P (B)

P (Am)P [B|Am] ∑n k=1 P^ (Ak^ ∩^ B) =

P (Am)P [B|Am] ∑n k=1 P^ (Ak)P^ [B|Ak]

pmqm ∑n k=1 pkqk

1.4. Assume that X is equal to 2 with probability 0.4 and is uniformly distributed in [0, 1] otherwise. Calculate E(X) and var(X). (Hint: Recall that var(X) = E(X^2 ) − E(X)^2 .)

Answer: E(X) = 0. 4 × 2 + 0. 6 × 0 .5 = 1. 1.

Also,

E(X^2 ) = 0. 4 × 22 + 0. 6 ×

0

x^2 dx = 0. 4 × 4 + 0. 6 ×

Hence, var(X) = 1. 8 − (1.1)^2 = 0. 59.

1.5. Two random variables X, Y are related so that aX + Y = b for some real constants a and b. Given E(X) = μ, var(X) = σ^2 , express E(Y ) and var(Y ) in terms of μ and σ.

Answer:

Y = b − aX. Therefore:

E[Y ] =E[b − aX] =b − aE[X] =b − aμ

var(Y ) =E[(Y − E[Y ])^2 ] =E[(b − aX − b + aE[X])^2 ] =E[a^2 (X − E[X])^2 ] =a^2 var(X) =a^2 σ^2

  1. Expectation (15%)

There is a series of mutually independent Bernoulli experiments that individually have probability p of success and probability (1 − p) of failure. These experiments are conducted until the rth success. Let X be the number of failures that occur until this rth^ success. The pmf of X is:

pX (k) =

k + r − 1 k

pr(1 − p)k, k ≥ 0

a) Justify the pmf.

Answer:

X = k if k failures and r − 1 successes occur in any order, and then the next experiment is a success. There are

(k+r− 1 k

possible orderings where this occurs, and each permutation has probability pr(1 − p)k. Therefore:

pX (k) = P (X = k) =

k + r − 1 k

pr(1 − p)k

b) Express E(X) in terms of p and r.

Answer:

Using the definition of expectation:

E[X] =

∑^ ∞

k=

kpX (k)

∑^ ∞

k=

k (k + r − 1)! k!(r − 1)!

pr(1 − p)k

Noticing that k will cancel part of k!, we relate this to pX (k − 1; r + 1), that is the probability that X = k − 1 in a similar experiment to r + 1 successes.

E[X] =

∑^ ∞

k=

(k + r − 1)! (k − 1)!r!

pr+1(1 − p)k−^1 · r 1 − p p

=r 1 − p p

∑^ ∞

k=

pX (k − 1; r + 1)

=r

1 − p p

  1. Independence (15%)

Show that if three events A, B, and C are mutually independent, then A and B ∪ C are indepen- dent.

Answer:

Events A and B ∪ C are independent if and only if P (A ∩ (B ∪ C)) = P (A)P (B ∪ C).

P (B ∪ C) =P (B) + P (C) − P (B ∩ C) =P (B) + P (C) − P (B)P (C)

because B and C are independent.

P (A)P (B ∪ C) =P (A)P (B) + P (A)P (C) − P (A)P (B)P (C) =P (A ∩ B) + P (A ∩ C) − P (A ∩ B ∩ C) =P ((A ∩ B) ∪ (A ∩ C)) =P (A ∩ (B ∪ C))

  1. Probability Distribution (10%)

Find the allowable range of values for constants a and b such that the following function is a valid CDF F (x) = 1 − ae−x/b^ if x ≥ 0 , and 0 otherwise.

For those values of a and b, compute P (− 2 < X < 10) where X is the associated random variable.

Answer:

If a > 1, then F (0+) < 0, which would be invalid. If a < 0, then F (x) > 1 for x ≥ 0, which is also invalid. For limx→∞ F (x) = 1, we need b > 0. Therefore 0 ≤ a ≤ 1 and b > 0.

Since F (x) = P (X < x):

P (− 2 < X < 10) =P (X < 10) − P (X < −2) =F (10) − F (−2) =1 − ae−^10 /b^ − 0 =1 − ae−^10 /b