handout one

111
Introduction to Probability and Statistics Probability & Statistics for Engineers & Scientists, 9th Ed. 2010 Handout #1 Instructor: Lingzhou Xue 1

Upload: doomy-jones

Post on 19-Feb-2016

15 views

Category:

Documents


5 download

DESCRIPTION

para

TRANSCRIPT

Page 1: Handout One

Introduction to Probability and Statistics

Probability & Statistics for Engineers & Scientists, 9th Ed.

2010

Handout #1

Instructor: Lingzhou Xue

1

Page 2: Handout One

Lecture Time

03:35 P.M. - 04:25 P.M. on Mondays, Wednesdays and Fridays

in STSS 118.

Course Web Page

Notes and assignments are available on the course web page.

http://www.stat.umn.edu/~lzxue/stat3021_2011.html

2

Page 3: Handout One

Office Hours and Assistant

• All office hours will be held in 350, Ford Hall

• Lingzhou Xue: Mondays 2:20pm - 3:20pm and Fridays 4:30pm

- 5:30pm or by appointment.

• Assistant: TBA

3

Page 4: Handout One

Final Grade

Your final grade for this course will be determined entirely by

your performance on homeworks, midterms, and the final exam.

Homework 20 %Midterm I 20 %Midterm II 25 %Final Exam 35 %

4

Page 5: Handout One

Final Grade

Final grades may be adjusted; however, you are guaranteed the

following:

If your final score is 90 - 100, your grade will be at least A-.

If your final score is 75 - 89, your grade will be at least B-.

If your final score is 60 - 74, your grade will be at least C-.

If your final score is 40 - 59, your grade will be at least D-.

If you are taking the class S/N, you will need a C- or higher to

earn an S grade.

5

Page 6: Handout One

Homework

• Homework will be assigned on a weekly basis.

• No late homework will be accepted without official excuse.

• Can work together on homework problems, but write up the

solutions independently.

6

Page 7: Handout One

Test

• Three tests in this course.

• Can use an one-page, two-side “cheat sheets” for each

midterm.

• Can use standard calculators.

• No make-up for a midterm. The midterm score will be

replaced by your score of final exam

7

Page 8: Handout One

Why Should I Study Statistics?

“For Todays Graduate, Just One Word: Statistics”, The New

York Times, August 5, 2009 http://www.nytimes.com/2009/08/06/

technology/06stats.html

Google’s chief economist Hal Varian predicts that the job of

statistician will become the “sexiest” around. The McKinsey

Quarterly, January 2009. http://www.mckinseyquarterly.com/Hal_

Varian_on_how_the_Web_challenges_managers_2286

“Data, data everywhere”, The Economist, February 25, 2010

http://www.economist.com/node/15557443

8

Page 9: Handout One

An Overview of Statistics

9

Page 10: Handout One

What’s Statistics?

Statistics is a way to get information from data

10

Page 11: Handout One

Statistics is a discipline which is concerned with:

• summarizing information to aid understanding,

• drawing conclusions from data,

• estimating the present or predicting the future, and

• designing experiments and other data collection.

In making predictions, Statistics uses the companion subject ofProbability, which models chance mathematically and enablescalculations of chance in complicated cases.

11

Page 12: Handout One

Today, statistics has become an important tool in the work of

many academic disciplines such as medicine, psychology, edu-

cation, sociology, engineering and physics, just to name a few.

Statistics is also important in many aspects of society such as

business, industry and government. Because of the increasing

use of statistics in so many areas of our lives, it has become very

desirable to understand and practise statistical thinking. This is

important even if you do not use statistical methods directly.

12

Page 13: Handout One

Data

Data consists of information coming from observation, counts,

measurements, or responses.

Statistics

Statistics is the science of collecting, organizing, analyzing, and

interpreting data in order to make decisions.

13

Page 14: Handout One

Population

A population is the collection of all outcomes, responses, mea-

surements, or counts that are of interest.

Sample

A sample is a subset of a population.

