Sie sind auf Seite 1von 6

Review for Midterm 2

Problem 1.
Gasoline is restocked in a large tank once at the beginning of each week and then sold to
individual customers. Let X denote the proportion of the capacity of the tank that is
available after it is stocked at the beginning of the week. X varies from week to week. Let
Y denote the proportion of the capacity of the tank that is sold during the week. Suppose
the joint probability density function of X and Y is given by

3x,
f (x, y ) =
0,

0 y x 1
elsewhere

a) Find the probability that the tank will be less than half-filled at the beginning of the
week, but more than of the tank will be sold (i.e. find the probability that
0 X .5 and Y .25 )
b) The random variable X Y denotes the proportional amount of gasoline remaining at
the end of the week. Find E( X Y ) .
c) Find the variance of X Y.

Solution.

a)

P 0 X .5, Y .25 = f ( x, y ) dx dy

A
=

1/ 2 x

1/ 4 1/ 4

3x dx dy

= 3 x (y )
1/ 2

1/ 4

dx

1/ 4

= 3 x(x 1 4) dx
1/ 2

1/ 4

1/ 2

= x3 x 2
8 1/ 4

1 3 1 1 3 1
=
8 8 4 64 8 16
5
=
128

b) E(X Y ) = E(X ) + E( Y ) = E(X ) E(Y )


E(X ) =

+ +

E(Y ) =

+ +

x f ( x, y ) dx dy =

1 x

0 0

1 x

y f ( x, y ) dx dy =

0 0

E(X Y ) = E(X ) E(Y ) =

( ) dx

y2

y (3x ) dx dy = 3x
2
0

3 3 3
=
4 8 8

c) V (X Y ) = V (X )+ V (Y ) 2 Cov( X ,Y )
Let us first find the marginal distributions of X and Y
x

f X ( x) = f ( x, y ) dy = 3xdy = 3 x 2

fY ( y) =

3x 2
f ( x, y ) dx = 3 xdx =
2
y

=
y

3
1 y2
2

Now we can compute the variances of X and Y

( )

V (X ) = E X 2 [E(X )]

( ) dx = 34

dy = x 3 x 2

x 3x

( )

V (Y ) = E Y 2 [E(Y )]

dx = 3 x 3 dx = 3
0 2

8
0
x

( )

EX

( )

EY

3x 5
= x f X ( x) dx = x 3x dx = 3 x dx =

5
0
0
+

3
5
1

1
3
3
3 y3 y5
1
= y f Y ( y ) dy = y 1 y 2 dy = y 2 y 4 dy = =

2
20
2 3
5 0 5
0
+

3 3
V (X ) = = .04
5 4

1 3
V (Y ) = = .06
5 8

We also have to compute the covariance of X and Y

Cov( X , Y ) = E( XY ) E( X ) E(Y )
1
y2 x
3 4
3 x5 3

E (XY ) = xyf ( x, y ) dx dy = xy 3x dy dx = 3 x
dx = x dx =
=
2
2
2 5 10

0 0
0
0
0

3 3 3
Cov( X ,Y ) = E( XY ) E( X ) E(Y ) = = .30 .28 = .02
10 4 8
+ +

1 x

We now substitute everything in to get a final formula

V (X Y ) = V (X ) + V (Y ) 2 Cov( X , Y ) = .04 + .06 2 (.02) = .06 .

Problem 2.
The reaction of an individual to a stimulus in a psychological experiment may take one of
two forms: A or B. In a selected sample size of 230 individuals, 138 reacted in manner A.
a) Compute the 90% confidence interval for the true proportion of the individuals
reacting in manner A to the stimulus in the experiment.
b) If the desired length of the 90% interval is .05, what sample size is necessary to
ensure this?

Solution.

a) A 100(1-)% confidence interval for a large sample of the population with population
proportion p is p z / 2 p q / n . In our case, p =
(.6 )(.4)
.600 1.645

230

1/ 2

= 0.600 0.053 = .547, .653 .

b) Using p = q = .5 , L = 2 z / 2 p q / n = 2 1.645
4 (1.645) 0.25

138
= 0.600 , so the 90% CI for p is
230

