1

CHAPTER:CONTINUOUS RANDOM VARIABLES

Contents

0Introduction

1Probability Density Function, f(x)

2Expectation, E(X), and Variance, Var(X)

3Cumulative Distribution Function, F(X)

4Mode and Median, Upper and Lower Quartiles

5Obtaining the probability density function from the cumulative distribution, f(x) = F’(x)

6Obtaining the probability density function or cumulative distribution function of Y = f(X)

7The Rectangular or Uniform Distribution

8Miscellaneous Examples

 0 Introduction

If a sample space contains an infinite and uncountable number of possibilities equal to the number of points on a line segment, it is called a continuous sample space. A random variable defined in this sample space is called a continuous random variable.

 1 Probability Density Function, f(x)

A continuous random variable is specified by its probability density function written as f(x).

If X is a continuous random variable with probability density function f(x) valid over the range a  x  b,then

a)all x f(x) dx = 1 y

i..e. = 1since a  x  b y = f(x)

or the area under the curve y = f(x)

between a and b is 1. 0 a b x

b)If a  x1 x2 b then P(x1 X  x2) = y

P(x1 X  x2) is given by the area under the curve y = f(x)

y = f(x) between x1 and x2.

0 a x1 x2 b x

Note:

  • The area under the curve y = f(x) represents probability.
  • f(x)  0 for all x 
  • P(a  x  b) = P(a  x < b) = P(a < x  b) = P(a < x < b) since P(X = x ) is very small and negligible.

Example 1.1

A continuous random variable has probability density function f(x) where f(x) = kx, 0  x  4.

a)Find the value of the constant k,

b)Sketch y = f(x).

c)Find P(1  X  2.5). [ , 0.328]

Solution

Example 1.2

The continuous random variable X has probability density function f(x) where f(x) = kx2, 0  x  2.

a)Find the value of the constant k.

b)Sketch y = f(x)

c)Find P(X  1)

d)Find P(0.5  X  1.5). [ , ]

Solution

Example 1.3

A continuous random variable X has probability density function f(x) where f(x) =

a)Find the value of the constant k.

b)Sketch the curve y = f(x)

c)Find P( X  2). [ , ]

Solution

 2 Expectation, E(X), and Variance,Var(X).

If X is a continuous random variable with probability density function f(x),

then the expectation of X is E(X) where E(X) =all x xf(x) dx.

E(X) is often denoted by  and referred to as the mean of X.

If g(x) is any function of the continuous random variable X having probability density function f(x),

then E[g(X)] = all x g(x)f(x) dx.

In particular E(X2) = all x x2f(x) dx

Note: E(a) = awhere a is a constant

E(aX) = a E(X)

E(aX + b) = a E(X) + bfor a, b constants

E(X1 + X2) = E(X1) + E(X2)for any X1 , X2 random variables

E[f1(X) + f2(X)] = E[f1(X)] + E[f2(X)]for any 2 functions f1 and f2 of X

E[f1(X) - f2(X)] = E[f1(X)] - E[f2(X)]

If X is a continuous random variable with probability density function f(x)

then variance of X, Var(X)= E[(X -)2]

= E(X2) - 2

= all x x2f(x) dx - 2where  = E(X) = all x xf(x) dx.

The standard deviation of X ,  =

Note:Var(a)= 0

Var(aX)= a2Var(X)

Var(aX + b)= a2Var(X) where a and b are constants.

Var(X1 + X2)= Var(X1) + Var(X2) if X1 and X2 are independent random variables.

Example 2.1

If continuous random variable X has probability density function f(x) =(3 - x)(x - 5), 3  x 5,

find E(X).[4]

Solution

Example 2.2

A continuous random variable X has probability density function defined by f(x) =

where c is a positive constant. Find

a)c

b)the mean of X

c)a, for there to be a probability of 0.85 that a randomly observed value of X will exceed a. [ , 2.6, 1.5]

Solution

Example 2.3

The continuous random variable X has probability density function f(x) where f(x) =

Find a) E(X)

b) E(X2) [ , ]

Solution

Example 2.4

The continuous random variable X has probability density function given by f(x) =

a)Sketch y = f(x)

b)Find E(X)

c)Find E(X2)

d)Find the standard deviation  of X .[ ,, 1.008]

