Professional Documents
Culture Documents
Economics
Session 4
RANDOM SAMPLE
Probability
Probability
• We now turn to the second facet of statistics, namely inferential
statistics, and computing the:
Probability= chance, possibility, likelihood that something will occur
in the future.
A Probability is a number that describes the chance that something
will happen.
• This facet of statistics is called statistical inference or inferential
statistics.
A Probability is the value between zero and one, inclusive, describing
the relative possibility (chance or likelihood) an event will occur.
Classical Probability: it is based on the assumption that the outcomes
of an experiment are equally likely.
P=sum of outcomes=1,
The outcome varies between 0 and 1
Probability (cont’)
• Statistical inference deals with conclusions about a population
based on a sample taken from that population.
• Because there is uncertainty in decision making, it is
important that all the known risks involved be scientifically
evaluated. Helpful in this evaluation is probability theory, which
has often been referred to as the science of uncertainty.
• The use of probability theory allows the decision maker with
only limited information to analyze the risks and minimize the
gamble inherent, for example, in marketing a new product.
• Represented by figures in % (20%, 3%, 90%...), ratio (1/2, ¾,)
Thinking Challenge
• What’s the probability
of getting a head on Head-H
the toss of a single fair
coin? Use a scale from
0 (no way) to 1 (sure
thing).
• So toss a coin twice.
Do it! Did you get one
head & one tail? Tail-T
What’s it all mean?
Many Repetitions!*
Total Heads
Number of Tosses
1.00
0.75
0.50
0.25
0.00
0 25 50 75 100 125
Number of Tosses
Events, Sample Spaces,
and Probability
Experiments & Sample Spaces
1. Experiment
• Process of obtaining an observation, outcome or
simple event
2. Sample point
Sample Space
• Most basic outcome of an
Depends on
experiment Experimenter!
3. Sample space (S)
• Collection of all possible outcomes
Definition
• Event is a collection of one or more
outcomes of an experiment.
• Sample is the representative elements of
the population.
• Experiment is a process that leads to the
occurrence of one and only one of several
possible observations.
• Outcome is a particular result of an
experiment.
Illustration of the terms
Sample Space Properties
1. Mutually Exclusive
Experiment: Observe Gender
• 2 outcomes can not
occur at the same
time
— Male & Female in
same person
2. Collectively Exhaustive
• One outcome in
sample space must
occur.
— Male or Female
© 1984-1994 T/Maker Co.
Visualizing
Sample Space
1. Listing
S = {Head, Tail}
2. Venn Diagram
T
H
S
Sample Space Examples
Experiment Sample Space
• Toss a Coin, Note Face {Head, Tail}
• Toss 2 Coins, Note Faces {HH, HT, TH, TT}
• Select 1 Card, Note Kind {2♥, 2♠, ..., A♦} (52)
• Select 1 Card, Note Color {Red, Black}
• Play a Football Game {Win, Lose, Tie}
• Inspect a Part, Note Quality {Defective, Good}
• Observe Gender {Male, Female}
Events
1. Any collection of sample points
2. Simple Event
• Outcome with one characteristic
3. Compound Event
• Collection of outcomes or simple events
• Two or more characteristics
• Joint event is a special case
— Two events occurring simultaneously
Venn Diagram
Experiment: Toss 2 Coins. Note Faces.
Sample Space S = {HH, HT, TH, TT}
Compound
Event: At
least one
TH Tail
Outcome HH HT
TT
S
Event Examples
Experiment: Toss 2 Coins. Note Faces.
Sample Space: HH, HT, TH, TT
Event Outcomes in Event
• 1 Head & 1 Tail HT, TH
• Head on 1st Coin HH, HT
• At Least 1 Head HH, HT, TH
• Heads on Both HH
Probabilities
What is Probability?
1. Numerical measure of the
likelihood that event will 1 Certain
cccur
• P(Event)
• P(A)
.5
• Prob(A)
2. Lies between 0 & 1
3. Sum of sample points is 1
0 Impossible
Probability
P(Event) = X / T
• X = Number of event outcomes
• T = Total number of sample points
in Sample Space
• Each of T sample points is equally
likely © 1984-1994 T/Maker Co.
3. Formula methods
• Additive rule
• Conditional probability formula
• Multiplicative rule
Event Probability Using
Two–Way Table
Event
Event B1 B2 Total
A1 P(A 1 B1) P(A1 B2) P(A1)
A2 P(A 2 B1) P(A2 B2) P(A2)
Total P(B 1) P(B 2) 1
AC
A
S
Complement of Event
Example
Experiment: Draw 1 Card. Note Kind, Color &
Suit.
Black
Sample
Space:
2R, 2R,
2B, ..., AB
S
Event Black: Complement of Event Black,
2B, 2B, ..., AB BlackC: 2R, 2R, ..., AR, AR
Additive Rule & Mutually
Exclusive Events
Compound Events
Compound
Events
Sample
Outcomes
in Event
Space: Heart:
2, 2, 2, 3, 4
2, ..., A , ..., A
S
Event Spade:
2, 3, 4, ..., A Events and are Mutually Exclusive
Additive Rule
1. Used to get compound probabilities for
union of events
2. P(A OR B) = P(A B)
= P(A) + P(B) – P(A B)
3. For mutually exclusive events:
P(A OR B) = P(A B) = P(A) + P(B)
Additive Rule Example
Experiment: Draw 1 Card. Note Kind, Color &
Suit.
Color
Type Red Black Total
Ace 2 2 4
Non-Ace 24 24 48
Total 26 26 52
1. P(A D) = Event
Event C D Total
2. P(B C) = A 4 2 6
B 1 3 4
Total 5 5 10
Solution*
Using the additive rule, the probabilities are:
Black
S (S)
1. P(A|D) = Event
Event C D Total
2. P(C|B) =
A 4 2 6
3. Are C & B B 1 3 4
Independent? Total 5 5 10
Solution*
Using the formula, the probabilities Are:
P(A D) 2 / 10 2
P(A | D) = = =
P(D) 5 / 10 5
P(C B) 1 / 10 1
P(C | B) = = =
P(B) 4 / 10 4
5 1
P(C) = ≠ = P(C | B) Dependent
10 4
Multiplicative Rule
Compound Events
Compound
Events
P( Bi ) P( A | Bi )
P( Bi | A)
P( B1 ) P( A | B1 ) P( B2 ) P( A | B2 ) ... P( Bk ) P( A | Bk )
Bayes’s Rule Example
A company manufactures mp3 players at two factories.
Factory I produces 60% of the mp3 players and
Factory II produces 40%. Two percent of the mp3
players produced at Factory I are defective, while 1%
of Factory II’s are defective. An mp3 player is selected
at random and found to be defective. What is the
probability it came from Factory I?
Bayes’s Rule Example
P(D|I) = .02 Defective
Factory
P(I) = .6 I
P(G|I) = .98 Good
P(D|II) = .01 Defective
P(II) = .4 Factory
II
P(G|II) = .99 Good
P( I ) P( D | I ) .6*.02
P ( I | D) .75
P( I ) P( D | I ) P( II ) P( D | II ) .6*.02 .4*.01
Conclusion
•Sampl
•H •T
e Space
H H
•H •T
T T
•S
•Sample •Name
Points of 0 and 1
•Sample Point Probabilities must lie between
Sampl
•The sum of all sample point probabilities must be one
e
Events, Sample Spaces and Probability
•1•1/36
•1
•1/36
•1
•1/36
•1
•1/36
•1
•1/36
•1•1/36
•2
,1
•1/36
•2
•1/36
,2 •2
•1/36
,3 •2
•1/36
,4 •2
•1/36
,5 •2
,6
•1/36
•3
,1
•1/36
•3
•1/36
,2 •3
•1/36
,3 •3
•1/36
,4 •3
•1/36
,5 •3
,6
•1/36
•4
,1
•1/36
•4
•1/36
,2 •4
•1/36
,3 •4
•1/36
,4 •4
•1/36
,5 •4
,6
•1/36
•5
,1
•1/36
•5
•1/36
,2 •5
•1/36
,3 •5
•1/36
,4 •5
•1/36
,5 •5
,6
•1/36
•6
,1
•1/36
•6
•1/36
,2 •6
•1/36
,3 •6
•1/36
,4 •6
•1/36
,5 •6
,6
•1/36
N N!
n n!( N n!)
•where
n! n(n 1)(n 2)...(3)(2)(1)
Events, Sample Spaces and Probability
P A B ) P A) P B ) P A B )
.08 .10 .03 .12 .22
.10 .10 .55 Two-way Table with Percentage of Respondents
in Age-Income Classes
Income
Age <$25K $25K - $50K >$50K
<30 yrs 5% 12% 10%
30-50 yrs 14% 22% 16%
P A B ) 0
The Additive Rule and Mutually
Exclusive Events
•The Additive Rule for Mutually Exclusive
Events
P A B ) P A) PB)
Conditional Probability
•Conditional Probability – the probability that
event A occurs given that event B occurs
P A B )
P A B )
P B )
•Conditional probability works with a
reduced sample space, the space that
contains B and
A B
Conditional Probability
•Sample space for B F
P A B ) .32
P A B ) .32 P A B ) .51
P B ) .63
The Multiplicative Rule and
Independent Events
•The Multiplicative Rule
P A B ) P A)PB A) •or P A B ) PB )PA B )
A I1 , I 2 , I 3
P A) P I1 ) P I 2 ) P I 3 ) 1 1 1 3
10 10 10 10
B A I1 , I 2
PB A) PI1 ) PI 2 ) 1 1 2
9 9 9
P A B ) P A) PB A) 3 2 6 1
10 9 90 15
The Multiplicative Rule and
Independent Events
•Events A and B are independent if the
occurrence of one does not alter the
probability of the other occurring
P A B ) P A) PB )
The Multiplicative Rule and
Independent Events
•Event A – cause of complaint is appearance
•Event B – complaint occurred during guarantee period
Distribution of Product Complaints
Reason for Complaint
Complaint Origin Electrical Mechanical Appearance Totals
During Guarantee Period 18% 13% 32% 63%
After Guarantee Period 12% 22% 3% 37%
PBi A) PBi A) P A)
PBi )PA Bi )
PB1 )PA B1 ) PB2 )PA B2 ) PBk )PA Bk )