Docsity

Continuous Random Variables: Probability Density Functions, Expectation, and Variance - Pr, Study notes of Statistics

Toggle sidebar
bg1
IME 2610 - Chapter 5 page 1
Continuous Random Variables
A random variable X is said to be continuous if:
1) it can take on an infinite number of possible values
associated with intervals of real numbers, and
2) if there is a function f(x) such that:
a) f(x) ≥ 0, for all x
b)
()
dxxf
∫
∞
∞−
=
()
dxxf
boundupper
boundlower
∫ = 1
c) P(a ≤ X ≤ b) =
()
dxxf
b
a
∫
f(x) is called the probability density function (p.d.f.) of X.
IME 2610 - Chapter 5 page 2
For a continuous random variable X,
P(X = a) = ∫
a
a
f(x)dx = 0
for any value of a.
Does this rule out a as a possible value of X?
Recall that the cumulative distribution function for a random
variable X is defined as:
F(b) = P(X ≤ b)
If X is a continuous random variable with p.d.f f(x), then
F(b) =
()
dxxf
b
∫
∞
−
= ∫
b
boundlower
f(x)dx
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Continuous Random Variables: Probability Density Functions, Expectation, and Variance - Pr and more Study notes Statistics in PDF only on Docsity!

IME 2610 - Chapter 5

page 1

Continuous Random Variables

A random variable X is said to be continuous if:

it

can

take

on

an

infinite

number

of

possible

values

associated with intervals of real numbers, and

if there is a function

f

( x

) such that:

a)

f (

x

)^

0, for all

x

b)

dx x f

dx x f bound upper

bound lower

∫^

c)

P(

a

X

b

dx x f

b ∫ a

f (

x ) is called the

probability density function

p.d.f.

) of X.

IME 2610 - Chapter 5

page 2

For a continuous random variable X,

