<<

P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

CHAPTER 17 Continuous random variables and their probability distributions

Objectives

To define continuous random variables. To specify the distributions for continuous random variables using probability density functions. To calculate and interpret the expectation (mean), median, mode, variance and standard deviation for a continuous random variable. To relate the graph of a probability density to the values of the parameters defining that function. To relate probabilities for intervals to the graph of a probability density function. To use to calculate probabilities for intervals for a probability density function. To use technology to calculate probabilities for intervals for a probability density function. To apply knowledge of probability density functions for continuous random variables to solve probability-related problems.

17.1 Continuous random variables A continuous random variable is one that can take any value in an interval of the real number line. For example, if X is the random variable which takes its values as ‘distance in metres’ that a parachutist lands from a particular marker, then X is a continuous random variable, and here SAMPLEthe values which X may take are the non-negative real numbers. A continuous random variable has no limit as to the accuracy with which it can be measured. For example, let W be the random variable with values ‘a person’s weight in

kilograms’, and Wi be the random variable with values ‘a person’s weight in kilograms measured to the ith decimal place’.

594 Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

Chapter 17 — Continuous random variables and their probability distributions 595

Then: W0 = 83 implies 82.5 ≤ W < 83.5

W1 = 83.3 implies 83.25 ≤ W < 83.35

W2 = 83.28 implies 83.275 ≤ W < 83.285

W3 = 83.281 implies 83.2805 ≤ W < 83.2815 and so on. Thus, the random variable W cannot take an exact value, since it is always rounded to the limits imposed by the method of measurement used. Hence, the probability of W being exactly equal to a particular value is zero, and this is true for all continuous random variables. That is, Pr(W = w) = 0 for all w In practice, considering W taking a particular value is equivalent to W taking a value in an appropriate interval. Thus, from above:

Pr(W0 = 83) = Pr(82.5 ≤ W < 83.5) To determine the value of this probability you could begin by measuring the weight of a large number of randomly chosen people, and determine the proportion of the people in the group who have weights in this interval. Suppose after doing this a histogram of weights was obtained as shown.

f (w)

0 83 Weights 82.5 83.5

From this histogram:

Pr(W0 = 83) = Pr(82.5 ≤ W < 83.5) = shaded area from 82.5 to 83.5 total area If the histogram is scaled so that the total area under the blocks is one, then: = = . ≤ < . SAMPLEP(W0 83) Pr(82 5 W 83 5) = area under block from 82.5 to 83.5

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

596 Essential Mathematical Methods3&4CAS

Suppose that the sample size gets larger and the class interval width gets smaller. If theoretically this process is continued so that the intervals are arbitrarily small, the histogram can be modelled by a smooth curve, as shown in the following diagram.

f (w)

0 83 w 82.5 83.5

The curve obtained here is of great importance for a continuous random variable.

The function f whose graph models the histogram as the number of intervals is increased is called the probability density function. The probability density function f is used to describe the probability distribution of a continuous random variable, X.

Now, the probability of interest is no longer represented by the area under the histogram, but the area under the curve. That is:

Pr(W0 = 83) = Pr(82.5 ≤ W < 83.5) = area under the graph of the function with rule f (w) from 82.5 to 83.5 83.5 = f (w)dw 82.5

In general, for the continuous random variable X with density function f: b Pr(a < X < b) = f (x)dx is given by the area of the shaded region. a

f(x)

SAMPLE0 ab x In order to be a probability density function a function must satisfy certain conditions.

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

Chapter 17 — Continuous random variables and their probability distributions 597

If the range of the continuous random variable X is [a, b] then the domain of its probability density function f is [a, b]. The probability density function will satisfy two properties: b 1 f (x) ≥ 0 for all x ∈ [a, b] and 2 f (x)dx = 1 a Note that Pr(X < c) = Pr(X ≤ c) c = f (x)dx a The probability density function does not give probabilities and f (x)may take values greater than one. The probabilities are given by areas determined by the graph of f . In many cases the range of X is an unbounded interval, for example [1, ∞)orindeed R. Therefore, some new notation is necessary. If the range of X is [1, ∞), then it would be required that the area of the region under the ∞ graph of the probability density function be one. This can be expressed as f (x)dx = 1. 1 k This is computed as lim f (x)dx.Ifthe probability density function f has domain R, then →∞ k 1 ∞ k f (x)dx = 1. This is computed as lim f (x)dx. →∞ −∞ k −k Any probability density function f with domain [a, b] (or any other interval) may be extended to a function with domain R by defining f ∗(x) = f (x) for all x ∈ [a, b] and f ∗(x) = 0 for all x ∈/ [a, b]. This leads to the following:

A probability density function (or its natural extension) satisfies the following two

properties: ∞ 1 f (x) ≥ 0 for all x 2 f (x)dx = 1 −∞

Note that, since the probability of X taking any exact value is zero, then:

Pr(a < X < b) = Pr(a ≤ X < b) = Pr(a < X ≤ b) = Pr(a ≤ X ≤ b)

That is, there is no difference between the numerical values of all of these expressions.

Example 1

Suppose that the random variable X has the density function with the rule: cx 0 ≤ x ≤ 2 f (x) = SAMPLE0ifx > 2orx < 0 a Find the value of c that makes f a probability density function. b Find Pr(X > 1.5).

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

598 Essential Mathematical Methods3&4CAS

Solution a Since f is a probability density function, then: ∞ f (x)dx = 1 −∞ ∞ 2 Now f (x)dx = cxdx since f (x) = 0 elsewhere −∞ 0 2 2 = cx 2 0 = 2c Therefore 2c = 1 = . c 0 5 2 b Pr(X > 1.5) = 0.5xdx 1.5 x2 2 = 0.5 2 . 1 5 4 2.25 = 0.5 − 2 2 = 0.4375

Example 2

Consider the function f with the rule: 1.5(1 − x2)0≤ x ≤ 1 f (x) = 0ifx > 1orx < 0

a Sketch the graph of f . b Show that f is a probability density function. c Find Pr(X > 0.5).

Solution y a From the form of the function the graph of the 1.5 probability density function is a parabola with intercepts at (0, 1.5) and (1, 0), as shown. 1

0.5

x 0 0.5 1 SAMPLEb From the graph it may be seen that f (x) ≥ 0 for all x as is required. The function must also satisfy the other conditions previously noted, namely: ∞ f (x)dx = 1 −∞

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

Chapter 17 — Continuous random variables and their probability distributions 599 ∞ 1 Now f (x)dx = 1.5(1 − x2)dx since f (x) = 0 elsewhere −∞ 0 x3 1 = 1.5 x − 3 0 1 = 1.5 1 − 3 = 1 This is as required. Thus f (x)isaprobability density function. 1 c Pr(X > 0.5) = 1.5(1 − x2)dx 0.5 x3 1 = 1.5 x − 3 . 0 5 1 0.125 = 1.5 1 − − 0.5 − 3 3 = 0.3125

Some intervals for which definite need to be evaluated are of the form (−∞, a]or [a, ∞)or(−∞, ∞). a To integrate over the interval (–∞, a] find lim f (x)dx →−∞ k k k To integrate over the interval [a, ∞] find lim f (x)dx →∞ k a k To integrate over the interval (−∞, ∞) find lim f (x)dx,where these limits are →∞ k −k defined, as shown in Example 3.

Example 3

Consider the exponential probability density function f with the rule: 2e−2x x > 0 f (x) = 0 x ≤ 0

a Sketch the graph of f . b Show that f is a probability density function. c Find Pr(X > 1). y Solution a From Chapter 5 you are familiar with the form of the exponential function. In this 2 SAMPLEcase, when x = 0, y = 2, and the values of y decrease as x increases.

x 0

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

600 Essential Mathematical Methods3&4CAS

b It is known that f (x) ≥ 0 for all x as required. ∞ The second condition is that f (x)dx = 1 −∞ ∞ ∞ Now 2e−2x dx = 2e−2x dx, since f (x) = 0 for x ≤ 0 −∞ 0 k To evaluate this , consider lim 2e−2x dx →∞ k 0 2e−2x k = lim →∞ − k 2 0 k = lim −e−2x k→∞ 0 = lim (−e−2k) − (−e−0) k→∞ = 0 + e−0 = 1

Thus f satisfies the requirements of a probability density function. k c Pr(X > 1) = lim 2e−2x dx →∞ k 1 2e−2x k = lim →∞ − k 2 1 k = lim −e−2x k→∞ 1 = lim (−e−2k) − (−e−2) k→∞ = 0 + e−2 = 1 e2 = 0.1353, correct to four decimal places

Using the TI-Nspire This is an application of integration. SAMPLEa The graph is as shown.

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

Chapter 17 — Continuous random variables and their probability distributions 601

b and c The required integrations are performed to achieve the results. ∞, the symbol for infinity, can be found in the catalog ( 4), or by typing / j.

Using the Casio ClassPad This is an application of integration. a The graph is as shown. b and c The integrations are performed to achieve the results.

Exercise 17A

1 Show that the function f with rule   24 3 ≤ x ≤ 6 = 3 f (x)  x 0 x < 3orx > 6 is a probability density function.

2 Let X be a continuous random variable with the following probability density function: x2 + kx + 10≤ x ≤ 2 f (x) = 0 x < 0orx > 2 SAMPLEDetermine the constant k such that f is a valid probability density function.

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

602 Essential Mathematical Methods3&4CAS

3 Consider the random variable X having the probability density function with the rule: 12x2(1 − x)0≤ x ≤ 1 f (x) = 0 x < 0orx > 1 a Sketch the graph of f (x). b Find Pr(X < 0.5). c Shade the region which represents this probability on your sketch graph.

4 Consider the random variable Y with probability density function with the rule: ke−y y ≥ 0 f (y) = 0 y < 0

Find: a the constant k b Pr(Y ≤ 2)

5 The quarantine period for a certain disease is between 5 and 11 days after contact. The probability of showing the first symptoms at various times during the quarantine period is described by the probability density function: 1 f (t) = (t − 5)(11 − t) 36 a Sketch the graph of the function. b Find the probability that the symptoms will appear within 7 days of contact.

6 A probability model for the mass x kg of a 2-year-old child is given by: 1 f (x) = k sin (x − 7) , 7 ≤ x ≤ 17 10 1 a Show that k = . 20 b Hence find the percentage of 2-year-olds whose mass is: i greater than 16 kg ii between 12 and 13 kg

7 A probability density function for the lifetime t hours of Electra light globes is given by the rule: − t f (t) = ke( 200 ), t > 0 Find: a the value of the constant k SAMPLEb the probability that a bulb will last more than 1000 hours

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

Chapter 17 — Continuous random variables and their probability distributions 603

8 A probability density function has a probability density function given by  k(1 + x) −1 ≤ x ≤ 0 f (x) = k(1 − x)0< x ≤ 1  0 x < −1orx > 1 where k > 0. a Sketch the probability density function. b Evaluate k. c Find the probability that X lies between −0.5 and 0.5.

9 Let X be a continuous random variable with probability density function given by: 3x2 0 ≤ x ≤ 1 f (x) = 0 x < 0orx > 1 a Sketch the graph of f (x). b Find Pr(0.25 < X < 0.75) and sketch this on your graph.

10 A random variable X has a probability density function f with the rule:   1  (10 + x) −10 < x ≤ 0 100 f (x) = 1  (10 − x)0< x ≤ 10 100 0 x ≤−10 or x > 10 a Sketch the graph of f . b Find Pr(−1 ≤ X < 1).

11 The life in hours, X,ofatype of light globe has a probability density function with the rule:   k x > 1000 = x2 f (x)  0 x ≤ 1000 a Evaluate k. b Calculate the probability the globe will last at least 2000 hours. 12 The weekly demand for petrol, X (in thousands of litres), at a particular service station is a random variable with probability density function:   1 2 1 − 1 ≤ x ≤ 2 = 2 f (x)  x 0 x < 1orx > 2 a Determine the probability that more than 1.5 thousand litres are demanded in 1 week. b Determine the probability that the demand for petrol in 1 week is less than SAMPLE1.8 thousand litres, given than it is more than 1.5 thousand litres.

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

604 Essential Mathematical Methods3&4CAS

13 The length of time, X (in minutes), between the arrival of customers at an autobank is a random variable with probability density function:   x 1 − ≥ = e 5 x 0 f (x) 5 0 x < 0 a Find the probability that more than 8 minutes elapses between successive customers. b Find the probability that more than 12 minutes elapses between successive customers, given that more than 8 minutes has passed. 14 A random variable X has density function given by:  0.2 −1 < x ≤ 0 f (x) = 0.2 + 1.2x 0 < x ≤ 1  0 x ≤−1orx > 1 a Find Pr(X ≤ 0.5). b Hence find Pr(X > 0.5|X > 0.1). 15 The continuous random variable X has probability density function f given by: e−x x ≥ 0 f (x) = 0 x < 0

