0% found this document useful (0 votes)
147 views

02 Probability

This document provides an overview of probability concepts including basic definitions, rules, and counting processes. It defines key probability terms like sample space, events, mutually exclusive events, and introduces basic probability rules for unions, intersections, and conditionals. It also defines factorial, permutation, and combination formulas for counting processes. Several example problems are provided to illustrate concepts like finding the sample space of dice rolls, using Venn diagrams to represent event probabilities, and calculating probabilities using counting rules.

Uploaded by

Trân Lê
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
147 views

02 Probability

This document provides an overview of probability concepts including basic definitions, rules, and counting processes. It defines key probability terms like sample space, events, mutually exclusive events, and introduces basic probability rules for unions, intersections, and conditionals. It also defines factorial, permutation, and combination formulas for counting processes. Several example problems are provided to illustrate concepts like finding the sample space of dice rolls, using Venn diagrams to represent event probabilities, and calculating probabilities using counting rules.

Uploaded by

Trân Lê
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

INTERNATIONAL UNIVERSITY (IU) Engineering Probability & Statistic

ISE Department Lecturer: Phan Nguyễn Kỳ Phúc


--------------------o0o------------------

PROBABLITY
1. Content
 Basic Definitions: Events, Sample Space, and Probabilities
 Basic Rules for Probability
 Counting Process
 Bayes’ Theorem

2. Basic Definitions
 Set is a collection of elements or objects of interest
 Empty set (denoted by ) is a set containing no elements
 Universal set (denoted by S) a set containing all possible elements
 Complement (Not). The complement of A is a set containing all elements of S not in A
 Intersection (And) A ∩ B is a set containing all elements in both A and B
 Union (Or) 𝐴 ∪ 𝐵 í a set containing all elements in A or B or both
 Mutually exclusive or disjoint sets are sets having no elements in common, having no
intersection, whose intersection is the empty set
 Partition is a collection of mutually exclusive sets which together include all possible
elements, whose union is the universal set
 Sample Space or Event Set is a set of all possible outcomes (universal set) for a given
experiment. E.g.: Throw die S = (1,2,3,4,5,6)
 Event is Collection of outcomes having a common characteristic. E.g.: Even number, A =
(2,4,6)

Example:

Question 1: Dice A has 10 faces which 7 faces are numbered from 1 to 7, 3 faces are numbered
as 8 . Dice B has 6 faces which are numbered from 5 to 10. Now we toss 2 dice. Find the sample
space if we are interested in

a) The total value of 2 up faces of 2 dice


b) The max value between 2 up faces of 2 dice
c) The min value between 2 up faces of 2 dice

Question 2: Prove that when rolling two dices, two sets A and B are mutually exclusive. Given
that

 A: sum of 2 face up dice is equal to 8


 B: at least once face up dice is 1.

02 Probability 1
INTERNATIONAL UNIVERSITY (IU) Engineering Probability & Statistic
ISE Department Lecturer: Phan Nguyễn Kỳ Phúc
--------------------o0o------------------

3. Basic rules for Probability


n( A)
Probability P( A) 
n( S )
Range of values 0 ≤ P(A) ≤1

Complement 𝑃(𝐴̅) = 1 − 𝑃(𝐴)

n( A  B )
Intersection P( A  B) 
n( S )
n( A  B )
Union P( A  B)   P( A)  P( B)  P( A  B)
n( S )
P( A  B)
Conditional Probability P( A | B) 
P( B)
Intersection of several P( A1  A2  A3  ...  An )  P( A1 ) P( A2 ) P( A3 )...P( An )
independents events
Union of several
independents events
P( A1  A2  A3  ...  An )  1  P( A1 ) P( A2 ) P( A3 )...P( An )
Example:

Question 1: Pick up a random integer number between 1 and 100. Find the probability that this
number is divided either 2 or 5 or both

Question 2: Find the probability that the system work well. Given the probability function well
for each component as P(A) =0.7, P(B)=0.6, P(C)=0.5.

P(A)=0.7

P(B)=0.6

P(C)=0.5

