CS70: Jean Walrand: Lecture 22. How to model uncertainty? CS70: - - PowerPoint PPT Presentation

cs70 jean walrand lecture 22
SMART_READER_LITE
LIVE PREVIEW

CS70: Jean Walrand: Lecture 22. How to model uncertainty? CS70: - - PowerPoint PPT Presentation

CS70: Jean Walrand: Lecture 22. How to model uncertainty? CS70: Jean Walrand: Lecture 22. How to model uncertainty? 1. Why Probability? 2. Applications. 3. Sample Spaces. 4. Examples. Why Probability? Why Probability? Two aspects of


slide-1
SLIDE 1

CS70: Jean Walrand: Lecture 22.

How to model uncertainty?

slide-2
SLIDE 2

CS70: Jean Walrand: Lecture 22.

How to model uncertainty?

  • 1. Why Probability?
  • 2. Applications.
  • 3. Sample Spaces.
  • 4. Examples.
slide-3
SLIDE 3

Why Probability?

slide-4
SLIDE 4

Why Probability?

◮ Two aspects of probability:

slide-5
SLIDE 5

Why Probability?

◮ Two aspects of probability:

◮ Model key feature of life: Unpredictability

slide-6
SLIDE 6

Why Probability?

◮ Two aspects of probability:

◮ Model key feature of life: Unpredictability ◮ Man-made randomness: Randomized algorithms

slide-7
SLIDE 7

Why Probability?

◮ Two aspects of probability:

◮ Model key feature of life: Unpredictability ◮ Man-made randomness: Randomized algorithms

◮ Examples of unpredictability:

slide-8
SLIDE 8

Why Probability?

◮ Two aspects of probability:

◮ Model key feature of life: Unpredictability ◮ Man-made randomness: Randomized algorithms

◮ Examples of unpredictability:

◮ Weather

slide-9
SLIDE 9

Why Probability?

◮ Two aspects of probability:

◮ Model key feature of life: Unpredictability ◮ Man-made randomness: Randomized algorithms

◮ Examples of unpredictability:

◮ Weather ◮ Stock market

slide-10
SLIDE 10

Why Probability?

◮ Two aspects of probability:

◮ Model key feature of life: Unpredictability ◮ Man-made randomness: Randomized algorithms

◮ Examples of unpredictability:

◮ Weather ◮ Stock market ◮ Noise and corruption of signals your cell phone receives

slide-11
SLIDE 11

Why Probability?

◮ Two aspects of probability:

◮ Model key feature of life: Unpredictability ◮ Man-made randomness: Randomized algorithms

◮ Examples of unpredictability:

◮ Weather ◮ Stock market ◮ Noise and corruption of signals your cell phone receives ◮ Diseases, etc.

slide-12
SLIDE 12

Why Probability?

◮ Two aspects of probability:

◮ Model key feature of life: Unpredictability ◮ Man-made randomness: Randomized algorithms

◮ Examples of unpredictability:

◮ Weather ◮ Stock market ◮ Noise and corruption of signals your cell phone receives ◮ Diseases, etc.

◮ Examples of man-made randomness:

slide-13
SLIDE 13

Why Probability?

◮ Two aspects of probability:

◮ Model key feature of life: Unpredictability ◮ Man-made randomness: Randomized algorithms

◮ Examples of unpredictability:

◮ Weather ◮ Stock market ◮ Noise and corruption of signals your cell phone receives ◮ Diseases, etc.

◮ Examples of man-made randomness:

◮ Play rock-paper-scissors,

slide-14
SLIDE 14

Why Probability?

◮ Two aspects of probability:

◮ Model key feature of life: Unpredictability ◮ Man-made randomness: Randomized algorithms

◮ Examples of unpredictability:

◮ Weather ◮ Stock market ◮ Noise and corruption of signals your cell phone receives ◮ Diseases, etc.

◮ Examples of man-made randomness:

◮ Play rock-paper-scissors, or tennis, etc.

slide-15
SLIDE 15

Why Probability?

◮ Two aspects of probability:

◮ Model key feature of life: Unpredictability ◮ Man-made randomness: Randomized algorithms

◮ Examples of unpredictability:

◮ Weather ◮ Stock market ◮ Noise and corruption of signals your cell phone receives ◮ Diseases, etc.

◮ Examples of man-made randomness:

◮ Play rock-paper-scissors, or tennis, etc. ◮ WiFi algorithm: randomized

slide-16
SLIDE 16

Why Probability?

◮ Two aspects of probability:

◮ Model key feature of life: Unpredictability ◮ Man-made randomness: Randomized algorithms

◮ Examples of unpredictability:

◮ Weather ◮ Stock market ◮ Noise and corruption of signals your cell phone receives ◮ Diseases, etc.

◮ Examples of man-made randomness:

◮ Play rock-paper-scissors, or tennis, etc. ◮ WiFi algorithm: randomized ◮ Randomized Quicksort

slide-17
SLIDE 17

Key insight

◮ Unpredictable does not mean “nothing is known”

slide-18
SLIDE 18

Key insight

◮ Unpredictable does not mean “nothing is known”

◮ Coin flip: 50% chance of ‘tails’

slide-19
SLIDE 19

Key insight

◮ Unpredictable does not mean “nothing is known”

◮ Coin flip: 50% chance of ‘tails’ [subjectivist]

slide-20
SLIDE 20

Key insight

◮ Unpredictable does not mean “nothing is known”

◮ Coin flip: 50% chance of ‘tails’ [subjectivist] ◮ Many coin flips: About half yield ‘tails’

slide-21
SLIDE 21

Key insight

◮ Unpredictable does not mean “nothing is known”

◮ Coin flip: 50% chance of ‘tails’ [subjectivist] ◮ Many coin flips: About half yield ‘tails’ [frequentist]

slide-22
SLIDE 22

Key insight

◮ Unpredictable does not mean “nothing is known”

