Docsity

Lecture Notes on Continuous Random Variables | MATH 329, Study notes of Probability and Statistics

Toggle sidebar
bg1
Dr. Neal, WKU
MATH 329 Continuous Random Variables
Throughout, let
Ω
be a sample space with a defined probability measure
P
.
Definition. A continuous random variable is a real-valued function
X
defined on
Ω
such
that the theoretical range of
X
is an interval (or perhaps just all rational numbers within
an interval).
Example 1. (a) Let
Ω
= [2, 4]. Pick a real number at random from
Ω
and let
X
be the
square of its value. Then
X
can be any real number in [4, 16] and
X
is a continuous
random variable.
(b) Let
Ω
be a collection of all manufactured 100-watt light bulbs. Define
X
on
Ω
to be
the lifetime in hours of bulb measured from the first attempted usage. Theoretically
some may be defective and burn out immediately, and others may last indefinitely;
so in theory we have Range
X
= [0, ∞).
PDF
Every continuous random variable
X
has a probability density function (pdf) f
X(x)
that
is defined over the range of
X
. This pdf may or may not actually be known explicitly;
but any such pdf satisfies the following properties:
(i) f
X(x)>0
for
x
∈
Range
X
, and f
X(x)=0
otherwise
(ii) fX(x)dx
−∞
∞
∫=fX(x)dx
RangeX
∫=1
(iii) For [a,b]⊆ Range
X
, P(a≤X≤b)=fX(x)dx
a
b
∫
Moreover, any function f that satisfies (i) and (ii) can be considered a pdf for an
(unknown) random variable
X
for which Property (iii) can then be applied. Essentially,
a pdf curve is used to model how the values of
X
are distributed over its range.
Later we will see some well-defined continuous distributions that are well-defined
and that have specifically known pdf curves, namely the uniform, the exponential, and
the normal distributions. But for now we will discuss the generic properties of
continuous random variables, pdf's, cdf's, expected value, and variance.
First, we note that with a continuous random variable
X
it is always the case that
for a single point
c
, we have P(X=c)=0:
P(X=c)=P(c≤X≤c)=fX(x)dx
c
.
This integral value is 0 because it represents the area of a line segment under the curve
f
X
over the point
c
and a line segment has no area. But intuitively, the probability is 0
because it represents the chance of picking a single point out of infinite possibilities.
now because probabilities of single measurements are 0, we always have
P(c≤X≤d)=P(c≤X<d)=P(c<X<d)=P(c<X≤d).
pf3
pf4
pf5
pf8

Partial preview of the text

Download Lecture Notes on Continuous Random Variables | MATH 329 and more Study notes Probability and Statistics in PDF only on Docsity!

MATH 329 Continuous Random Variables

Throughout, let Ω be a sample space with a defined probability measure P.

Definition. A continuous random variable is a real-valued function X defined on Ω such that the theoretical range of X is an interval (or perhaps just all rational numbers within an interval).

Example 1. (a) Let Ω = [2, 4]. Pick a real number at random from Ω and let X be the square of its value. Then X can be any real number in [4, 16] and X is a continuous random variable.

(b) Let Ω be a collection of all manufactured 100-watt light bulbs. Define X on Ω to be the lifetime in hours of bulb measured from the first attempted usage. Theoretically some may be defective and burn out immediately, and others may last indefinitely; so in theory we have Range X = [0, ∞).

PDF

Every continuous random variable X has a probability density function (pdf) f (^) X (x ) that is defined over the range of X. This pdf may or may not actually be known explicitly; but any such pdf satisfies the following properties:

(i) f (^) X (x ) > 0 for x ∈ Range X , and f (^) X (x ) = 0 otherwise

(ii) f (^) X (x ) dx − ∞

∞

∫ =^ f^ X (^ x)^ dx

RangeX

∫ =^1

(iii) For [a, b] ⊆ Range X , P(a ≤ X ≤ b) = f (^) X ( x) dx a

b

Moreover, any function f that satisfies (i) and (ii) can be considered a pdf for an (unknown) random variable X for which Property (iii) can then be applied. Essentially, a pdf curve is used to model how the values of X are distributed over its range. Later we will see some well-defined continuous distributions that are well-defined and that have specifically known pdf curves, namely the uniform, the exponential, and the normal distributions. But for now we will discuss the generic properties of continuous random variables, pdf's, cdf's, expected value, and variance.

First, we note that with a continuous random variable X it is always the case that for a single point c , we have P(X = c) = 0 :

P(X = c) = P(c ≤ X ≤ c) = f (^) X (x )dx c

c

∫ =^0.

This integral value is 0 because it represents the area of a line segment under the curve f (^) X over the point c and a line segment has no area. But intuitively, the probability is 0 because it represents the chance of picking a single point out of infinite possibilities. now because probabilities of single measurements are 0, we always have

P(c ≤ X ≤ d ) = P(c ≤ X < d ) = P(c < X < d) = P(c < X ≤ d).

CDF

Let X be a continuous random variable defined on a sample space Ω. The function FX : ℜ → ℜ giving the accumulated probability up to t defined by

FX (t ) = P(X ≤ t ) = f (^) X (t) dt − ∞

t

is called the cumulative distribution function or cdf of X.

When the Range X is a finite interval [a, b], then FX (t ) = 0 for t < a and FX (t ) = 1 for t ≥ b. Also,

P(c ≤ X ≤ d ) = P( X ≤ d ) − P(X < c) = P(X ≤ d) − P(X ≤ c) = FX (d) − FX (c).

Quantiles and Percentiles (Inverse Cumulative Probability)

Definition. Given a probability value p , the p – quantile , or (100× p )th percentile , of a continuous random variable X is the value π (^) p such that P(X ≤ π (^) p ) = p.

For instance, the 95 th percentile is the 0.95–quantile, denoted π (^) 0.95 .so that P(X ≤ π0.95 ) = 0.95. In particular, the median is the 0.50–quantile or the 50th percentile.

Expected Value, Variance, and Standard Deviation

As with discrete random variables, we shall need to compute the expected value (i.e., mean or average ) of a continuous random variable X. This value is computed with the pdf by

= E[ X] = x f (^) X ( x) dx RangeX

We also can compute the average of a function of X. For a continuous function g , we have

E[g( X)] = g(x ) f (^) X (x ) dx Range X

and in particular E[ X^2 ] = x^2 f (^) X (x ) dx RangeX

The variance of a continuous random variable X is defined by

(^2) = E[( X − ) (^2) ] = (x − ) (^2) f X (^ x)^ dx RangeX

(b) For 2 ≤ t ≤ 4 , the accumulated probability up to t is

P(X ≤ t ) =

x^2

dx 2

t

∫ = −^

x (^2)

t = −

t

t

Thus the cdf of X is given by

FX (t ) = P(X ≤ t ) =

0 if t < 2

2 −

t

if 2 ≤ t ≤ 4

1 if t ≥ 4

Prob = 1

(c) Using the cdf, we have

(i) P(X ≤ 3.0) = 2 −

(ii) P(X ≥ 3.6) = 1 − P(X < 3.6) = 1 − 2 −

(iii) P(2.4 ≤ X ≤ 3.2) = P( X ≤ 3.2) − P(X ≤ 2.4) = 2 −

(d) To find the median, or π (^) 0.50 , we must solve for t in the equation P(X ≤ t ) = 0..

That is, we must solve 2 − 4 / t = 0.50 or 3 / 2 = 4 / t , which gives t = 8 / 3 = 2.66. Thus

the median is 2.66 and is shown on the pdf and cdf curves below.

Area under pdf = 1/

Cum. Prob

(e) The average GPA of these students is

= E[ X] = x f (^) X ( x) dx RangeX

∫ =^ x^ ×^

2 x^2

4

∫ dx^ =^

2 x

4

∫ dx

= 4ln x 24 = 4(ln4 − ln2) = 4ln(4 / 2) = ln2 4 = ln16 ≈ 2.7726.

Also, E[ X^2 ] = x^2 ×

2 x^2

4

∫ dx^ =^4

2

4

∫ dx^ =^ 4(4^ −^ 2)^ =^8 ; thus, the variance is

(^2) = E[X 2 ] − (E[ X]) (^2) = 8 − ( (^) ln16) 2

and the standard deviation of the GPAs of these students is = 8 − (^ ln16)^2 ≈ 0..

Properties of the CDF

Let FX (t ) = P(X ≤ t ) be the cdf of a continuous random variable. Then

(i) For all t ∈ℜ , 0 ≤ F(t ) ≤ 1. (ii) F(t) is an increasing function of t.

(iii) lim t →−∞

F(t) = 0 and lim t →∞

F (t ) = 1. (iv) For c ≤ d , P(c ≤ X ≤ d ) = FX (d ) − FX (c ).

(v) F(t) is right-continuous. That is, lim t → c+^

F (t ) = F(c) for all c ∈ℜ.

(vi) If f (^) X is the pdf of X , then f (^) X (x ) = FX′ (x ).

Properties of Expected Value

