Docsity

Advanced Statistical Methods - Solved Midterm Exam | ISQS 5347, Exams of Data Analysis & Statistical Methods

Toggle sidebar
bg1
ISQS 5347 Midterm 1, Fall 2006.
1. Consider the pdf of the discrete random variable X defined by the function f(x) = x/10,
for x=1,2,3,4; f(x)=0 otherwise. Find E(X).
Solution: E(X) = 1×(1/10) + 2×(2/10) + 3×(3/10) + 4×(4/10) = 30/10 = 3.0.
2. Consider the following function: f(x) = ex, for 0 < x < ln(2), and f(x) = 0 otherwise.
Show that f(x) is a valid pdf.
Solution: Note (i) that ex>0, and (ii) that .
ln(2 ) ln(2 ) ln(2 ) 0
0
0
|2
xx
edx e e e==−=−=
∫11.0
3. Suppose you select 10 students at random, without replacement, from our class of 28.
There are 18 Ph.D. students in the class. Write down the mathematical expression for
P(X=5), where X is the number of Ph.D. students in the sample of 10. You don’t need to
calculate it, but you need to have all the numbers in the right place. I will assume you
know what means, so you don’t need to expand such terms any further.
⎟
⎟
⎠
⎞
⎜
⎜
⎝
⎛
a
b
Solution:
18 10
55
(5) 28
10
PX
⎛⎞⎛⎞
⎜⎟⎜⎟
⎝⎠⎝⎠
==⎛⎞
⎜⎟
⎝⎠
.
4. Consider the following pdf for a random variable X.
x f(x)
0 .5
1.2 .1
1.7 .2
1.9 .15
1.95 .05
Find P(X>1.5 | X > 1).
Solution: P(X>1.5 | X > 1) = P(X>1.5 ∩ X > 1)/P(X>1) = P(X>1.5)/P(X>1) =
(.2+.15+.05)/(.1+.2+.15+.05) = .4/.5 = .8.
pf2

Partial preview of the text

Download Advanced Statistical Methods - Solved Midterm Exam | ISQS 5347 and more Exams Data Analysis & Statistical Methods in PDF only on Docsity!

ISQS 5347 Midterm 1, Fall 2006.

  1. Consider the pdf of the discrete random variable X defined by the function f(x) = x/10, for x=1,2,3,4; f(x)=0 otherwise. Find E(X).

Solution: E(X) = 1×(1/10) + 2×(2/10) + 3×(3/10) + 4×(4/10) = 30/10 = 3.0.

  1. Consider the following function: f(x) = ex, for 0 < x < ln(2), and f(x) = 0 otherwise. Show that f(x) is a valid pdf.

Solution: Note (i) that ex>0, and (ii) that.

ln(2) ln(2) ln(2) 0 0 0

∫ e dxx^ =^ e^ x |^ =^ e^ −^ e =^2 −^1 =1.

  1. Suppose you select 10 students at random, without replacement, from our class of 28. There are 18 Ph.D. students in the class. Write down the mathematical expression for P(X=5), where X is the number of Ph.D. students in the sample of 10. You don’t need to calculate it, but you need to have all the numbers in the right place. I will assume you

know what (^) ⎟⎟means, so you don’t need to expand such terms any further. ⎠

a

b

Solution:

P X

= = ⎝^ ⎠⎝^ ⎠

  1. Consider the following pdf for a random variable X. x f(x)

1.2. 1.7. 1.9. 1.95.

Find P(X>1.5 | X > 1).

Solution: P(X>1.5 | X > 1) = P(X>1.5 ∩ X > 1)/P(X>1) = P(X>1.5)/P(X>1) = (.2+.15+.05)/(.1+.2+.15+.05) = .4/.5 = .8.

  1. X is sampled from a Poisson distribution with mean 4. Y is sampled, independently of X, from the uniform distribution with range 0 to 12. Find the variance of (X+Y)/2.

Solution: Var((X+Y)/2) = (1/2)^2 Var(X+Y) (by the linearity property) = (1/2)^2 { Var(X) +Var(Y) } (since X and Y are independent) = (1/2)^2 { 4 + 12 } (using the formula sheet to find the variances) = 4.

  1. Unwanted computer intrusion is a problem. Suppose that 98% of accesses are from trusted sources. If a source is “trusted,” there is a 0.1% chance that the intrusion is unwanted. If a source is “not trusted,” there is a 50% chance that the intrusion is unwanted.

Suppose there is an unwanted intrusion. What is the probability that it is from a trusted source?

Solution: Let A = {Trusted source} Let B = {Unwanted intrusion}.

We are given the following: P(A) =. P(B|A) = .001. P(B|Ac) = .5.

We want P(A|B).

By Bayes’ theorem,

( | ) ( ) ( | ) ( | ) ( ) ( | ) ( ) (.001)(.98) .089. (.001)(.98) (.5)(.02)

c c

P B A P A

P A B

P B A P A P B A P A