14

Page 15: Handout One

Parameter

A parameter is numerical description of a population character-

istics.

Statistic

A statistic is numerical description of a sample characteristic.

15

Page 16: Handout One

Branches of Statistics

Descriptive statistics is the branch of statistics that involves

the organization, summarization, and display of data.

Inferential statistics is the branch of statistics that involves

using a sample to draw conclusions about a population. A basic

tool in the study of inferential statistics is probability.

16

Page 17: Handout One

Example

A large sample of men, aged 48, was studied for 18 years. For

unmarried men, 60% to 70% were alive at age 65. For married

men, 90% were alive at age 65. Which part of the study repre-

sents the descriptive branch statistics? What conclusions might

be drawn from this study using inferential statistics?

17

Page 18: Handout One

Solution:

Descriptive statistics: For unmarried men, 60% to 70% were

alive at age 65. For married men, 90% were alive at age 65.

A possible inference: Being married is associated with a longer

life for men.

18

Page 19: Handout One

Example

An instructor is teaching two separate classes, A and B – each

of size is 50. After a midterm, the scores for each class are:

A: 50 47 59 49 72 41 63 79 91 65 49 59 92 42 34 43 53 89 76

93 89 51 42 46 67 48 33 47 68 51 56 53 69 53 43 36 58 85

45 64 57 32 1 60 66 60 63 86 62 55

B: 56 61 53 59 60 55 57 49 67 60 58 56 58 59 55 52 60 68 45

59 67 62 42 50 53 63 61 61 57 70 49 64 52 58 58 70 48 66

58 58 61 58 68 58 54 60 61 61 61 72

19

Page 20: Handout One

Histogram of Scores for Class A

Score

Fre

quen

cy

0 20 40 60 80 100

02

46

810

12

Histogram of Scores for Class B

Score

Fre

quen

cy

40 45 50 55 60 65 70 75

05

1015

20

Page 21: Handout One

Class 1st Q Median 3rd Q Mean Standard Deviation

A 47.00 56.50 66.75 58.34 18.24B 55.25 58.50 61.00 58.56 6.29

21

Page 22: Handout One

Chapter 2 Probability

22

Page 23: Handout One

• Sample Space / Events

• Counting Sample Points

• Probability of an Event

• Additive Rules

• Conditional Probability

• Multiplicative Rules

• Bayes’ Rule

23

Page 24: Handout One

2.1 Sample Space

24

Page 25: Handout One

Experiment

Experiment is any process that generates a set of data.

Sample space

Sample space is the collection of all possible outcomes at a

probability experiment. We use the notation S for sample space.

25

Page 26: Handout One

Example 1

Toss a coin. The possible outcomes are heads, tails. So thesample space is S= {Heads, Tails}.

26

Page 27: Handout One

Example 2

Roll a dice. The possible outcomes are the six faces, numbered

1, 2, 3, 4, 5, 6. Hence the sample space is S= {1, 2, 3, 4, 5,

6}.

27

Page 28: Handout One

Sample Points

Each outcome in a sample space is called an element or a mem-

ber of the sample space, or simply a sample point.

Tree Diagram

In some experiments, it is helpful to list the elements of the

sample space systematical by means of a tree diagram.

28

Page 29: Handout One

Example 3

An experiment consists of flipping a coin and then flipping it asecond time if head occurs. If a tail occurs on the first flip, thena die is tossed once. The sample space

S = {HH,HT, T1, T2, T3, T4, T5, T6}

29

Page 30: Handout One

Statement & Rule

Sample spaces with a large or infinite number of sample pointsare best described by a statement or rule.

Example 4: Statement

The possible outcomes of an experiment are the set of cities inthe world with a population over 1 million, our sample space iswritten S = {x|x is a city with a population over 1 million}.

Example 5: Rule

If S is the set of all points (x, y) on the boundary or the interiorof a circle of radius 2 with center at the origin, we write the rule:S = {(x, y)|x2 + y2 ≤ 22}

30