◮ Coin flip: 50% chance of ‘tails’ [subjectivist] ◮ Many coin flips: About half yield ‘tails’ [frequentist]

◮ How to best make decisions under uncertainty?

slide-23
SLIDE 23

Key insight

◮ Unpredictable does not mean “nothing is known”

◮ Coin flip: 50% chance of ‘tails’ [subjectivist] ◮ Many coin flips: About half yield ‘tails’ [frequentist]

◮ How to best make decisions under uncertainty?

◮ Buy stocks

slide-24
SLIDE 24

Key insight

◮ Unpredictable does not mean “nothing is known”

◮ Coin flip: 50% chance of ‘tails’ [subjectivist] ◮ Many coin flips: About half yield ‘tails’ [frequentist]

◮ How to best make decisions under uncertainty?

◮ Buy stocks ◮ Detect signals (transmitted bits, speech, images, radar,

diseases, etc.)

slide-25
SLIDE 25

Key insight

◮ Unpredictable does not mean “nothing is known”

◮ Coin flip: 50% chance of ‘tails’ [subjectivist] ◮ Many coin flips: About half yield ‘tails’ [frequentist]

◮ How to best make decisions under uncertainty?

◮ Buy stocks ◮ Detect signals (transmitted bits, speech, images, radar,

diseases, etc.)

◮ Control systems (Internet, airplane, robots, self-driving

cars, etc.)

slide-26
SLIDE 26

Key insight

◮ Unpredictable does not mean “nothing is known”

◮ Coin flip: 50% chance of ‘tails’ [subjectivist] ◮ Many coin flips: About half yield ‘tails’ [frequentist]

◮ How to best make decisions under uncertainty?

◮ Buy stocks ◮ Detect signals (transmitted bits, speech, images, radar,

diseases, etc.)

◮ Control systems (Internet, airplane, robots, self-driving

cars, etc.)

◮ How to best use ‘artificial’ uncertainty?

slide-27
SLIDE 27

Key insight

◮ Unpredictable does not mean “nothing is known”

◮ Coin flip: 50% chance of ‘tails’ [subjectivist] ◮ Many coin flips: About half yield ‘tails’ [frequentist]

◮ How to best make decisions under uncertainty?

◮ Buy stocks ◮ Detect signals (transmitted bits, speech, images, radar,

diseases, etc.)

◮ Control systems (Internet, airplane, robots, self-driving

cars, etc.)

◮ How to best use ‘artificial’ uncertainty?

◮ Play games of chance

slide-28
SLIDE 28

Key insight

◮ Unpredictable does not mean “nothing is known”

◮ Coin flip: 50% chance of ‘tails’ [subjectivist] ◮ Many coin flips: About half yield ‘tails’ [frequentist]

◮ How to best make decisions under uncertainty?

◮ Buy stocks ◮ Detect signals (transmitted bits, speech, images, radar,

diseases, etc.)

◮ Control systems (Internet, airplane, robots, self-driving

cars, etc.)

◮ How to best use ‘artificial’ uncertainty?

◮ Play games of chance ◮ Design randomized algorithms.

◮ Probability

slide-29
SLIDE 29

Key insight

◮ Unpredictable does not mean “nothing is known”

◮ Coin flip: 50% chance of ‘tails’ [subjectivist] ◮ Many coin flips: About half yield ‘tails’ [frequentist]

◮ How to best make decisions under uncertainty?

◮ Buy stocks ◮ Detect signals (transmitted bits, speech, images, radar,

diseases, etc.)

◮ Control systems (Internet, airplane, robots, self-driving

cars, etc.)

◮ How to best use ‘artificial’ uncertainty?

◮ Play games of chance ◮ Design randomized algorithms.

◮ Probability

◮ Models knowledge about uncertainty

slide-30
SLIDE 30

Key insight

◮ Unpredictable does not mean “nothing is known”

◮ Coin flip: 50% chance of ‘tails’ [subjectivist] ◮ Many coin flips: About half yield ‘tails’ [frequentist]

◮ How to best make decisions under uncertainty?

◮ Buy stocks ◮ Detect signals (transmitted bits, speech, images, radar,

diseases, etc.)

◮ Control systems (Internet, airplane, robots, self-driving

cars, etc.)

◮ How to best use ‘artificial’ uncertainty?

◮ Play games of chance ◮ Design randomized algorithms.

◮ Probability

◮ Models knowledge about uncertainty ◮ Discovers best way to use that knowledge in making

decisions

slide-31
SLIDE 31

Applications

Some applications

slide-32
SLIDE 32

Applications

Some applications (they are everywhere ...):

slide-33
SLIDE 33

Applications

Some applications (they are everywhere ...):

slide-34
SLIDE 34

Applications

Some applications (they are everywhere ...):

slide-35
SLIDE 35

Applications

Some applications (they are everywhere ...):

slide-36
SLIDE 36

Applications

Some applications (they are everywhere ...):

slide-37
SLIDE 37

Probability.

◮ The probability of getting a straight is around 1 in 250.

slide-38
SLIDE 38

Probability.

◮ The probability of getting a straight is around 1 in 250.

Straight: Consecutive cards, suit doesn’t matter, e.g.,

slide-39
SLIDE 39

Probability.

◮ The probability of getting a straight is around 1 in 250.

Straight: Consecutive cards, suit doesn’t matter, e.g.,

◮ The probability of rolling snake eyes is 1/36.

slide-40
SLIDE 40

Probability.

◮ The probability of getting a straight is around 1 in 250.

Straight: Consecutive cards, suit doesn’t matter, e.g.,

◮ The probability of rolling snake eyes is 1/36. How many

snake eyes? one pip and one pip.

slide-41
SLIDE 41

Probability.

◮ The probability of getting a straight is around 1 in 250.

Straight: Consecutive cards, suit doesn’t matter, e.g.,

◮ The probability of rolling snake eyes is 1/36. How many

snake eyes? one pip and one pip. 1∗1 = 1.

slide-42
SLIDE 42

Probability.

◮ The probability of getting a straight is around 1 in 250.

Straight: Consecutive cards, suit doesn’t matter, e.g.,

◮ The probability of rolling snake eyes is 1/36. How many

snake eyes? one pip and one pip. 1∗1 = 1.

◮ The probability that a poll of a 1000 people will report at

least 50% support for a candidate with 60% support is 80%.

slide-43
SLIDE 43

Terminology

◮ “Heads or Tails” in coin tossing (or coin flipping).

slide-44
SLIDE 44

Terminology

◮ “Heads or Tails” in coin tossing (or coin flipping).

◮ One side of a coin is called the “heads” side and the other

the “tails” side.

slide-45
SLIDE 45

Terminology

◮ “Heads or Tails” in coin tossing (or coin flipping).

◮ One side of a coin is called the “heads” side and the other

the “tails” side.

◮ Thus, one says that one gets one heads or one tails in a

coin flip,

slide-46
SLIDE 46

Terminology

◮ “Heads or Tails” in coin tossing (or coin flipping).

◮ One side of a coin is called the “heads” side and the other

the “tails” side.

◮ Thus, one says that one gets one heads or one tails in a

coin flip, or that the coin flip is heads or tails.

◮ Rolling one die or two dice.

slide-47
SLIDE 47

Terminology

◮ “Heads or Tails” in coin tossing (or coin flipping).

◮ One side of a coin is called the “heads” side and the other

the “tails” side.

◮ Thus, one says that one gets one heads or one tails in a

coin flip, or that the coin flip is heads or tails.

◮ Rolling one die or two dice.

◮ Singular is die and plural is dice.

slide-48
SLIDE 48

Probability

◮ If you flip a fair coin and get 50 heads, you will get heads

the next time with probability ...

slide-49
SLIDE 49

Probability

◮ If you flip a fair coin and get 50 heads, you will get heads

the next time with probability ...1/2.

slide-50
SLIDE 50

Probability

◮ If you flip a fair coin and get 50 heads, you will get heads

the next time with probability ...1/2.

◮ The probability that the next person through the door is

younger than 21 is 80%.

slide-51
SLIDE 51

Probability

◮ If you flip a fair coin and get 50 heads, you will get heads

the next time with probability ...1/2.

◮ The probability that the next person through the door is

younger than 21 is 80%.

◮ Amanda Knox is innocent with 70% probability.

They are statements about a probability space.

slide-52
SLIDE 52

Probability

◮ If you flip a fair coin and get 50 heads, you will get heads

the next time with probability ...1/2.

◮ The probability that the next person through the door is

younger than 21 is 80%.

◮ Amanda Knox is innocent with 70% probability.

They are statements about a probability space. (Except perhaps the last one or two.)

slide-53
SLIDE 53

Probability

◮ If you flip a fair coin and get 50 heads, you will get heads

the next time with probability ...1/2.

◮ The probability that the next person through the door is

younger than 21 is 80%.

◮ Amanda Knox is innocent with 70% probability.

They are statements about a probability space. (Except perhaps the last one or two.) Random experiment constructed by us, or the world.

slide-54
SLIDE 54

Probability Space.

  • 1. A “random experiment”:
slide-55
SLIDE 55

Probability Space.

  • 1. A “random experiment”:

(a) Flip a biased coin;

slide-56
SLIDE 56

Probability Space.

  • 1. A “random experiment”:

(a) Flip a biased coin; (b) Flip two fair coins;

slide-57
SLIDE 57

Probability Space.

  • 1. A “random experiment”:

(a) Flip a biased coin; (b) Flip two fair coins; (c) Deal a poker hand.

slide-58
SLIDE 58

Probability Space.

  • 1. A “random experiment”:

(a) Flip a biased coin; (b) Flip two fair coins; (c) Deal a poker hand.

  • 2. A set of possible outcomes: Ω.
slide-59
SLIDE 59

Probability Space.

  • 1. A “random experiment”:

(a) Flip a biased coin; (b) Flip two fair coins; (c) Deal a poker hand.

  • 2. A set of possible outcomes: Ω.

(a) Ω = {H,T};

slide-60
SLIDE 60

Probability Space.

  • 1. A “random experiment”:

(a) Flip a biased coin; (b) Flip two fair coins; (c) Deal a poker hand.

  • 2. A set of possible outcomes: Ω.

(a) Ω = {H,T}; (b) Ω = {HH,HT,TH,TT};

slide-61
SLIDE 61

Probability Space.

  • 1. A “random experiment”:

(a) Flip a biased coin; (b) Flip two fair coins; (c) Deal a poker hand.

  • 2. A set of possible outcomes: Ω.

(a) Ω = {H,T}; (b) Ω = {HH,HT,TH,TT}; |Ω| =

slide-62
SLIDE 62

Probability Space.

  • 1. A “random experiment”:

(a) Flip a biased coin; (b) Flip two fair coins; (c) Deal a poker hand.

  • 2. A set of possible outcomes: Ω.

(a) Ω = {H,T}; (b) Ω = {HH,HT,TH,TT}; |Ω| = 4;

slide-63
SLIDE 63

Probability Space.

  • 1. A “random experiment”:

(a) Flip a biased coin; (b) Flip two fair coins; (c) Deal a poker hand.

  • 2. A set of possible outcomes: Ω.

(a) Ω = {H,T}; (b) Ω = {HH,HT,TH,TT}; |Ω| = 4; (c) Ω = { A♠ A♦ A♣ A♥ K♠, A♠ A♦ A♣ A♥ Q♠,...} |Ω| =

slide-64
SLIDE 64

Probability Space.

  • 1. A “random experiment”:

