Professional Documents
Culture Documents
deductive reasoning
Statistical Inference
population
inductive reasoning
population
Pr (H ) = Pr (T ) = 0.5
Pr (H ) = Pr (T ) = ?
Beginning of Probability
C. de Mre
Classical School
Pascal
N equally probable possible outcomes
Head Tail A get 1 point B get 1 point win $100 4 points Interrupted at 3:2
Pr (E ) = M N
3 = 0.5 6
M satisfy event E
13 Pr (heart ) = = 0.25 52
$100
?
Pr (different birthdays) =
Frequency School
Results of coin toss experiment
No. of Tosses No. of Heads Relative Frequency of Heads 5 3 0.6 100 47 0.47 1000 508 0.508 1000000 499987 0.499987
Subjective School
Probabilities are quantitative expressions of uncertain about a persons knowledge of the occurrence of some event. I thought there is 30% chance that tomorrow will rain. Arsenal will have more than 80% chance to win the championship this year. I wished I had worked hard in last semester. I think I should have 80% chance to get better grade if I did so.
as
f Pr (E ) = lim n n
define
Counting Procedures
Example: Possible outcomes of tossing three coins
HH H HT TH T TT
st
Permutation
A specific arrangement of objects in a definite order. Example: possible arrangements of three persons in a row
A AB AC B C BA BC CA CB ABC ACB BAC BCA CAB CBA
N = 222 =8
N = 3 2 1 = 6
nk ways in k step
th
Permutation
6 objects: A B C D E F
Permutation
n distinct objects pick r objects and arrange
a row
round table
A F E D B C
bracelet
A F E D B C B C D A F E
Pr = n(n 1)(n r + 1) =
ABCDEF
(n r )!
N =14 P3 = 14! = 2184 11!
n!
6! = 720
(6-1)! = 120
(6-1)!/2 = 60
Combination
A subset of r objects from n distinct objects, without regard to order.
Example: Choose three letters from {A, B, C, D}
Combination {A, B, C} {A, B, D} {A, C, D} {B, C, D} Permutations (A,B,C),(A,C,B),(B,A,C),(B,C,A),(C,A,B),(C,B,A) (A,B,D),(A,D,B),(D,A,B),(D,B,A),(B,A,D),(B,D,A) (A,C,D),(A,D,C),(C,A,D),(C,D,A),(D,A,C),(D,C,A) (B,C,D),(B,D,C),(C,B,D),(C,D,B),(D,B,C),(D,C,B)
Combination
Example: 6 numbers chosen from {1, 2, .., 49}
N = 49 C 6 =
49 ! = 13983816 6 ! 43 !
Full house:
no. of possible outcomes : N = 52 C5 = 2598960 no. of possible full houses : M =13 C 2 2 4 C3 4 C 2 = 3744
24 4P 3 = =4 4 C3 = 3! 6
4! 24 = = 24 4P = 3 (4 3)! 1
Cr =
Pr n! = r ! r!(n r )!
Pr (full house ) =
Set
Set Element Venn Diagram
A B A B
Set operations
collections of objects object in the set E = {main characters in Doraemon } }
E
Union
A B
x A B
equivalent to
x A or x B
A B
Intersection
A B
x A B
equivalent to
x A and x B
A
A
Complement
B A B is a subset of A
A
x A
equivalent to
x A
Set operations
A (B C ) =
A
Set operations
(A B) (A C )
B
A (B C ) =
A
(A B) (A C )
B
B C
C C
B C
Event
Sample Space all possible outcomes Event subset of sample space
Event
Disjoint two events have no common element
A B =
B
AC
C
= { outcomes of a die toss } E = { even number }
C = { multiple of 3}
Event
Mutually exclusive
A1 A1 A2 A4
Occurrence
Exhaustive
B
occur
outcome
+
A3 A4 A2
A3
not occur
A BC
AB C
Partition
A1 A3 A3 A4 A5 A2
A C BC
Example
M M ) = 0marijuana Pr (: using .1
Pr ( ) = 1
if A B =
Pr (M C ) = 0.05
Pr (M C A) = 0.01
C
0.03 0.04 0.01 0.02 0.08 0.09 0.11
Pr ( A B ) = Pr ( A) + Pr (B )
Pr (C A) = 0.1
M
If A B, then Pr ( A) Pr (B )
Pr (E ) 1 for any event E
Pr ( A ) = 1 Pr ( A)
Pr (M C A) = ? .38 0
Pr ( A B ) = Pr ( A) + Pr (B ) Pr ( A B )
Conditional Probability
randomly pick one
Conditional Probability
For any two events A and B, the conditional probability of A given that B has occurred is written as Pr(A|B) and defined as
Pr(red circle) = 5/10 = 0.5 Pr(blue triangle) = 3/10 = 0.3 Pr(red) = 6/10 = 0.6 Pr(triangle) = 4/10 = 0.4
You are told that it is blue. Pr(triangle) = 3/4 = 0.75
3 10 Pr (blue triangle ) Pr (triangle | blue ) = = 4 10 Pr (blue )
Pr ( A | B ) =
Multiplication theorem
Pr ( A B ) Pr (B )
Pr ( A B ) = Pr (B )Pr ( A | B )
You are told that it is red. Pr(triangle) = 1/6 = 0.17
1 10 Pr (red triangle ) Pr (triangle | red ) = = 6 10 Pr (red )
Pr ( A B C ) = Pr (C ) CBPr ( )PrBA | B C ) B Pr ( ) | C A | ( C )
Independence
Two events A and B are called independent if and only if
Pr ( A B ) = Pr ( A)Pr (B )
Example : opinion poll on abortion Favor (F) White (W) Non-white (N) 0.459 0.051
Pr (B ) = Pr(B | B ) if Pr (B ) > 0 A A A A
Opposed (O) 0.441 0.049
Pr (W F ) = 0.459
Pr ( A B ) = 0
A = { odd } B = {multi of 3}
A B = {3}
B1 B2
A A
A
Bk
Pr ( A B ) = 1 6 = 1 2 1 3 = Pr ( A)Pr (B )
Bayes Rule
B1 , B2 ,..., Bk
)= 1 )= 1
8 8
)= 4
dot received dash received dot received dash received dot received
4/7
3 77 8 = 0.84 25 56
Bayes Rule
Example: virus test Test shows positive result as carrier A B Infected by the virus Pr (B ) = 0.003 0.3% infected 2% false positive Pr ( A | B ) = 0.02 1% false negative Pr (A | B ) = 0.01
Pr (B )Pr ( A | B ) Pr ( B | A) = ? Pr (B )Pr ( A | B ) + Pr (B )Pr ( A | B ) = 0.003 0.99 = 0.1296 0.003 0.99 + 0.997 0.02
prior
posterior