Let X and Y be continuous random variables.

(i) E[c X ] = cE [ X ] for any constant c

(ii) E[ X + Y ] = E[ X] + E[Y ].

(iii) If X ≥ 0, then E[ X ] ≥ 0. In particular, E[ Z^2 ] ≥ 0 for any random variable Z.

(iv) If X and Y are independent, then E[ X Y ] = E[ X] × E[Y ].

Because the random variable ( X − )^2 is non-negative, its expected value is non-

negative by Property (iii). That is, Var X(^ ) = E[( X − )^2 ] ≥ 0 , which allows us to define

the standard deviation of X by = Var(X). As already used in Example 2, we have:

Theorem. Let X be a continuous random variable. Then Var X( ) = E[X 2 ]− ( E X[ ]) 2 .

Proof. Using the linearity properties of expected value, we have

Var X(^ ) = E[( X − )^2 ]

= E[ X^2 − 2 X + 2 ]

= E[ X^2 ] − 2 E[X ] + E[ 2 ] = E[ X^2 ] − 2 2 + 2

= E[ X^2 ] − 2.

(c) Using the cdf, we have

P X(^ ≥ 500 ) = 1 − P(X ≤ 500)

= 1 − (1 − e(ln(0.50)/400)^ ×^500 ) = eln(0.50)^ ×5/4^ = (0.50)5/4^ ≈ 0..

(d) Here we want the value t for which FX (t ) = 0.90. Thus we must solve for t in the

equation 1 − e(ln(0.50)/400)^ ×^ t^ = 0.90. Doing so, we obtain t =

400ln(0.10) ln(0.50)

≈ 1320.77 hrs.

(e) The average remaining lifetime is

= x f (^) X (x ) dx Range X

∫ =^ x^ ×^ k e

−kx 0

∞

∫ dx

= − x e−kx^ −

k

e−^ kx

0

∞ = (0 − 0) − (0 −

k

k

ln(0.50)

≈ 577.078 hrs.

Also, E[ X^2 ] = x^2 × k e−^ kx 0

∞

∫ dx

= − x^2 e−kx^ −

2 x k

e−kx^ −

k 2

e−kx

0

∞ = (0 − 0 − 0) − (0 − 0 −

k 2

k^2

thus, 2 =

k^2

k

2

k^2

and =

k

≈ 577.078 hours also.

From the properties of the cdf, we have f (^) X (x ) = FX′ (x ). Thus the cdf also completely determines the distribution of a continuous random variable X and allows us to find the pdf.

Example 4. Let X have cdf FX (t ) =

0 if t ≤ 2 1 32

(t^2 − 4) if 2 ≤ t ≤ 6

1 if t ≥ 6

Then FX′ (x ) = t / 16 for 2 ≤ t ≤ 6. So X has pdf f (^) X (x ) =

x / 16 for 2 ≤ x ≤ 6 0 elsewhere

. It is easy

to verify that E[ X ] = x^2 /16 dx 2

6

∫ =^ 4.3 3^ ,^ Var(^ X)^ =^ 11/ 9, and^ π^ 0.50 =^20 ≈^ 4.^.

Exercises

  1. Let X be a random variable with range [4, 25] and pdf f ( x) = Cx1/2^ for 4 ≤ x ≤ 25.

(a) Solve for C. (b) Give the cdf as a function of all t.

(c) Compute P(9 ≤ X < 16).

(d) Derive the median of X.

(e) Derive the expected value and standard deviation of X.

  1. Let X be a random variable with range [1, ∞) and pdf f ( x) = C / x 4 for x ≥ 1.

(a) Solve for C. (b) Give the cdf as a function of all t.

(c) Compute P(X ≥ 2) and P(2 ≤ X < 4).

(d) Find the 75th percentile of X.

(e) Derive the expected value and standard deviation of X.

  1. Let X have pdf f (^) X (t) =

1/ 2 if 0 ≤ x ≤ 1 1/ 2 if 2 ≤ x ≤ 3 0 elsewhere

(a) By simply observing the distribution of X with the graph of the pdf, what is the average value of X.

(b) Derive the cdf of X.

  1. Let X and Y be random variables with cdf's

FX (t ) =

0 if t ≤ 0

2 t − t 2 if 0 ≤ t ≤ 1 1 if t ≥ 1

and FY (t ) =

0 if t ≤ 0 sin t if 0 ≤ t ≤ π / 2 1 if t ≥ π / 2

(a) Give the pdf's of X and Y. (b) Derive the medians of X and Y and show them on graphs of both the pdf and cdf of X and Y.