Question 3: A survey was conducted at Mutende Primary School to establish how many of the
650 learners buy product A and how many buy product B. The following was found:

 50 learners bought nothing


 400 learner bought A
 300 learners bought B.

Represent this information with a Venn diagram. If a learner is chosen randomly, calculate the
probability that this learner buys:

02 Probability 2
INTERNATIONAL UNIVERSITY (IU) Engineering Probability & Statistic
ISE Department Lecturer: Phan Nguyễn Kỳ Phúc
--------------------o0o------------------

 A only
 B only
 Neither A nor B
 A and B
 A or B

Question 4: The children in a nursery school were classified by hair and eye color. 44 has red
hair and not brown eyes, 14 has brown eyes and red hair, 5 has brown eyes but not read hair and
40 did not have brown eyes or red hair.

 How many children were in the school?


 What is the probability that a child chosen at random has
o brown eyes ,
o red hair
 A child with brown eyes is chosen randomly. What is the probability that this child will
have red hair?

Question 5: A survey was conducted at linguistic department show that.

 70 students can speak at least English. Of them, 40 students can only speak English
 50 students can speak at least Chinese. Of them, 20 students can only speak Chinese.
 50 students can speak at least French. Of them, 30 students can only speak French
 10 student can speak 3 languages

A student is chosen randomly. What is the probably that this student can speak:

 Both English and Chinese


 Both Chinese and French
 Both French and English

02 Probability 3
INTERNATIONAL UNIVERSITY (IU) Engineering Probability & Statistic
ISE Department Lecturer: Phan Nguyễn Kỳ Phúc
--------------------o0o------------------

4. Counting Process
Factorial Permutation Combinatorial
Definition n factorial is the number of ways in Permutations are the possible ordered Combinations are the possible selections of
which n objects can be ordered. selections of r objects out of a total of n r items from a group of n items regardless of
objects. The number of permutations of n the order of selection. The number of
objects taken r at a time is denoted nPr. combinations is denoted as nCr and is read
n choose r.
Formula n!= n(n-1)(n-2)…2×1
Pr 
n! n n!
n
(n  r )!   n Cr 
r r !(n  r )!
Example Find the number of ways to arrange 6 Find the number of ways to arrange 6 Find the number of ways to select a group of
students into 6 chairs with students into 4 chairs with consideration 4 students from 6 students.
consideration to the order of the to the order of the arrangement.
arrangement. 6! 6  5  4  3  2 1
6! 6  5  4  3  2 1 #of ways  
#of ways   4!(6  4)! 4  3  2 1 2 1
#of ways  6!  6  5  4  3  2 1 (6  4)! 2 1

02 Probability 4
INTERNATIONAL UNIVERSITY (IU) Engineering Probability & Statistic
ISE Department Lecturer: Phan Nguyễn Kỳ Phúc
--------------------o0o------------------

Homework & Example:

Question 1: There are 4 Mathematical Books, 3 Science Books, 2 Literature Books. These books
are put on shelves. How many different ways to put them so that books of the same topic are put
together ?

Question 2:

1. How many different 7-place licenses plates are possible if the first 3 places are to be occupied
by letters and the final 4 by numbers?

2. How many different 7-place licenses would be possible if repetition among letter or numbers
were prohibited?

Question 3: A class in probability theory consists of 6 men and 4 women. An examination is


given, and the students are ranked according to their performance. Assume that no two students
obtain the same score.

1. How many different rankings are possible?

2. If the men are ranked just among themselves and the women just among themselves, how
many different rankings are possible?

Question 4: A chess tournament has 10 competitors, of which 4 are Russian, 3 are from the
United States, 2 are from Great Britain, and 1 is from Brazil. If the tournament result lists just the
nationalities of the players in the order in which they placed, how many outcomes are possible?

Question 5: From a group of 5 women and 7 men, how many different committees consisting of
2 women and 3 men can be formed? What if 2 of the men are feuding and refuse to serve on the
committee together?

Question 6: If N people, including A and B, are randomly arranged in a line,

1. What is the probability that A and B are next to each other?

2. What would the probability be if the people were randomly arranged in a circle?