Page 31: Handout One

2.2 Events

31

Page 32: Handout One

Event

Event is a sub-collection of outcomes from the sample space.

We are interested in probabilities of events.

Example 6

In the experiment of tossing a die, consider the event E that the

outcome when a die is tossed is divisible by 3.

S = {1,2,3,4,5,6}E = {3,6}

32

Page 33: Handout One

Example 7

Given the sample space S = {t|t ≥ 0}, where t is the life in years

of a certain electronic component, then the event A that the

component fails before the end of the third year is the subset

A = {t|0 ≤ t < 3}

33

Page 34: Handout One

Null Set

A set contains no elements at all, and denoted by the symbol φ.

Example 8

Roll a die. One event that you may be interested in is E1 =

{You get an even number} = {2, 4, 6}. Another one could be

E2 = {You get a prime number} = {2, 3, 5}. Yet another one

could be E3 = {You get a multiple of 7} = φ.

E1 = {You get an even number} = {2,4,6},E2 = {You get a prime number} = {2,3,5},E3 = {You get a multiple of 7} = φ.

34

Page 35: Handout One

Complement

The complement of event A with respect to S is the subset of

all elements of S that are not in A. We denote the complement

of A by the symbol either A′ or Ac

35

Page 36: Handout One

Intersection

The intersection of two events A and B, denoted by the symbol

A ∩ B, is the event containing all elements that are common to

A and B.

36

Page 37: Handout One

Union

The union of the two events A and B, denoted by the symbol

A ∪B, is the event containing all the elements that belong to A

or B or both.

37

Page 38: Handout One

Example 8 Cont’d

Roll a die. One event that you may be interested in is E1 =

{You get an even number} = {2, 4, 6}. Another one could be

E2 = {You get a prime number} = {2, 3, 5}. Yet another one

could be E3 = {You get a multiple of 7} = φ.

S = {1,2,3,4,5,6},E1 = {You get an even number} = {2,4,6},E2 = {You get a prime number} = {2,3,5},E3 = {You get a multiple of 7} = φ.

E′1 = {1,3,5}, E′2 = {1,4,6}, E′3 = S

E1 ∩ E2 = {2}, E1 ∪ E2 = {2,3,4,5,6}

38

Page 39: Handout One

Mutually Exclusive or Disjoint

Two events A and B are mutually exclusive, or disjoint, if

A ∩B = φ, that is, if A and B have no elements in common.

Example 9

Roll a die. One event that you may be interested in is E1 = You

get an even number = {2, 4, 6}. Another one could be E2 =

You get a odd number = {1, 3, 5}. Then E1 ∩ E2 = φ. E1 and

E2 are disjoint.

39

Page 40: Handout One

Venn Diagrams

The relationship between events and the corresponding sample

space can be illustrated graphically by means of Venn diagrams.

40

Page 41: Handout One

• A∩B = regions 4 and 7.

• B∩C = regions 6 and 7.

• A ∪ C = regions 1, 3, 4,

5, 6 and 7.

• B′ ∩ A = regions 1 and

5.

• A ∩B ∩ C = regions 7.

• (A∪B)∩C′ = regions 1,

2 and 4.

41

Page 42: Handout One

Example 10

Suppose that in a senior college class of 600 students it is found

that 230 smoke, 250 drink alcoholic beverages, 240 eat between

meals, 150 smoke and drink alcoholic beverages, 90 eat between

meals and drink alcoholic beverages, 100 smoke and eat between

meals, and 60 engage in all three of these bad health practices.

42

Page 43: Handout One

• A = Smoker.

• B = Drinking alcoholic

beverages.

• C = Eat between meals.

• Smokes but does not

drink alcoholic beverage.

A ∩B′={1, 5}.

• Eats between meals

and drinks alcoholic

beverages but does not

smoke.C ∩ B ∩ A′ =

{2,3,6}• Neither smokes nor eats

between meals. (A ∪C)′ = A′ ∩ C′ = {2}