(.5)(.5) = 0.05 , which yields


n

n=

(0.05)2

= 1082 .

Problem 3.
The flatwise bonding strength (lb./in.) was determined for dowel joints of two different
types used in wood furniture frame construction, with the second type having greater rail
thickness (1.5 in.) than the first type (1.25in.).

Rail Thickness

Sample size

Sample Mean

Sample St. Dev.

1.25 in.

m = 10

x = 1215.6

s1 = 137.4

1.5 in.

n = 10

y = 1376.4

s 2 = 155.0

a) Does the larger rail thickness of the second type of dowel result in the greater true
average bonding strength than for dowels of the first type? Test the relevant
hypotheses at the level .05
b) Give upper and lower bounds on the P-value of the data.

Solution.

a) 1. Parameter of interest: 1 2 .
2. H0 : 1 2 = 0
3. Ha : 1 2 < 0
4. Test statistics: t =

x y
m 1 2
n 1
, where s 2p =
s1 +
s 22
m+n2
m+n2
1 1
sp
+
m n

5. Reject H0 if t t 0.5,18 , or t 1.734

10 1
10 1
s12 + s 22 (137.4) + (155.0 )
2
2
6. s =
s1 +
s2 =
=
= 21,451.88
10 + 10 2
10 + 10 2
2
2
2

2
p

s p = 21,451.88 = 146.46
t=

1215.6 1376.4 160.8


=
= 2.45 1.734
65.50
1 1
146.46
+
10 10

7. H0 is rejected; the second type does appear to have greater true average bonding
strength.
b) Because t.025, 18 < 2.45 < t.01, 18 , .01 < P < .025.

Problem 4.
A firm purchases two types of industrial chemicals. Type I chemical costs a = 3 dollars
per gallon, whereas type II chemical costs b = 5 dollars per gallon. The mean and the
variance of the amount (in gallons) of type I chemical purchased X, are 40 and 4
respectively. The amount of type II chemical purchased, Y, has E(Y)=65 and V(Y)=8.
a) Assume that X and Y are independent, and find the mean and the variance of the total
amount of money T spent per week on the two chemicals.
b) Suppose now that the costs of type I and type II chemicals are random variables.
Denoting them by A and B, respectively, assume that E(A)=2, V(A)=0.1, E(B)=6,

V(B)=0.2, and that A, B, X and Y are independent of one another. What are the new
mean and variance of T?

Solution
a) T = aX + bY

E(T ) = E(aX + bY ) = E(aX )+ E(bY ) = aE( X ) + bE(Y ) = 3 40 + 5 65 = 445 , note that


we dont have to assume independence of X and Y in order to compute the expected
value of the linear combination. We will need the independence of X and Y to
calculate the variance of T.
Under the assumption of independence, we get
V (T ) = V (aX + bY ) = V (aX ) + V (bY ) = a 2 V ( X ) + b 2 V (Y ) = 9 4 + 25 8 = 236
b) Assuming the independence of A, B, X, and Y, we get

E(T ) = E(AX + BY ) = E(AX )+ E( BY ) = E( A)E( X ) + E( B)E(Y ) = 2 40 + 6 65 = 470


Computing the variance of T:

V (T ) = V (AX + BY ) = V (AX )+ V (BY )

( )
= E(A )E(X ) [E(A )] [E(X )]

V (AX ) = E A 2 X 2 [E(AX )]

][

= V (A )+ (E(A)) V (X )+ (E(X )) [E(A)] [E(X )]


2

)(

= .1 + 2 2 4 + 40 2 2 2 40 2
= 176.4
Similarly:

( )
= E(B )E(Y ) [E(B )] [E(Y )]

V (BY ) = E B 2Y 2 [E(BY )]

][

= V (B )+ (E(B )) V (Y ) + (E(Y )) [E(B )] [E(Y )]

)(

= .2 + 6 2 8 + 65 2 6 2 65 2
= 1134.6
So, we get

V (T ) = V (AX + BY ) = V (AX )+ V ( BY ) = 175.4 + 1134.6 = 1310 .

Das könnte Ihnen auch gefallen