Docsity

Probability and Statistics: Discrete Random Variables, Summaries of Mathematics

Partial preview of the text

Download Probability and Statistics: Discrete Random Variables and more Summaries Mathematics in PDF only on Docsity!

Introduction to Probability

and Statistics

Slides

- Chapter

Ammar M. Sarhan

[email protected]

Department of Mathematics and Statistics,

Dalhousie University^ Fall Semester 2008

Dr. Ammar M. Sarhan

Chapter 3

Discrete Random

Variables

and

Probability Distributions

Dr. Ammar M. Sarhan

3.1 Random Variables

  • Experiment: testing two components

(D=defective, N=non-defective)

  • Sample space:
S={DD,DN,ND,NN}

In a statistical experiment, it is often very important to allocatenumerical values to the outcomes. Example: • Let X = number of defective components.• Assigned numerical values to the outcomes are: Notice that, the set of all possible values of the variable X is {0, 1, 2}.

Dr. Ammar M. Sarhan Random Variable

For a given sample space

S^

of some experiment, a

random variable is

any

rule (function) that associates a real number with each outcome in

S.

Notation:

"^
X^

" denotes the random variable. "^ x

" denotes a particular value of the random variable

X.

Bernoulli Random Variable

Any random variable whose only possible values are

^0

and

^1

is called

a^ Bernoulli random variable.

Dr. Ammar M. Sarhan

3.2 Probability Distributions for Discrete Random Variables

Probability Distribution

The

probability distribution or probability mass function (pmf) of a discrete rv

X

is defined for every number

x^

by

(^

)^

(^

) x

X P x s X S s P x

p^

=

=

∈

=^

) ( :

all ) (

The probability mass function,

p (

x ), of a discrete random variable X

satisfies the following:

(^

)^

. 0

) (^

≥

=^

x X P x p

. 1 ) (^

=

∑ xall

x p

Note:

.)

(

) (

) (

∑

∑

∈

∈

=

=

=^

Ax all

Ax all

x X P x p A P

Dr. Ammar M. Sarhan

Parameter of a Probability Distribution

¾Suppose that

p(x)

depends on a

quantity

that can be assigned any

one of a number of possible values, each with different valuedetermining a different probability distribution. ¾Such a quantity is called a

parameter of the distribution

¾The collection of all distributions for all different parameters is calleda

family

of distributions.

Example:

For 0<

a^

Each choice of

a^

yields a different pmf.

⎧ ⎪ ⎨ ⎪⎩

= =

−

otherwise

x if

a

x if a

a x p

0

(^01)

1 ) ; (

Dr. Ammar M. Sarhan

Probability Distribution for the Random Variable

X

A probability distribution for a random variable

X:

x^

-^ -^ -^

0

1

4

6

P(X=x)

Find: 1)F(x)2)P(X > 0)3)P(-

≤^

X^ ≤^ 1)

4)P(-

≤^

X < 1)

5)P(-2 < X

≤^

6)P(-3 < X < 1)

x^

-^ -^ -^

0

1

4

6

F(x)

1)^

F(x)

= 1- P(X

≤^

  1. =1 - F(0) = 1 - 0.66 = 0.

= P(-

≤^

X^

≤^ 1) = F(1) – F(-2-) = F(1) – F(-3) = 0.

= P(-

≤^

X < 1) = F(1-) – F(-2-) = F(0) – F(-3) = 0.

= P(-2 < X

≤^

  1. = F(1) – F(-2)

= F(1) – F(-2) = 0.

= P(-3 < X < 1) = F(1-) – F(-2) = F(0) – F(-2) = 0. 37

Dr. Ammar M. Sarhan

x^

-^ -^ -^

0

1

4

6

F(x)

x^

-^ -^ -^

0

1

4

6

P(X=x)

6 5 4 3 2 1 0

1.0 0.5^ 0.

F(x)

Dr. Ammar M. Sarhan

Sample point

Value of X (x)

Probability

HH

2

P(HH) = P(H) P(H) = 1/

×1/3=1/

HT

1

P(HT) =P(H) P(T) =1/

×2/3 = 2/

TH

1

P(HT) = P(H) P(T) =1/

×2/3 = 2/

TT

0

P(TT) = P(T) P(T) = 2/

×2/3 = 4/

The possible values of X are:

0, 1, and 2.

X is a discrete random variable.^ (X=x)

p(x) = P(X=x)

(X=0)={TT}

4/

(X=1)={HT, TH}

2/9 + 2/9 =4/

(X=2)={HH}

1/

X^

0

1

2

Total

P(X=x)

4/

4/

1/

1.

Probability distribution of the X

Tossing a non-balance coin 2 times independently. Sample space:

S={HH, HT, TH, TT}.

Suppose P(H) = ½ P(T)

P(H) =1/3 and P(T)=2/3.

Let X= number of heads

Example

Dr. Ammar M. Sarhan

P(X<1) = P(X=0)=4/
= F(1-) = F(0) =4/
P(X
≤1) = P(X=0) + P(X=1) = 4/9+4/9 = 8/
= F(1) = 8/
P(X
≥0.5) = P(X=1) + P(X=2) = 4/9+1/9 = 5/
= 1-F(0.5-) = 1-F(0) = 1-4/9 = 5/
P(X>8) = P(

φ) = 0 =1-F(8) = 1-1 = 0

P(X<10) = P(X=0) + P(X=1) + P(X=2) = P(

S) = 1
= F(10) = 1

X^

0

1

2

F(x)

4/

8/

9/

F(x)

⎧ ⎪⎪ ⎨ ⎪ ⎪⎩

≤

< ≤

< < ≤

=

x x x x

x F

2 if

1

2

1 if (^9) / 8

1

0 if (^9) / 4

0

if

0 ) (

Dr. Ammar M. Sarhan

N(X=0)={0D and 2N} = N(X=1)= {1D and 1N} = N(X=2)={2D and 1N} =^ P(X=0)=

P(X=1)=
P(X=2)=

Dr. Ammar M. Sarhan

The probability distribution of X p ( x ) =

,^ x

p(x) = P(X=x)^ Hypergeometric Distribution

0,^

otherwise.

Dr. Ammar M. Sarhan

The Expected Value of a Function

If the rv

X^

has the set of possible values D and pmf

p (

x ), then the

expected value of any function

h (

x ), denoted E[h(X)] or (

μh(X)

) is

.) ( ) (

)] ( [^

) (^

∑∈

⋅

=

=^

Dx

Xh

x p x h X h E

μ

Rules of the Expected Value^ E[

aX

+^

b ] =

a^

·^ E(
X ) +

b

  1. For any constant

a,

E[

aX

] =

a^

·^ E(
X )
  1. For any constant

b,

E[

X + b

] = E(
X ) +

b

Dr. Ammar M. Sarhan

20

The Variance and Standard Deviation

Let

X

have pmf

p (

x ) ,

and expected value

μ.^

Then the

variance

of

X,

denoted

V(X)

(or

or

(^2) σ ) ,^ is

.) ( )

(

] )

[( ) (^

2

2

∑∈

⋅ −

=

−

=^

Dx

x p x X E X V

μ

μ

(^2) X

The

standard deviation

(SD) of

X^

is

(^2) X

X

σ^