GM.... Probability R Session 1
GM.... Probability R Session 1
Business Statistics
2
Probability as a Numerical Measure
of the Likelihood of Occurrence
0 .5 1
Probability:
3
Uses of probability
4
Structure of Probability
• Experiment
• Event
• Elementary Events
• Sample Space
• Unions and Intersections
• Collectively Exhaustive Events
• Complementary Events
5
Experiment
• Process that leads to one of several possible
outcomes *, e.g.:
Coin toss
• Heads, Tails
Throw die
• 1, 2, 3, 4, 5, 6
Pick a card
– AH, KH, QH, ...
Introduce a new product
• Each trial of an experiment has a single observed
outcome.
• The precise outcome of a random experiment is
unknown before a trial.
6
Events
• Simple event
– An outcome from a sample space with one
characteristic/Collection of outcomes having a common
characteristic
– e.g., A red card from a deck of cards
E.g.: Even number
– A = {2,4,6}
• Complement of an event A (denoted A’)
– All outcomes that are not part of event A/ Event A occurs if an
outcome in the set A occurs
– e.g., All cards that are not diamonds
Sample
A’ Space S
Event A
7
• Joint event
– Involves two or more characteristics simultaneously
• Example: An ace that is also red from a deck of cards
8
Elementary Events
• A automobile consultant records fuel type
and vehicle type for a sample of vehicles
2 Fuel types: Gasoline, Diesel
3 Vehicle types: Truck, Car, SUV
6 possible elementary events: k e1
Truc
e1 Gasoline, Truck Car e2
oli ne e3
e2 Gasoline, Car Ga s SUV
e4
e3 Gasoline, SUV k e5
Die Truc
e4 Diesel, Truck sel e6
Car
e5 Diesel, Car
SUV
e6 Diesel, SUV
9
Sample Space
10
Unions and Intersection
Intersection (And)
–
a set containing all elements in both A and B
A B A B
Union (Or)
–
a set containing all elements in A or B or both
A B
A B
11
Collectively Exhaustive Events
E1 E2 E3
P
(
Sam
Sp
)1
Sample
Space
A A P
(
A
)
1P
(
A)
13
An example
• An experiment involving a single coin toss
• There are two possible outcomes, Heads and Tails
• Sample space S is {H,T}
• If coin is fair, should assign equal probabilities to 2
outcomes
• Since they have to sum to 1
– P({H}) = 0.5
– P({T}) = 0.5
– P({H,T}) = P({H})+P({T}) = 1.0
14
Another example
• Experiment involving 3 coin tosses
• Outcome is a 3-long string of H or T
– S ={HHH,HHT,HTH,HTT,THH,THT,TTH,TTT}
• Assume each outcome is equally likely (equiprobable)
– “Uniform distribution”
• What is probability of the event A that exactly 2 heads
occur?
– A = {HHT,HTH,THH}
– P(A) = P({HHT})+P({HTH})+P({THH})
– = 1/8 + 1/8 + 1/8
– =3/8
15
Probability Concepts
• Mutually Exclusive Events/Disjoint Sets
– If E1 (black card) occurs, then E2 (red card) cannot occur
– E1 and E2 have no common elements
• Example: A card cannot be Black and Red at the same time.
• Independent events
– Occurrence of one does not influence the probability
of occurrence of the other
• Dependent:
– Occurrence of one affects the probability of the other
16
Independent vs. Dependent Events
Independent Events
E1 = heads on one flip of fair coin
E2 = heads on second flip of same coin
Result of second flip does not depend on the result
of the first flip.
Dependent Events
E1 = rain forecasted on the news
E2 = take umbrella to work
Probability of the second event is affected by the
occurrence of the first event
17
Assigning Probability
18
Objective or Classical Probability
based on equally-likely events
based on long-run relative frequency of events
not based on personal beliefs
is the same for all observers (objective)
If an experiment has n possible outcomes, this method would assign
a probability of 1/n to each outcome.
examples:
toss a coin,
throw a die,
pick a card
gambling models
• applicable to games of chance
19
Relative frequency theory
based on long-run relative frequency of events
Fifty percent chance of occurrence of a particular event
Is objective as no personal judgment is involved
example: toss a coin – head or tale
Number of Number
Polishers Rented of Days Probability
0 4 .10
1 6 .15
2 18 .45 4/40
3 10 .25
4 2 .05
40 1.00 20
Subjective Probability
21
Four Types of Probability
P( X ) P( X Y ) P( X Y ) P( X | Y )
The probability of The probability of The probability of The probability of
X occurring X or Y occurring X and Y occurring X occurring given
that Y has
occurred
X X Y X Y
Y
22
General Law of Addition
2 2 4
P(Ace) P( Aceand Red) P( Aceand Black)
52 52 52
Color
Type Red Black Total
Ace 2 2 4
Non-Ace 24 24 48
Total 26 26 52
24
Addition Rule for Events That are Mutually
Exclusive - Example
• P (A or B) = P(A) + P(B)
• P(Red or Ace) = P(Red) +P(Ace)
= 26/52 + 4/52 = 30/52
Color
Type Red Black Total
Ace 2 2 4
Non-Ace 24 24 48
Total 26 26 52
25
Addition Rule for Events That are Not Mutually Exclusive -
Example
26
Conditional Probability
P(A B)
P(A B) , where P ( B ) 0
P(B)
Independent events:
P(A B) P(A)
P(B A) P(B)
27
Conditional Probability
Rulesof
Rules ofconditional
conditionalprobability:
probability:
P( A B) P( A B) so P( A B) P( A B) P( B)
P ( B)
P( B A) P( A)
P ( A D ) P ( A)
so P( A D) P( A) P( D)
P ( D A) P ( D )
28
Conditional Probability Example (Ques)
29
Conditional Probability Example (Ans.)
• Of the cars on a used car lot, 70% have air
conditioning (AC) and 40% have a CD player
(CD).20% of the cars have both.
CD No CD Total
AC 0.2 0.5 0.7
No AC 0.2 0.1 0.3
Total 0.4 0.6 1.0
CD No CD Total
AC 0.2 0.5 0.7
No AC 0.2 0.1 0.3
Total 0.4 0.6 1.0
Geographic Location
Northeast Southeast Midwest West
D E F G
Finance A .12 .05 .04 .07 .28
P( A G) 0.07
P( A | G) 0.33 P( A) 0.28
P(G) 0.21
P( A | G) 0.33 P( A) 0.28 33
Multiplication Rules
34
Multiplication Law-example
35
Practice Problem
• Question 1.
• Given the following contigency table:
B B’
A 10 20
A' 20 40
37
• Question 2:
• Are large companies less likely to offer board members stock
options than small- to mid sized companies? A survey conducted by
the Segal Company of New York found that in a sample of 189 large
companies, 40 offered stock options to their board members as part
of their non-cash compensation packages. For small-to mid sized
companies, 43 of the 180 surveyed indicated that they offer stock
options as part of their non- cash compensation packages to their
board members (Kemba J. Dunham, “The Jungle: Focus on
Recruitment, Pay and Getting Ahead”, The Wall Street Journal,
August 21, 2001, B6). Construct a contingency table to evaluate the
probabilities. If a company is selected at random, what is the
probability that the company
a. offered stock options to their board members?
b. is small-to mid-sized and did not offer stock options to their
board members?
c. is small- to mid-sized or offered stock options to their board
members?
d. explain the difference in the results in (b) and (c ).
38
Answer 2:
Company Size
Large Small-to-
mid sized
Stock Yes 40 43 83
Options No 149 137 286
189 180 369
39
• Question 3:
40
• Answer 3:
41
Question 4.
43
Question 5.
• A yield improvement study at a semiconductor manufacturing
facility provided defect data for a sample of 40 wafers. The
following table presents a summary of the responses to two
questions: “Were particles found on the die that produced the
wafer?” and “Is the wafer good or bad?”
• Condition of Die
• Quality of Wafer No Particles Particles Totals
• Good 320 14 334
• Bad 80 36 116
• Total 400 50 450
• a. Suppose you know that a wafer is bad. What then is the probability that it
was produced from a die that had particles?
• b. Suppose you know that a wafer is good. What then is the probability that it
was produced from a die that had particles?
• c. Are the two events, a good wafer and a die with no particle, statistically
independent? Explain.
44
Answer 5:
45
Question 6:
46
Answer 6:
• (a) P(2 right-handed gloves) = (7/9) (6/8)
= 42/72 = 7/12 = 0.5833
47
Question 7:
48
Answer 7:
49
Question 8:
50
Answer 8:
51
Question 9:
53
Questions???
54