a Sketch the graph of f . b Find: i Pr(X < 0.5) ii Pr(X ≥ 1) iii Pr(X ≥ 1|X > 0.5) 16 The continuous random variable X has probability density function f given by |ax| −2 ≤ x ≤ 2 f (x) = 0 x < −2orx > 2 where a is a constant. a Sketch the graph of f. b Hence or otherwise, find the value of a. ∗ 17.2 Cumulative distribution functions Another function of importance in describing a continuous random variable is the cumulative distribution function F,orCDF. For a continuous random variable X, with probability density function f , the cumulative distribution function defined on an interval [a, b]isgivenby

f (x) = Pr(X ≤ x) x = f (t)dt SAMPLEa where f is the probability density function and t is the variable of integration.

∗ Cumulative distribution functions are not mentioned explicitly in the Mathematical Methods Units 3 and 4 CAS study design but are useful in our study of continuous probability distributions.

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

Chapter 17 — Continuous random variables and their probability distributions 605

For the probability density function defined on R:

f (x) = Pr(X ≤ x) x f(t) = f (t)dt −∞ The graphical representation of the relationship between the probability density function and the cumulative distribution function is shown in the diagram on the right. It is clear that this result is an application of the F(x) fundamental theorem of calculus and the derivative of F(x)is f (x), i.e. the derivative of the cumulative x t distribution function is the density function. That is, the function F describes the area under the probability density function between the lower bound of the domain of f and x (in the diagram, the lower bound is 0). So, to find Pr(X ≤ n) for a particular random variable X,you would substitute the value of n into the expression for the cumulative distribution function and evaluate. Thus, the cumulative distribution function for a particular value x gives F(x) the probability that the random variable X 1 takes a value less than or equal to that value. As X is a continuous random variable, the cumulative distribution function is also continuous. 0 There are three important properties of x a cumulative distribution function with a probability density function with domain [a, b].

If F is a cumulative distribution function, with probability density function with domain [a, b]: 1 The probability that the random variable X takes a value less than a is zero. That is: F(a) = 0

2 The probability that the random variable X takes a value less than or equal to b is 1. That is: F(b) = 1

3 If x1 and x2 are values of x such that x1 ≤ x2, then:

Pr(X ≤ x1) ≤ Pr(X ≤ x2) SAMPLE≤ That is F(x1) F(x2) The function F is a non-decreasing function.

Foraprobability density function defined on R, F(−∞) = 0 and F(∞) = 1

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

606 Essential Mathematical Methods3&4CAS

Example 4

The time (in seconds) it takes a student to complete a puzzle is a random variable with a density function with the rule:   5 x ≥ 5 = 2 f (x)  x 0 x < 5 Find F(x), the cumulative distribution function of X.

Solution x F(x) = f (t)dt 5 x = 5 t2 5 − x = 5 t 5 −5 = + 1 x 5 That is: F(x) = 1 − x The importance of the cumulative distribution function is that probabilities for various intervals can be computed directly from F(x).

Example 5

Use the cumulative distribution function found in Example 4 to find: a the probability that a student takes less than 12 seconds to complete the puzzle b the probability that a student takes between 8 and 10 seconds to complete the puzzle, given that he takes less than 12 seconds

Solution a Pr(X ≤ 12) can be obtained by substituting 12 in the expression for F(x). 5 F(12) = 1 − 12 = 7 SAMPLE12

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

Chapter 17 — Continuous random variables and their probability distributions 607

Pr(8 ≤ X ≤ 10 ∩ X ≤ 12) Pr(8 ≤ X ≤ 10) b Pr(8 ≤ X ≤ 10|X ≤ 12) = = Pr(X ≤ 12) Pr(X ≤ 12) − = F(10) F(8) F(12) 1 − 3 = 2 8 7 12 = 3 14 Exercise 17B

1 The probability density function for a random variable X is:   1 < < = 0 x 5 f (x) 5 0 x ≤ 0orx ≥ 5

a Find F(x), the cumulative distribution function of X. b Hence find Pr(X ≤ 3).

2 A random variable X has a cumulative distribution function: 0 x < 0 F(x) = 1 − e−x2 x ≥ 0 a Sketch the graph of F(x). b Find Pr(X ≥ 2). c Find Pr(X ≥ 2|X < 3). 3 The continuous random variable X has cumulative distribution function F given by:  0 x < 0 F(x) = kx2 0 ≤ x ≤ 6  1 x > 6 1 a Determine the value of the constant k. b Calculate Pr ≤ X ≤ 1 . 2

17.3 Mean, median and mode for a continuous random variable The centre is an important summary f(x) feature of a probability distribution. The diagram shows two probability distributions which are SAMPLEidentical except for their centres. x More than one of centre may be determined for a continuous random variable, and each gives useful information about the random variable under consideration. The most generally useful measure of centre is the mean.

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

608 Essential Mathematical Methods3&4CAS Mean In the same way as the mean or expected value for a discrete random variable is defined, one can define the mean or expected value for a continuous random variable.

The mean or expected value of a continuous random variable X is given by: ∞ E(X) = xf(x) dx −∞ provided the integral exists. As in the case of a discrete random variable the mean is always denoted by the Greek letter (mu). b If f (x) = 0 for all x ∈/ [a, b], then E(X) = xf(x)dx a This definition is consistent with the definition of the expected value for a discrete random variable. As in the case of a discrete random variable, the mean or expected value of a continuous random variable is not necessarily the value the random variable takes in any particular experiment, but the long-run average value of the variable. As an example, consider the daily demand for petrol at a service station. The mean of this variable tells us the average daily demand for petrol over a very long period of time.

Example 6

Find the expected value of the random variable X which has probability density function with rule: 0.5x 0 ≤ x ≤ 2 f (x) = 0 x < 0orx > 2

Solution ∞ By definition E(X) = xf(x)dx −∞ 2 = x × 0.5xdx since f (x) = 0 elsewhere 0 2 = 0.5 x2dx 0 x3 2 = 0.5 3 0 = 4 3

SAMPLEThe mean of a function of X is defined as follows. (In this case the function of X is denoted as g(X) and is the composition of the random variable X and the function g.)

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

Chapter 17 — Continuous random variables and their probability distributions 609

The expected value of g(X)is ∞ E[g(X)] = g(x) f (x) dx −∞ provided the integral exists.

Generally, as in the case of a discrete random variable, the expected value of a function of X is not equal to that function of the expected value of X. That is: E{g(x)} = g{E(X)}

Example 7

