Notes 12
Notes 12
Probability Space
=n
Experiments
Events
Conditional Probability
F =E
Example:
F =E
Independent Events
F =E
F =E
n1
n2
n3
n4
+
3+ 4
1+ 2+
Swap left-denominator with right-numerator | preserves truth of the equality.
3
= + 3+ 4+
2+ 3
1
2+ 3
4
Left is PROB( ); right is PROB( ) |
shows independent of .
Example: Continuing cards example above,
PROB(
) = 1 4; PROB( ) = 13 52 = 1 4.
PROB(F =E ) =
n3
= PROB( ) =
E =F
E =F
n2
n3
n3
n4
Complement Events
Expected Value
f p
ev f
Randomized Algorithms
O n
Assumption: if squares are unrelated, probability is 1/2 that any corresponding pixels
match.
Dubious: think of a cloudless sky with a
small plane.
If so, half the time we need only one comparison, half of the remaining half we need two,
and so on.
Let = number of comparisons made. EV( )
= P1 (1 2) + P1 (1 4) + 3 (1 8) +
1
2
= =1 2 = =0 2 (tricky \triangular"
argument explained in class) = 2.
Note formula for expected value involves
computing fraction of points in probability space leading to each value of ; e.g.,
half have ( ) = 1.
Thus, average running time is (1), vs. ( 2 )
for the exact algorithm.
f
f p
O n
O n