Академический Документы
Профессиональный Документы
Культура Документы
submitted
via Canvas in pdf format
2 Reading assignment
Class notes: Read the class notes up to and including Chapter 37 on
random vectors (Chapters 1 through 36 were previously assigned.).
Weiss textbook: Sections 7.1, 7.2, 7.3, 10.1, 10.2, 6.1, 6.2, 6.3, 6.4, 9.1,
9.2, 9.3 (Chapters 1 through 5, and Sections 8.1, 8.2, 8.3, 8.4, and 8.5 were
previously assigned.)
Schaum’s book (Hwei Hsu): Skip the “notes” (use our notes and Weiss’s
textbook). However, carefully work through exercises 2.27 – 2.36 (all),
2.44 – 2.50 (all), 2.57, 2.58. Do not turn these in, but make sure you
understand the details of the calculations and how to solve these exercises.
1
3 Written Assignment (to be turned in)
3.1 Exercise 1 (general random variables and cdfs) (10
points –5 points per part)
3.1.1 Background
Read Proposition 8.2 from Weiss’s book carefully. In class, we derived this
result. In this exercise, you will make use of it. Here is an example. Study it
carefully, and proceed similarly for the assigned problem below. You will have
to make some adjustments, since the cdf for the assigned problem is di¤erent.
Example 1 Solve Exercise 8.25a from the textbook. Also, solve Exercise 8.25e
from the textbook but only for the case a = 1; b = 2 (as in part a).
Solution: We calculate
Next, we’ll …nd these probabilities by using the pmf and the Fundamental
Probability Formula. The values a for which P (fW = ag) > 0 are 0; 1; 2; and 3;
2
and so P (fW 2 Ag) = 1; where A = f0; 1; 2; 3g : When using the Fundamental
Probability Formula for these exercises, we can intersect the interval B with the
set A; as follows:
3.1.2 Exercises
a. Solve Exercise 8.28a from the textbook.
3.1.3 Solutions
Solution to a) (8.28a): In principle, the values of P (fa C X J bg) ; where C
may be < or ; and J may be < or (and all 4 possibilities may occur), may
all be di¤erent. It will depend on the values of P (fX = ag) and P (fX = bg) :
For a continuous random variable, those would be zero, and so each of the
probabilities P (fa C X J bg) would be the same. However, for an arbitrary
random variable they may be di¤erent, depending on the values of P (fX = ag)
and P (fX = bg) :
Recall that the graph of F must jump up (and by exactly P (fX = xg)) at
any point x for which P (fX = xg) > 0: Since the graph of F is continuous at
x = 0:2 and at x = 0:8; it follows that
P (fX = 0:2g) = 0;
P (fX = 0:8g) = 0;
and therefore F (0:8) = F (0:8 ) and also F (0:2) = F (0:2 ) : It follows that
I.e., the four probabilities you were asked to evaluate are all equal to 0.8.
Therefore,
3
We now evaluate each of the four inequalities individually.
3.2.2 Solutions
Solution to a): Since FX (x) is simply P (fX xg) ; we should use a multi-
part function, splitting the x ranges at each point in the jump set, since those
are the positive-probability values, the values at which FX will be discontinuous
(and hence will change its value).
Proceeding as in the class notes, we …nd that
8
>
> 0; if x < 4;
>
>
>
> 1=16; if 4 x < 2;
<
5=16; if 2 x < 0;
F (x) = P (fX xg) = :
>
> 11=16; if 0 x < 2;
>
>
>
> 15=16; if 2 x < 4;
:
1; if x 4
Observe that this function jumps at each x value where P (fX = xg) > 0;
namely at x = 4; x = 2; x = 0; x = 2; and x = 4; and it is constant
in between the jump points. Notice also that the heights of the jumps are,
4
in order, 1=16; 4=16; 6=16; 4=16; and 1=16; which are precisely the values of
pX (x) = P (fX = xg) at x = 4; 2; 0; 2; and 4:
Thus, we can easily recover the pmf pX from the cdf if we wanted to do so.
pX (x) = FX (x) FX (x ) :
1.0
y
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
-7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7
x
5
3.3 Exercise 3) (25 points –5 points per part) (absolutely
continuous random variables)
3.3.1 The Exercises
Suppose Y is a random variable whose cdf is given by
8
>
> 0; if y < 0
< 1
5 y; if 0 y<3
FY (y) = 1 :
>
> (y + 3) ; if 3 y<7
: 10
1; if y 7
a) Prove that Y is an absolutely continuous random variable, and …nd a pdf for
Y; proceeding as in the class notes.
Suggestion: I am not requiring that you do this on this particular problem,
but I recommend that you quickly verify that the function you …nd as a pdf
is non-negative and integrates to 1; that’s a good way to catch most careless
errors.
b) Calculate P (f2 Y < 6g) by using the pdf you found in part a.
3.3.2 Solutions
Solution to a.: In each of the open intervals ( 1; 0) ; (0; 3) ; (3; 7) ; and (7; 1) ;
FY is given by a polynomial expression and so FY is continuous.
y = 0 : FY (0) = 0; and also
1
lim 0 = 0 = lim y ;
y!0 y!0+ 5
so FY is continuous at y = 0:
y = 3 : FY (3) = 6=10; and also
1 3 1
lim y = = lim (y + 3) ;
y!3 5 5 y!3+ 10
so FY is continuous at y = 3:
y = 7 : FY (7) = 1; and also
1
lim (y + 3) = 1 = lim+ 1;
y!7 10 y!7
so FY is continuous at y = 7:
6
We have shown that FY is continuous for all real y: Thus, FY is continuous,
and so Y is a continuous random variable.
Solution remark: We can save a lot of time in the future by simply making
use of the fact that polynomials are continuous everywhere, and so one-sided
limits of a polynomial can be found by simply substituting values. Since each
piece of FY is a polynomial, the one-sided limits of each piece exist and can be
found by substituting into the formula. Thus, to show that FY is continuous at
the endpoints, we need only give all of this reasoning (as I have done here) and
then check that the values of the pieces (the ones which meet at the endpoint)
are equal at the endpoint. Additionally, since each piece of FY0 is a polynomial,
each piece is continuous in its open interval, and also the one-sided limits of each
piece exist at the endpoints, and so FY0 is piecewise continuous. This reasoning
should not be used if the function pieces are not all polynomials. By contrast,
the method given in the solution above works in all cases.
7
Formula implies
Z
P (f2 Y < 6g) = fY (y) dy
[2;6)\ff >0g
Z 3 Z 6
1 1
= dy + dy
2 5 3 10
1
= :
2
Solution #1 to d.: From part b., we know that P (f2 Y < 6g) = 1=2: Since
FY is continuous, we have FY (y ) = FY (y+) = FY (y) for each real y; so
1 3
P (fY 2g) = 1 FY (2 ) = 1 FY (2) = 1 (2) = :
5 5
Then
P (fY < 6g \ fY 2g)
P (fY < 6g j fY 2g) =
P (fY 2g)
P (f2 Y < 6g)
=
P (fY 2g)
1=2 5
= = :
3=5 6
Solution #2 to d.: From part b., we know that P (f2 Y < 6g) = 1=2: Since
ff > 0g = (0; 3) [ (3; 7) ; the Fundamental Probability Formula implies
Z 3 Z 7
1 1 3
P (fY 2g) = dy + dy = :
2 5 3 10 5
8
Then
P (fY < 6g \ fY 2g)
P (fY < 6g j fY 2g) =
P (fY 2g)
P (f2 Y < 6g)
=
P (fY 2g)
1=2 5
= = :
3=5 6
9
and so by the Fundamental Probability Formula we have
Z 7=2
P (f1 X 7=2g) = f (x) dx
1
Z 2 Z 3 Z 7=2
= f (x) dx + f (x) dx + f (x) dx
1 2 3
Z 2 Z 3 Z 7=2
1
= 0dx + dx + (x 3) dx
1 2 4 3
= 3=8:
10
result; otherwise, it is not. Whether it is helpful or not to use a result is another
matter, but at least you may use it as long as its hypotheses are satis…ed.
This exercise shows how insidious errors of this kind (in which we sloppily
ignore hypotheses of theorems) can be. We often get answers anyway. They
just turn out to be wrong and meaningless and misleading. Hypotheses matter
in mathematics. We cannot simply look up theorems and use the formulas or
procedures in them without checking that the hypotheses are satis…ed. This is
not a matter of mathematicians being “picky.”This is an example of what goes
wrong. Check hypotheses of theorems always. It does not matter how “applied”
your work might be. If you are making use of mathematical theorems, you must
make sure that the hypotheses are satis…ed, or else you’re likely to run into
problems of the type demonstrated here (perhaps quite often), and you might
not catch the errors since the erroneous answers might seem credible.
FY (y) = FX (g (y))
11
let u = g (y) and proceed as follows:
0 d
FY (y) = FY (y)
dy
d
= FX (g (y))
dy
d
= FX (u)
dy
d du
= FX (u)
du dy
du
= fX (u)
dy
= fX (g (y)) g 0 (y) ;
assuming fX is continuous at u:
b) Let T be a triangle (the boundary and interior) in the plane, having base
length 4 and height 13: As it turns out, the shape of the triangle itself will not
matter (but its base length and height will).
A point ! is chosen at random from the interior of T:
We de…ne a function Y : ! R as follows: for each ! 2 ; we let Y (!)
denote the perpendicular distance from ! to the base of the triangle.
Find FY ; the cdf of Y:
12
Hint: First, the area of any triangle is half the length of its base multiplied by
its height. Now proceed as follows:
1) On a sheet of paper draw a triangle with base 4 and height 13:
2) Draw a “random” point inside the triangle. Call the point A:
3) Draw a dotted line segment connecting the point A to the base (extend
the base parallel to itself with dotted lines if necessary), making sure that the
dotted line segment is perpendicular to the base (this is crucial). Let y denote
the distance, along this line segment, from the point A to the base.
4) Draw a dotted line segment parallel to the base and passing through the
point A; and extend it so that it meets both sides (other than the base) of the
triangle.
5) The dotted line segment you drew in 4) divides the triangle T into two parts.
It is easy to show with elementary geometry that the part of T on or above
that line segment is similar (look up “similar triangles” if you wish to review
the topic) to the entire triangle T: The part of T on or above the dotted line
from 4) is fY > yg : By formulas concerning similar triangles (namely, that the
ratio of their areas is the square of the ratios of their heights), we have
2
Area (fY > yg) (height of fY > yg)
= :
Area (T ) height of T
The height of the top triangle fY > yg can be found easily in terms of h
and/or y using your picture.
The height of T can be found easily in terms of h and/or y:
Area (T ) can be found easily in terms of h and/or y:
You can now easily solve for Area (fY > yg) : Then use it to …nd P (fY > yg) :
You can then use that to …nd P (fY yg) ; which you can use to get the cdf of
Y: Remember to proceed with cases, as described in the background above.
d) Let X Exp (5) ; and let Y = max (X; 7) : I.e., if X (!) 7 then Y (!) = 7;
while if X (!) > 7 then Y (!) = X (!) : Find the cdf of Y: Is Y absolutely
continuous? If so, explain why, and …nd a pdf of Y: If not, explain why not.
Hint: Let FX and FY denote the cdfs for X and for Y; respectively. Finding
FX is easy, since there is a right tail probability formula for exponential random
variables. The strategy is to …nd FY in terms of FX : For any real number y;
consider the event fY yg : There are two cases: y 7 and y < 7:
Case 1: y < 7: In this case, Y y if and only if both X and 7 are less than
or equal to y: However, 7 cannot be less than or equal to y in Case 1, so Y y
cannot occur. I.e., fY yg = ;; and so FY (y) = P (fY yg) = 0:
Case 2: y 7: In this case, Y y if and only if both X and 7 are less than
or equal to y; which (since we’re in Case 2) is true if and only if X y: I.e.,
13
fY yg = fX yg ; and so FY (y) = P (fY yg) = P (fX yg) = FX (y) ;
which can be found once we …nd the cdf of X:
3.5.3 Solutions
Solution to a): Since we are selecting at random from a set having …nite,
positive volume, we will use a geometric probability space ( ; F; P ) with
equal to the ball, so that
Volume (E)
P (E) =
Volume ( )
Next, we consider F (a) for 0 < a 10: For such a; fX ag is the set of all
points within a distance a of the outer spherical boundary, and hence it is the
set of points whose distance from the center of the sphere is between 10 a and
10; it is a spherical shell, the region outside the solid ball having radius 10 a
and inside the solid ball having radius 10 and the same center. Therefore, for
14
each a such that 0 < a 10; we have
a 3
F (10 ) = lim F (a) = lim 1 1 = 1;
a!10 a!10 10
F (10) = 1;
F (10+) = lim F (a) = lim + 1 = 1:
a!10+ a!10
15
We now look at F 0 : In the open intervals ( 1; 0) ; (0; 10) ; and (10; 1) ;
3 2
we have F 0 = 0; F 0 = 1000 (a 10) ; and F 0 = 0; respectively. These are
polynomials, so they are continuous (so F 0 is continuous in these open intervals)
and their one-sided limits exist everywhere, in particular at the boundary points
0 and 10: Thus, F 0 is piecewise continuous.
It follows that X is absolutely continuous, and that the function f de…ned
to equal F 0 in the open intervals above, and de…ned to equal 0 elsewhere, is a
pdf. Putting all of the pieces together, we get
3 2
(a 10) ; if a 2 (0; 10)
f (a) = 1000 :
0; if a 2
= (0; 10)
Solution to b): Since we are selecting at random from a set having …nite,
positive area, we will use a geometric probability space ( ; F; P ) with equal
to the interior of the triangle, so that
Area (E)
P (E) =
Area ( )
Area (T )
FY (y) = P (fY yg) = P (T ) = = 1:
Area (T )
16
Summarizing, we have
8
< 0; if y<0
FY (y) = y 2
1 1 ; if 0 y < 13 :
: 13
1; if 13 y
Solution to c): Next, we will show that F is continuous and that F 0 is piecewise
continuous, and then we will …nd a pdf for Y:
Each piece of F is a polynomial. Since polynomials are continuous every-
where, F is continuous on each of the intervals ( 1; 0) ; (0; 13) ; and (13; 1) :
It remains to check the continuity of F at the boundary points, 0 and 13:
Since each piece is a polynomial, one-sided limits can be found by direct
substitution into the appropriate function piece, and so
y 2
F (13 ) = lim F (y) = lim 1 1 = 1;
y!13 y!13 13
F (13) = 1;
F (13+) = lim F (y) = lim + 1 = 1:
y!13+ y!13
Solution to d): The hint gave away most of the calculation of FY ; namely
that FY (y) = 0 when y < 7; and that FY (y) = P (fX yg) when y 7 (see
hint above).
17
In Case 2, we have y 7; and so in particular we have y > 0: Since
X Exp (5) ; the tail probability formula gives P (fX > yg) = e 5y ; and so
P (fX yg) = 1 e 5y ; so that
0; if y < 7
FY (y) = 5y :
1 e ; if y 7
This function is discontinuous at y = 7; since 0 6= 1 e 5(7) ; so Y is not a
continuous random variable. It therefore cannot be absolutely continuous.
In summary,
8
< Z 0; if y 0
ln y
FY (y) = :
: fX (x) dx; if y > 0
1
The two function pieces match since limy!0+ ln y = 1; so that the integral
in the second piece converges to 0: The …rst piece is a polynomial, so it is
continuous. The second piece is di¤erentiable (as we will show by calculating
its derivative), hence continuous. Thus, FY is continuous.
On the open interval ( 1; 0) ; we have FY0 = 0: On the open interval (0; 1) ;
we can proceed as follows. Let z = ln y: Then
Z ln y !
0 d
FY (y) = fX (x) dx
dy 1
Z z
d fX (x) dx
1
= (rewriting)
dy
Z z
d fX (x) dx
1 dz
= (Chain Rule)
dz dy
1
= fX (z) (Fundamental Theorem of Calculus, fX is continuous)
y
1 z 2
= p e (1=2)( ) (substituting for f (z) )
X
2 y
1 ln y 2
= p e (1=2)( ) : (substituting for z)
2 y
18
This is continuous as well, since it is a composition of the exponential func-
tion, a quadratic, and the logarithm, all of which are continuous, divided by a
polynomial, which is also continuous (and quotients of continuous functions are
continuous).
and
1 (1=2)( ln y
2
)
= lim p e
y!0+ 2 y
= 0:
19
derivative. Let z = 4y + 3: Then
Z 4y+3
d
FY0 (y) = fX (x) dx
dy 1
Z 4y+3
d fX (x) dx
1
= (rewriting)
dy
Z z
d fX (x) dx
1
= (letting z = 4y + 3)
dy
Z z
d fX (x) dx
1 dz
= (Chain Rule)
dz dy
= fX (z) 4 (Fundamental Theorem of Calculus, fX is continuous)
4 z 3 2
= p e (1=2)( 4 )
2 (4)
1 2
= p e (1=2)y :
2
This is continuous for all y: Thus, FY is continuous, and FY0 is piecewise
continuous (it is actually even continuous), so Y is absolutely continuous. In
this case, there are no points of discontinuity of FY0 ; and so we have fY = FY0
everywhere.
Thus, the following is a pdf for Y :
1 (1=2)y 2
fY (y) = p e for all real y:
2
2
We see that fY is a pdf of a N (0; 1) random variable, and so Y N 0; 12 :
1 (1=2)[(x )= ]2
f (x) = p e ;
2
20
where is a real number (called the mean or expected value of X) and is a
positive real number (called the standard deviation of X). These assumptions
about and are always to be made when we write X N ; 2 :
The quantity 2 ; the square of the standard deviation, is called the variance
of X:
With a fair amount of work (see the class notes; it is an exercise in integra-
tion), it can be shown that f is a legitimate pdf for each and as above.
The graph of f is bell-shaped and is called a “bell curve.” Its center (where
the highest point of the curve is located) is at x = ; and the graph is left-right
symmetric about the vertical line x = : Varying a¤ects how much of the
area will be located near the mean, : smaller values of correspond to taller,
narrower graphs with most of the area close to the line x = :
Your calculator has built-in features for approximate evaluation of integrals
of normal pdfs. Start a new document, select Add Calculator, and then press
MENU-5-5-2 to select the normal cdf option. Then enter the left endpoint, the
right endpoint, ; and in the designated …elds, and press ENTER. You will
get the probability that the normal random variable you speci…ed (with and
as you entered them) takes a value between the two endpoints you selected.
For practice, try setting 5 as the left endpoint, 11 as the right endpoint, = 8;
and = 3: You should get about 0:6827:
Be sure you know how to use that feature and that you also can evaluate
integrals of normal pdfs by entering the pdf directly. I recommend you try both
methods for each of these problems to check your work.
Suppose X B (n; p) ; where n is a positive integer and p 2 (0; 1) :
Suppose that B is a union of intervals and/or integers, and suppose we wish
to estimate
P (fX 2 Bg) :
When p is su¢ ciently close to 0 or to 1; we can use a Poisson approximation
(switching the roles of success and failure if p is close enough to 1), but what
about when p is not close to either?
It turns out that when p is far enough away from both 0 and 1 we may use
a normal approximation to the binomial! Our speci…c criteria in practice are
np 5 and n (1 p) 5 simultaneously.
21
We will approximate P (fX = 10g) by P (f9:5 < Y < 10:5g) :
We will approximate P (f10 X 11g) by P (f9:5 < Y < 11:5g) :
We will approximate P (f10 X < 20g) ; which equals P (f10 X 19g) ;
by P (f9:5 < Y < 19:5g) :
We will approximate P (f5 X 7g [ f12 X 15g) by P (f4:5 < Y < 7:5g)+
P (f11:5 < Y < 15:5g) :
3.6.2 Exercises
a. On the same graph, draw the pdfs for N 2; 122 ; N 2; 62 ; and N 2; 42
random variables. You may use your calculator to sketch them, but copy them
over onto a single graph and label the x and y axes. Be sure to identify which
is which in some clear way. The reason I want you to draw them on the same
graph is that I want you to see clearly the e¤ect of keeping the mean the same
but varying : Make sure that your graphs make this clear.
b. Normal random variables are so frequently used that there is a “rule” for
estimating certain probabilities involving normal random variables. The Em-
pirical Rule says that the probability
P (f k <X< + k g)
that a normal random variable X takes a value within k standard deviations
of its mean is approximately (rounded to 4 decimal places) 0:6827; 0:9545; and
0:9973 when k = 1; 2; and 3; respectively. This is true regardless of the value
of the mean and standard deviation of X: Of course, since normal random
variables are continuous (they have pdfs, so they are absolutely continuous,
hence in particular continuous), we have
P (f k X + k g) = P (f k <X< + k g)
as well.
For example, a N 0; 12 random variable is called a standard normal
random variable. It is easy to see with a calculator that the probability X
takes a value within 3 standard deviations of its mean (i.e., between 0 3 1 = 3
and 0 + 3 1 = 3) is
Z 3
1 2
p e (1=2)x dx = 0:99730020 : : :
3 2
Rounding to four decimal places, …nd the values of P (f 10 < X < 14g) for
N 2; 122 ; N 2; 62 ; and N 2; 42 random variables.
22
Show that the events
R = fa < X < bg
and
a b
S= <Z<
b
fX < bg = Z< :
Proceed the same way but with double inequalities at each step.
d. Solve Exercise 8.104a from the textbook as follows. Let X be the measured
BAC with units of percents. We are told that X is a normal random variable
with = 0:11 and = 0:005: Find a pdf of X; and use it and the Fundamental
Probability Formula to calculate the required probability. Remember that X is
in terms of percents, so do not divide any percents by 100.
3.6.3 Solutions
Solution to a): Here are graphs of pdfs of N 2; 122 (shortest pdf), N 2; 62
(middle pdf), and N 2; 42 (tallest pdf) random variables.
23
y 0.14
0.12
0.10
0.08
0.06
0.04
0.02
Solution #2 to b):
If X N 2; 122 ; then the Fundamental Probability Formula implies that
Z 14
1 (1=2)((x 2)=12)2
P (f 10 < X < 14g) = p e dx 0:6827:
2 12 10
24
Solution #1 to c): We wish to show that
R = f! 2 : a < X (!) < bg
is equal to
a b
S= !2 : < Z (!) < :
! satis…es
a < X (!) < b
(i.e., ! 2 R) if and only if it satis…es
a < X (!) <b ;
which is true if and only if it satis…es
a X (!) b
< < ;
Solution to d): Between what it says in the book and what it says in the prob-
2
lem description on the assignment, we are given that X N 0:11; (0:005)
and we wish to …nd P (f0 X < 0:10g) : By the Fundamental Probability For-
mula,
Z 0:10
1 (1=2)((x 0:11)=0:005)2
P (f0 X < 0:10g) = p e dx
2 (0:005) 0
= 0:022750 : : :
Remark 3 X cannot be negative, so we do not want P (f 1 < X < 0:10g) :
However, because normal pdfs have very little area once you move several stan-
dard deviations away from the mean, and since in this case 0 is already many
standard deviations away from the mean, this calculation also gives the same
answer to several decimal places and would be acceptable. Be careful, however.
This is true only because 0 is many standard deviations away from the mean,
forcing the tail area under the normal to be extremely small.
25
2
Solution to e): Here, we have X N 0:095; (0:005) and we wish to …nd
P (f0:10 X 100g) : By the Fundamental Probability Formula,
Z 100
1 (1=2)((x 0:095)=0:005)2
P (f0:10 X 100g) = p e dx
2 (0:005) 0:10
= 0:158655 : : :
X12
42 x 42 x
P (f9 X 12g) = (0:16) (1 0:16) 0:208743:
x=9
x
np = 6:72;
n (1 p) = 35:28;
both of which are above 5: We may thus proceed with a normal approximation.
Let Y N ; 2 ; where
= np = 6:72
and
2
p 2
= np (1 p) = 5:6448 = 5:6448 :
26
3.7 Exercise 7) (65 points –5 points per part) (expected
value and variance)
3.7.1 Background
If we know the random variable type and the parameters of a random variable X;
we can in many cases look up its expected value and variance. Weiss’s textbook
has several tables with this information:
E (X) V AR (X)
X is discrete Table 7.4, p. 332 Table 7.10, p. 358
X is absolutely continuous Table 10.1, p. 568 Table 10.2, p. 588
V AR (aX + b) = a2 V AR (X) ;
ST DDEV (aX + b) = jaj ST DDEV (X) ;
27
is simply 22 V AR (X) = 9:6; according to the a¢ ne transformation formulas
above. Many of the problems below can be solved quickly in this fashion. In
other cases, you will have to work harder.
In each case, use exact distributions –do not approximate X with any other
type of random variable, even if such an approximation would be reasonable to
make.
Also, saying “X has a binomial distribution” is the same as saying “X is a
binomial random variable.”
Some of the random variable types might be types we have not yet worked
with. They are all in the book, as is the relevant information about their
expected values and variances.
All …nal answers for E (X) and V AR (X) must be numerical and cannot
have any unknown parameters in them. Enough information is given to allow
you to solve for all of the parameters exactly.
The formulas for E (X) and V AR (X) can help us determine the parameters
for X: For instance, if we are told X has a binomial distribution with n = 20; and
if we are further told that X has an average value of 8; then since E (X) = np
we can substitute E (X) = 8 and n = 20 to …nd that p = 0:4; and we can use
that information to …nd V AR (X) :
3.7.3 Exercises
a. An experiment consists of rolling a 10-sided die, with sides numbered 0, 1,
2, 3, 4, 5, 6, 7, 8, and 9. We will roll the die 4 times. Let X denote the number
of rolls which are 6 or less. Find E (X) and V AR (X) :
c. Suppose the number of cars getting onto the Key Bridge from Virginia
between 3 p.m. and 3:30 p.m. on a Monday, Tuesday, Wednesday, or Thursday
in November has a Poisson distribution with an average of 14 cars per minute.
Let X be the number of cars getting onto the Key Bridge on a given Wednesday
28
in November, between 3:07 p.m. and 0 seconds and 3:08 p.m. and 0 seconds.
Find E (X) and V AR (X) :
f.: Suppose X has a chi-square distribution and that V AR (X) = 10: What is
E (X)?
29
k. Let X be a discrete random variable that takes the values 7; 3; 1; and 4
with probabilities 3=18; 2=18; 5=18; and 8=18; respectively. Find V AR (4X + 1) :
3.7.4 Solutions
GRADING NOTE: In the solutions below, I will provide more details than
are required because I explicitly stated that certain justi…cations which are
necessary by default are not necessary for this particular exercise.
A minimal answer acceptable for full credit for part a) is as follows:
“X B (4; 0:7) ; so
E (X) = 4 0:7 = 2:8;
V AR (X) = 4 0:7 0:3 = 0:84:”
Similar considerations apply to the other parts.
Half the credit should be for the identi…cation of the correct random variable
type (with no partial credit) and the other half should be divided up evenly
between the expected value and the variance. Random variable approximations
are not allowed; only exact distributions may be used for this exercise.
Solution to a): We can consider the rolls to constitute Bernoulli trials in which
a success is a roll of a number from 0 through 6 (7 of the 10 total possibilities).
Thus, X B (4; 0:7) ; and so
E (X) = np = 4 0:7 = 2:8;
V AR (X) = np (1 p) = 4 0:7 0:3 = 0:84:
Solution to b): The population of Americans in 2012 was divided into two
groups: those who experienced signi…cant …nancial loss (the “successes”) and
those who did not (the “failures”). X is the number of successes in a sample of
size n = 10 from a population of size N = 315000000; where the proportion of
successes in the population at the time was 0:178:
Thus, X H (315000000; 10; 0:178) ; and so
E (X) = np = 10 0:178 = 1:78;
N n
V AR (X) = np (1 p)
N 1
315000000 10
= 10 0:178 (1 0:178)
315000000 1
1:463160:
30
GRADING NOTE: If you stated that X B (315000000; 0:178) ; then you
lost points as the true distribution is hypergeometric, not binomial, and the in-
structions above state that “Use exact distributions –do not approximate
X with any other type of random variable, even if such an approxima-
tion would be reasonable to make.” Numerically, your answers would be
nearly the same since N is much larger than n and so a binomial approximation
to the hypergeometric would be reasonable if I had not explicitly indicated not
to use any approximations for this exercise. I was testing whether you could
identify the exact distribution.
E (X) = = 14;
V AR (X) = = 14:
Solution to e): Regarding the blood tests as Bernoulli trials in which a success
occurs if the tested individual has the desired variety of antibody, we have
X N B (30; 0:02) ; and so
1 30
E (X) = r = = 1500;
p 0:02
1 p
V AR (X) = r = 73500:
p2
2
Solution to f ): Table 10.2 of our book (p. 588) indicates that if X (v) ;
then V AR (X) = 2v: Evidently, then, since V AR (X) = 10; we have v = 5; and
2
so X (5) : Table 10.1 of our book (p. 568) then gives E (X) = v = 5:
Solution to g): We are given that X Exp ( ) : Table 10.1 of our book (p.
568) then gives E (X) = 1= : Since E (X) = 4; we have = 1=4: Table 10.2 of
our book (p. 588) then gives
1
V AR (X) = 2 = 16:
31
Solution to h): We have X ( ; ) : Tables 10.1 and 10.2 give
E (X) =
and
V AR (X) = 2:
= 2;
1
2 = :
2
The …rst equation gives = 2 ; which turns the second equation (after
substituting = 2 ) into 2= = 1=2; and so = 4: Then = 2 = 8: We must
have = 8 and = 4:
Solution to i):
Solution to j): We will …nd V AR (X) and then complete the calculation using
the fact that V AR (4X + 1) = 42 V AR (X) :
V AR (X) is de…ned as long as X has a second moment, so we estimate
Z 1
E X2 = x2 fX (x) dx
1
Z 1
= x2 5e 5x dx
0
2
= (calculator or integration by parts).
25
Thus, X 2 has …nite expectation (X has a second moment).
Since X 2 = X 2 ; we have shown that E X 2 = 2=25:
Since X has a second moment, it has a …rst moment as well, which is
Z 1 Z 1
1
E (X) = x fX (x) dx = x 5e 5x dx = :
1 0 5
The shortcut formula for variance gives
2
V AR (X) = E X2 E (X)
2
2 1
=
25 5
1
= :
25
32
Finally,
16
V AR (4X + 1) = 42 V AR (X) = = 0:64:
25
V AR (X)
2
= E (X X)
!
2
5
= E X
9
X 5
2
= x pX (x)
9
x2A
2 2 2 2
5 3 5 2 5 5 5 8
= 7 + 3 + 1 + 4
9 18 9 18 9 18 9 18
1316
= :
81
Finally,
1316 21 056
V AR (4X + 1) = 42 V AR (X) = 16 = = 259: 950 : : :
81 81
Solution to l): The pdf of X is 0 outside of the bounded set [1; 22] ; and so
X has moments and central moments of all orders. The total length of A =
(1; 4) [ (10; 22) is 15; so the pdf is 1=15 in this set and 0 elsewhere. Proceeding
33
exactly as in the hint, we calculate
Z Z 4 Z 22
1 1 133
E (X) = xf (x) dx = x dx + x dx = ;
A 1 15 10 15 10
Z Z 4 Z 22
2 2 2 1 1 1079
E X = x f (x) dx = x dx + x2 dx = ;
A 1 15 10 15 5
2
2 1079 133 3891
V AR (X) = E X 2 E (X) = = ;
5 10 100
3891 35 019
V AR (3X 9) = 32 V AR (X) = 9 = :
100 100
Solution to m): The interval ( 7; 3) has length 10; so fX (x) = 1=10 inside
the interval and zero elsewhere. The pdf of X is 0 outside of the bounded set
[ 7; 3] ; and so X has moments and central moments of all orders. In particular,
2
jXj has a second moment since jXj = X 2 ; which has …nite expectation. We
calculate
Z 3 Z 0 Z 3
1 1 1 29
E (jXj) = jxj dx = ( x) dx + xdx = ;
7 10 7 10 0 10 10
Z 3 Z 3
2 1 2 1 2 37
E jXj = jxj dx = x dx = ;
7 10 7 10 3
2
2 2 37 29 1177
V AR (jXj) = E jXj E (jXj) = = :
3 10 300
Remark 5 An alternative (but much slower) way to proceed (after showing that
jXj has a second moment, as above) is to …nd a pdf for Y = jXj in the usual
manner. This is somewhat time-consuming. After completing all of that work
(those steps cannot be omitted; I highly recommend you try them for practice –
…nd FY ; show FY is continuous, show FY0 is piecewise continuous, deduce that
Y is absolutely continuous, and …nally …nd fY ), you will …nd that a pdf for Y
is the function fY for which fY (y) = 1=5 for y 2 [0; 3] ; and fY (y) = 1=10 for
y 2 [3; 7] : Consequently,
Z 1 Z 3 Z 7
1 1 29
E (Y ) = y fY (y) dy = y dy + y dy = ;
1 0 5 3 10 10
Z 1 Z 3 Z 7
1 1 37
E Y2 = y 2 fY (y) dy = y2 dy + y2 dy = ;
1 0 5 3 10 3
2
2 37 29 1177
V AR (Y ) = E Y2 E (Y ) = = ;
3 10 300
as before. These calculations are not appreciably simper than those in the solu-
tion given above, and they require us to …rst carry out a long derivation of the
pdf of jXj ; which is not necessary in the solution given above. This is typically
the case, which is why the approach used in the solution is usually the far better
approach.
34