Docsity

Statistical Methods - Practice Midterm Exam II Solutions | MATH 183, Exams of Data Analysis & Statistical Methods

Toggle sidebar
bg1
Math 183 Practice Midterm Exam II Solutions
1. (a) The expected value of a discrete random variable Xwith pdf pX(k)is given by
µX= E [X] = X
all k
k·pX(k).
The expected value of a continuous random variable Ywith pdf fY(y)is given by
µY= E [Y] = Z∞
−∞
y·fY(y)dy.
(b) The variance of any random variable Wis given by
σ2= Var(W)=E(W−E [W])2.
(c) The standard deviation of any random variable Wis given by
σ=pVar(W).
(d) The joint pdf of 2 discrete random variables Xand Yis the function pX,Y (x, y)given by
pX,Y (x, y) = P({s:X(s) = xand Y(s) = y}).
The joint pdf of 2 continuous random variables Xand Yis the function fX,Y (x, y)such that for any region Rin the
xy-plane
P((X, Y )∈R) = Z ZR
fX,Y (x, y)dxdy.
(e) The marginal pdfs of 2 discrete random variables Xand Ywith joint pdf pX,Y (x, y)are given by
pX(x) = X
all y
pX,Y (x, y)and pY(y) = X
all x
pX,Y (x, y).
The marginal pdfs for 2 continuous random variables Xand Ywith joint pdf fX,Y (x, y)are given by
fX(x) = Z∞
−∞
fX,Y (x, y)dy and fY(y) = Z∞
−∞
fX,Y (x, y)dx.
(f) Two random variables Xand Yare independent if
P(X∈Aand Y∈B) = P(X∈A)P(Y∈B).
(g) For any random sample Y1, . . . , Ynthe ith order statistic is the random variable Y0
iwhich is equal to the ith largest
value in the random sample. We write Y0
1=Ymin and Y0
n=Ymax.
(h) The likelihood function corresponding to the random sample y1, . . . , ynfrom the distribution fY(y;θ)with unknown
parameter θis given by
L(θ) =
n
Y
i=1
fY(yi;θ).
(i) The maximum likelihood estimate for the unknown parameter θis the value θesuch that
L(θ)< L(θe)
for all possible values of θ, i.e. θemaximizes the likelihood function.
pf3
pf4
pf5

Partial preview of the text

Download Statistical Methods - Practice Midterm Exam II Solutions | MATH 183 and more Exams Data Analysis & Statistical Methods in PDF only on Docsity!

Math 183 Practice Midterm Exam II Solutions

  1. (a) The expected value of a discrete random variable X with pdf pX (k) is given by

μX = E [X] =

all k

k · pX (k).

The expected value of a continuous random variable Y with pdf fY (y) is given by

μY = E [Y ] =

−∞

y · fY (y)dy.

(b) The variance of any random variable W is given by

σ^2 = Var (W ) = E

[

(W − E [W ])^2

]

(c) The standard deviation of any random variable W is given by

σ =

Var (W ).

(d) The joint pdf of 2 discrete random variables X and Y is the function pX,Y (x, y) given by pX,Y (x, y) = P ({s : X(s) = x and Y (s) = y}).

The joint pdf of 2 continuous random variables X and Y is the function fX,Y (x, y) such that for any region R in the xy-plane P ((X, Y ) ∈ R) =

R

fX,Y (x, y)dxdy.

(e) The marginal pdfs of 2 discrete random variables X and Y with joint pdf pX,Y (x, y) are given by

pX (x) =

all y

pX,Y (x, y) and pY (y) =

all x

pX,Y (x, y).

The marginal pdfs for 2 continuous random variables X and Y with joint pdf fX,Y (x, y) are given by

fX (x) =

−∞

fX,Y (x, y)dy and fY (y) =

−∞

fX,Y (x, y)dx.

(f) Two random variables X and Y are independent if

P (X ∈ A and Y ∈ B) = P (X ∈ A)P (Y ∈ B).

(g) For any random sample Y 1 ,... , Yn the ith^ order statistic is the random variable Y (^) i′ which is equal to the ith^ largest value in the random sample. We write Y 1 ′ = Ymin and Y (^) n′ = Ymax. (h) The likelihood function corresponding to the random sample y 1 ,... , yn from the distribution fY (y; θ) with unknown parameter θ is given by L(θ) =

∏^ n i=

fY (yi; θ).

(i) The maximum likelihood estimate for the unknown parameter θ is the value θe such that

L(θ) < L(θe) for all possible values of θ, i.e. θe maximizes the likelihood function.

(j) Let y 1 ,... , yn be a random sample from the pdf fY (y; θ 1 ,... , θj ). The method of moments estimates for the un- known parameters θ 1 ,... , θj are the solutions of the j simultaneous equations

E [Y ] =

−∞

yfY (y; θ 1 ,... , θj )dy = 1 n

∑^ n i=

yi

.. . E

[

Y j^

]

−∞

yj^ fY (y; θ 1 ,... , θj )dy =

n

∑^ n i=

yji

(k) Let k be the number of successes in n independent trials. An approximate 100(1 − α)% confidence interval for the binomial parameter p is given by ( k n − zα/ 2

(k/n)(1 − k/n) n

k n

  • zα/ 2

(k/n)(1 − k/n) n

where zα/ 2 is the value such that P (Z ≥ zα/ 2 ) = α/ 2. (l) An estimator θˆ is unbiased for an unknown parameter θ if E

[

θˆ

]

= θ for all possible values of θ.

  1. Complete the statement of the theorem:

(a) If X is a discrete random variable with pdf pX (k), then for any function g

E [g(X)] =

all k

g(k) · pX (k).

(b) If Y is a continuous random variable with pdf fY (y), then for any continuous function g

E [g(Y )] =

−∞

g(y)fY (y)dy.

(c) For any random variable W and constants a and b,

E [aW + b] = aE [W ] + b.

(d) For any random variable W with mean μ = E [W ],

E

[

W 2

]

− μ^2 = Var (W ).

(e) For any random variable W and constants a and b,

Var (aW + b) = a^2 Var (W ).

(f) Two random variables X and Y with joint pdf fX,Y (x, y) are independent if and only if there are functions g(x) and h(y) such that fX,Y (x, y) = g(x)h(y). In such case, there exists a constant k such that fX (x) = kg(x) and fY (y) = (1/k)h(y). (g) For two independent random variables X and Y , both discrete or both continuous, the pdf for their sum W = X + Y is given by, in the discrete case, pW (w) =

all x

pX (x)pY (w − x),

and in the continuous case, fW (w) =

−∞

fX (x)fY (w − x)dx.

(c) The cost for a random patient is given by the random variable Y = 5000X + 2000. Therefore, the expected cost is

E [Y ] = E [5000X + 2000] = 5000E [X] + 2000 = 5000 · 9 4

The variance of the cost is Var (Y ) = Var (5000X + 2000) = 5000^2 · 27 80

and so the standard deviation is σY =

(d) The expected expenditure for children is, as above, E [W ] = E [3500X + 2000] = 3500E [X] + 2000 = 9875. So the expected expenditure for a group of 10 adults and 5 children is E [Y 1 + · · · + Y 10 + W 1 + · · · + W 5 ] = E [Y 1 ] + · · · + E [Y 10 ] + E [W 1 ] + · · · + E [W 5 ] = 10E [Y ] + 5E [W ] = 10(13250) + 5(9785). For this calculation we do not need to assume anything. The variance for the expenditure of a child is

Var (W ) = Var (3500X + 2000) = 3500^2 80

So the variance for the group of patients in question is Var (Y 1 + · · · + Y 10 + W 1 + · · · + W 5 ) = Var (Y 1 ) + · · · + Var (Y 10 ) + Var (W 1 ) + · · · + Var (W 5 ) = 10Var (Y ) + 5Var (W ) = 10 · 50002 ·

For this calculation we need to assume that the Yi’s and Wi’s are independent.

  1. (a) The joint pdf:

Number of math courses: X 0 1 2 Number 0 0.22 0.12 0.08 0. of science 1 0.18 0.20 0.06 0. courses: Y 2 0.10 0 0.04 0. 0.5 0.32 0.18 1 The last column in the table gives the marginal pdf for Y , i.e. pY (0) = P (Y = 0) = 0. 42 , etc., and the last row gives the marginal pdf for X. (b) Note that the event {X + Y ≤ 2 } = {(x, y) : (0, 0), (0, 1), (0, 2), (1, 0), (1, 1), (2, 0)}. Therefore, the probability is P (X + Y ≤ 2) = pX,Y (0, 0) + pX,Y (0, 1) + pX,Y (0, 2) + pX,Y (1, 0) + pX,Y (1, 1) + pX,Y (2, 0) = 0 .22 + 0.12 + 0.08 + 0.18 + 0.20 + 0. 10 = 0. 9

(c) The random variables X and Y will be independent if and only if pX,Y (x, y) = pX (x) · pY (y) holds for all pairs of possible values (x, y) of X and Y. However, pX,Y (0, 0) = 0. 22 6 = 0. 5 · 0 .42 = pX (0) · pY (0), so X and Y are not independent.

(d) This question has to do with the random variable X only – we are looking for E [X]. So we use the marginal distribution of X,

E [X] = 0 · pX (0) + 1 · pX (1) + 2 · pX (2) = 0 · 0 .5 + 1 · 0 .32 + 2 · 0 .18 = 0. 68.

  1. Since the random variables X and Y are independent, their joint pdf is given by

fX,Y (x, y) = fX (x) · fY (y) = 1, for 0 ≤ x ≤ 1 , 0 ≤ y ≤ 1.

Therefore, P

Y

X

= P (Y > 2 X) =

0

∫ (^) y/ 2

0

1 dxdy =

0

y 2 dy = y^2 4

1

0

  1. Let X denote the number of typos in ten random pages of the book. Since the book has 40 typos in its 200 pages, the rate of typos per page is 40 /200 = 0. 2. Therefore, the rate of typos per ten pages is 10(0.2) = 2 and so X ∼ Poisson(2). The probability that the book passes inspection is

P (X ≤ 1) = pX (0) + pX (1) = e−^2

  • e−^2

= e−^2 (1 + 2) = 3e−^2.

  1. (a) Suppose one hundred cars are on the bridge and let X 1 ,... , X 100 be their weights. The random variables Xi each have a N (1500, 2002 ) distribution. If X = X 1 + · · · + X 100 is their sum, we seek P (X ≥ 155 , 000). Since weights of different cars are clearly independent, the sum X has also a normal distribution, with mean E [X] = E [X 1 ] + · · · + E [X 100 ] = 100 · 1500 = 150, 000

and variance Var (X) = Var (X 1 ) + · · · + Var (X 100 ) = 100 · 2002 = 10^2 · 2002 = 2000^2 ; so X ∼ N (150000, 20002 ). We can now compute

P (X ≤ 155 , 000) = P

X − 150 , 000

= P (Z ≥ 2 .5) = 1 − 0 .9938 = 0. 0062.

(b) Here we seek the number x 0. 0005 with the property that P (X ≥ x 0. 0005 ) = 0. 0005. From the normal table we can find the corresponding percentile of the standard normal distribution, i.e. the number z 0. 0005 with the property P (Z ≤ z 0. 0005 ) = 0. 0005 , where Z is a standard normal random variable. The number we find to be z 0. 0005 = 3. 03. Then transforming back from z to x (recall that z = (x − μ)/σ, so x = μ + zσ), we obtain the value we are asked to find: x 0. 0005 = 150, 000 + z 0. 0005 · 2000 = 156, 060.

  1. (a) Yes, since X ∼ Binomial(83, 0 .5). (b) Yes, by the Central Limit Theorem. (c) No, X is most accurately modeled by an exponential distribution. (d) Yes, by the Central Limit Theorem. (e) Yes, by the Central Limit Theorem. (f) Yes, since X ∼ Binomial(100, 1 /6).
  2. (a) Let Y 1 ,... , Yn be a random sample. The likelihood function is

L(θ) =

∏^ n

i=

θY (^) iθ −^1 = θn

( (^) n ∏

i=

Yi

)θ− 1

and applying the ln function ln L(θ) = n ln θ + (θ − 1)

∑^ n i=

ln Yi.