If X is the random variable with probability density function f : 0.5x 0 ≤ x ≤ 2 f (x) = 0 x < 0orx > 2 Find: a the expected value of X 2 b the expected value of ex (correct to four decimal places)

Solution ∞ a E[X 2] = x2 f (x)dx −∞ 2 = x2 × 0.5xdx since f (x) = 0 elsewhere 0 2 = 0.5 x3dx 0 x4 2 = 0.5 4 0 = 2 ∞ b E[ex ] = ex f (x)dx −∞ 2 = ex f (x)dx since f (x) = 0 elsewhere 0 2 = ex × 0.5xdx 0 = 4.195 (correct to three decimal places)

A case where the equality does hold is where g is a linear function of X. Then SAMPLEE(aX + b) = aE(X) + b (a, b constant) Percentiles and the median Another value of interest is the value of X which bounds a particular area under a probability density function. For example, a teacher may wish determine the mark (p) below which lie

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

610 Essential Mathematical Methods3&4CAS

75% of all students’ marks. This is called the 75th percentile of the population, and is found by solving: p f (x)dx = 0.75 −∞ This can be stated more generally.

The value p of X which is the solution of an equation of the form p f (x)dx = q −∞ is called a percentile of the distribution. Here q is the required percentile. (For the example above q = 75% = 0.75.)

Example 8

The duration of telephone calls to the order department of a large company is a random variable X minutes with probability density function:   x 1 − > = e 3 x 0 f (x) 3 0 x ≤ 0 Find the value of a such that 90% of phone calls last less than a minutes.

Solution To find the value of a, solve the equation: a 1 − x e 3 dx = 0.90 0 3  − x a That is, −e 3 = 0.90 0 − a ∴ 1 − e 3 = 0.90 a ∴ − = log 0.10 3 e ∴ = a 3loge (10) = 6.908 (correct to three decimal places)

So 90% of the calls to this company last less than 6.908 minutes.

As for discrete probability distributions, a percentile of special interest is the median, or 50th percentile. The median is the middle value of the distribution. That is, the probability of X SAMPLEtaking a value below the median is 0.5, and the probability of X taking a value above the median is 0.5. Thus, if m is the median value of the distribution, then:

Pr(X ≤ m) = Pr(X > m) = 0.5

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

Chapter 17 — Continuous random variables and their probability distributions 611

The median may be determined readily from the cumulative distribution function, as it is the 50th percentile of the distribution. Graphically, the median is the value of the random variable which divides the area under the probability density function in half.

The median is another measure of centre of f(x) a continuous probability distribution. The median, m,ofaprobability distribution function is the value of X such that: m f (x)dx = 0.5 −∞

0.5

m x

Example 9

Suppose the probability density function of weekly sales of topsoil, X (in tonnes), is given by the rule: 2(1 − x)0≤ x ≤ 1 f (x) = 0 x < 0orx > 1

Find the median value of X, and interpret.

Solution The solution here is the value of m such that: m 2(1 − x) = 0.5 0 x2 m ∴ 2 x − = 0.5 2 0 ∴ 2m − m2 = 0.5 ∴ m2 − 2m + 0.5 = 0 m = 0.293 or 1.707

But since 0 ≤ x ≤ 1 the median m = 0.293 tonnes. That is, in the long run, 50% of weekly sales will be less than 0.293 tonnes, and 50% will be more. Mode SAMPLEAnother value of interest is the mode, M,ofthe distribution. Although not actually a measure of centre the mode does tell us the most likely or most probable value of X. Thus, the mode occurs at the maximum value of f (x), and may be located through considering the graph of the probability density function.

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

612 Essential Mathematical Methods3&4CAS

If f is the probability density function of X, f (x) then the mode, M,isthe value of X such that: f (M) ≥ f (x) for all other x

M x

Example 10

Find the mode of the continuous random variable X with probability density function: 12x2(1 − x)0≤ x ≤ 1 f (x) = 0 x < 0orx > 1

Solution To find the maximum value of f (x)inthe interval [0,1], begin by expanding the expression and then differentiating the function as follows:

f (x) = 12x2 − 12x3

Thus f (x) = 24x − 36x2 = 0 12x(2 − 3x) = 0 2 x = 0orx = 3 Consideration of the function shows that x = 0 corresponds to a minimum value of 2 2 f (x), and x = corresponds to a maximum value of f (x). Thus the mode M = 3 3 f(x) SAMPLE

0 2 1 x 3

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

Chapter 17 — Continuous random variables and their probability distributions 613

Example 11

If the probability density function of weekly sales of topsoil, X (in tonnes), is as given in Example 9, find the most likely weekly sales.

Solution

The most likely weekly sales correspond to f(x) the mode of f (x). Since the probability density 2 function is a linear function of x, and more importantly strictly decreasing, calculus will not help, so the solution will need to be determined graphically.

Consideration of the graph of f shows that the maximum value of f (x) occurs when x = 0. 0 1 x

Exercise 17C

1 Find the mean, E(X), of the continuous random variables with the following probability density functions: 1 a f (x) = 2x, 0 < x < 1 b f (x) = √ , 0 < x < 1 2 x 1 c f (x) = 6x(1 − x), 0 < x < 1 d f (x) = , x ≥ 1 x2 2 Use your calculator to firstly check that each of the following is a probability density function, and then to find the mean, E(X), of the continuous random variables with the following probability density functions: a f (x) = sin x, 0 < x < b f (x) = log x, 1 < x < e 2 e 1 c f (x) = , < x < d f (x) =−4x log x, 0 < x < 1 sin2 x 4 2 e 3 A continuous random variable X has the probability density function given by: 2x3 − x + 10≤ x ≤ 1 f (x) = 0 x < 0orx > 1

a Find the mean value of X, . b Find the probability that X takes a value less than or equal to the mean. SAMPLE4 Consider the probability density function given by: 1 f (x) = (1 + cos x), − ≤ x ≤ 2 Find the expected value of X.

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

614 Essential Mathematical Methods3&4CAS

5 A random variable Y has a probability density function: Ay 0 ≤ y ≤ B f ( y) = 0 x < 0orx > B

Find A and B if the mean of Y is 2.

6 A random variable X has the probability density function given by: 12x2(1 − x)0≤ x ≤ 1 f (x) = 0 x < 0orx > 1 Find: 1 a E b E(ex ) X 7 The random variable X has a probability density function given by: k 0 ≤ x ≤ 1 f (x) = 0 x < 0orx > 1 Find: a the value of k b the median, m,ofX

