CS70: Jean Walrand: Lecture 22. How to model uncertainty? CS70: - - PowerPoint PPT Presentation
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
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 probability:
Why Probability?
◮ Two aspects of probability:
◮ Model key feature of life: Unpredictability
Why Probability?
◮ Two aspects of probability:
◮ Model key feature of life: Unpredictability ◮ Man-made randomness: Randomized algorithms
Why Probability?
◮ Two aspects of probability:
◮ Model key feature of life: Unpredictability ◮ Man-made randomness: Randomized algorithms
◮ Examples of unpredictability:
Why Probability?
◮ Two aspects of probability:
◮ Model key feature of life: Unpredictability ◮ Man-made randomness: Randomized algorithms
◮ Examples of unpredictability:
◮ Weather
Why Probability?
◮ Two aspects of probability:
◮ Model key feature of life: Unpredictability ◮ Man-made randomness: Randomized algorithms
◮ Examples of unpredictability:
◮ Weather ◮ Stock market
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
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.
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:
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,
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.
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
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
Key insight
◮ Unpredictable does not mean “nothing is known”
Key insight
◮ Unpredictable does not mean “nothing is known”
◮ Coin flip: 50% chance of ‘tails’
Key insight
◮ Unpredictable does not mean “nothing is known”
◮ Coin flip: 50% chance of ‘tails’ [subjectivist]
Key insight
◮ Unpredictable does not mean “nothing is known”
◮ Coin flip: 50% chance of ‘tails’ [subjectivist] ◮ Many coin flips: About half yield ‘tails’
Key insight
◮ Unpredictable does not mean “nothing is known”
◮ Coin flip: 50% chance of ‘tails’ [subjectivist] ◮ Many coin flips: About half yield ‘tails’ [frequentist]
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?
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
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.)
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.)
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?
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
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
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
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
Applications
Some applications
Applications
Some applications (they are everywhere ...):
Applications
Some applications (they are everywhere ...):
Applications
Some applications (they are everywhere ...):
Applications
Some applications (they are everywhere ...):
Applications
Some applications (they are everywhere ...):
Probability.
◮ The probability of getting a straight is around 1 in 250.
Probability.
◮ The probability of getting a straight is around 1 in 250.
Straight: Consecutive cards, suit doesn’t matter, e.g.,
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.
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.
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.
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%.
Terminology
◮ “Heads or Tails” in coin tossing (or coin flipping).
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.
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,
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.
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.
Probability
◮ If you flip a fair coin and get 50 heads, you will get heads
the next time with probability ...
Probability
◮ If you flip a fair coin and get 50 heads, you will get heads
the next time with probability ...1/2.
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%.
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.
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.)
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.
Probability Space.
- 1. A “random experiment”:
Probability Space.
- 1. A “random experiment”:
(a) Flip a biased coin;
Probability Space.
- 1. A “random experiment”:
(a) Flip a biased coin; (b) Flip two fair coins;
Probability Space.
- 1. A “random experiment”:
(a) Flip a biased coin; (b) Flip two fair coins; (c) Deal a poker hand.
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: Ω.
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};
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};
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}; |Ω| =
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;
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♠,...} |Ω| =
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
- .
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]
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
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
Probability Space: formalism.
Ω is the sample space.
Probability Space: formalism.
Ω is the sample space. ω ∈ Ω is a sample point.
Probability Space: formalism.
Ω is the sample space. ω ∈ Ω is a sample point. (Also called an outcome.)
Probability Space: formalism.
Ω is the sample space. ω ∈ Ω is a sample point. (Also called an outcome.) Sample point ω has a probability Pr[ω] where
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;
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.
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.
Probability Space: Formalism.
In a uniform probability space each outcome ω is equally probable: Pr[ω] =
1 |Ω| for all ω ∈ Ω.
Probability Space: Formalism.
In a uniform probability space each outcome ω is equally probable: Pr[ω] =
1 |Ω| for all ω ∈ Ω.
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.
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.
Probability Space: Formalism
Simplest physical model of a uniform probability space:
Probability Space: Formalism
Simplest physical model of a uniform probability space:
Probability Space: Formalism
Simplest physical model of a uniform probability space: A bag of identical balls, except for their color (or a label).
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.
Probability Space: Formalism
Simplest physical model of a non-uniform probability space:
Probability Space: Formalism
Simplest physical model of a non-uniform probability space:
p3 Fraction p1
- f circumference
p2
pω ω
1 2 3
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ω.
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... .)
Probability of exactly one heads in two coin flips?
Idea: Sum the probabilities of the outcomes with one heads.
Probability of exactly one heads in two coin flips?
Idea: Sum the probabilities of the outcomes with one heads. Leads to a definition!
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.
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[ω].
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[ω].
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[ω].
Event
p3 p2
pω ω
1 2 3 p1
E
Event
p3 p2
pω ω
1 2 3 p1
E
Event E = ‘wheel stops in sector 1 or 2 or 3’
Event
p3 p2
pω ω
1 2 3 p1
E
Event E = ‘wheel stops in sector 1 or 2 or 3’ = {1,2,3}.
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
Probability of exactly one heads in two coin flips?
Probability of exactly one heads in two coin flips?
Sample Space, Ω = {HH,HT,TH,TT}.
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.
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}.
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[ω]
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| |Ω|
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
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.
Probability of a straight?
Recall: Straight := Consecutive cards, suit does not matter. Outcomes: Ω = “poker hands”.
Probability of a straight?
Recall: Straight := Consecutive cards, suit does not matter. Outcomes: Ω = “poker hands”. Uniform probability space Pr[ω] = 1 |Ω| = 1 52
5
.
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 }.
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| |Ω|.
Construct straight:
Construct straight:
Construct straight: First choose the smallest value of the cards: {A,...,10} :
Construct straight: First choose the smallest value of the cards: {A,...,10} : 10 ways
Construct straight: First choose the smallest value of the cards: {A,...,10} : 10 ways and then five choices of suit:
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
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
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)
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[ω]
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
Calculation. Pr[E] = 10∗45 52
5
Calculation. Pr[E] = 10∗45 52
5
- irb(main):004:0*> 52*51*50*49*48/((5*4*3*2)*10*4**5)
Calculation. Pr[E] = 10∗45 52
5
- irb(main):004:0*> 52*51*50*49*48/((5*4*3*2)*10*4**5)
=> 253
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.
Is a flush more likely than a straight?
Is a flush more likely than a straight?
A flush is a hand that contains five cards of the same suit.
Is a flush more likely than a straight?
A flush is a hand that contains five cards of the same suit. Outcomes: Ω = “poker hands”.
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
.
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 }.
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| |Ω|.
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|?
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:
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 –
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
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:
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
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
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.
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| |Ω|
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
.
Calculation.
Calculation. Pr[E] = 4 13
5
- 52
5
- irb(main):001:0> 52*51*50*49*48/(4*13*12*11*10*9)
Calculation. Pr[E] = 4 13
5
- 52
5
- irb(main):001:0> 52*51*50*49*48/(4*13*12*11*10*9)
=> 504
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.
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.)
20 coin tosses
Sample space: Ω = set of 20 fair coin tosses
20 coin tosses
Sample space: Ω = set of 20 fair coin tosses = {H,T}20. |Ω| = 2×2×···×2
20 coin tosses
Sample space: Ω = set of 20 fair coin tosses = {H,T}20. |Ω| = 2×2×···×2 = 220.
20 coin tosses
Sample space: Ω = set of 20 fair coin tosses = {H,T}20. |Ω| = 2×2×···×2 = 220.
◮ What is more likely?
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
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?
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:
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 |Ω|.
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?
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
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?
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?
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| |Ω| .
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 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
- =
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.
Summary
How to model uncertainty?
Summary
How to model uncertainty? Key ideas:
Summary
How to model uncertainty? Key ideas:
◮ Random experiment
Summary
How to model uncertainty? Key ideas:
◮ Random experiment ◮ Probability space
Summary
How to model uncertainty? Key ideas:
◮ Random experiment ◮ Probability space
◮ Sample space Ω
Summary
How to model uncertainty? Key ideas:
◮ Random experiment ◮ Probability space
◮ Sample space Ω ◮ Probability: Pr(ω)
Summary
How to model uncertainty? Key ideas:
◮ Random experiment ◮ Probability space
◮ Sample space Ω ◮ Probability: Pr(ω) ◮ Event: E ⊆ Ω;Pr[E].