Page 44: Handout One

Example 11

If S = {x|0 < x < 12}, A = {x|1 ≤ x < 9}, and B = {x|0 < x < 5},find

(a) A ∪B ={x|0 < x < 9}(b) A ∩B ={x|1 ≤ x < 5}(c) A′ ∪B′ ={x|0 < x < 1,5 ≤ x < 12}

43

Page 45: Handout One

2.3 Counting Sample Points

44

Page 46: Handout One

GOLD

To count the the number of points in the sample space without

actually listing each element.

Multiplication Rule

If an operation can be performed in n1 ways, and if for each

of these ways a second operation can be performed in n2 ways,

then the two operations can performed together in n1×n2 ways.

45

Page 47: Handout One

Example 12

How many sample points are there in the sample space when apair of 6-sided dice is thrown once?

This first dice can land in any one of n1 = 6 ways. For each ofthese 6 ways the second dice can also land in n2 ways. Therefore,the pair of dice can land in

n1 × n2 = 6× 6 = 36.

46

Page 48: Handout One

GOLD

To count the the number of points in the sample space that

contains elements as all possible orders or arrangements of a

group of objects.

Permutation

A permutation is an arrangement of all or part of a set of

objects.

47

Page 49: Handout One

Example 13

Consider the three letter a, b, and c. The possible permutations

are abc, acb, bac, bca, cab, and cba. Thus we see that there are 6

distinct arrangements, because there n1 = 3 choices for the first

position, then n2 = 2 for the second, leaving only n3 = 1 choice

for the last position, giving a total of

n1 × n2 × n3 = 3× 2× 1 = 6

48

Page 50: Handout One

In general, n distinct objects can be arranged in

n(n− 1)(n− 2) · · · (3)(2)(1) ways

We represent this product by the symbol n!, which is read ”n

factorial.” We define 0! = 1.

Theorems

The number of permutations of n distinct objects is n!.

49

Page 51: Handout One

Example 14

Consider the 4 letter a, b c, and d. The number of permutation of

the 4 letters will be 4!. Now consider the number of permutations

that are possible by taking 2 letters at a time from four. The

possible permutations are ab, ac, ad, ba, bc, bd, ca, cb, cd da, db,

and dc. Thus we see that there are 12 distinct arrangements,

because there are n1 = 4 choices for the first position, then

n2 = 3 for the second,giving a total of

n1 × n2 = 4× 3 = 12

50

Page 52: Handout One

In general, n distinct objects taken r at a time can be arranged

in

n(n− 1)(n− 2) · · · (n− r + 1) =n!

(n− r)!ways

Theorems

The number of permutations of n distinct objects when taken r

at a time is

nPr =n!

(n− r)!

51

Page 53: Handout One

Example 15

A president and a treasurer are to be chosen from a student club

consisting of 50 people. How many different choices of officer

are possible if

1. there are no restrictions;

2. A will serve only if he is president;

3. B and C will serve together or not at all;

4. D and E will not serve together?

52

Page 54: Handout One

Solution:

1. 50P2.

2. 49P1 +49 P2.

3. 2P2 +48 P2.

4. 50P2 − 2.

Page 55: Handout One

Example 16

Consider the three letter a, b, and c. The possible permutations

are abc, acb, bac, bca, cab, and cba. Thus we see that there are 6

distinct arrangements, because there n1 = 3 choices for the first

position, then n2 = 2 for the second, leaving only n3 = 1 choice

for the last position, giving a total of

n1 × n2 × n3 = 3× 2× 1 = 6

If the letters b and c are both equal, then the 6 permutation

of the letters a, b, and c become only 3 distinct permutations.

Therefore, with 3 letters, 2 begin the same, we have 3!2! distinct

permutations.

53

Page 56: Handout One

Theorem

The number of distinct permutations of n things of which n1 are

of one kind, n2 of a second kind, . . . , nk of a kth kind is

n!

n1!n2! · · ·nk!

54

Page 57: Handout One

Example 17

