Docsity

Midterm Exam 1 with Solution - Applied Statistical Methods I | STAT 381, Exams of Data Analysis & Statistical Methods

Toggle sidebar
bg1
STAT 381-13605 Midterm Exam I 10/04/2006
(Solution)
Problem 1. The numbers that follow are the incomes of professors in a department of a
particular college (in thousands of dollars):
62, 66, 54, 72, 77, 89
a) [4pt] Calculate the sample mean, and sample variance.
()
150
1
1
70
1
2
2=−
−
=
==
∑
∑
xx
n
s
x
n
x
i
i
b) [3pt] Find the first quartile, the third quartile and the interquartile range (IQR).
Q1 Q3
Rank 6*(1/4)+0.5=2 6*(3/4)+0.5=5
Answer 62 77
IQR = Q3 – Q1 = 77- 62 =15
Problem 2. The probability that a shot will hit the target is 0.02. Successive shots are
independent of each other. Shot the target twice.
a) [3pt] What is the probability that both two shots will miss the target?
A1 = {hit the first shot}, A2 = {hit the second shot},
Since A1 and A2 are independent,
P{both shots miss the target}=
(
)
(
)
(
)
9604.98.*98.0* 2121 ===∩ APAPAAP
b) [3pt] What is the probability that at least one shot will hit the target?
P{at least one shot hit the target}
= P(A1∪A2) = P(A1) + P(A2) - P (A1∩A2)
= .02 + .02 - .02*.02 = .0396
Or P{at least one shot hit the target}
= 1- P{both shot miss the target} = 1 - .9604 =.0396.
1
pf3
pf4

Partial preview of the text

Download Midterm Exam 1 with Solution - Applied Statistical Methods I | STAT 381 and more Exams Data Analysis & Statistical Methods in PDF only on Docsity!

STAT 381-13605 Midterm Exam I 10/04/

(Solution)

Problem 1. The numbers that follow are the incomes of professors in a department of a particular college (in thousands of dollars):

a) [4pt] Calculate the sample mean, and sample variance.

2 2

x x

n

s

x

n

x

i

i

b) [3pt] Find the first quartile, the third quartile and the interquartile range (IQR).

Q1 Q Rank 6(1/4)+0.5=2 6(3/4)+0.5= Answer 62 77

IQR = Q3 – Q1 = 77- 62 =

Problem 2. The probability that a shot will hit the target is 0.02. Successive shots are

independent of each other. Shot the target twice.

a) [3pt] What is the probability that both two shots will miss the target?

A 1 = {hit the first shot}, A 2 = {hit the second shot}, Since A 1 and A 2 are independent,

P{both shots miss the target}= P ( A 1 ∩ A 2 ) = P ( A 1 ) * P ( A 2 ) = 0. 98 *. 98 =. 9604

b) [3pt] What is the probability that at least one shot will hit the target?

P{at least one shot hit the target} = P(A 1 ∪ A 2 ) = P(A 1 ) + P(A 2 ) - P (A 1 ∩A 2 ) = .02 + .02 - .02*.02 =.

Or P{at least one shot hit the target}

= 1- P{both shot miss the target} = 1 - .9604 =.0396.

Problem 3. Consider the weight x (in 1000 pounds) and the fuel consumption y (gallons

per 100 miles) of 4 cars in the following table.

Car weight x Fuel Consumption y 3 3 1 1 2 2 6 8

a) [3pt] Compute the sample correlation coefficient of x and y.

xi n

x ( ) 2. 160

= ∑ x x

n

s (^) x i

yi n

y , ( ) 3. 109

= ∑ y y

n

s (^) y i

Sample correlation coefficient

2 2

x x y y

x x y y r i i

i i r

r

b) [4pt] By the least square method, fit y = α + β x to the data.

Estimate of slope

x x

x x y y

i

i i β ,

or 1. 429

  1. 160

x

y s

s

β r

Estimate of intercept αˆ^ = y − βˆ⋅ x = 3. 5 −( 1. 429 * 3 ) =− 0. 787

Hence the best linear fitted line is y = − 0. 787 + 1. 429 ⋅ x

Problem 4. Suppose A and B are two independent events with P(A)=0.6 and P(B)=0.

Calculate the following probabilities:

a) [ 2pt] P (A∩B) = P(A)*P(B) = 0.

b) [ 3pt] P(A ∪B) = P(A) + P(B) - P (A∩B)=0.6 + 0.8 - 0.48 =.

c) [3pt] P( A ∪ B )= P ( A ) + P ( B ) − P ( A ∩ B ) =. 4 +. 2 −(. 4 *. 2 )=. 52

Or P( A ∪ B )= 1 - P (A∩B) = 1 – 0.48 = 0.52.

( )( )

∑ (^ )^ ∑(^ )

∑

− −

2 2 x x y y

x x y y

i i

i i r

r ,

( )( )

( )

2 ∑

∑ −

x x

x x y y

i

i i

∑ ( − −

2 1

x x n i )^ ,^ E [ h^ (^ X )]^ =^ ∑ (^) x ∈ Rh (^ x )^ f (^ x )

( )

( )

( )

| PB

PA B P A B

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

Bonus Question. [2pt]

It is known that 30% of all cars are defective. A car gets involved in an accident 80% of

the time if the car is defective. If it is not defective, the probability reduces to 40%. If a car is involved in an accident, what is the probability that it was defective?

D ={car is defective} A={involve in an accident}

Tree Diagram 0.80 A D 0.30 0. A

0.40 A D

A

D | A ={the carry was defective if it is involved in an accident}

P(D|A)

= P(D∩A) / P(A)