(a) Flip a biased coin; (b) Flip two fair coins; (c) Deal a poker hand.

  • 2. A set of possible outcomes: Ω.

(a) Ω = {H,T}; (b) Ω = {HH,HT,TH,TT}; |Ω| = 4; (c) Ω = { A♠ A♦ A♣ A♥ K♠, A♠ A♦ A♣ A♥ Q♠,...} |Ω| = 52

5

  • .
slide-65
SLIDE 65

Probability Space.

  • 1. A “random experiment”:

(a) Flip a biased coin; (b) Flip two fair coins; (c) Deal a poker hand.

  • 2. A set of possible outcomes: Ω.

(a) Ω = {H,T}; (b) Ω = {HH,HT,TH,TT}; |Ω| = 4; (c) Ω = { A♠ A♦ A♣ A♥ K♠, A♠ A♦ A♣ A♥ Q♠,...} |Ω| = 52

5

  • .
  • 3. Assign a probability to each outcome: Pr : Ω → [0,1].

(a) Pr[H] = p,Pr[T] = 1−p for some p ∈ [0,1]

slide-66
SLIDE 66

Probability Space.

  • 1. A “random experiment”:

(a) Flip a biased coin; (b) Flip two fair coins; (c) Deal a poker hand.

  • 2. A set of possible outcomes: Ω.

(a) Ω = {H,T}; (b) Ω = {HH,HT,TH,TT}; |Ω| = 4; (c) Ω = { A♠ A♦ A♣ A♥ K♠, A♠ A♦ A♣ A♥ Q♠,...} |Ω| = 52

5

  • .
  • 3. Assign a probability to each outcome: Pr : Ω → [0,1].

(a) Pr[H] = p,Pr[T] = 1−p for some p ∈ [0,1] (b) Pr[HH] = Pr[HT] = Pr[TH] = Pr[TT] = 1

4

slide-67
SLIDE 67

Probability Space.

  • 1. A “random experiment”:

(a) Flip a biased coin; (b) Flip two fair coins; (c) Deal a poker hand.

  • 2. A set of possible outcomes: Ω.

(a) Ω = {H,T}; (b) Ω = {HH,HT,TH,TT}; |Ω| = 4; (c) Ω = { A♠ A♦ A♣ A♥ K♠, A♠ A♦ A♣ A♥ Q♠,...} |Ω| = 52

5

  • .
  • 3. Assign a probability to each outcome: Pr : Ω → [0,1].

(a) Pr[H] = p,Pr[T] = 1−p for some p ∈ [0,1] (b) Pr[HH] = Pr[HT] = Pr[TH] = Pr[TT] = 1

4

(c) Pr[ A♠ A♦ A♣ A♥ K♠ ] = ··· = 1/ 52

5

slide-68
SLIDE 68

Probability Space: formalism.

Ω is the sample space.

slide-69
SLIDE 69

Probability Space: formalism.

Ω is the sample space. ω ∈ Ω is a sample point.

slide-70
SLIDE 70

Probability Space: formalism.

Ω is the sample space. ω ∈ Ω is a sample point. (Also called an outcome.)

slide-71
SLIDE 71

Probability Space: formalism.

Ω is the sample space. ω ∈ Ω is a sample point. (Also called an outcome.) Sample point ω has a probability Pr[ω] where

slide-72
SLIDE 72

Probability Space: formalism.

Ω is the sample space. ω ∈ Ω is a sample point. (Also called an outcome.) Sample point ω has a probability Pr[ω] where

◮ 0 ≤ Pr[ω] ≤ 1;

slide-73
SLIDE 73

Probability Space: formalism.

Ω is the sample space. ω ∈ Ω is a sample point. (Also called an outcome.) Sample point ω has a probability Pr[ω] where

◮ 0 ≤ Pr[ω] ≤ 1; ◮ ∑ω∈Ω Pr[ω] = 1.

slide-74
SLIDE 74

Probability Space: formalism.

Ω is the sample space. ω ∈ Ω is a sample point. (Also called an outcome.) Sample point ω has a probability Pr[ω] where

◮ 0 ≤ Pr[ω] ≤ 1; ◮ ∑ω∈Ω Pr[ω] = 1.

slide-75
SLIDE 75

Probability Space: Formalism.

In a uniform probability space each outcome ω is equally probable: Pr[ω] =

1 |Ω| for all ω ∈ Ω.

slide-76
SLIDE 76

Probability Space: Formalism.

In a uniform probability space each outcome ω is equally probable: Pr[ω] =

1 |Ω| for all ω ∈ Ω.

slide-77
SLIDE 77

Probability Space: Formalism.

In a uniform probability space each outcome ω is equally probable: Pr[ω] =

1 |Ω| for all ω ∈ Ω.

Examples:

◮ Flipping two fair coins, dealing a poker hand are uniform

probability spaces.

slide-78
SLIDE 78

Probability Space: Formalism.

In a uniform probability space each outcome ω is equally probable: Pr[ω] =

1 |Ω| for all ω ∈ Ω.

Examples:

◮ Flipping two fair coins, dealing a poker hand are uniform

probability spaces.

◮ Flipping a biased coin is not a uniform probability space.

slide-79
SLIDE 79

Probability Space: Formalism

Simplest physical model of a uniform probability space:

slide-80
SLIDE 80

Probability Space: Formalism

Simplest physical model of a uniform probability space:

slide-81
SLIDE 81

Probability Space: Formalism

Simplest physical model of a uniform probability space: A bag of identical balls, except for their color (or a label).

slide-82
SLIDE 82

Probability Space: Formalism

Simplest physical model of a uniform probability space: A bag of identical balls, except for their color (or a label). If the bag is well shaken, every ball is equally likely to be picked.

slide-83
SLIDE 83

Probability Space: Formalism

Simplest physical model of a non-uniform probability space:

slide-84
SLIDE 84

Probability Space: Formalism

Simplest physical model of a non-uniform probability space:

p3 Fraction p1

  • f circumference

p2

pω ω

1 2 3

slide-85
SLIDE 85

Probability Space: Formalism

Simplest physical model of a non-uniform probability space:

p3 Fraction p1

  • f circumference

p2

pω ω

1 2 3

The roulette wheel stops in sector ω with probability pω.

slide-86
SLIDE 86

Probability Space: Formalism

Simplest physical model of a non-uniform probability space:

p3 Fraction p1

  • f circumference

p2

pω ω

1 2 3

The roulette wheel stops in sector ω with probability pω. (Imagine a perfectly constructed wheel, that you spin hard enough, with low friction... .)

slide-87
SLIDE 87

Probability of exactly one heads in two coin flips?

Idea: Sum the probabilities of the outcomes with one heads.

slide-88
SLIDE 88

Probability of exactly one heads in two coin flips?

Idea: Sum the probabilities of the outcomes with one heads. Leads to a definition!

slide-89
SLIDE 89

Probability of exactly one heads in two coin flips?

Idea: Sum the probabilities of the outcomes with one heads. Leads to a definition! An event, E, is a subset of outcomes.

slide-90
SLIDE 90

Probability of exactly one heads in two coin flips?

Idea: Sum the probabilities of the outcomes with one heads. Leads to a definition! An event, E, is a subset of outcomes. Pr[E] = ∑ω∈E Pr[ω].

slide-91
SLIDE 91

Probability of exactly one heads in two coin flips?

Idea: Sum the probabilities of the outcomes with one heads. Leads to a definition! An event, E, is a subset of outcomes. Pr[E] = ∑ω∈E Pr[ω].

slide-92
SLIDE 92

Probability of exactly one heads in two coin flips?

Idea: Sum the probabilities of the outcomes with one heads. Leads to a definition! An event, E, is a subset of outcomes. Pr[E] = ∑ω∈E Pr[ω].

slide-93
SLIDE 93

Event

p3 p2

pω ω

1 2 3 p1

E

slide-94
SLIDE 94

Event

p3 p2

pω ω

1 2 3 p1

E

Event E = ‘wheel stops in sector 1 or 2 or 3’

slide-95
SLIDE 95

Event

p3 p2

pω ω

1 2 3 p1

E

Event E = ‘wheel stops in sector 1 or 2 or 3’ = {1,2,3}.

slide-96
SLIDE 96

Event

p3 p2

pω ω

1 2 3 p1

E

Event E = ‘wheel stops in sector 1 or 2 or 3’ = {1,2,3}. Pr[E] = p1 +p2 +p3

slide-97
SLIDE 97

Probability of exactly one heads in two coin flips?

slide-98
SLIDE 98

Probability of exactly one heads in two coin flips?

Sample Space, Ω = {HH,HT,TH,TT}.

slide-99
SLIDE 99

Probability of exactly one heads in two coin flips?

Sample Space, Ω = {HH,HT,TH,TT}. Uniform probability space: Pr[HH] = Pr[HT] = Pr[TH] = Pr[TT] = 1

4.

slide-100
SLIDE 100

Probability of exactly one heads in two coin flips?

Sample Space, Ω = {HH,HT,TH,TT}. Uniform probability space: Pr[HH] = Pr[HT] = Pr[TH] = Pr[TT] = 1

4.

Event, E, “exactly one heads”: {TH,HT}.

slide-101
SLIDE 101

Probability of exactly one heads in two coin flips?

Sample Space, Ω = {HH,HT,TH,TT}. Uniform probability space: Pr[HH] = Pr[HT] = Pr[TH] = Pr[TT] = 1

4.

Event, E, “exactly one heads”: {TH,HT}. Pr[E] = ∑

ω∈E

Pr[ω]

slide-102
SLIDE 102

Probability of exactly one heads in two coin flips?

Sample Space, Ω = {HH,HT,TH,TT}. Uniform probability space: Pr[HH] = Pr[HT] = Pr[TH] = Pr[TT] = 1

4.

Event, E, “exactly one heads”: {TH,HT}. Pr[E] = ∑

ω∈E

Pr[ω] = |E| |Ω|

slide-103
SLIDE 103

Probability of exactly one heads in two coin flips?

Sample Space, Ω = {HH,HT,TH,TT}. Uniform probability space: Pr[HH] = Pr[HT] = Pr[TH] = Pr[TT] = 1

4.

Event, E, “exactly one heads”: {TH,HT}. Pr[E] = ∑

ω∈E

Pr[ω] = |E| |Ω| = 2 4

slide-104
SLIDE 104

Probability of exactly one heads in two coin flips?

Sample Space, Ω = {HH,HT,TH,TT}. Uniform probability space: Pr[HH] = Pr[HT] = Pr[TH] = Pr[TT] = 1

4.

Event, E, “exactly one heads”: {TH,HT}. Pr[E] = ∑

ω∈E

Pr[ω] = |E| |Ω| = 2 4 = 1 2.

slide-105
SLIDE 105

Probability of a straight?

Recall: Straight := Consecutive cards, suit does not matter. Outcomes: Ω = “poker hands”.

slide-106
SLIDE 106

Probability of a straight?

Recall: Straight := Consecutive cards, suit does not matter. Outcomes: Ω = “poker hands”. Uniform probability space Pr[ω] = 1 |Ω| = 1 52

5

.

slide-107
SLIDE 107

Probability of a straight?

Recall: Straight := Consecutive cards, suit does not matter. Outcomes: Ω = “poker hands”. Uniform probability space Pr[ω] = 1 |Ω| = 1 52

5

. Event E = { a straight }.

slide-108
SLIDE 108

Probability of a straight?

Recall: Straight := Consecutive cards, suit does not matter. Outcomes: Ω = “poker hands”. Uniform probability space Pr[ω] = 1 |Ω| = 1 52

5

. Event E = { a straight }.