How many distinct permutation can be made from the letters of

1. aabbcc;

Solution:6!

2!2!2!

55

Page 58: Handout One

GOAL

To compute the number of partition of a group.

Partition

The number of ways of partitioning a set of n objects into r cells

with n1 elements in the first cell, n2 elements in the second, and

so forth, is (n

n1, n2, . . . , nr

)=

n!

n1!n2! · · ·nr!where n = n1 + n2 + · · ·+ nr.

56

Page 59: Handout One

Example 18

Consider the set {A, B, C, D, E}. The possible partitions into

two cells in which the first cell contains 4 letters and the second

cell 1 element areA, B, C, D E

A, B, C, E D

A, B, D, E C

A, C, D, E B

B, C, D, E A

57

Page 60: Handout One

Example 19

In how many ways can 7 graduate students be assigned to one

triple and two double hotel rooms during a conference?

Solution:

The total number of possible partitions would be

7!

3!2!2!=

(7

3, 2, 2

)= 210.

58

Page 61: Handout One

In many problems we are interested in the number of ways of

selecting r objects from n without regard to order. The selection

are called combination. A combination is actually a partition

with two cells, the one cell containing the r objects selected and

the other cell containing the (n − r) objects that are left. The

number of such combinations, denoted by(n

r, n− r

), is usually shortened to

(nr

)

59

Page 62: Handout One

Combination

The number of combinations of n distinct objects taken r at a

time is

(nr

)=

n!

(n− r)!r!

60

Page 63: Handout One

Example 20

A young boy asks his mother to get five Game-BoyTM cartridgesfrom his collection of 10 arcade and 5 sports games. How manyways are there that his mother will get 3 arcade and 2 sportsgames, respectively?Solution:The number of ways selecting 3 cartridges from 10 is(

103

)=

10!

3!(10− 3)!= 120

The number of ways of selecting 2 cartridges from 5 is(52

)=

5!

2!(5− 2)!= 10

Using the multiplication rule with n1 = 120 and n2 = 10, thereare 120× 10 = 1200 ways.

61

Page 64: Handout One

2.4 Probability of an Event

62

Page 65: Handout One

Probability

Probability is a number associated to events, the number de-

noting the ’chance’ of that event occurring.

63

Page 66: Handout One

Properties of Probability

Probability is a set function P that assigns to each event A in

the sample space S a number P (A), called the probability of the

event A, such that the following properties are satisfied:

1. 0 ≤ P (A) ≤ 1.

2. P (S) = 1.

3. If Ai are mutually exclusive, then

P (A1 ∪A2 · · · ) =∑i=1

P (Ai)

64

Page 67: Handout One

Theorem

If an experiment can result in any one of N different equally

likely outcomes, and if exactly n of these outcomes correspond

to event A, then the probability of event A is

P (A) =n

N.

That is,

P (A) =Number of outcomes favorable to A

Total number of outcomes for the experiment.

65

Page 68: Handout One

Example 21

A coin is tossed twice. What is the probability that at least on

head occurs?

Solutions:

S = {HH,HT, TH, TT};A = {HH,HT, TH}

P (A) =3

4

66

Page 69: Handout One

Poker

67

Page 70: Handout One
Page 71: Handout One

Example 22

In a poker hand consisting of 5 cards, find the probability of

holding 2 aces and 3 jacks?

Solutions:

The number of ways of being dealt 2 aces from 4 is(42

)=

4!

2!(4− 2)!= 6

and the number of ways of being dealt 3 jacks from 4 is(43

)=

4!

3!(4− 3)!= 4.

There are n = 6 × 4 = 24 hands with 2 aces and 3 jacks. The

total number of 5-card poker hands, all of which are equally

68

Page 72: Handout One

likely, is

N =

(525

)=

52!

5!(52− 5)!= 2,598,960.

Therefore, the probability of event C of getting 2 aces and 3

jacks in a 5-card poker hand is

P (C) =24

2,598,960.

Page 73: Handout One