8 The time X seconds between arrivals of particles at a radiation counter has been found to have a probability density function f with the rule: 0 x < 0 f (x) = e−x x ≥ 0 Find: a Pr(X ≤ 1) b Pr(1 ≤ X ≤ 2) c the median, m,ofX

9 A continuous random variable has a probability density function given by: 5(1 − x)4 0 ≤ x ≤ 1 f (x) = 0 x < 0orx > 1

Find the median, m,ofX (correct to four decimal places).

10 Suppose that the time (in minutes) between telephone calls received at a pizza restaurant has probability density function:   x 1 − ≥ = e 4 x 0 f (x) 4 0 x < 0 SAMPLEFind the median time between calls.

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

Chapter 17 — Continuous random variables and their probability distributions 615

11 The cumulative distribution function∗ of a continuous random variable X, F(x), is given by:  0 x < 0 F(x) = 4x3 − 3x4 0 ≤ x ≤ 1  1 x > 1 Find: a the probability density function of X b the mode, M,ofX

12 A random variable X has a probability density function:   1 < < = sin x 0 x f (x) 2 0 x ≤ 0orx ≥ Find the mode, M,ofX.

13 A continuous random variable X has the probability density function given by:  x 0 ≤ x < 1 f (x) = 2 − x 1 ≤ x < 2  0 x < 0orx ≥ 2 a Find , the expected value of X. b Find m, the median value of X. c Find M, the mode of X.

14 Let the probability density function of X be: 30x4(1 − x)0< x < 1 f (x) = 0 x < 0orx ≥ 1

a Find the expected value of X, . b Find the median value of X, m, and hence show that the mean is less than the median.

15 A probability model for the mass x kg of a 2-year-old child is given by: 1 1 f (x) = sin (x − 7) , 7 ≤ x ≤ 17 20 10

a Find the mode of X, M. b Find the median value of X, m.

16 A random variable X has density function given by:  0.2 −1 < x ≤ 0 f (x) = 0.2 + 1.2x 0 < x ≤ 1  0 x < −1orx > 1 SAMPLEa Find , the expected value of X. b Find m, the median value of X. c Find M, the mode of X.

∗ Cumulative distribution functions are not mentioned explicitly in the Mathematical Methods Units 3 and 4 CAS study design but are useful in our study of continuous probability distributions.

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

616 Essential Mathematical Methods3&4CAS

17 The exponential probability distribution describes the distribution of the time between random events, such as phone calls. The general form of the exponential distribution with parameter is:   1 − x ≥ = e x 0 f (x)  0 x < 0

a Differentiate kxe−kx and hence find an antiderivative of kxe−kx. b Show that the mean of an exponential random variable is . c On the same axes, sketch the graph of an exponential random variable for: 1 i = ii = 1 iii = 2 2 d Describe the effect of the variation of the parameter on the graph of the distribution. 17.4 Measures of spread Another important summary feature of a distribution is variation or spread. The following diagram shows two distributions that are identical except for their spreads.

f (x)

x

As in the case of centre, there is more than one measure of spread. The most commonly used is the variance, together with its companion measure, the standard deviation. Others that youmay be familiar with are the range and the interquartile range. Variance and standard deviation The variance of the random variable X is a measure of the spread of a probability distribution about its mean or expected value .Itisdefined as follows.

Var( X) = E[(X − )2] ∞ = (x − )2 f (x)dx −∞ As for discrete random variables the variance is usually denoted 2,where is the SAMPLElower case of the Greek letter sigma.

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

Chapter 17 — Continuous random variables and their probability distributions 617

Variance may be considered as the long-run average value of the square of the distance from the values of X to . Since the variance is determined by squaring the distance from the values of X to it is no longer in the units of measurement of the original random variable. A measure of spread in the appropriate unit is found by taking the square root of the variance.

The standard deviation of X is defined as:  sd(X) = Var(X) The standard deviation is usually denoted .

As in the case of discrete random variables, an alternative (computational) formula for variance is generally used.

To calculate variance, use:

Var(X) = E(X 2) − 2

The computational form of the expression for variance is derived as follows: ∞ Var(X) = (x − )2 f (x)dx −∞ ∞ = (x2 − 2x + 2) f (x)dx −∞ ∞ ∞ ∞ = x2 f (x)dx − 2xf(x)dx + 2 f (x)dx −∞ −∞ −∞ ∞ ∞ = E(X 2) − 2 xf(x)dx + 2 f (x)dx −∞ −∞ ∞ ∞ Since xf(x)dx = and f (x)dx = 1 −∞ −∞ Var(X) = E(X 2) − 22 + 2 = E(X 2) − 2

Example 12

Find the variance and standard deviation of the random variable X which has the probability density function f with rule: 0.5x 0 ≤ x ≤ 2 f (x) = SAMPLE0 x < 0orx > 2

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

618 Essential Mathematical Methods3&4CAS

Solution Use the computational formula Var(X) = E(X 2) − 2 First, evaluate E(X 2): ∞ E(X 2) = x2 f (x)dx −∞ 2 = x2× 0.5xdx 0 2 = 0.5 x3dx 0 x4 2 = 0.5 4 0 = 0.5 × 4 = 2 4 Now E(X) = (from Example 6) 3 4 2 so Var(X) = 2 − 3 = 2 9 2 and sd(X) = √9 2 = or, correct to three decimal places, 0.471 3

It helps to make the standard deviation more meaningful to give it an interpretation which relates to the probability distribution. As already stated for discrete random variables, it is also the case for many continuous random variables that about 95% of the distribution lies within two standard deviations either side of the mean.

In general, for many continuous random variables X:

Pr( − 2 ≤ X ≤ + 2) ≈ 0.95

Example 13

The life of a certain brand of battery, X,isacontinuous random variable with mean 50 hours and variance 16 hours. Find an (approximate) interval for the time period for which 95% of the batteries would be expected to last. SAMPLESolution √ Pr( − 2 ≤ X ≤ + 2) ≈ 0.95. In this case = 50 and = 16 = 4, so one could expect 95% of the batteries to last between 42 hours and 58 hours.

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

Chapter 17 — Continuous random variables and their probability distributions 619 Range The range of a random variable is the difference between the smallest and the largest value the variable may take, and is clearly determined from the domain of the probability density function.

Example 14

Determine the range of the random variable X which has the probability density function:  1 − 2 ≤ ≤ = (4x x )0 x 3 f (x) 9 0 x < 0orx > 3

Solution From the probability density function X may take values from 0 to 3. Thus:

