a probability function is a function which assigns probabilities to the values of a random variable....

47
A probability function is a function which assigns probabilities to the values of a random variable. Individual probability values may be denoted by the symbol P(X=x), in the discrete case, which indicates that the random variable can have various specific values. All the probabilities must be between 0 and 1; 0 P(X=x) 1. The sum of the probabilities of the outcomes must be 1. P(X=x)=1 It may also be denoted by the symbol f(x), in the continuous, which indicates that a mathematical function is involved. Probability Distributions

Upload: sybil-osborne

Post on 30-Dec-2015

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

A probability function is a function which assigns probabilities to the values of a random variable.

Individual probability values may be denoted by the symbol P(X=x), in the discrete case, which indicates that the random variable can have various specific values.

All the probabilities must be between 0 and 1; 0≤ P(X=x)≤ 1.

The sum of the probabilities of the outcomes must be 1.

∑ P(X=x)=1

It may also be denoted by the symbol f(x), in the continuous, which indicates that a mathematical function is involved.

Probability Distributions

Page 2: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Continuous Probability

Distributions

Binomial

Poisson

Probability Distribution

sDiscrete Probability

Distributions

Normal

Page 3: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Example 1.19

Check whether the distribution is a probability distribution.

Solution

# so the distribution is not a probability distribution.

X 0 1 2 3 4

P(X=x) 0.125 0.375 0.025 0.375 0.125

4

0

( ) ( 0) ( 1) ( 2) ( 3) ( 4)

= 0.125+0.375+0.025+0.375+0.125

= 1.025

1

P X x P X P X P X P X P X

Page 4: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Binomial Distribution

An experiment in which satisfied the following characteristic is called a binomial experiment:1. The random experiment consists of n identical trials.2. Each trial can result in one of two outcomes, which we denote by success, S or failure, F.3. The trials are independent.4. The probability of success is constant from trial to trial, we denote the probability of success by p and the probability of failure is equal to (1 - p) = q.Examples:

1. No. of getting a head in tossing a coin 10 times.2. No. of getting a six in tossing 7 dice.3. A firm bidding for contracts will either get a contract

or not

Page 5: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

A binomial experiment consist of n identical trial with probability

of success, p in each trial. The probability of x success in n trials

is given by

The Mean and Variance of X if X ~ B(n,p) are Mean :

Variance :

Std Deviation : where n is the total number of trials, p is the probability

of success and q is the probability of failure.

( ) ; 0,1,2....n x n xxP X x C p q x n

( )E X np

2 ( ) (1 )V X np p npq

npq

Page 6: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Given that (12,0.4), find

a) ( 2)

b) ( 3)

c) ( 4)

d) (2 5)

e) E( )

f) Var( )

X b

P X

P X

P X

P X

X

X

Example 1.20

Page 7: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

12 2 102

12 3 93

12 4 84

a) ( 2) (0.4) (0.6) 0.0639

b) ( 3) (0.4) (0.6) 0.1419

c) ( 4) (0.4) (0.6) 0.2128

d) (2 5) ( 2) ( 3) ( 4)

0.0639 0.1419 0.2128 0.4185

e) ( ) 12(0

P X C

P X C

P X C

P X P X P X P X

E X np

.4)=4.8

f) ( ) 12(0.4)(0.6)= 2.88Var X npq

Page 8: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Cumulative Binomial Distribution

When the sample is relatively large, tables of Binomial are often used. Since the probabilities provided in the tables are in the cumulative form

the following guidelines can be used: P X k

Page 9: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Example 1.21

In a Binomial Distribution, n =12 and p = 0.3. Find the following probabilities.

a)b)c)d)

e)

( 5) 0.8822P X ( 5) ( 4) 0.7237P X P X

( 9) 1 ( 8) 1 0.9983 0.0017P X P X (5 9) ( 9) ( 5)P X P X P X