Let’s Gamble

Would you like to get an A- at least for this course?

1. Generate a random from 0,1,2, . . .10.

2. If your last student ID number is the same as the number

generated, you have a chance to play. Drawing five cards

from the deck of 52 cards.

3. If you get a full house, you’ll definitely get an A- for this

course without handing in homeworks and taking any exam.

69

Page 74: Handout One

2.5 Additive Rule

70

Page 75: Handout One

Additive Rule

If A and B are two events, then

P (A ∪B) = P (A) + P (B)− P (A ∩B).

If they are mutually exclusive (disjoint), then

P (A ∪B) = P (A) + P (B).

71

Page 76: Handout One

Example 23

What is the probability of getting a total of 7 or 11 when a pair

of fair dice are tossed?

Solutions:

Let A be the event that 7 occurs and B the event that 11 comes

up. Since events A and B are mutually exclusive, since a total

of 7 and 11 cannot both occur on the same toss. Therefore

P (A ∪B) = P (A) + P (B) =1

6+

1

18=

2

9.

72

Page 77: Handout One

Theorem

For three events A, B, and C,

P (A ∪B ∪ C) =P (A) + P (B) + P (C)

−P (A ∩B)− P (A ∩ C)− P (B ∩ C)

+P (A ∩B ∩ C).

If A and A′ are complementary events, A∩A′ = φ and A∪A′ = S,

then

P (A) + P (A′) = 1.

73

Page 78: Handout One

2.6 Conditional Probability

74

Page 79: Handout One

The probability of an event B occurring when it is known that

some event A has occurred is called a conditional probability

and is denoted by P (B|A). The symbol P (B|A) is usually read

”the probability that B occurs given that A occurs” or simple

”the probability of B, given A.

Conditional Probability

For any two events A and B with P (A) > 0, the conditional

probability of B given that A has occurred is:

P (B|A) =P (A ∩B)

P (A).

75

Page 80: Handout One

Example 24

Roll a dice. What is the chance that you’d get a 6, given that

you’ve gotten an even number?

Solutions:

Let A be the event of even numbers, and B of 6.

A = {2,4,6}, P (A) =1

2; (1)

B = {6}, P (B) =1

6; (2)

A ∩B = {6}, P (A ∩B) =1

6; (3)

P (B|A) =P (A ∩B)

P (A)=

1

3

76

Page 81: Handout One

Example 25

In an experiment to study the relationship of hypertension andsmoking habits, the following data are collected for 200 individ-uals:

Nonsmokers Moderate Heavysmokers smokers

Hypertension 20 40 30Non-hypertension 60 30 20

If one of these individuals is selected at random, find the proba-bility that the person is

1. experiencing hypertension, given that the person is a heavysmoker;

77

Page 82: Handout One

2. a nonsmoker, given that the person is experiencing no hy-

pertension.

Solutions:

Page 83: Handout One

We shall concerned with the following events

A =the person experiences hypertension, P (A) =90

200

B =the person experiences no hypertension, P (B) =110

200= P (A′)

C =the person is a heavy somker, P (C) =50

200

D =the person is a nonsmoker, P (D) =80

200A ∩ C =the person experiences hypertension and is a heavy smoker

P (A ∩ C) =30

200B ∩D =the person experiences no hypertension and is a nonsmoker

P (B ∩D) =60

200

Page 84: Handout One

1. experiencing hypertension, given that the person is a heavy

smoker;

P (A|C) =P (A ∩ C)

P (C)=

30/200

50/200=

3

5

2. a nonsmoker, given that the person is experiencing no hy-

pertension.

P (D|B) =60/200

110/200=

6

11

Page 85: Handout One

Example 26

Tossing a fair 6-sided dice.

1. Consider the event B of getting a perfect square when a dice

is tossed. P (B) =?

2. What is the probability of getting a perfect square when it is

know that the toss of the dice resulted in a number greater

than 3?

3. What is the probability of getting a perfect square when it is

