cs70 jean walrand lecture 22
play

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


  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%.

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

  3. 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.

  4. 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,

  5. 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.

  6. 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.

  7. Probability ◮ If you flip a fair coin and get 50 heads, you will get heads the next time with probability ...

  8. Probability ◮ If you flip a fair coin and get 50 heads, you will get heads the next time with probability ...1 / 2.

  9. 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%.

  10. 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.

  11. 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.)

  12. 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.

  13. Probability Space. 1. A “random experiment”:

  14. Probability Space. 1. A “random experiment”: (a) Flip a biased coin;

  15. Probability Space. 1. A “random experiment”: (a) Flip a biased coin; (b) Flip two fair coins;

  16. Probability Space. 1. A “random experiment”: (a) Flip a biased coin; (b) Flip two fair coins; (c) Deal a poker hand.

  17. 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: Ω .

  18. 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 } ;

  19. 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 } ;

  20. 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 } ; | Ω | =

  21. 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;

  22. 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 ♠ ,... } | Ω | =

  23. 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

  24. 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 ]

  25. 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

  26. 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 � 52 � (c) Pr [ A ♠ A ♦ A ♣ A ♥ K ♠ ] = ··· = 1 / 5

  27. Probability Space: formalism. Ω is the sample space.

  28. Probability Space: formalism. Ω is the sample space. ω ∈ Ω is a sample point .

  29. Probability Space: formalism. Ω is the sample space. ω ∈ Ω is a sample point . (Also called an outcome .)

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

  31. 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;

  32. 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 .

  33. 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 .

  34. Probability Space: Formalism. In a uniform probability space each outcome ω is equally 1 probable: Pr [ ω ] = | Ω | for all ω ∈ Ω .

  35. Probability Space: Formalism. In a uniform probability space each outcome ω is equally 1 probable: Pr [ ω ] = | Ω | for all ω ∈ Ω .

  36. Probability Space: Formalism. In a uniform probability space each outcome ω is equally 1 probable: Pr [ ω ] = | Ω | for all ω ∈ Ω . Examples: ◮ Flipping two fair coins, dealing a poker hand are uniform probability spaces.

  37. Probability Space: Formalism. In a uniform probability space each outcome ω is equally 1 probable: Pr [ ω ] = | Ω | 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.

  38. Probability Space: Formalism Simplest physical model of a uniform probability space:

  39. Probability Space: Formalism Simplest physical model of a uniform probability space:

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

  41. 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.

  42. Probability Space: Formalism Simplest physical model of a non-uniform probability space:

  43. Probability Space: Formalism Simplest physical model of a non-uniform probability space: p ω ω p 3 3 1 2 p 2 Fraction p 1 of circumference

  44. Probability Space: Formalism Simplest physical model of a non-uniform probability space: p ω ω p 3 3 1 2 p 2 Fraction p 1 of circumference The roulette wheel stops in sector ω with probability p ω .

  45. Probability Space: Formalism Simplest physical model of a non-uniform probability space: p ω ω p 3 3 1 2 p 2 Fraction p 1 of circumference The roulette wheel stops in sector ω with probability p ω . (Imagine a perfectly constructed wheel, that you spin hard enough, with low friction... .)

  46. Probability of exactly one heads in two coin flips? Idea: Sum the probabilities of the outcomes with one heads.

  47. Probability of exactly one heads in two coin flips? Idea: Sum the probabilities of the outcomes with one heads. Leads to a definition!

  48. 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.

  49. 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 [ ω ] .

  50. 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 [ ω ] .

  51. 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 [ ω ] .

  52. Event p ω ω p 3 3 1 2 p 1 p 2 E

  53. Event p ω ω p 3 3 1 2 p 1 p 2 E Event E = ‘wheel stops in sector 1 or 2 or 3’

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

  55. Event p ω ω p 3 3 1 2 p 1 p 2 E Event E = ‘wheel stops in sector 1 or 2 or 3’ = { 1 , 2 , 3 } . Pr [ E ] = p 1 + p 2 + p 3

  56. Probability of exactly one heads in two coin flips?

  57. Probability of exactly one heads in two coin flips? Sample Space, Ω = { HH , HT , TH , TT } .

  58. 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 .

  59. 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 } .

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend