Title: Basic Probability
1- ????????????????????
- Basic Probability
2Goals
- ???????????????????????
- ??????????????????????????????????????????????
- ??? contingency tables ?????????????????
- ??????????????????????????????????????????????????
?????? - ??????????????????????????????????
- ????????????????????????????????????????????????
- ????????????????????????????? (Bayes Theorem)
????????????????????????????????
3Sample Spaces and Events
- ??????????????? (Random Experiments)
4Sample Spaces and Events
- ??????????????? (Random Experiments)
- Definition
- ?????????????????? ? ?????????????????????????????
?????????????????????? ???? ? ????????????????????
???????????????????
5Sample Spaces and Events
6Sample Space
???????? ????????????? 1 ??? 1 ?????
?????????????????????????????? 6 ???
??????????? 1 ?? ?????? 1 ?????
????????????????????? 52 ????
7Sample Spaces and Events
- ???????????????? Sample Space
?????????????????????????? ???????????????????????
?????????????????????? ??????????????????????????
????????????????????????????? ? ????????????????
??????????? ??? ??????????????????????????????
???????????????????????????????????????? ?????????
???????????
8Example (continued)
9Example (continued)
10Example (continued)
11Sample Spaces
- Tree Diagrams
- Sample spaces ????????????????? tree diagrams.
- ?????sample space ?????????????????????????? ?
??? ??????????????????????????????????????????????
???? 1 ???? n1 ?????????????????????????
????????????? n1 ???? - ??????????????????????????????????????????????????
2 ???? n2 ?????????????????????????
????????????? n2 ???? - .
12Sample Spaces
- Example 2 ????????????????????? 3
???????????????? ?????????????????????????????????
??? Late ??? On time ?????
13Events
- Simple event
- ???????????? Sample Space ????????????????????????
- ???? ??? red card ?????? 1 ?????
- Complement ???????????? A (??????? A)
- ??????????????????????????????????? A
- ???? ??????????????????????? diamonds
- ????????????? (Joint event)
- ??????????? ? ?????????????????????????? 2
?????????? ? ??? - ???? ??? ace ????????? ??? ????????????????
14Visualizing Events
- Contingency Tables
- Tree Diagrams
Ace Not Ace Total
Black 2 24 26
Red 2 24
26
Total 4 48
52
Sample Space
2 24 2 24
Ace
Sample Space
Black Card
Not an Ace
Full Deck of 52 Cards
Ace
Red Card
Not an Ace
15Mutually Exclusive Events
- Mutually exclusive events
- ????????????????????????????
- example
- A ??? Queen ????? B ??? Queen ????
- Events A ??? B ????????????? mutually exclusive
16Collectively Exhaustive Events
- ????????????
- ??????????? ? ??????????????
- ???????????????????????????????? Sample Space
- example ????????????????????
- A Ace B ????
- C ??????????? D ????????
- Events A, B, C ??? D ????????????????
collectively exhaustive (?????? mutually
exclusive) - Events B, C ??? D ???????????????? collectively
exhaustive
17Sample Spaces and Events
18Sample Spaces and Events
19Sample Spaces and Events
20Probability
- ??????????????????????????????????????????????????
???????????????? ? - ???????????? 0 ??? 1
- ????????????????? mutually exclusive ???
collectively exhaustive ?????????????? 1
Certain
1
0 P(A) 1 For any event A
.5
Impossible
0
????? A, B, and C ??? mutually exclusive
???collectively exhaustive
21Assessing Probability
- Approaches to assessing the probability of un
uncertain event - 1. a priori classical probability
- 2. empirical classical probability
-
222-2 Interpretations of Probability
Definition
The notations may varies depend on the types of
books
23Interpretations of Probability
Example 3
24Interpretations of Probability
?????????????????????????
25Addition Rules
Addition Rule????????
Mutually Exclusive Events
26Addition Rules
Three or More Events
27Addition Rules
Venn diagram of four mutually exclusive events
28Addition Rules
29Computing Probabilities
- The probability of a joint event, A and B
- Computing a marginal (or simple) probability
- Where B1, B2, , Bk are k mutually exclusive and
collectively exhaustive events
30Joint Probability Example
P(Red and Ace)
Color
Type
Total
Black
Red
2
2
4
Ace
24
24
48
Non-Ace
26
26
52
Total
31Marginal Probability Example
P(Ace)
Color
Type
Total
Black
Red
2
2
4
Ace
24
24
48
Non-Ace
26
26
52
Total
32Joint Probabilities Using Contingency Table
Event
Total
B1
B2
Event
P(A1 and B2)
P(A1)
P(A1 and B1)
A1
P(A2 and B1)
A2
P(A2 and B2)
P(A2)
Total
1
P(B1)
P(B2)
Marginal (Simple) Probabilities
Joint Probabilities
33General Addition Rule Example
P(Red or Ace) P(Red) P(Ace) - P(Red and Ace)
26/52 4/52 - 2/52
28/52
Dont count the two red aces twice!
Color
Type
Total
Black
Red
2
2
4
Ace
24
24
48
Non-Ace
26
26
52
Total
34Conditional Probability
- ?????????????????????? ????????????????????? D
??????????????????????????? ??? F
????????????????????????????????????? - ??????????????????????????????????????????????????
???????????????? (E) - ????????????????????? E ???? P(DF)
???????????????????????????????????? D given F - ??????????????????????????????????????????????????
??????????????????????
35Conditional Probability
Conditional probabilities for parts with surface
flaws
36Conditional Probability
Definition
37Computing Conditional Probabilities
- A conditional probability is the probability of
one event, given that another event has occurred
The conditional probability of A given that B has
occurred
The conditional probability of B given that A has
occurred
Where P(A and B) joint probability of A and B
P(A) marginal probability of A P(B)
marginal probability of B
38Conditional Probability Example
- 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.
- What is the probability that a car has a CD
player, given that it has AC ? - i.e., we want to find P(CD AC)
39Conditional Probability Example
(continued)
- 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.
No CD
CD
Total
.2
.5
.7
AC
.2
.1
No AC
.3
.4
.6
1.0
Total
40Conditional Probability Example
(continued)
- Given AC, we only consider the top row (70 of
the cars). Of these, 20 have a CD player. 20
of 70 is about 28.57.
No CD
CD
Total
.2
.5
.7
AC
.2
.1
No AC
.3
.4
.6
Total
1.0
41Using Decision Trees
P(AC and CD) .2
Given AC or no AC
Has CD
P(AC) .7
Does not have CD
P(AC and CD) .5
Has AC
All Cars
Does not have AC
P(AC and CD) .2
Has CD
P(AC) .3
Does not have CD
P(AC and CD) .1
42Using Decision Trees
(continued)
P(CD and AC) .2
Given CD or no CD
Has AC
P(CD) .4
Does not have AC
P(CD and AC) .2
Has CD
All Cars
Does not have CD
P(CD and AC) .5
Has AC
P(CD) .6
Does not have AC
P(CD and AC) .1
43Statistical Independence
- Two events are independent if and only if
- Events A and B are independent when the
probability of one event is not affected by the
other event
44Multiplication Rules
- Multiplication rule for two events A and B
Note If A and B are independent, then
and the multiplication rule simplifies to
45Total Probability Rules
Partitioning an event into two mutually exclusive
subsets.
Partitioning an event into several mutually
exclusive subsets.
46Total (marginal) Probability Rules
47Total Probability Rules
Example 4
48Total Probability Rules
multiple events
49Independence
Definition
50Independence
Definition
51Example 5
52Bayes Theorem
- where
- Bi ith event of k mutually exclusive and
collectively - exhaustive events
- A new event that might impact P(Bi)
53??????????? (Permutations)
- ?????????????????? ???????????????????????????????
?????????????????????????????????????????? ?
????????????????????????? nPr (??????? n-P-r) - ??????????? ??? n ???? ?????????????????????? n1,
n2,, nk ???? ?????????????????????????
??????????????????
nPr
????? r n
????? ni lt n ??? n1 n2 nk n
54?????????????? (Combinations)
- ?????????????? ??????? ???????????????????????????
??????????????????????? ? ????????????????????????
??? ??????????????????????????????????????????????
???????????????????????? ?????????????????????????
nCr (??????? n-C-r) ??????????????????
nCr
????? r n
nCr