Question 7: Five people, designated as A, B, C, D, E, are arranged in linear order. Assuming that
each possible order is equally likely, what is the probability that

1. There is exactly one person between A and B?

2. There are exactly two people between A and B?

3. There are three people between A and B?

02 Probability 5
INTERNATIONAL UNIVERSITY (IU) Engineering Probability & Statistic
ISE Department Lecturer: Phan Nguyễn Kỳ Phúc
--------------------o0o------------------

Question 8: In poker games, dealer gives the player 5 cards. What is the probability that the
player has

1. A pair 2. Two pairs 3. Three of a kind 4. Full house

Question 9: Five separate awards (best scholarship, best leadership qualities, and so on) are to be
presented to selected students from a class of 30. How many different outcomes are possible if

1. A student can receive any number of awards?

2. Each student can receive at most 1 award?

Question 10: In how many ways can 8 people be seated in a row if

1. There are no restrictions on the seating arrangement?

2. Persons A and B must sit next to each other?

3. There are 4 men and 4 women and no 2 men or 2 women can sit next to each other?

4. There are 5 men and they must sit next to each other?

5. There are 4 married couples and each couple must sit together?

Question 11: Five separate awards (best scholarship, best leadership qualities, and so on) are to
be presented to selected students from a class of 30. How many different outcomes are possible
if

1. A student can receive any number of awards?

2. Each student can receive at most 1 award?

Question 12: In American lottery, people will select 5 numbers varying from 01 to 50. These 5
numbers are not allowed coincide and we don’t care about the order of these 5 numbers. If all
the selected numbers appeared in the 1st 5 drawings, they will get the special prize. After the 1st 5
drawing for the special prize, 2 more numbers are drawn to determine the 2nd prize. If people
select correctly 5 numbers among these 7 numbers, they get the 2nd prize.

1. Find the probability that person who buys one 1 ticket will win the 1st prize.

2. Find the probability that person who buys one 1 ticket will win the 2nd prize.

Question 13: A student is to answer 7 out of 10 questions in an examination. How many choices
has she? How many if she must answer at least 3 of the first 5 questions?

02 Probability 6
INTERNATIONAL UNIVERSITY (IU) Engineering Probability & Statistic
ISE Department Lecturer: Phan Nguyễn Kỳ Phúc
--------------------o0o------------------

5. Bayesian’s Theorem
Bayesian’s theorem relates to find the probability of an event, given that some information. This
probability is expressed as

P( what we want to find | GIVEN INFORMATION )

The main function of the given information is to narrow the sample space of the event that we
want to find the probability.

P( A  B)
P( A | B) 
P( B)

P( A)  P( A | B) P( B)  P( A | B) P( B)

Example

Factory 1 produced 100 items. Of them, 50 items are defective, 50 are non defective. Factory 2
produced 200 items. Of them, 60 are defective, the rest are non defective. Put all items produced
by 1 and 2 together, pick 1 item

a) Find the probability that item is manufactured by 1 and defective.


b) Given that that item is manufactured by 1, find the probability that it is defective.
c) Find the probability that item is defective.
d) Given that this item is defective, find the probability that it is manufactured by Factory1.

Let the area of S1D, and S1N represents the number of defective and non defective items
produced by Factory 1, respectively.

Let the area of S2D, and S2N represents the number of defective and non defective items
produced by Factory 2, respectively.

S1D S2D

S2N

S1N

02 Probability 7
INTERNATIONAL UNIVERSITY (IU) Engineering Probability & Statistic
ISE Department Lecturer: Phan Nguyễn Kỳ Phúc
--------------------o0o------------------

a) Find the probability that pick 1 item, it is produced by Factory 1 and defective.
The event satisfies two requirement of the problem is the area S1D. Since no information
is given, the sample space includes 4 areas: S1D, S1N, S2D, S2N.
The probability = (Event)/(Sample Space)
S1D 50 1
P( D  F1 )   
S1D  S1N  S 2 D  S 2 D 100  200 6
b) Pick 1 item, given that this item is manufactured by Factory 1, find the probability that it
is defective.
Since the picked item is manufactured by Factory 1 (given information), it must belong to
either S1D or S1N. The given information has narrowed the sample space from 4 areas:
S1D, S1N, S2D, S2N to only 2 areas: S1D & S1N. So the probability that the picked item
is defective is
S1D 50
P(D | F1 )  
S1D  S1N 100
However, we need to check whether the Bayesian formula is true. According to the
Bayesian theorem
P( D  F1 ) S1D S1D  S1N  S 2 D  S 2 N S1D
P(D | F1 )    
P( F1 ) S1D  S1N  S 2 D  S 2 N S1D  S1N S1D  S1N

The Bayesian give the same result with intuition.

c) Find the probability it is defective.


S1D  S 2 D 50  60
P( D)  
S1D  S1N  S 2D  S 2 N 300
Applying Bayesian theorem
P( D)  P( D | F1 ) P( F1 )  P( D | F2 ) P( F2 )
S1D S1D  S1N S 2D S 2D  S 2 N
=   
S1D  S1N S1D  S1N  S 2 D  S 2 N S 2 D  S 2 N S1D  S1N  S 2 D  S 2 N
S1D  S 2D 50  60
= 
S1D  S1N  S 2 D  S 2 N 300

d) Given that the picked item is defective, find the probability that it is manufactured by
Factory 1.
Based on intuition, given that the picked item is defective, it must belong to the either
S1D or S2D. The information has narrowed the sample space to S1D and S2D. So the
probability is
P( DS1D 50 50
P(F1 | D)   
S1D  S 2 D 50  60 110
Using the Bayesian formula
02 Probability 8
INTERNATIONAL UNIVERSITY (IU) Engineering Probability & Statistic
ISE Department Lecturer: Phan Nguyễn Kỳ Phúc
--------------------o0o------------------

P( D  F1 ) 50 50
P(F1 | D)   
P ( D) 50  60 110

Example 1

A factory runs three shifts. In a given day 1% of the items produced by the 1st shift are defective,
2% of the second shift’s items are defective and 5% of the third shift’s items are defective. If the
shift all have the same productivity, what percentage of the items produced in a day are defective.
If an item is defective, what is the probability that it was produced by the 3rd shift?

Example 2

Fifty-two percent of the students at a certain college are females. Five percent of the students in
this college are majoring in computer science. Two percent of the students are women majoring
in computer science. If a student is selected at random, find the conditional probability that

(a) this student is female, given that the student is majoring in computer science;

(b) this student is majoring in computer science, given that the student is female.

Graph method
Graph method is another way to solve the Bayesian Theorem. In graph method, the cause &
effect relationships among the events are drawn first, then based on the paths, the necessary
probability can be computed.

For the example in the explanation part, the graph can be drawn as follows:

D
0.5

F1
0.5
1/3
N

0.3 D
2/3
F2
0.7

02 Probability 9
INTERNATIONAL UNIVERSITY (IU) Engineering Probability & Statistic
ISE Department Lecturer: Phan Nguyễn Kỳ Phúc
--------------------o0o------------------

a) The probability that item is manufactured by F1 and defective

We trace along the path that satisfy both attributes, produced by F1 and defective

1
P( F1  D)   0.5
3

b) Given that that item is manufactured by F1, find the probability that it is defective.
Since it is manufactured by F1, we must follow only path going through node F1.

1
 0.5
P(D | F1)  3  0.5
1 1
 0.5   0.5
3 3

c) Find the probability it is defective.


Since we want to find the probability the item is defective, it must be a sum of paths
going through node D.
1 2
P( D)   0.5   0.3
3 3
d) Given that this item is defective, find the probability that it is manufactured by Factory1.
Since given that the item is defective, it must go through D. The probability is

1
 0.5
P(F1| D)  3
1 2
 0.5   0.3
3 3

Example 2

You ask your neighbor to water a sickly plant while you are on vacation. Without water it will
die with probability .8; with water it will die with probability .15. You are 90 percent certain that
your neighbor will remember to water the plant.

(a) What is the probability that the plant will be alive when you return?

(b) If it is dead, what is the probability your neighbor forgot to water it?

