Prob 1234
Prob 1234
Prob 1234
Probability
Instructor
Osama Bin Ajaz
Content
• Sample Space and Event
• Tree diagram
• Set theory
• Venn diagram
• Counting techniques
• Additive and multiplicative rules for probability
• Conditional probability
• Bayes’ Theorem
Sample Space
• What is an experiment?
• Any process or activity that generates a set of data is called
experiment. For example:
i. Tossing a coin
ii. Rolling dice
iii. Playing cards
iv. Opinion of voters
v. Launching of missiles
Sample Space
• The set of all possible outcomes of a statistical experiment is called
the sample space (S). For example:
Tree Diagram
• Tossing coin: 2 times, 3 times, 4 times
• Tossing die & coin together:
• Suppose that three items are selected at random from a
manufacturing process. Each item is inspected and classified
defective, D, or non-defective, N. List the elements of the sample
space.
Events
• An event is a subset of a sample space. For example:
• Let V = {a, e, i, o, u} and C = {l, r, s, t}; then it follows that V ∩ C = φ. That is,
V and C have no elements in common and, therefore, cannot both
simultaneously occur.
Mutually Exclusive events
• Two events A and B are mutually exclusive, or disjoint, if A ∩ B = φ,
that is, if A and B have no elements in common.
Union of events
• 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.
• A ∩ B = 1, 2
B ∩ C = 1, 3
A ∪ C = 1,2,3,4,5,7
B’ ∩ A = 4, 7
A∩B∩C= 1
(A ∪ B) ∩ C’ = 7,2,6,
Venn Diagram
• Several results that follow from the foregoing definitions, which may
easily be verified by means of Venn diagrams, are as follows:
Multiplication Or Fundamental
Rule of counting
i. How many sample points are there in the sample space when a pair of
dice is thrown once?
ii. How many there digit numbers can be formed from the digits 2, 4, 6, and
8 if: (i) repetitions are not allowed (ii) repetitions allowed
Set of Example (iii - viii)
Subjective: Objective:
• Personal experiences • Classical approach
• Relative frequency approach
• Axiomatic approach
Examples (1 – 3)
1. A coin is tossed twice. What is the probability that at least 1 head
occurs?
2. A die is tossed once. What is the probability of getting:
(a) an even number (b) a number less than 3 (c) a 4 or higher
number (d) a 7 (e) A number from 1 to 6
• Two coins are tossed. What is the conditional probability that two
heads results, given that there is at least one head?
Example # 25
• Two events A & B are such that P(A) = 1/4, P(A|B)=1/2, P(B|A) = 2/3
(i) Are A and B independent events?
(ii) Are A and B mutually exclusive events?
(iii) Find P(A∩B)
Solution:
Example # 26
• In a certain assembly plant, three machines, B1, B2, and B3, make
30%, 45%, and 25%, respectively, of the products. It is known from
past experience that 2%, 3%, and 2% of the products made by each
machine, respectively, are defective. Now, suppose that a finished
product is randomly selected. What is the probability that it is
defective?
• Solution:
A: the product is defective,
B1: the product is made by machine B1,
B2: the product is made by machine B2,
B3: the product is made by machine B3,
Tree Diagram for Example # 26
P(A|B1) = 0.02
P(B1) = 0.3
P(A|B2) = 0.03
P(B2) = 0.45
P(B3) = 0.25
P(A|B3) = 0.02
Baye’s Rule
Example # 27
• In a certain assembly plant, three machines, B1, B2, and B3, make
30%, 45%, and 25%, respectively, of the products. It is known from
past experience that 2%, 3%, and 2% of the products made by each
machine, respectively, are defective. Now, suppose that a finished
product is randomly selected. What is the probability that it is
defective? if a product was chosen randomly and found to
be defective, what is the probability that it was made by machine B3?
• Solution:
Example # 28
• Suppose a Software House based in Karachi required the post of
Programmer. After interviewing many applicants, the firm has
identified 20 applicants categorized as in the following contingency
table: Certificate Diploma Total
Male 10 2 12
Femal 5 3 8
e
Total 15 5 20
• If a diploma holder is selected, what is the probability that the person
is a Male.
Example # 29
• Suppose 25 colored balls are distributed in three bags, which are identical in
appearance as follows: BAG
1 2 3 Total
Green 1 3 4 8
Yellow 2 2 3 7
Red 4 5 1 10
Totalwhich7a ball is drawn
• A bag is selected as random from 10 8
at random. 25
(a) Find the probability that the ball is yellow.
(b) Given that ball is yellow, what is the probability that bag 2 was selected.
Miscellaneous Problems
Q1) In a survey on 136 boys, 67 played golf, 56 played cricket and 40 played
football 11 played both golf and cricket, 12 played both cricket and football and 9
played both golf and football. Each boy played at least one of these games. How
many played all the three games. (use Venn diagram)
• n(S) = 136
• n(G) = 67
• n(C) = 56
• n(F) = 40
• n(G & C) = 11 47+x 11-x 33+x
• n(C & F) = 12 x
9-x 12-x
• n(G & F) = 9
• n(G & F & C) = x = ? 19+x
Miscellaneous Problems (Contd.)
Q2) A newsagent sells three papers, the Jang, the Dawn, and the BR, 70
customers buy the Jang, 60 the Dawn, and 50 the BR, 17 buy both the
Jang & Dawn, 15 the Dawn & the BR, and 16 the BR & the Jang, while 3
customers buy all three papers. How many customers has he?
Q3) A total of 365 Capsules, each marked by the difference dates of the
year, are mixed and one capsule is picked at random. What is the
probability that the capsule picked will be of:
(i) A day of January
(ii) March 2
(iii) Either of March or April
(iv) Not of December
Miscellaneous Problems (Contd.)
Q8) The probabilities that three men hit a target are respectively 1/6,
1/4 and 1/3. Each shoots once at the target. If only one hit the
target, what is the probability that it was the first man.
Miscellaneous Problems (Contd.)
Q9) A box contains 24 transistors, four of which are defective. If four
are sold at random, find the following probabilities.
(a) Exactly two are defective
(b) all are defective
(c) none is defective
(d) at least one is defective
Miscellaneous Problems (Contd.)
Q10) There are eight married couples in a tennis club. If one man and
one woman are selected at random to plan the summer
tournament, find the probability that they are married to each other.
Miscellaneous Problems (Contd.)
Q11)
Miscellaneous Problems (Contd.)
Q12) The probabilities that a service station will pump gas into 0, 1, 2,
3, 4, or 5 or more cars during a certain 30-minute period are 0.03,
0.18, 0.24, 0.28, 0.10, and 0.17, respectively. Find the probability that
in this 30-minute period.
(a) more than 2 cars receive gas;
(b) at most 4 cars receive gas;
(c) 4 or more cars receive gas.
Miscellaneous Problems (Contd.)
Q13) Police plan to enforce speed limits by using radar traps at four
different locations within the city limits. The radar traps at each of
the locations L1, L2, L3, and L4 will be operated 40%, 30%, 20%, and
30% of the time. If a person who is speeding on her way to work has
probabilities of 0.2, 0.1, 0.5, and 0.2, respectively, of passing through
these locations, what is the probability that she will receive a speeding
ticket?
Miscellaneous Problems (Contd.)