Solution

Example 2.5

The continuous random variable X has probability density function f(x) = (1 + x2), 0  x  1.

If E(X) =  and Var(X) = 2 , find P( | X -  | < ). [ 0.583]

Solution

 3 Cumulative Distribution Function, F(X)

If X is a continuous random variable with probability density function f(x) defined for a  x  b, a, b ,

then the cumulative distribution function is given by F(t) where

y

F(t) = P(X  t) = y=f(x)

Note: F(t)

  • F(x) is a monotone increasing function.
  • F(b) = = 1 where a < x < b 0 a t b x
  • If f(x) is valid for - < x < , then F(t) =, where the interval is taken for x  t.
  • F(-) = 0 and F() = 1.
  • P(x1 X  x2) = = - = F(x2) - F(x1)
  • P(X  b) = 1 - P(X < b) = 1 - F(b)

Example 3.1

A continuous random variable X had probability density function f(x) where f(x) =

Find the cumulative distribution function of X and sketch F(x). [F(x) = ]

Solution

Example 3.2

A continuous random variable X had probability density function f(x) where f(x) =

Find a) k

b)F(x) and sketch the graph of y = F(x)

c)P(0 < x < )[ , F(x) = , ]

Solution

 4 Mode and Median, Upper and Lower Quartiles

The mode is the value of X for which f(x) is greatest, in the given range of X.

It is usually necessary to draw a sketch of y = f(x).

For some probability density function it is possible to determine the mode by finding the maximum point on the curve y = f(x) from the relationship = 0

The mediansplits the area under the curve y = f(x) into two halves.

So, if the value of the median is m,y

then = 0.5or= 0.5y=f(x)

i.e. P(X  m) or F(m) = 0.5orP(X  m) = 0.5AreaArea

=0.5 = 0.5

0 a m b x

The Upper Quartile QU is defined by F(QU ) = =

The Lower Quartile QL is defined by F(QL) = =

Example 4.1

The continuous random variable X has probability density function f(x) = (2 + x)(4 - x), 0  x  4.

a)Sketch y = f(x)

b)Find the mode. [1]

Solution

Example 4.2

If X is a continuous random variable with probability density function f(x) = x, 0  x  4,

a)find the cumulative distribution function F(x) and sketch the curve y = F(x),

b)find the median m,

c)find P(0.3  X  1.8) [ , 2.83, 0.197]

Solution

 5 Obtaining the probability density function from the cumulative distribution, f(x) = F’(x)

The probability density function can be obtained from the cumulative distribution as follows:

Since F(t) = a  t  b

So, f(x) = F(x) = F’(x)

Example 5.1

The continuous random variable X has cumulative distribution function F(x) =

Find the probability density function of X, f(x), and sketch y = f(x). [ f(x) = ]

Solution

Example 5.2

The continuous random variable X has cumulative distribution function F(x) =

a)Find a and b and sketch F(x)

b)Find and sketch the probability density function f(x)

c)Find the mean  and the standard deviation . [ a = , b = ,  = 1.5,  = 0.957]

Solution

 6 Obtaining the probability density function or cumulative distribution function of Y = f(X)

To find the probability density function or the cumulative distribution function of Y = f(X), we can use the definition dx = 1 or F(x) = P(X < x) and perform the necessary substitution or manipulation.

Example 6.1 (NYJC 00/2/7v modified)

a) Given that the cumulative distribution function of X is F(x) = ,

find the cumulative distribution function of Y where Y = .

b) Given that the probability density function of X is f(x) = ,

find the probability density function of Y where Y = .

[Ans: a) F(y) = b) f(y) = ]

Solution

 7 The Rectangular or Uniform Distribution

A continuous random variable X having probability density function f(x) where f(x) = for a  x  b where a and b are constants, is said to follow a rectangular (or uniform) distribution.

If X is distributed in this way, we write X  R(a, b) y

where a and b are the parameters of the distribution.

The graph of y = f(x) is shown. f(x) =

The shaded region is P(x1 X  x2).

X is a random variable, since

= all x f(x) dx 0 a x1 x2 b x

= dx

= [x] y

= f(x) =

= 1

For a rectangular distribution, the probability of the variable

lying in one particular range of length L is L(). a L  b x