know that the toss of the dice resulted in a number greater

than 4?78

Page 86: Handout One

Solution:

1. B = { perfect square } = {1,4},

P (B) =# of sample points in event B

#of all possible outcomes=

1

3

2. A = { numbers greater than 3 } = {4,5,6},

A ∩B = {4}, P (B|A) =P (A ∩B)

P (A)=

1

3.

3. C = { numbers greater than 4 } = {5,6},

B ∩ C = φ, P (B|C) =P (B ∩ C)

P (C)= 0.

Page 87: Handout One

Conditional Probability

The conditional probability of B, given A, denoted by P (B|A) is

defined by

P (B|A) =P (A ∩B)

P (A)provided P (A) > 0.

Independent Event

Two events A and B are independent if and only if

P (B|A) = P (B) or P (A|B) = P (A)

provided the existences of the conditional probabilities. Other-

wise, A and B are dependent.

79

Page 88: Handout One

Sampling With Replacement

Sampling with replacement occurs when an object is selected

and then replaced before the next object is selected.

Sampling Without Replacement

Sampling without replacement occurs when an object is not re-

placed after it has been selected.

80

Page 89: Handout One

Example 27

Consider an experiment in which 2 cards are drawn in successionfrom an ordinary deck, with replacement. The events are definedas

1. A: the first card is an ace,

2. B: the second card is a space.

Since the first card is replaced, our sample for both the firstand second draws consists of 52 cards, containing 4 aces and 13spades. Hence

P (B|A) =13

52=

1

4and P (B) =

1

4.

81

Page 90: Handout One

That is, P (B|A) = P (B). When this is true, the events A and B

are said to be independent.

Page 91: Handout One

2.7 Multiplicative Rules

82

Page 92: Handout One

Multiplicative Rule

If in an experiment the events A and B can both occur, then

P (A ∩B) = P (A)P (B|A) provided P (A) > 0.

Theorem

Two events A and B are independent if and only if

P (A ∩B) = P (A)P (B).

Therefore, to obtain the probability that two independent events

will both occur, we simply find the product of their individual

probabilities.

83

Page 93: Handout One

Example 28

Two cards are drawn in succession, without replacement, from

an ordinary deck of playing cards. Find the probability that the

event A1 ∩ A2 occurs, where A1 is the event that the first card

is a red ace, A2 is the event that the second card is a 10 or a

jack.

Solution:

1. A1: the first card is a red ace,

2. A2: the second card is a 10 or a jack,

84

Page 94: Handout One

P (A1) =2

52, P (A2|A1) =

8

51,

and hence, by Multiplicative Rule,

P (A1 ∩A2) = P (A1)P (A2|A1) =2

52×

8

51=

4

663.

Page 95: Handout One

Probability VS. Viagra

The harder, the better!!85

Page 96: Handout One

Probability VS. Viagra

The harder, the better!!86

Page 97: Handout One

2.8 Bayes’ Rule

87

Page 98: Handout One

Bayes’ Rule

The power of Bayes’ rule is that in many situations where we

want to compute P (A|B) it turns out that it is difficult to do

so directly, yet we might have direct information about P (B|A).

Bayes’ rule enables us to compute P (A|B) in terms of P (B|A).

P (A|B) =P (A ∩B)

P (B)=P (B|A)P (A)

P (B)

which is the so-called Bayes Rule.

88

Page 99: Handout One

Bayes’ Theorem

Let A and Ac constitute a partition of the sample space S such

that with P (A) > 0 and P (Ac) > 0, then for any event B in S

such that P (B) > 0,

P (A|B) =P (B|A)P (A)

P (B|A)P (A) + P (B|Ac)P (Ac).

89

Page 100: Handout One

The denominator P (B) in the equation can be computed,

P (B) =P [(A ∩B) ∪ (A′ ∩B)]

=P (A ∩B) + P (A′ ∩B)

=P (A)P (B|A) + P (A′)P (B|A′) (by multiplicative rule)

90

Page 101: Handout One