range of X = 3 − 0 = 3 Interquartile range The interquartile range is the range of the middle 50% of the distribution. It is the difference between the 75th percentile, also known as Q3, and the 25th percentile, also known as Q1.

Example 15

Determine the interquartile range of the random variable X which has the probability density function: 2x 0 ≤ x ≤ 1 f (x) = 0 x < 0orx > 1

Solution To find the 25th percentile a, solve: a √ = . ⇒ 2 a = . ⇒ 2 = . ⇒ = . = . 2xdx 0 25 [x ]0 0 25 a 0 25 a 0 25 0 5 0

To find the 75th percentile b, solve: b √ = . ⇒ 2 b = . ⇒ 2 = . ⇒ = . = . , 2xdx 0 75 [x ]0 0 75 b 0 75 b 0 75 0 866 0 correct to three decimal places SAMPLEThus the interquartile range is 0.866 − 0.5 = 0.366, correct to three decimal places. Note that the negative solutions to each of these equations were not appropriate, as 0 ≤ x ≤ 1.

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

620 Essential Mathematical Methods3&4CAS

Exercise 17D

1 A continuous random variable X has a probability density function given by: 3x2 0 ≤ x ≤ 1 f (x) = 0 x < 0orx > 1

Find: a a such that Pr(X ≤ a) = 0.25 b b such that Pr(X ≤ b) = 0.75 c the interquartile range of X

2 Given that the random variable X has probability density function: 2x 0 < x < 1 f (x) = 0 x ≤ 0orx ≥ 1

a Find the interquartile range of X. b Find the variance of X, and hence the standard deviation of X.

3 If the random variable X has probability density function given by: 0.5ex x ≤ 0 f (x) = 0.5e−x x > 0 a Sketch the graph of y = f (x) b Find the interquartile range of X,giving your answer correct to three decimal places.

4 The continuous random variable X has probability density function given by:   k ≤ ≤ = 1 x 9 f (x)  x 0 x < 1orx > 9 a Find the value of k. b Find the mean and variance of X,giving your answer correct to three decimal places.

5 The continuous random variable X has density function f given by:   0 x < 0 f (x) = 2 − 2x 0 ≤ x ≤ 1  0 x > 1 a Find the interquartile range of X. b Find the mean and variance of X.

6 A random variable X has probability density function f with the rule: < = 0 x 0 SAMPLEf (x) − 2 2xe x x ≥ 0

Find the interquartile range of X.

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

Chapter 17 — Continuous random variables and their probability distributions 621

7 A random variable X has a probability density function:   0 x < 0 x = ≤ < f (x)  0 x 2  2 0 x ≥ 2

a Find the interquartile range of X. b Find the mean and variance of X.

8 The queuing time, X minutes, of a traveller at the ticket office of a large railway station has probability density function, f , defined by: kx(100 − x2)0≤ x ≤ 10 f (x) = 0 x > 10 or x < 0

Find: a the value of k b the mean of the distribution c the standard deviation of the distribution, correct to two decimal places.

9 A probability density function is given by: k(a2 − x2) −a ≤ x ≤ a f (x) = 0 x > a or x < −a

a Find k in terms of a. b Find the value of a which gives a standard deviation of 2.

10 The continuous random variable X has probability density function f given by |k(3 − x)| 0 ≤ x ≤ 6 f (x) = 0 x > 6orx < 0

where k is a constant. a Sketch the graph of f . b Hence or otherwise, find the value of k. c Verify that the mean of X is 3. d Find Var(X). 17.5 Properties of mean and variance It has already been stated that the expected value of a function of X is not equal to that function of the expected value. That is, in general:

E{g(x)} = g{E(x)}

An exception to this rule is the case where the mean of a linear function of X is required. In this case the mean of the linear function is equal to the linear function of the mean, thus: SAMPLEForany random variable X E(aX + b) = aE(X) + b

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

622 Essential Mathematical Methods3&4CAS

The validity of this statement can be readily demonstrated. ∞ E(aX + b) = (ax + b) f (x)dx −∞ ∞ ∞ = ax f (x)dx + bf(x)dx −∞ −∞ ∞ ∞ = a xf(x)dx + b f (x)dx −∞ −∞ ∞ = aE(X) + b, since f (x)dx = 1 −∞ Consider the variance of a linear function of X,Var(aX + b).

Var(aX + b) = E(aX + b)2 − [E(aX + b)]2 Now [E(aX + b)]2 = [aE(X) + b]2 = [a + b]2 = a22 + 2ab + b2 and E(aX + b)2 = E(a2 X 2 + 2abX + b2) = a2E(X 2) + 2ab + b2 Thus Var(aX + b) = a2E(X 2) + 2ab + b2 − a22 − 2ab − b2 = a2E(X 2) − a22 = a2Var(X)

That is:

Forany random variable X: Var(ax + b) = a2 Var(X)

Although initially the absence of b in the result may seem surprising, on reflection it makes sense that adding a constant to X merely translates the probability density function of X,but has no effect on the spread of the resultant distribution. If the random variable X has a probability density function with the rule f (x), then the probability distribution with random variable X + b has a corresponding probability density function with the rule f (x − b). Similarly, multiplying by a is similar to a dilation by a factor of a, and this is consistent with the answer obtained. However, there has to be an adjustment to determine the probability density function of the random variable aXas the transformation must be area-preserving. This 1 x is chosen as the function with the rule f . a a Thus if f (x)isthe probability density function for the random variable X, then the 1 x − b probability density function of the random variable aX + b is f . The   a a y transformation is described by (x, y) → ax + b, . That is, if a and b are positive, a a 1 dilation of factor a from the y-axis and from the x-axis and a translation of b units in the a SAMPLEpositive direction of the x-axis.

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

Chapter 17 — Continuous random variables and their probability distributions 623

Example 16

Suppose X is a continuous random variable with mean = 10 and variance 2 = 2. a Find E(2X + 1). b Find Var(1 − 3X). c If X has a probability density function with rule f (x), describe the rule for a probability density function g,interms of f for 2X + 1.

Solution a E(2X + 1) = 2E(X) + 1 = 2 × 10 + 1 = 21 b Var(1 − 3X) = (−3)2Var(X) = 9 × 2 = 18 1 x − b c The rule is g(x) = f where a = 2 and b = 1. Therefore a a 1 x − 1 g(x) = f 2 2 Sums of independent random variables* In previous work the idea of independent events has been introduced. The term ‘independent’ is also applied to random variables. While a formal definition of independent random variables is beyond the scope of this course, basically two random variables are independent if their joint probability density function is a product of their individual probability density functions. This is also true for their cumulative distribution functions. Knowing random variables are independent allows us to make certain conclusions concerning their mean and variance.