Note: For a rectangular distribution,

  • E(X) = and Var(X) =
  • F(x) =
  • P(x1 X  x2) = where x1, x2 [a,b]
  • The median, m =

Example 7.1

If X R(a, b), find a) E(X)b) Var(X). [ (a + b), (b - a)2]

Solution

Example 7.2

The random variable X has a rectangular distribution over the interval [0,8].

Find the probability density function of Y where Y = .[ y2]

Solution

Example 7.3

A rectangle, with one side of length x cm and perimeter 12 cm, has area A cm2. If X is uniformly distributed between 0 and 2, find the probability density function of A. [ for 0  a  8]

Solution

 8 Miscellaneous Examples

Example 8.1 (ACJC 96/2/7)

A continuous random variable X takes values in the interval

1  x  4. The cumulative distribution function, F(x), of X is

a different linear function in each of the intervals 1  x < 3 and

3  x  4, and takes values 0, 0.5 and 1 corresponding to 1

x = 1, 3 and 4, as shown in the diagram.

a)Write down the cumulative distribution function of X. 0.5

b)State the median of X.

c)Find the probability density function of X and sketch its graph.

d)Show that the expectation, , of X is equal to .0 1 2 3 4

e)Determine the probability that |X - | exceeds 1.

[ b) 3 e)]

Solution

Example 8.2 (NJC 96/2/7 first part)

A circular target of radius 30 cm consists of a “bull” of radius 10 cm, surrounded by two concentric bands each of width 10 cm. Shots landing in the “bull’ score 10 points, those in the inner band, 4 points, and those in the outer band, 1 point. For a particular marksman, the distance in cm from the centre of the target of these shots are denoted by X. Every shot on the target is independent of all other previous shots with a probability of

P(X  x) = x (60 – x) for 0  x  30, where A is a constant. Every shot lands on the target.

a)Show that A is and find the median giving three significant figures to your answer.

b)Find the probability density function f(x) of X

c)Show that the expected score is 7

d)Calculate the probability that three shots score 24 or more points, giving your answer to 3 sig. fig.

[median = 8.79cm, 0.480]

Solution

SUMMARY

1

A continuous random variable is specified by its probability density function written as f(x).

Properties:

a)all x f(x) dx = 1

b)P(x1 X  x2) =

c)The area under the curve y = f(x) represents probability.

d)f(x)  0 for all x 

e)P(a  x  b) = P(a  x < b)

= P(a < x  b)

= P(a < x < b)

Expectation: (a and b are constants)

E(X)= all x xf(x) dx.

E[g(x)]= all x g(x)f(x) dx

E(a)= a

E(aX)= aE(X)

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

E(X1 + X2)= E(X1) + E(X2)

E[f1(x) + f2(x)]= E[f1(x)] + E[f2(x)]

E[f1(x) - f2(x)]= E[f1(x)] - E[f2(x)]

Variance: (a and b are constants)

Var(X)= E[(X -)2] = E(X2) - 2

Var(a)= 0

Var(aX)= a2Var(X)

Var(aX + b)= a2Var(X)

Var(X1 + X2)= Var(X1) + Var(X2) if X1 and X2 are independent random variables.

The standard deviation of X,  =

For a rectangular distribution

a)E(X) = and Var(X) =

b)F(x) = {

c)P(x1 X  x2) = where x1, x2 [a,b]

d)The median, m =

======

Cumulative distribution function of X

a)F(t)= P(X  t) =

b)F(x) is a monotone increasing function.

c)F(b) = = 1 where a < x < b

d)If f(x) is valid for - x ,

then F(t) = where the interval is taken over all values of x  t.

Note that F(-) = 0 and F() = 1.

e)Suppose P(X  x1) = F(x1)

and P(X  x2) = F(x2).

Then P(x1 X  x2) =

= -

= F(x2) - F(x1)

f)P(X  b) = 1 - P(X < b)

= 1 - F(b)

Median

If the value of the median is m,

then = 0.5 or= 0.5

i.e. P(X  m) = 0.5 or P(X  m) = 0.5

f(x) = F(x) = F’(x)

The Upper Quartile QU is defined by

F(QU ) = =

The Lower Quartile QL is defined by

F(QL) = =

======