(3 5) ( 5) ( 2)P X P X P X 0.9998 0.8822 0.1176

0.8822 0.2528 Bin. table

Page 10: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Example 1.22

In August 2009, David and Maria conducted a survey for Fortune magazine to examine CEO`s attitudes toward employee`s personal problems. 30% of the CEOs interviewed felt that personal problems were none of the company`s business. Assume that this result is true for the current population of CEOs. Using the Binomial distribution tables, in a random samples of 15, find the probability that(i)The number of CEOs who hold this view is 10.(ii)The number of CEOs who hold this view is between 9 and 12.(iii)The number of CEOs who hold this view is at most 7.(iv)Find the mean and standard deviation of binomial distribution.

Page 11: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Solution:

i)

ii)

iii)

iv)

( 10)P X

(9 12)P X

( 7)P X

np

npq

Page 12: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Poisson Distribution

Poisson distribution is the probability distribution of the number of successes in a given space*.*space can be dimensions, place or time or

combination of them

Examples:1. No. of cars passing a toll booth in one hour.2. No. defects in a square meter of fabric3. No. of network error experienced in a day.

Page 13: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

A random variable X has a Poisson distribution and it is referred to as a Poisson random variable if and only if its probability distribution is given by

A random variable X having a Poisson distribution can also be written as

( ) for 0,1,2,3,...!

xeP X x x

x

( ) oX P

with ( ) and ( )E X Var X

Page 14: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Example 1.23

Consider a Poisson random variable with . Calculate the following probabilities :

a) Write the distribution of Poisson

b)

c)

d)

3

( 0) P X

( 1)P X

( 1)P X

Page 15: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Solution:

a) Write the distribution of Poisson

b)

c)

d)

Page 16: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Example 1.24

The average number of traffic accidents on a certain section of highway is two per week. Assume that the number of accidents follows a Poisson distribution with mean is 2.

i) Find the probability of no accidents on this section of highway during a 1-week period

ii) Find the probability of a most three accidents on this section of highway during a 2-week period.

Page 17: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Solution:

i)

ii)

( 0)P X

( 3)P X

Page 18: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Poisson Approximation of Binomial Probabilities

The Poisson distribution is suitable as an approximation of Binomial probabilities when n is large and p is small. Approximation can be made when , and either

or Example 1.25

0.9786

30n5np 5nq

Page 19: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Example 1.25

Suppose a life insurance company insures the lives of 4000 men aged 42. If actuarial studies show the probability that any 42 year old man will die in a given year to be 0.001, find the exact probability that the company will have to pay x = 4 claims during a given year.

Page 20: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Solution:

Step:1. Write the distribution of Binomial2. The value for n is large and value of p is too small,

check whether 3. If yes, proceed to solve using Poisson Approximation.

Use formula

~ (4000,0.001)X B

5np

!

xex

Page 21: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Exercise 1.4

1. Given that Find(ans: 0.36, 0.16, 1.0, 0.64, 0.8, 0.48).

2. In Kuala Lumpur, 30% of workers take public transportation. In a sample of 10 workers,i) what is the probability that exactly three workers take public transportation daily? (ans: 0.2668)ii) what is the probability that at least three workers take public transportation daily? (ans: 0.6172)

~ (2,0.4)X B( 0), ( 2), ( 2), ( 1), ( ), ( ).P X P X P X P X E X Var X

Page 22: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

3. Let Using Poisson distribution table, find i) (ans: 0.1550, 0.0655)ii) (ans: 0.9977, 0.9924)iii) (ans: 0.7697)

4. Last month ABC company sold 1000 new watches. Past experience indicates that the probability that a new watch will need repair during its warranty period is 0.002. Compute the probability that:i) At least 5 watches will need to warranty work. (ans: 0.0527)ii) At most than 3 watches will need warranty work. (ans: 0.8571)iii) Less than 7 watches will need warranty work. (ans: 0.9955)

0~ (12).X P

( 8) and ( 8)P X P X ( 4) and ( 4)P X P X

(4 14)P X

Page 23: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Normal Distribution

Numerous continuous variables have distribution closely resemble the normal distribution.

The normal distribution can be used to approximate various discrete probability distribution.

2

2 2

1

2

2

A continuous random variable is said to have a normal distribution

with parameters and , where and 0,

if the pdf of is

1( )

2

is denoted by ~ ( , ) wit

x

X

X

f x e x

X X N

2h   and  E X V X

Page 24: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

CHARACTERISTICS OF NORMAL DISTRIBUTION‘Bell Shaped’ Symmetrical Mean, Median and Mode

are Equal

Location is determined by the mean, μ

Spread is determined by the standard deviation, σ

The random variable has an infinite theoretical range: + to

Mean = Median = Mode

X

f(X)

μ

σ

Page 25: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

By varying the parameters μ and σ, we obtain different normal distributions

Many Normal Distributions

Page 26: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

The Standard Normal Distribution Any normal distribution (with any mean and standard

deviation combination) can be transformed into the standard normal distribution (Z)

Need to transform X units into Z units using

The standardized normal distribution (Z) has a mean of , and a standard deviation of 1,

Z is denoted by

Thus, its density function becomes

0 2 1

~ (0,1)Z N

XZ

Page 27: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Calculating Probabilities for a General Normal Random Variable

Mostly, the probabilities involved x, a normal random variable with mean, and standard deviation,

Then, you have to standardized the interval of interest, writing it in terms of z, the standard normal random variable.

Once this is done, the probability of interest is the area that you find using the standard normal probability distribution.

Normal probability distribution, Need to transform x to z using

2~ ( , )X N X

Z

Page 28: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by
Page 29: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Z table

Example 1.25

Page 30: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Example 1.26

a) Find the area under the standard normal curve of

a) Find the area under the standard normal curve of

(0 1)P Z

( 2.34 0)P Z

Page 31: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Exercise 1.5

Determine the probability or area for the portions of the Normal distribution described.

Answer : a) 0.1736, b) 0.4783, c) 0.8078, d) 0.9812, e) 0.0614

a) (0 0.45)

b) ( 2.02 0)

c) ( 0.87)

d) ( 2.1 3.11)

e) (1.5 2.55)

P Z

P Z

P Z

P Z

P Z

Page 32: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Z table

Example 1.27

Page 33: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Determine such that

a) ( ) 0.25

b) ( ) 0.36

c) ( ) 0.983

d) ( ) 0.89

Z

P Z Z

P Z Z

P Z Z

P Z Z

Exercise 1.6

Page 34: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

a) ( ) 0.25; 0.675

b) ( ) 0.36; 0.3585

c) ( ) 0.983; 2.12

d) ( ) 0.89; 1.2265

P Z Z Z

P Z Z Z

P Z Z Z

P Z Z Z

Z table

Solutions:

Page 35: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Suppose X is a normal distribution N(25,25). Find

a) (24 35)

b) ( 20)

P X

P X

Solutions24 25 35 25

a) (24 35) ( 0.2 2)5 5

( 2) ( 0.2)

=P(0<Z 2)+P(0<Z<0.2)=0.4472+0.0793=0.5565

20 25b) ( 20)

5

P X P Z P Z

P Z P Z

P X P Z

( 1)

( 1) 0.84134

P Z

P Z

0.5+0.3413 = 0.8413

Example 1.28

Page 36: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Example 1.29

An assessment test is used to measure a person’s readiness for college. The mathematics scores in the test are scaled to have a normal distribution with mean 500 and standard deviation 100.

i. What is the probability that the people taking the test will score below 350?

ii. Remedial assistance will be given to students in the bottom 10%. What is the maximum score of this group of students?

Page 37: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Solution:

i.

ii.

( 350)P X

max 500( )

100P Z

Page 38: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Exercise 1.7

1. Suppose X is a normal distribution, N(70,4). Find

a) b)

2. Suppose the test scores of 600 students are normally distributed with a mean of 76 and standard deviation of 8. The number of scoring is from 70 to 82 is:

Answer : 1. a) 0.927 b) 0.0228 2. 328 students

(67 75)P X ( 74)P X

Page 39: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Normal Approximation of the Binomial Distribution

When the number of observations or trials n in a binomial experiment is relatively large, the normal probability distribution can be used to approximate binomial probabilities. A convenient rule is that such approximation is acceptable when

30, and both 5 and 5.n np nq

2

Given a random variable ( , ), if 30 and both 5

and 5, then ( , )

with and

X b n p n np

nq X N np npq

np npq

Page 40: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Continuous Correction Factor

The continuous correction factor needs to be made when a continuous curve is being used to approximate discrete probability distributions. 0.5 is added or subtracted as a continuous correction factor according to the form of the probability statement as follows:.

.

.

.

.

a) ( ) ( 0.5 0.5)

b) ( ) ( 0.5)

c) ( ) ( 0.5)

d) ( ) ( 0.5)

e) ( ) ( 0.5)

. continuous correction factor

c c

c c

c c

c c

c c

P X x P x X x

P X x P X x

P X x P X x

P X x P X x

P X x P X x

c c

Page 41: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

How do calculate Binomial Probabilities Using the Normal Approximation?

Find the necessary values of n and p. Calculate Write the probability you need in terms of x. Correct the value of x with appropriate continuous

correction factor (ccf). Convert the necessary x-values to z-values using

Use Standard Normal Table to calculate the approximate probability.

and np npq

0.5x npz

npq

Page 42: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Example 1.30In a certain country, 45% of registered voters are male. If 300 registered voters from that country are selected at random, find the probability that at least 155 are males.Solutions:

.

is the number of male voters.

(300,0.45)

( 155) ( 155 0.5) ( 154.5)

300(0.45) 135 5; 300(0.55) 165 5

Therefore, (135,74.25)

154.5 135( 2.26) 0.5 0.4881 0.0119

74.25

c c

X

X b

P X P X P X

np nq

X N

P Z P Z

Page 43: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Suppose that 5% of the population over 70 years old has disease A. Suppose a random sample of 9600 people over 70 is taken. What is the probability that less than 500 of them have disease A?

Answer: 0.8186

Exercise 1.8

Page 44: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Normal Approximation of the Poisson Distribution

When the mean of a Poisson distribution is relatively large, the normal probability distribution can be used to approximate Poisson probabilities. A convenient rule is that such approximation is acceptable when

10.

Given a random variable ( ), if 10,

then ( , )

oX P

X N

Page 45: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Example 1.31

A grocery store has an ATM machine inside. An average of 5 customers per hour comes to use the machine. What is the probability that more than 30 customers come to use the machine between 8.00 am and 5.00 pm?

Solution:

.

is the number of customers use the ATM machine in 9 hours.

(45); 45 10

(45,45)

( 30) ( 30 0.5) ( 30.5)

30.5 45( 2.16) 0.5 0.4846 0.9846

45

o

c c

X

X P

X N

P X P X P X

P Z P Z

Page 46: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Exercise 1.9

The average number of accidental drowning in United States per year is 3.0 per 100000 population. Find the probability that in a city of population 400000 there will be less than 10 accidental drowning per year.

Answer : 0.2358

Page 47: A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by

Exercise 1.10

1. Reported that the mean weekly income of a shift foreman in the glass industry is normally distributed with a mean of $1000 and standard deviation of $100. What is the probability of selecting a shift foreman in the glass industry whose income is

a) Between $1000 and $1100. b) Between $790 and $1000.

c) Between $840 and $1200.

Answer : a) 0.3413, b) 0.4821, c) 0.9224