Suppose X and Y are independent random variables; then:

E(X + Y ) = E(X) + E(Y ) Var(X + Y ) = Var(X) + Var(Y )

Note that in fact E(X + Y ) = E(X) + E(Y )whether or not X and Y are independent, but the same cannot be said for variance.

Example 17

A manufacturing process involves two stages. The time taken to complete stage 1, X hours, is a continuous random variable with mean = 4 and standard deviation = 1.5. The time taken to complete stage 2, Y hours, is a continuous random variable with mean = 7 and standard deviation = 1. Find the mean and standard deviation of the total time taken SAMPLEto complete the manufacturing process, if the times taken at each stage are independent.

∗ This section covers material not included in the Mathematical Methods Units 3 and 4 CAS study design.

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

624 Essential Mathematical Methods3&4CAS

Solution The total processing time is given by X + Y .Tofind the mean total processing time:

E(X + Y ) = E(X) + E(Y ) = 4 + 7 = 11 Since X and Y are independent:

Var( X + Y ) = Var(X) + Var(Y ) = (1.5)2 + (1)2 = 2.25 + 1 = 3.25 Hence the standard deviation of the total processing time is: √ sd(X + Y ) = 3.25 = 1.803

Exercise 17E

1 The amount of flour used each day in a bakery is a continuous random variable X with mean of 4 tonnes. The cost of the flour is C = 300X + 100. Find E(C).

2 For certain glass ornaments the proportion of impurities per ornament, X,isarandom variable with a density function given by:   2 3x + ≤ ≤ = x 0 x 1 f (x)  2 0 x < 0orx > 1 The value of each ornament (in dollars) is V = 100 − 1.5X a Find E(X) and Var(X). b Hence find the mean and standard deviation of V.

3 Let X be a random variable with probability density function:   2 3x − ≤ ≤ = 1 x 1 f (x)  2 0 x < −1orx > 1 Find: a E(3X) and Var(3X) b E(3 − x) and Var(3 − X ) c the rule of a probability density function for 3X SAMPLE4 The time spent waiting in line at a fast-food outlet is a continuous random variable X with mean = 2.5 minutes and standard deviation = 1.5 minutes. The time taken for the fast food to be prepared and served is a continuous random variable Y with mean = 5 minutes and standard deviation = 2.5 minutes.

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

Chapter 17 — Continuous random variables and their probability distributions 625

a Find the mean and variance of the total time the customer waits for the order. b Find the time interval within which about 95% of customers would wait.

5 The length of time Joan waits for her train to work each morning is a continuous random variable with mean = 7 minutes and standard deviation = 2 minutes. If the time waited each day is independent of the time waited any other day, find the mean and the standard deviation of the total time waited each week (assume 5 working days per week).

SAMPLE

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

626 Essential Mathematical Methods3&4CAS

Chapter summary

A continuous random variable is one that can take any value in an interval of the real number line. A continuous random variable can be described by a probability density function f . There are many different probability density functions with different shapes and properties.

Review However, they all have the following fundamental properties: r Forany value of x, the value of f (x)ispositive. That is:

f (x) ≥ 0 for all x r The total area enclosed by the graph of f (x) and the x-axis is equal to 1. That is: ∞ f (x)dx = 1 −∞ r The probability of X taking a value in the interval (a, b)isfound by determining the area under the probability density curve between a and b. That is: b Pr(a < X < b) = f (x)dx a The mean or expected value of a continuous random variable X which has probability density function f (x)given by ∞ E(X) = xf(x)dx −∞ provided the integral exists. The mean is always denoted by the Greek letter (mu). If g(X)isafunction of X, then the mean or expected value of g(X)is ∞ E[g(X)] = g(x) f (x)dx −∞ provided the integral exists. In general:

E[g(X)] = g[E(X)]

The median for a continuous random variable X is m such that: m f (x)dx = 0.5 −∞ If f (x)isthe probability density function of X, then the mode of M is the value of X such that:

SAMPLEf (M) ≥ f (x) for all other x

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

Chapter 17 — Continuous random variables and their probability distributions 627 Review

Foracontinuous random variable X with probability density function f (x) the variance is given by

Var(X ) = E[(X − )2] ∞ = (x − )2 f (x)dx −∞ provided the integral exists. The variance is usually denoted 2,where is the lower case of the Greek letter sigma. The standard deviation of X is defined as:  sd(X) = Var(X)

To calculate variance, use:

Var(X) = E(X 2) − 2

In general, for most continuous random variables X:

Pr( − 2 ≤ X ≤ + 2) ≈ 0.95

The interquartile range of X is

IQR = b − a

where a and b are such that a b f (x)dx = 0.25 and f (x)dx = 0.75 −∞ −∞ and where f (x)isthe probability density function of X. Forany random variable X:

E(aX + b) = aE(X) + b

Forany random variable X:

Var(aX + b) = a2 Var(X)

Multiple-choice questions

1 Which of the following graphs could not represent a probability density function f ? a SAMPLEf(x) b f(x)

0 x 0 x

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

628 Essential Mathematical Methods3&4CAS

c f(x) d f(x)

Review 0 x 0 x

e f(x)

0 x

2 If the function f (x) = 4x represents a probability density function, then which of the following could be the domain of f ? A 0 < x < 0.25 B 0 < x < 0.5 C 0 < x < 1 1 1 2 D 0 < x < √ E √ < x < √ 2 2 2 3 If a random variable X has probability density function   1 < < = sin x 0 x k f (x) 2 0 x ≥ k or x ≤ 0 then k is equal to: A 1 B C 2 D E 2 2 The following information relates to questions 4, 5 and 6. A random variable X has probability density function:  3 2 − < < = (x 1) 1 x 2 f (x) 4 0 x ≤ 1orx ≥ 2

4 Pr(X ≤ 1.3) is closest to: A 0.0743 B 0.4258 C 0.3 D 2.25 E 0.9258 5 The mean of X,E(X), is equal to: 3 9 27 27 A 1 B C D E 2 4 32 16 6SAMPLEThe variance of X is: 27 67 81 81 729 A B C D E 16 1280 16 256 256

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

Chapter 17 — Continuous random variables and their probability distributions 629 Review

7 If a random variable X has a probability density function   3 x ≤ ≤ = 0 x 2 f (x)  4 0 x > 2orx < 0 then the median of X is closest to: A 1.5 B 1.4142 C 1.6818 D 1.2600 E 1

