









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










We may specify the probability distribution f (x) = P (X = x) of a discrete random variable X as the list of its possible values xi and their associated probilities f (xi). This list can be used to find the probability of specific values of X:
Example
Household size in the U.S. has the following distribution:
x f (x)
The probability that a household has 3 people is P (X = 3) = f (3) = .171.
Often, we are interested in the probability that a random variable takes a value over an interval. We define the cumulative distribution function F (x) as P (X ≤ x). On the probability density histogram, whereas f (x) = P (X = x) is represented by the area of the single histogram bar over x, F (x) = P (X ≤ x) is represented by the total area of all the bars to the left of (and including) the bar over x.
Example
Specify the cumulative distribution function F (x) for household size in the U.S. Sketch a prob- ability histogram for f (x), and solve for the given probabilities, first using f (x), then using F (x).
The probability histogram has a bar of height .251 over x = 1, a bar of height .321 over x = 2, etc. Next, to solve for F of any x, we sum the values of f (x) up to and including the given x:
x F (x)
7 1.
Now we solve for probabilities, using f and then F :
In Chapter 2, we introduced the concept of a density curve as an idealization of a density histogram. Now, a probability density curve for a continuous random variable is a smoothed-out version of a probability histogram. Discrete random variables, such as household size, have distinct possible values xi that can be specified in a list, along with their probabilities f (xi) = P (X = xi). They can be displayed with a probability histogram. Continuous random variables, such as height, have infinitely many possible values over an entire interval. The distribution of a continuous random variable is given by its probability density function f (x), a smooth curve with the following properties:
Notice how these parallel the properties of the probability distribution function f (x) for discrete random variables, as stated at the end of Section 6.3. In many respects, continous random variables are analogous to discrete ones. One important difference, however, is that, because a continuous random variable has an infinite number of point values, the probability of any particular one of them occurring is actually zero! Thus, it only makes sense to talk about the probability of a continuous random variable taking a value over an interval. For discrete random variables, we had to be careful about whether there was strict inequality or not when solving for probabilities over intervals. [For X = household size, we found P (X ≤ 3) = .743, whereas P (X < 3) = .572.] For continuous random variables, we can afford to be careless about strict inequalities, since
P (a ≤ X ≤ b) = P (a < X ≤ b) = P (a ≤ X < b) = P (a < X < b)
for a continuous random variable X. The area under the curve between a and b remains the same, whether or not the endpoints are included.
(c) P (X ≤ 3) (d) P (X < 3) (e) P (X > 3) (f) P (X ≥ 3)
all x f^ (x) = 1.
Here are the solutions:
x f (x) (^1 ) (^2 ) (^3 ) (^4 ) (^5 ) (^6 )
We see that f (x) = 16 for all integers x between 1 and 6. [f (x) is zero otherwise.] Its probability histogram is uniform: 6 bars of height 16 over the 6 values 1, 2, 3, 4, 5, 6.
all x f^ (x) =^
1 6 +^
1 6 +^
1 6 +^
1 6 +^
1 6 +^
1 6 = 1.
We see that F (x) = x 6 for all integers x between 1 and 6. [F (x) is zero for any x < 1, F (x) is one for any x ≥ 6.] F (x) is represented by the area of the histogram bars to the left of (and including) x. (a) P (3 ≤ X ≤ 5) = P (X ≤ 5) − P (X ≤ 2) = F (5) − F (2) = 56 − 26 = (^36)
(b) P (X = 3) = P (X ≤ 3) − P (X ≤ 2) = F (3) − F (2) = 36 − 26 = 16 [Note: this problem was much easier to solve using f !] (c) P (X ≤ 3) = F (3) = 36 [This, on the other hand, is easier to solve using F .] (d) P (X < 3) = P (X ≤ 2) = F (2) = (^26) (e) P (X > 3) = 1 − P (X ≤ 3) = 1 − F (3) = 1 − 36 = (^36) (f) P (X ≥ 3) = 1 − P (X ≤ 2) = 1 − F (2) = 1 − 26 = (^46)
all x xf^ (x) = 1^
6
6
6
6
6
6
all x x
(^2) f (x) − μ 2
Thus, the number rolled on a die is about 3.5, give or take about 1.7.
Note: The cumulative distribution function F may at this point seem to be more trouble than it’s worth. This may be true in the discrete case, but in the continuous case F is found by integrating, rather than by summing. Once we have an expression for F , we are spared the work of integrating the density f every time we want to solve for a probability. The following formulas summarize our results for discrete random variables from Chapter 6.
∑b x=a f^ (x).
all x f^ (x) = 1.
all x ≤ a f^ (x). F (x) = 0 for x less than the lowest possible value of X and F (x) = 1 for x greater than the highest possible value.
all x xf^ (x).
all x(x^ −^ μ)
(^2) f (x) = (∑ all x x
(^2) f (x))^ − μ 2
V ar(X)
Note the similarities to the following:
∫ (^) b x=a f^ (x)dx.
−∞ f^ (x)dx^ = 1.
∫ (^) a −∞ f^ (x)dx for any specified value a; in general, F (x) =
∫ (^) x −∞ f^ (t)dt^ for any^ x. F (x) = 0 for x less than the lowest possible value of X and F (x) = 1 for x greater than or equal to the highest possible value.
(e) P (X > 3) =
3
1 5 dx^ =^
x 5
5 5 −^
3 5 =^
2 5
−∞ f^ (x)dx^ =^
0
1 5 dx^ =^
x 5
5 5 −^
0 5 = 1.
∫ (^) x
−∞
f (t)dt =
∫ (^) x
0
dt =
t 5
x
0
x 5
x 5
F (x) is zero for any x less than 0, and one for any x greater than or equal to 5. (a) P (3 ≤ X ≤ 4) = P (X ≤ 4) − P (X ≤ 3) = F (4) − F (3) = 45 − 35 = (^15) (b) P (X = 3) = 0 (c) P (X ≤ 3) = F (3) = (^35) (d) P (X < 3) = P (X ≤ 3) = F (3) = (^35) (e) P (X > 3) = 1 − P (X ≤ 3) = 1 − F (3) = 1 − 35 = 25.
−∞ xf^ (x)dx^ =^
0 x(^
1 5 )dx^ =^
1 10 x
25 10 −^ 0 = 2.5. Because a uniform distribution is symmetric, 2.5 is also the median, or equal-area point.
−∞
x^2 f (x)dx
− μ^2
0
x^2 5
dx − 2. 52 =
x^3
5
0
V ar(X) =
2 .08 = 1. 44. This is the “typical” distance of values of X from their mean 2.5.
In the discrete case, f (x) is the height of the probability histogram bars and F (x) gives probabilities by summing up areas of the bars. In the continuous case, f (x) is the height of the probability density curve and F (x) gives probabilities as areas under the curve—it is the integral of f. Conversely, f is the derivative of F!
Example
Show how f and F from our previous example are related. For x between 0 and 5,
If f (x) =
then F (x) =
∫ (^) x
−∞
f (t)dt =
∫ (^) x
0
dt =
t 5
x
0
x
If F (x) =
x then f (x) =
d dx
F (x) =
d dx
x =
Before doing the exercises below, students should do 7.2 and 7.4 on page 333 of the textbook.
(a) Solve for the following probabilities, using the probability distribution f : i. P (X < 2) ii. P (X ≤ 2) iii. P (X > 1) iv. P (0 < X ≤ 2) (b) Make a table with values of the cumulative distribution function F (x).
(c) Re-solve the probabilities in part (a), now using F.
(a) Solve for the following probabilities, using the probability distribution f : i. P (X < 4) ii. P (X ≤ 4) iii. P (X > 4) iv. P (2 < X ≤ 4) (b) Make a table with values of the cumulative distribution function F (x). (c) Re-solve the probabilities in part (a), now using F.
(a) Would the shape of f be left-skewed, fairly symmetric, or right-skewed? (b) Which is larger, mean age at death or median age at death (or should they be roughly the same)?
(a) Would the shape of f be left-skewed, fairly symmetric, or right-skewed? (b) Which is larger, mean score or median score (or should they be roughly the same)?
(a) Would the shape of f be left-skewed, fairly symmetric, or right-skewed? (b) Which is larger, mean age at death or median age at death (or should they be roughly the same)?
(a) Would the shape of f be left-skewed, fairly symmetric, or right-skewed? (b) Which is larger, mean earnings or median earnings (or should they be roughly the same)?
(a) Would the shape of f be left-skewed, fairly symmetric, or right-skewed? (b) Which is larger, mean trunk length or median trunk length (or should they be roughly the same)? (c) What is the probability that a trunk will be exactly 4.41 feet long?
(a) Would the shape of f be left-skewed, fairly symmetric, or right-skewed? (b) Which is larger, mean circumference or median circumference (or should they be roughly the same)? (c) What is the probability that a tree will measure precisely 30.027 feet in circumference?
10
1 10 dx^ =^
1 10 x
12 10 −^
10 10 =^
2 10 =^.^2. (c)
−∞ f^ (x)dx^ =^
−∞ 0 dx^ +^
5
1 10 dx^ +^
15 0 dx^ = 0 +^
1 10 x
1 10 (15^ −^ 5) = 1 (d) F (x) =
∫ (^) x −∞ f^ (t)dt^ =^
∫ (^) x 5
1 10 dt^ =^
1 10 t
∣x 5 =^
1 10 x^ −^
5 10 =^
1 10 x^ −^
1 2 for^ x^ between 5 and 15.^ F^ (x) = 0 for x < 5 and F (x) = 1 for x ≥ 15. (e) μ =
−∞ xf^ (x)dx^ =^
5
1 10 xdx^ =^
1 20 x
225 20 −^
25 20 =^
200 20 = 10. Since f is symmetric, the median must also be 10. (f)
V ar(X) =
−∞
x^2 f (x)dx
− μ^2
5
x^2 dx
x^3
15
5
(g) σ =
25 3 =^ √^5 3 = 2.^89
Recall: To solve for probabilities involving a continuous random variable X, we may either integrate its probability density curve f (x) over the appropriate interval:
P (a ≤ X ≤ b) =
∫ (^) b
a
f (x)dx
or work with the cumulative distribution function F (x), which is the integral of f :
F (x) =
∫ (^) x
−∞
f (t)dt so P (a ≤ X ≤ b) = F (b) − F (a)
It follows that f is the derivative of F :
f (x) =
d dx
F (x)
To find the mean, variance, and standard deviation of X, we also need to perform integration. Last time we presented Formulas for Continuous Random Variables, which we will utilize when solving for probabilities, means, and standard deviations. Before working through more examples, we should review some basics for derivatives and integrals of some common elementary functions: d dx
kxn^ = nkxn−^1 ∫ kxndx =
k n + 1
xn+1^ + C
The latter holds for n 6 = −1. You may recall that
x−^1 dx = ln x; however, this result will not be required in our examples.
Example
If F (x) = 3x^2 − 2 x^3 for 0 ≤ x ≤ 1, find f (x). f (x) = (^) dxd [3x^2 − 2 x^3 ] = 6x − 6 x^2 , also defined for 0 ≤ x ≤ 1.
Example
If f (x) = 6x − 6 x^2 for 0 ≤ x ≤ 1, find P (0 ≤ X ≤ 12 ).
0
6 x − 6 x^2 dx
= (3x^2 − 2 x^3 )
(^12)
0
Example
If f (x) = 18 (x + 1) for 2 ≤ x ≤ 4, find P (3 ≤ X ≤ 4).
3
(x + 1)dx =
x^2 +
x
4
3
Exponential random variables arise in many situations. Recall that (^) dxd ex^ = ex^ and
exdx = ex^ +C. Because of the chain rule, it follows that d dx
e−kx^ = −ke−kx ∫ −ke−kxdx = e−kx^ + C
Example
The waiting time X (in days) until a certain brand of watch must be reset is a continuous random variable with probability density function f (x) = 1201 e−^ 120 x for x > 0. [Otherwise f (x) is zero.] What is the probability of needing to be reset between 1 month (30 days) and 2 months ( days)?
P (30 ≤ X ≤ 60) =
30
e−^ 120 x = −e−^ 120 x
60
30
= −e−^ 12060
= e−^ 12030 − e−^ 12060 =. 7788 − .6065 =. 1723
In general, for positive a and b, (^) ∫ b
a
ke−kxdx = e−ka^ − e−kb
If a is 0, remember that e^0 = 1. If b is ∞, remember that e−∞^ = 0. Using integration by parts, it can be shown that an exponential random variable X with probability density function ke−kx^ for x > 0 and k > 0 has the following mean, variance, and standard deviation:
E(X) = μ =
k
; V ar(X) = σ^2 =
k^2
; σ =
k
0
20 , 000(x + 100)−^3 dx = − 10 , 000(x + 100)−^2
41
0
= − 10 , 000(141)−^2 + 10, 000(100)−^2 = −
Thus, 41 days is the median shelf-life; the area under f (x) is .5 on either side of x = 41. (b)
0
20 , 000(x + 100)−^3 dx = − 10 , 000(x + 100)−^2
100
0
Thus, 34 of the area under f is to the left of x = 100. (c)
200
20 , 000(x + 100)−^3 dx = − 10 , 000(x + 100)−^2
∞
200
= lim x→∞ − 10 , 000(x + 100)−^2 + 10, 000(300)−^2 = 0 +
[Note that as x gets infinitely large, (x + 100)−^2 = (^) (x+100)^12 goes to zero.] (d)
100
20 , 000(x + 100)−^3 = − 10 , 000(x + 100)−^2
200
100
= − 10 , 000(300)−^2 + 10, 000(200)−^2 = −
−∞
f (x)dx =
0
20 , 000(x + 100)−^3 dx = − 10 , 000(x + 100)−^2
∞
0
(a)
(b)
(c)
(d)
P (100 < X < 200) = F (200)−F (100) = [1− 10 , 000(200+100)−^2 ]−[1− 10 , 000(100+100)−^2 ]
E(X) = μ =
−∞
xf (x)dx =
0
20 , 000 x(x + 100)−^3 dx
This type of integral may be solved using the technique of substitution, or with integration by parts. These skills will not be required in this course, but solutions are presented here for students who wish to review. (a) Using substitution to simplify the expression being raised to a power: Let u = x + 100. Then x = u − 100, and dudx = 1 means dx = du. We adjust the limits of integration as follows: when x = 0, u = 100; as x → ∞, u → ∞. ∫ (^) ∞
0
20 , 000 x(x+100)−^3 dx =
100
20 , 000(u−100)u−^3 du =
100
(20, 000 u−^2 − 2 , 000 , 000 u−^3 )du
= − 20 , 000 u−^1
∞
100
∞
100
= lim u→∞
u
u^2
The mean shelf-life is 100 hours. Because of the extreme right-skewness of the density function f (x), the mean is much larger than the median, 41. (b) Using the integration by parts formula
udv = uv −
vdu: Take u = 20, 000 x, dv = (x + 100)−^3 dx, du = 20, 000 dx, v = − 12 (x + 100)−^2. Then
E(X) = − 10 , 000 x(x + 100)−^2
∞
0
0
10 , 000(x + 100)−^2 dx
= − 10 , 000 lim x→∞
x (x + 100)^2
∞
0
= 0 + 0 − 10 , 000 lim x→∞
x + 100
Similar calculations can be used to find the variance and standard deviation. They turn out to be infinite, which may not be entirely realistic, but we must remember that such models are merely idealizations which provide fairly reasonable answers to most questions.
Important: Writing “french” instead of “French” on a history paper is just a minor mistake. Confusing “f (x)” (the probability density function) and “F (x)” (the cumulative distribution function) in statistics is a major mistake. In a sense, they are opposites: F is the integral of f , f is the derivative of F.
(a) less than 2.
(c) Find the expected proportion of non-respondents. Does the charity have good reason to hope that a majority of those who received their mailing will respond? (d) Which is larger, the mean or the median? (e) Find V ar(X) and σ.
(a) What is the probability of lasting between 27 and 36 thousand kilometers? (b) What is the expected tread wear of such a tire? (c) What is the standard deviation of tread wear?
(a) What is the probability that the waiting time will be between 1 and 2 minutes? (b) What is the mean waiting time? (c) What is the standard deviation of waiting time? (d) What is the median waiting time?
(^12) x for 0 ≤ x < ∞ (c) f (x) = 18x−^3 for x > 3.
∫ (^) x −∞ f^ (t)dt^ =^
∫ (^) x − 4
1 8 dt^ =^
1 8 t
∣x − 4 =^
1 8 x^ +^
1 2 for^ −^4 < x <^ 4.^ F^ (x) is zero for^ x^ ≤^ 4, one for^ x^ ≥^ 4.
1
4 15 x
(^3) dx = 1 15 x
1 ≈^.^57 −.07 =^ .50. Since^ X^ is less than 1.71 approximately half of the time, 1.71 is roughly the median. (b)
−∞ f^ (x)dx^ =^
1
4 15 x
(^3) dx = 1 15 x
16 − 1 15 = 1 (c) μ =
−∞ xf^ (x)dx^ =^
1
4 15 x
(^4) dx = 4 75 x
128 − 4 75 ≈^1.^653 (d) The mean 1.653 is less than the median 1.71; the distribution is somewhat left-skewed. (e)
V ar(X) =
−∞
x^2 f (x)dx
− μ^2
1
x^5 dx − (1.653)^2 ≈
x^6
2
1
− 2 .73 = 2. 8 − 2 .73 =. 07 pounds
σ =
.07 = .26 pounds, about one fourth of a pound, or 4 ounces. This seems high for a product like boxes of cereal, whose weight should conform more closely to the target weight.
(a)
27
e−^ 30 x dx = e−^ 301 (27)^ − e−^ 301 (36)^ ≈. 41 − .30 =. 11
(b) μ = (^) k^1 = (^1) /^130 = 30 thousand kilometers
(c) σ = (^) k^1 = 30 thousand kilometers.