ω∈E

Pr[ω] = |E| |Ω|.

slide-109
SLIDE 109

Construct straight:

slide-110
SLIDE 110

Construct straight:

slide-111
SLIDE 111

Construct straight: First choose the smallest value of the cards: {A,...,10} :

slide-112
SLIDE 112

Construct straight: First choose the smallest value of the cards: {A,...,10} : 10 ways

slide-113
SLIDE 113

Construct straight: First choose the smallest value of the cards: {A,...,10} : 10 ways and then five choices of suit:

slide-114
SLIDE 114

Construct straight: First choose the smallest value of the cards: {A,...,10} : 10 ways and then five choices of suit: 5 choices, 4 ways for each

slide-115
SLIDE 115

Construct straight: First choose the smallest value of the cards: {A,...,10} : 10 ways and then five choices of suit: 5 choices, 4 ways for each |E| = 10×4×4×4×4×4

slide-116
SLIDE 116

Construct straight: First choose the smallest value of the cards: {A,...,10} : 10 ways and then five choices of suit: 5 choices, 4 ways for each |E| = 10×4×4×4×4×4 = 10×(45)

slide-117
SLIDE 117

Construct straight: First choose the smallest value of the cards: {A,...,10} : 10 ways and then five choices of suit: 5 choices, 4 ways for each |E| = 10×4×4×4×4×4 = 10×(45) Pr[E] = ∑

ω∈E

Pr[ω]

slide-118
SLIDE 118

Construct straight: First choose the smallest value of the cards: {A,...,10} : 10 ways and then five choices of suit: 5 choices, 4 ways for each |E| = 10×4×4×4×4×4 = 10×(45) Pr[E] = ∑

ω∈E

Pr[ω] = 10∗45 52

5

slide-119
SLIDE 119

Calculation. Pr[E] = 10∗45 52

5

slide-120
SLIDE 120

Calculation. Pr[E] = 10∗45 52

5

  • irb(main):004:0*> 52*51*50*49*48/((5*4*3*2)*10*4**5)
slide-121
SLIDE 121

Calculation. Pr[E] = 10∗45 52

5

  • irb(main):004:0*> 52*51*50*49*48/((5*4*3*2)*10*4**5)

=> 253

slide-122
SLIDE 122

Calculation. Pr[E] = 10∗45 52

5

  • irb(main):004:0*> 52*51*50*49*48/((5*4*3*2)*10*4**5)

=> 253

Thus, Pr[straight] ≈ 1 253.

slide-123
SLIDE 123

Is a flush more likely than a straight?

slide-124
SLIDE 124

Is a flush more likely than a straight?

A flush is a hand that contains five cards of the same suit.

slide-125
SLIDE 125

Is a flush more likely than a straight?

A flush is a hand that contains five cards of the same suit. Outcomes: Ω = “poker hands”.

slide-126
SLIDE 126

Is a flush more likely than a straight?

A flush is a hand that contains five cards of the same suit. Outcomes: Ω = “poker hands”. Uniform probablity space Pr[ω] = 1 |Ω| = 1 52

5

.

slide-127
SLIDE 127

Is a flush more likely than a straight?

A flush is a hand that contains five cards of the same suit. Outcomes: Ω = “poker hands”. Uniform probablity space Pr[ω] = 1 |Ω| = 1 52

5

. Event E = { a flush }.

slide-128
SLIDE 128

Is a flush more likely than a straight?

A flush is a hand that contains five cards of the same suit. Outcomes: Ω = “poker hands”. Uniform probablity space Pr[ω] = 1 |Ω| = 1 52

5

. Event E = { a flush }.

ω∈E

Pr[ω] = |E| |Ω|.

slide-129
SLIDE 129

Is a flush more likely than a straight?

A flush is a hand that contains five cards of the same suit. Outcomes: Ω = “poker hands”. Uniform probablity space Pr[ω] = 1 |Ω| = 1 52

5

. Event E = { a flush }.

ω∈E

Pr[ω] = |E| |Ω|. |E|?

slide-130
SLIDE 130

Is a flush more likely than a straight?

A flush is a hand that contains five cards of the same suit. Outcomes: Ω = “poker hands”. Uniform probablity space Pr[ω] = 1 |Ω| = 1 52

5

. Event E = { a flush }.

ω∈E

Pr[ω] = |E| |Ω|. |E|? Construct flush:

slide-131
SLIDE 131

Is a flush more likely than a straight?

A flush is a hand that contains five cards of the same suit. Outcomes: Ω = “poker hands”. Uniform probablity space Pr[ω] = 1 |Ω| = 1 52

5

. Event E = { a flush }.

ω∈E

Pr[ω] = |E| |Ω|. |E|? Construct flush: First choose the suit –

slide-132
SLIDE 132

Is a flush more likely than a straight?

A flush is a hand that contains five cards of the same suit. Outcomes: Ω = “poker hands”. Uniform probablity space Pr[ω] = 1 |Ω| = 1 52

5

. Event E = { a flush }.

ω∈E

Pr[ω] = |E| |Ω|. |E|? Construct flush: First choose the suit – 4 ways

slide-133
SLIDE 133

Is a flush more likely than a straight?

A flush is a hand that contains five cards of the same suit. Outcomes: Ω = “poker hands”. Uniform probablity space Pr[ω] = 1 |Ω| = 1 52

5

. Event E = { a flush }.

ω∈E

Pr[ω] = |E| |Ω|. |E|? Construct flush: First choose the suit – 4 ways and then choose five cards from 13:

slide-134
SLIDE 134

Is a flush more likely than a straight?

A flush is a hand that contains five cards of the same suit. Outcomes: Ω = “poker hands”. Uniform probablity space Pr[ω] = 1 |Ω| = 1 52

5

. Event E = { a flush }.

ω∈E

Pr[ω] = |E| |Ω|. |E|? Construct flush: First choose the suit – 4 ways and then choose five cards from 13: 13