02 Probability 10
INTERNATIONAL UNIVERSITY (IU) Engineering Probability & Statistic
ISE Department Lecturer: Phan Nguyễn Kỳ Phúc
--------------------o0o------------------

D
0.15

W
0.85
0.9
A

0.8 D
0.1
F
0.2

(a) What is the probability that the plant will be alive when you return?

P( A)  0.9  0.85  0.1 0.2

(b) If it is dead, what is the probability your neighbor forgot to water it?

0.1 0.8
P(F | D) 
0.1 0.8  0.9  0.15

In graph method, sometimes the complete graph as examples above cannot be drawn or the
problem is a multi stage problem.

Example 3

Assumed that rain occurs only in the morning. The probability of rain in the morning is 0.7. If it
rains, the main will take the umbrella to the company. When he backs in the afternoon, the
probability that he forgets to bring the umbrella back is 0.4. If you see the man without the
umbrella in the afternoon, what is the probability there is no rain in the morning.

02 Probability 11
INTERNATIONAL UNIVERSITY (IU) Engineering Probability & Statistic
ISE Department Lecturer: Phan Nguyễn Kỳ Phúc
--------------------o0o------------------

Bring
0.6

R
0.4
0.7
W./o

0.3 1
N W./o

0.3 1
P( R | W. / o)=
0.3 1  0.7  0.4

Example 4

A league has 4 rounds. To go to the further round, the team must win all former rounds. The
probabilities that team A win round 1,2,3 and 4 are 0.9, 0.8, 0.7, and 0.6 respectively.

a) Find the probability that team A will be the champion


b) Given that team A lost, find the probability that team A lost at round 2.

0.9 0.8 0.7 0.6


R1 R2 R3 R4 Champion

0.1 0.2 0.3 0.4

L L L L

a) Find the probability that team A will be the champion

P(Champion)  0.9  0.8  0.7  0.6  0.3024

b) Given that team A lost, find the probability that team A lost at round 2

0.9  0.2
P( R 2 | Lost )   0.2580
0.1  0.9  0.2  0.9  0.8  0.3  0.9  0.8  0.7  0.4

02 Probability 12
INTERNATIONAL UNIVERSITY (IU) Engineering Probability & Statistic
ISE Department Lecturer: Phan Nguyễn Kỳ Phúc
--------------------o0o------------------

Assignments

Question 1: A laboratory blood test is 99 percent effective in detecting a certain disease when it
is, in fact, present. However, the test also yields a “false positive” result for 1 percent of the
healthy persons tested. (That is, if a healthy person is tested, then, with probability .01, the test
result will imply he or she has the disease.) If .5 percent of the population actually has the
disease, what is the probability a person has the disease given that his test result is positive?

Question 2: There are two local factories that produce radios. Each radio produced at factory A
is defective with probability .05, whereas each one produced at factory B is defective with
probability .01. Suppose you purchase two radios that were produced at the same factory, which
is equally likely to have been either factory A or factory B. If the first radio that you check is
defective, what is the conditional probability that the other one is also defective?

Question 3: Prostate cancer is the most common type of cancer found in males. As an indicator
of whether a male has prostate cancer, doctors often perform a test that measures the level of the
PSA protein (prostate specific antigen) that is produced only by the prostate gland. Although
higher PSA levels are indicative of cancer, the test is notoriously unreliable. Indeed, the
probability that a noncancerous man will have an elevated PSA level is approximately .135, with
this probability increasing to approximately .268 if the man does have cancer. If, based on other
factors, a physician is 70 percent certain that a male has prostate cancer, what is the conditional
probability that he has the cancer given that

(a) the test indicates an elevated PSA level;

(b) the test does not indicate an elevated PSA level?

Repeat the preceding, this time assuming that the physician initially believes there is a 30 percent
chance the man has prostate cancer.

Question 4: Suppose that we have 3 cards that are identical in form, except that both sides of the
first card are colored red, both sides of the second card are colored black, and one side of the
third card is colored red and the other side black. The 3 cards are mixed up in a hat, and 1 card is
randomly selected and put down on the ground. If the upper side of the chosen card is colored
red, what is the probability that the other side is colored black?

02 Probability 13

You might also like