Example 29

A paint-store chain produces and sells latex and semigloss paint.

Based on long-range sales, the probability that a customer will

purchase latex paint is 0.75. Of those that purchase latex paint,

60% also purchase rollers. But only 30% of semigloss pain buyers

purchase rollers. A randomly selected buyer purchases a roller

and a can of paint. What is the probability that the paint is

latex?

91

Page 102: Handout One

Solution:

L ={The customer purchases latex paint.}, P (L) = 0.75

S ={The customer purchases semigloss paint.}, P (S) = 0.25

R ={The customer purchases roller.}P (R|L) =0.6

P (R|S) =0.3

P (R) =P (R|L)P (L) + P (R|S)P (S) = 0.6× 0.75 + 0.3× 0.25 = 0.525

P (L|R) =P (L ∩R)

P (R)=P (R|L)P (L)

P (R)=

0.6× 0.75

0.6× 0.75 + 0.3× 0.25≈ .857

92

Page 103: Handout One

The denominator P (R) in the equation can be computed,

P (R) =P [(L ∩R) ∪ (S ∩R)]

=P (L ∩R) + P (S ∩R)

=P (L)P (R|L) + P (S)P (R|S) (by multiplicative rule)

93

Page 104: Handout One

Example 30

Suppose that we are interested in diagnosing cancer in patients

who visit a chest clinic.

• Let A represent the event ”Person has cancer”

• Let B represent the event ”Person is a smoker”

We know the probability of the prior event P (A) = 0.1 on the

basis of past data (10% of patients entering the clinic turn out

to have cancer). We want to compute the probability of the

posterior event P (A|B). It is difficult to find this out directly.

94

Page 105: Handout One

However, we are likely to know P (B) by considering the percent-

age of patients who smoke, suppose P (B) = 0.5. We are also

likely to know P (B|A) by checking from our record the proportion

of smokers among those diagnosed. Suppose P (B|A)=0.8.

We can now use Bayes’ rule to compute:

P (A|B) =P (A ∩B)

P (B)=P (B|A)P (A)

P (B)=

0.8 · 0.10.5

Page 106: Handout One

Bayes’ Theorem

Let A1, A2, . . ., Ak constitute a partition of the sample space S

such that P (Ai) > 0 for i = 1,2, . . . , k, then for any event B in S

such that P (B) > 0,

P (Aj|B) =P (B|Aj)P (Aj)∑ki=1 P (B|Ai)P (Ai)

for i = 1,2, . . . k.

95

Page 107: Handout One

Example 31

In a bolt factory 30%, 50%, and 20% of the production is man-

ufactured by machines I, II, and III, respectively. If 4%, 5%,

and 3% of the outputs of these respective machines is defec-

tive, what is the probability that a randomly selected bolt that

is found to be defective is manufactured by machine III?

96

Page 108: Handout One

Solution:

Page 109: Handout One

P (B3|D) =0.03 · 0.2

0.04 · 0.3 + 0.05 · 0.5 + 0.03 · 0.2≈ 0.14

• D is the event that a random bolt is defective.

• Bi is the event that it is manufacture by i, where i = I, II, or III.

Page 110: Handout One

Example 32

There are two bags, say G and H, containing balls of various

colors. A bag is selected at random and a ball taken from it at

random. The probability of picking a blue ball out of bag G is

1/2 . The probability of picking a blue ball from bag H is 1/4 .

If the experiment is carried out and a blue ball is selected, what

is the probability that bag H was selected? Suppose each bag is

selected equally.

97

Page 111: Handout One

Solution:

Let

G = {The bag G is selected.}H = {The bag H is selected.}B = {The bule ball is selected.}

P (G) = 1/2, P (H) = 1/2, P (B|G) = 1/2 P (B|H) = 1/4;

P (H|B) =P (H)P (B|H)

P (H)P (B|H) + P (G)P (B|G)

=1/2× 1/4

1/2× 1/4 + 1/2× 1/2

=1

3.