5

  • ways
slide-135
SLIDE 135

Is a flush more likely than a straight?

A flush is a hand that contains five cards of the same suit. Outcomes: Ω = “poker hands”. Uniform probablity space Pr[ω] = 1 |Ω| = 1 52

5

. Event E = { a flush }.

ω∈E

Pr[ω] = |E| |Ω|. |E|? Construct flush: First choose the suit – 4 ways and then choose five cards from 13: 13

5

  • ways

|E| = 4× 13 5

slide-136
SLIDE 136

Is a flush more likely than a straight?

A flush is a hand that contains five cards of the same suit. Outcomes: Ω = “poker hands”. Uniform probablity space Pr[ω] = 1 |Ω| = 1 52

5

. Event E = { a flush }.

ω∈E

Pr[ω] = |E| |Ω|. |E|? Construct flush: First choose the suit – 4 ways and then choose five cards from 13: 13

5

  • ways

|E| = 4× 13 5

  • Plug in.
slide-137
SLIDE 137

Is a flush more likely than a straight?

A flush is a hand that contains five cards of the same suit. Outcomes: Ω = “poker hands”. Uniform probablity space Pr[ω] = 1 |Ω| = 1 52

5

. Event E = { a flush }.

ω∈E

Pr[ω] = |E| |Ω|. |E|? Construct flush: First choose the suit – 4 ways and then choose five cards from 13: 13

5

  • ways

|E| = 4× 13 5

  • Plug in.

Pr[ω] = |E| |Ω|

slide-138
SLIDE 138

Is a flush more likely than a straight?

A flush is a hand that contains five cards of the same suit. Outcomes: Ω = “poker hands”. Uniform probablity space Pr[ω] = 1 |Ω| = 1 52

5

. Event E = { a flush }.

ω∈E

Pr[ω] = |E| |Ω|. |E|? Construct flush: First choose the suit – 4 ways and then choose five cards from 13: 13

5

  • ways

|E| = 4× 13 5

  • Plug in.

Pr[ω] = |E| |Ω| = 4 13

5

  • 52

5

.

slide-139
SLIDE 139

Calculation.

slide-140
SLIDE 140

Calculation. Pr[E] = 4 13

5

  • 52

5

  • irb(main):001:0> 52*51*50*49*48/(4*13*12*11*10*9)
slide-141
SLIDE 141

Calculation. Pr[E] = 4 13

5

  • 52

5

  • irb(main):001:0> 52*51*50*49*48/(4*13*12*11*10*9)

=> 504

slide-142
SLIDE 142

Calculation. Pr[E] = 4 13

5

  • 52

5

  • irb(main):001:0> 52*51*50*49*48/(4*13*12*11*10*9)

=> 504

Hence, Pr[flush] ≈ 1 504.

slide-143
SLIDE 143

Calculation. Pr[E] = 4 13

5

  • 52

5

  • irb(main):001:0> 52*51*50*49*48/(4*13*12*11*10*9)

=> 504

Hence, Pr[flush] ≈ 1 504. Thus, a straight is about twice as likely as a flush. (1/253 vs. 1/504.)

slide-144
SLIDE 144

20 coin tosses

Sample space: Ω = set of 20 fair coin tosses

slide-145
SLIDE 145

20 coin tosses

Sample space: Ω = set of 20 fair coin tosses = {H,T}20. |Ω| = 2×2×···×2

slide-146
SLIDE 146

20 coin tosses

Sample space: Ω = set of 20 fair coin tosses = {H,T}20. |Ω| = 2×2×···×2 = 220.

slide-147
SLIDE 147

20 coin tosses

Sample space: Ω = set of 20 fair coin tosses = {H,T}20. |Ω| = 2×2×···×2 = 220.

◮ What is more likely?

slide-148
SLIDE 148

20 coin tosses

Sample space: Ω = set of 20 fair coin tosses = {H,T}20. |Ω| = 2×2×···×2 = 220.

◮ What is more likely?

◮ ω1 := HHHHHHHHHHHHHHHHHHHH, or

slide-149
SLIDE 149

20 coin tosses

Sample space: Ω = set of 20 fair coin tosses = {H,T}20. |Ω| = 2×2×···×2 = 220.

◮ What is more likely?

◮ ω1 := HHHHHHHHHHHHHHHHHHHH, or ◮ ω2 := HHTHTTHHTTHTHHTTHTHT?

slide-150
SLIDE 150

20 coin tosses

Sample space: Ω = set of 20 fair coin tosses = {H,T}20. |Ω| = 2×2×···×2 = 220.

◮ What is more likely?

◮ ω1 := HHHHHHHHHHHHHHHHHHHH, or ◮ ω2 := HHTHTTHHTTHTHHTTHTHT?

Answer:

slide-151
SLIDE 151

20 coin tosses

Sample space: Ω = set of 20 fair coin tosses = {H,T}20. |Ω| = 2×2×···×2 = 220.

◮ What is more likely?

◮ ω1 := HHHHHHHHHHHHHHHHHHHH, or ◮ ω2 := HHTHTTHHTTHTHHTTHTHT?

Answer: Both are equally likely: Pr[ω1] = Pr[ω2] =

1 |Ω|.

slide-152
SLIDE 152

20 coin tosses

Sample space: Ω = set of 20 fair coin tosses = {H,T}20. |Ω| = 2×2×···×2 = 220.

◮ What is more likely?

◮ ω1 := HHHHHHHHHHHHHHHHHHHH, or ◮ ω2 := HHTHTTHHTTHTHHTTHTHT?

Answer: Both are equally likely: Pr[ω1] = Pr[ω2] =

1 |Ω|. ◮ What is more likely?

slide-153
SLIDE 153

20 coin tosses

Sample space: Ω = set of 20 fair coin tosses = {H,T}20. |Ω| = 2×2×···×2 = 220.