8 If a random variable X has a probability density function   3 − − 2 ≤ ≤ = (x 1)(x 2) 1 x 3 f (x) 2 0 x < 1orx > 3 then the mode of X is: A 1 B 1.333 C 2 D 2.6 E 3

9 If the consultation time (in minutes) at a surgery is represented by a random variable X, which has probability density function x (400 − x2)0≤ x ≤ 20 f (x) = 40000 0 x < 0orx > 20 then the expected consultation time (in minutes) for three patients is: 2 2 A 10 B 30 C 32 D 42 E 43 3 3 10 Suppose that the top 10% of students will be given an ‘A’ in mathematics. If the distribution of scores on the examination is a random variable X with probability density function   x sin 0 ≤ x ≤ 50 f (x) = 100 50 0 x < 0orx > 50 then the minimum score required to be awarded an ‘A’ is closest to: A 40 B 41 C 42 D 43 E 44

Short-answer questions (technology-free)

1 The probability density function of X is given by: √ kx 1 ≤ x ≤ 2 f (x) = 0 otherwise a Find k. b Find Pr(1 < X < 1.1). c Find Pr(1 < X < 1.2) 2 If the probability density function of X is given by: SAMPLE+ 2 ≤ ≤ a bx 0 x 1 f (x) = 0 x > 1orx < 0 2 and E(X ) = , find a and b. 3

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

630 Essential Mathematical Methods3&4CAS

3 The probability density function of X is given by:   sin x ≤ ≤ = 0 x f (x)  2 0 x > or x < 0 Find the median and mode of X.

Review 4 The cumulative distribution function of X is given by:   ≥ 1 x 5 = 1 − ≤ < F(x)  (x 1) 1 x 5 4 0 x < 1 a Find Pr(1 < X < 3). b Find Pr(X > 2|1 < X < 3). c Find Pr(X > 4|X > 2). 5 Consider the random variable X having the probability density function given by: 12x2(1 − x)0≤ x ≤ 1 f (x) = 0 otherwise a Sketch the graph of y = f (x) b Find Pr(X < 0.5) and illustrate this probability on your sketch graph. 6 The probability density function of a random variable X is: kx2(1 − x)0≤ x ≤ 1 f (x) = 0 otherwise a Determine k. b Find the mode of X. 2 c Find the probability that X is less than . 3 1 2 d Find the probability that X is less than ,given that X is less than . 3 3 7 Y is a continuous random variable with probability density function: e−y, y ≥ 0 f (y) = 0, y < 0

Find: a Pr(Y < 2) b Pr(Y < 3|Y > 1) 8 The cumulative distribution function of X is given by: log x 1 ≤ x ≤ e F(x) = e 0 x > e or x < 1 a Find the median value of X. b Find the interquartile range of X. SAMPLEc Find the probability density function of X, f (x). 9 The amount of fluid, X,inacan of soft drink is a continuous random variable with mean 330 mL and standard deviation 5 mL. Find an (approximate) interval for the amount of soft drink contained in 95% of the cans.

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

Chapter 17 — Continuous random variables and their probability distributions 631 Review

10 The weight, X,ofcereal in a packet is a continuous random variable with mean 250 g and variance 4 g. Find an (approximate) interval for the weight of cereal contained in 95% of the packets.

Extended-response questions

1 The distribution of X, the life of a certain electronic component, in hours, is described by the following probability density function:   a x 1 − 100 < x < 1000 f (x) = 100 100 0 x ≤ 100 and x ≥ 1000 a What is the value of a? b Find the expected value of the life of the components. c Find the cumulative distribution function, F(x), for this probability density function. 2 The continuous random variable X has cumulative distribution function given by:  0 x < 0 F(x) = 2x − x2 0 ≤ x ≤ 1  1 x > 1 a Find Pr(X > 0.5). < = . . b Find a such that Pr(√ X a) 0 8 c Find E(X) and E( X ). 3 The probability density function of X is given by:   cos (x − 6) 1 ≤ x ≤ 11 f (x) = 20 10 0 x < 1orx > 11 a Find the median and interquartile range of X. b Find the mean and the variance of X. 4 A hardware shop sells a certain size nail either in a small packet at $1.00 per packet, or loose at $4.00 per kilogram. On any shopping day the number, X,ofpackets sold is a binomial random variable with number of trials equal to 8 and probability of success of 0.6, and the weight, Y kilograms, of nails sold loose is a continuous random variable with probability density function f given by:   − 2( y 1) ≤ ≤ = 1 y 6 f (y)  25 0 y < 1ory > 6 a Find the probability that the weight of nails sold loose on any shopping day will be between 4 kg and 5 kg. SAMPLEb Calculate the expected money received on any shopping day from the sale of this size nail in the store.

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard P1: FXS/ABE P2: FXS 0521665175c17.xml CUAU030-EVANS August 27, 2008 6:57

632 Essential Mathematical Methods3&4CAS

5 The continuous random variable X has the probability density function f ,where:   − (x 2) ≤ ≤ = 2 x 4 f (x)  2 0 x < 2orx > 4

By first expanding (X − c)2,orotherwise, find two values of c such that:

Review 2 E[(X − c)2] = 3 6 Awholesaler sells material offcuts in5mlengths. The amount, in metres, of unusable material are the values of a random variable, X, with probability density function: k(x − 1)(3 − x)1≤ x ≤ 3 f (x) = 0 x < 1orx > 3 a Show that k = 0.75. b Find the mean and variance of X. c Find the probability that X is greater than 2.5 m. 7 The continuous random variable X has probability density function f ,where:   k 0 ≤ x ≤ 4 = + 3 f (x) 12(x 1) 0 x < 0orx > 4

a Find k. AS C b Evaluate E(X + 1). Hence, find the mean of X.

C c Use your calculator to verify your answer to part b. A R L O CU LAT d Find the value of c > 0 for which Pr(X ≤ c) = c. 8 The yield of a variety of corn has probability density function:  kx 0 ≤ x < 2 f (x) = k(4 − x)2≤ x < 4  0 x < 0orx > 4 a Find k. b Find the expected value, , and variance of the yield of corn. c Find the probability Pr(|X − | < 1). d Find the value of a such that Pr(X > a) = 0.6, giving your answer correct to one SAMPLEdecimal place.

Cambridge University Press • Uncorrected Sample Pages • 2008 © Evans, Lipson, Jones, Avery, TI-Nspire & Casio ClassPad material prepared in collaboration with Jan Honnens & David Hibbard