P(X =

a

a ∫ a

f(x)dx

for any value of

a

Does this rule out

a

as a possible value of X?

Recall that the cumulative distribution function for a randomvariable X is defined as:

F(

b

) = P(X

b

If X is a continuous random variable with p.d.f

f (x), then

F(

b

dx x f

b ∫∞−

b ∫ bound lower

f(x)dx

IME 2610 - Chapter 5

page 3

Expectation of a Continuous Random Variable

The expectation of a continuous random variable X, having p.d.f.

f

( x

), is given by:

E(X) =

dx x

xf

(^

bound ∫

upper

bound lower

dx x xf

) (^

μ

If

g

( x

) is any real-valued function of a continuous random

variable X, then

E[

g

(X)] =

dx x f x g

(^

bound ∫

upper

bound lower

dx x f x g

) ( ) (

For constants

a

and

b

: E(

a

X +

b

a

E(X) +

b

Same with discrete random variables!

IME 2610 - Chapter 5

page 4

Variance of a Continuous Random Variable

The variance of a continuous random variable X:

2 X σ

= V(X) = E(X -

μ

= E(X - E(X))

2

dx x f

x bound upper

bound lower

) ( )

(^

2

∫^

−

μ

Alternatively:

2 X σ

= V(X) = E(X

2 ) – [E(X)]

2

= E(X

μ

2

For constants

a

and

b

: V(

a

X +

b

a

2 V(X)

Same with discrete random variables!

IME 2610 - Chapter 5

page 7

Normal Distribution

The most important probability distribution you will everencounter!The Normal distribution is the basis for most statistical tools. Normal p.d.f.

(^2) ] /)

)[( 2 / 1 (

(^

σ μ−

− π

σ

x

e

x f^

x

Expected Value

:^

E(X) =

μ

Variance

:^

V(X) =

σ

2

std. dev. =

σ

The shape of the Normal probability density function is definedby its two parameters,

μ

and

σ

IME 2610 - Chapter 5

page 8

A very important property of the Normal distribution is that anylinear function of a Normally distributed random variable is alsonormally distributed.For example, if X has a Normal distribution with:

E(X) =

μ

X

and V(X) =

2 X σ

and:

Y =

a

X +

b

,^

(where

a

and

b

are constant)

then Y is also Normally distributed, with:

E(Y) =

a

μ

X

b

and

V(Y) =

a

2

2 X σ

Standard Normal Distribution

Consider the random variable Z, where Z ~ N(

μ

σ

Z is called a Standard Normal Random Variable Let's verify the Expected Value and Variance of the StandardNormal Distribution.

IME 2610 - Chapter 5

page 9

Standard Normal Distribution

Expected Value

:^

E(Z) =

∞ ∫∞−

− π

dz

e

z

z^

(^2) / 2

∞ ∫∞−

−

π

dz

ze

z^

(^2) / 2

π

−^

(^2) / 2

z ze

Variance

:^

V(Z) = E(Z

2 ) - E(Z)

2

E(Z

∞ ∫∞−

−

π

dz

e z^

z^

(^2) /

2

2

∞ ∫

−

π

0

(^2) /

2

2

dz

e z^

z

If we let

u

z

2

and

du

zdz

then:

E(Z

∞ ∫

−

π

0

(^2) /

(^2) / 1

du

e

u

u

(^2) / 3

3 2

π

12

12 (^2) / 3

π

V(Z) = E(Z

2 ) - E(Z)

2

IME 2610 - Chapter 5

page 10

Standard Normal Transformations

For any random variable X, where X~ N(

μ

,^

σ

Z =

σ

μ − X

~ N(0, 1)

Note that his can be rewritten as:

X = Z

σ

μ

Which implies that: E(X) = E(Z

σ

μ

σ

E(Z) +

μ

μ

μ

and

V(X) = V(Z

σ

μ

σ

2 V(Z) =

σ

2

To calculate probabilities, the Standard Normal Transformationis much easier to use than the

p.d.f

. or

c.d.f.

IME 2610 - Chapter 5

page 13

Sample Mean and Variance

We have used:

E(X) =

μ

to denote the (population)

mean

value of a

random variable

X

and

V(X) = E(X-

μ

σ

2

to denote the (population)

variance

Let

x

i^ denote the

i

th

possible population value of X.

Then if the random variable can take on only N values withprobability 1/N, then the mean becomes:

E(X) =

μ

1

N

N

xi

∑ i =

and the variance becomes:

V(X) =

2

1

N

N

(^

x i

i

μ

IME 2610 - Chapter 5

page 14

Sample Mean and Variance

For a sample of size

n

, the sample mean is:

x

n

x i n i

1

( x

i^ now represents the

i

th

sample observation)

Through examples, we can show that the sample mean tends tocenter around the population mean.This implies that the

sample mean

is a good estimate of the

population mean

x

is a good estimate of

μ

IME 2610 - Chapter 5

page 15

Sampling Distribution of the Sample Mean

The probability distribution of a statistic is called its samplingdistribution.If

X

X

X

n^

are random variables with E(

X

) = i

μ

i^ and V(

X

) = i

σ

(^2) i and the random variable

Y

is:

Y

c

X 1

1

c

X 2

2

c

Xn

n

then,

E(

Y

c

μ 1

1

c

μ 2

2

c

μ n

n

And if

X

X

X

n^

are independent random variables, then,

V(

Y

c

(^21) σ

(^21)

c

(^22) σ

(^22)

c

(^2) n σ

(^2) n

Furthermore, if

X

X

X

n^

are independent Normal random

variables, then Y is a Normal random variable.

IME 2610 - Chapter 5

page 16

Let

X

i^ denote the random variable corresponding to the

i

th

sample observation.From our definitions, the sample mean, X, is a random variable,since it is the sum of

n

random variables:

n ∑= i

i X

n

1

1

X

Since this is a linear function, the mean of X is then:

X

n i

X

n i

i^

n

X

n

μ = μ = μ =

=

=

1

1

X

E(

X

E(

where E(

X

) = i

μ

X

Now if the sampled observations were selected independentlythen:

n

n n n X n X n

X

X

n i

n i

i

n i

i

2

(^22)

1

2 2 1 2 1 2

1 ) ( V 1 V 1 = ) X

V(

σ = σ = σ = =

=

=

=

IME 2610 - Chapter 5

page 19

Normal Approximation of a Binomial Variable Due to the

Central Limit Theorem

(to be discussed later), it can

be shown that the Normal distribution can be used toapproximate the Binomial and Poisson distributions.If

X

is a

Binomial random variable

, with E(

X

np

and V(

X

np

( 1 - p

), then

1 (^

p

np

np

X

Z

is approximately a

Standard Normal random variable.

The Normal approximation to the Binomial is best when

n

is

large relative to

p

Rule of thumb

:^

we can be confident in the approximation if:the variance is at least 10, i.e., np(1-p)

(another common rule:

if

np

> 5 and

n

( 1 - p

IME 2610 - Chapter 5

page 20

Sampling Distributions- Population Proportion Collect a random sample of

n

observations from a population

and let X be the number of observation which belong to thesame class.^ X

X n

P

is

a

point

estimator

of

the

proportion

of

the

population,

π

,^

belonging to this class.

For n large,

P

is approximately Normal with mean

π

and

variance

π

π

n

. Why?

Recall that Normal approximation works well if

p

is not too

close to 0 or 1 and if

np

and

n(1 - p)

are

5 or

np(1 - p)

This implies that

P

~ N(

π

,^ π

π

)/n) and Z

0

~ N(0, 1), where:

(^

)

n p

Z

π −

π

π −

0