◮ What is more likely?

◮ ω1 := HHHHHHHHHHHHHHHHHHHH, or ◮ ω2 := HHTHTTHHTTHTHHTTHTHT?

Answer: Both are equally likely: Pr[ω1] = Pr[ω2] =

1 |Ω|. ◮ What is more likely?

(E1) Twenty Hs out of twenty, or

slide-154
SLIDE 154

20 coin tosses

Sample space: Ω = set of 20 fair coin tosses = {H,T}20. |Ω| = 2×2×···×2 = 220.

◮ What is more likely?

◮ ω1 := HHHHHHHHHHHHHHHHHHHH, or ◮ ω2 := HHTHTTHHTTHTHHTTHTHT?

Answer: Both are equally likely: Pr[ω1] = Pr[ω2] =

1 |Ω|. ◮ What is more likely?

(E1) Twenty Hs out of twenty, or (E2) Ten Hs out of twenty?

slide-155
SLIDE 155

20 coin tosses

Sample space: Ω = set of 20 fair coin tosses = {H,T}20. |Ω| = 2×2×···×2 = 220.

◮ What is more likely?

◮ ω1 := HHHHHHHHHHHHHHHHHHHH, or ◮ ω2 := HHTHTTHHTTHTHHTTHTHT?

Answer: Both are equally likely: Pr[ω1] = Pr[ω2] =

1 |Ω|. ◮ What is more likely?

(E1) Twenty Hs out of twenty, or (E2) Ten Hs out of twenty?

Answer: Ten Hs out of twenty. Why?

slide-156
SLIDE 156

20 coin tosses

Sample space: Ω = set of 20 fair coin tosses = {H,T}20. |Ω| = 2×2×···×2 = 220.

◮ What is more likely?

◮ ω1 := HHHHHHHHHHHHHHHHHHHH, or ◮ ω2 := HHTHTTHHTTHTHHTTHTHT?

Answer: Both are equally likely: Pr[ω1] = Pr[ω2] =

1 |Ω|. ◮ What is more likely?

(E1) Twenty Hs out of twenty, or (E2) Ten Hs out of twenty?

Answer: Ten Hs out of twenty. Why? There are many sequences of 20 tosses with ten Hs;

  • nly one with twenty Hs. ⇒ Pr[E1] =

1 |Ω| ≪ Pr[E2] = |E2| |Ω| .

slide-157
SLIDE 157

20 coin tosses

Sample space: Ω = set of 20 fair coin tosses = {H,T}20. |Ω| = 2×2×···×2 = 220.

◮ What is more likely?

◮ ω1 := HHHHHHHHHHHHHHHHHHHH, or ◮ ω2 := HHTHTTHHTTHTHHTTHTHT?

Answer: Both are equally likely: Pr[ω1] = Pr[ω2] =

1 |Ω|. ◮ What is more likely?

(E1) Twenty Hs out of twenty, or (E2) Ten Hs out of twenty?

Answer: Ten Hs out of twenty. Why? There are many sequences of 20 tosses with ten Hs;

  • nly one with twenty Hs. ⇒ Pr[E1] =

1 |Ω| ≪ Pr[E2] = |E2| |Ω| .

|E2| =

slide-158
SLIDE 158

20 coin tosses

Sample space: Ω = set of 20 fair coin tosses = {H,T}20. |Ω| = 2×2×···×2 = 220.

◮ What is more likely?

◮ ω1 := HHHHHHHHHHHHHHHHHHHH, or ◮ ω2 := HHTHTTHHTTHTHHTTHTHT?

Answer: Both are equally likely: Pr[ω1] = Pr[ω2] =

1 |Ω|. ◮ What is more likely?

(E1) Twenty Hs out of twenty, or (E2) Ten Hs out of twenty?

Answer: Ten Hs out of twenty. Why? There are many sequences of 20 tosses with ten Hs;

  • nly one with twenty Hs. ⇒ Pr[E1] =

1 |Ω| ≪ Pr[E2] = |E2| |Ω| .

|E2| = 20 10

  • =
slide-159
SLIDE 159

20 coin tosses

Sample space: Ω = set of 20 fair coin tosses = {H,T}20. |Ω| = 2×2×···×2 = 220.

◮ What is more likely?

◮ ω1 := HHHHHHHHHHHHHHHHHHHH, or ◮ ω2 := HHTHTTHHTTHTHHTTHTHT?

Answer: Both are equally likely: Pr[ω1] = Pr[ω2] =

1 |Ω|. ◮ What is more likely?

(E1) Twenty Hs out of twenty, or (E2) Ten Hs out of twenty?

Answer: Ten Hs out of twenty. Why? There are many sequences of 20 tosses with ten Hs;

  • nly one with twenty Hs. ⇒ Pr[E1] =

1 |Ω| ≪ Pr[E2] = |E2| |Ω| .

|E2| = 20 10

  • = 184,756.
slide-160
SLIDE 160

Summary

How to model uncertainty?

slide-161
SLIDE 161

Summary

How to model uncertainty? Key ideas:

slide-162
SLIDE 162

Summary

How to model uncertainty? Key ideas:

◮ Random experiment

slide-163
SLIDE 163

Summary

How to model uncertainty? Key ideas:

◮ Random experiment ◮ Probability space

slide-164
SLIDE 164

Summary

How to model uncertainty? Key ideas:

◮ Random experiment ◮ Probability space

◮ Sample space Ω

slide-165
SLIDE 165

Summary

How to model uncertainty? Key ideas:

◮ Random experiment ◮ Probability space

◮ Sample space Ω ◮ Probability: Pr(ω)

slide-166
SLIDE 166

Summary

How to model uncertainty? Key ideas:

◮ Random experiment ◮ Probability space

◮ Sample space Ω ◮ Probability: Pr(ω) ◮ Event: E ⊆ Ω;Pr[E].