foundations of computer science lecture 17 independent
play

Foundations of Computer Science Lecture 17 Independent Events - PowerPoint PPT Presentation

Foundations of Computer Science Lecture 17 Independent Events Independence is a Powerful Assumption The Fermi Method Coincidence and the Birthday Paradox Application to Hashing Random Walks and Gamblers Ruin Last Time 1 New information


  1. Foundations of Computer Science Lecture 17 Independent Events Independence is a Powerful Assumption The Fermi Method Coincidence and the Birthday Paradox Application to Hashing Random Walks and Gambler’s Ruin

  2. Last Time 1 New information changes a probability. 2 Conditional probability. 3 Conditional probability traps. ◮ Sampling bias, using P [ A ] instead of P [ A | B ]. ◮ Transposed conditional, using P [ B | A ] instead of P [ A | B ]. ◮ Medical testing. 4 Law of total probability. ◮ Case by case probability analysis. Creator: Malik Magdon-Ismail Independent Events: 2 / 13 Today →

  3. Today: Independent Events Independence is an assumption 1 Fermi method Multiway independence Coincidence and the birthday paradox 2 Application to hashing Random walk and gambler’s ruin 3 Creator: Malik Magdon-Ismail Independent Events: 3 / 13 Independence is an Assumption →

  4. Independence is a Simplifying Assumption Sex of first child has nothing to do with sex of second → independent. Creator: Malik Magdon-Ismail Independent Events: 4 / 13 Definition of Independence →

  5. Independence is a Simplifying Assumption Sex of first child has nothing to do with sex of second → independent. What about eyecolor? (Depends on genes of parent.) → not independent. Creator: Malik Magdon-Ismail Independent Events: 4 / 13 Definition of Independence →

  6. Independence is a Simplifying Assumption Sex of first child has nothing to do with sex of second → independent. What about eyecolor? (Depends on genes of parent.) → not independent. Tosses of different coins have nothing to do with each other → independent. Creator: Malik Magdon-Ismail Independent Events: 4 / 13 Definition of Independence →

  7. Independence is a Simplifying Assumption Sex of first child has nothing to do with sex of second → independent. What about eyecolor? (Depends on genes of parent.) → not independent. Tosses of different coins have nothing to do with each other → independent. Cloudy and rainy days. When it rains, there must be clouds. → not independent. Creator: Malik Magdon-Ismail Independent Events: 4 / 13 Definition of Independence →

  8. Independence is a Simplifying Assumption Sex of first child has nothing to do with sex of second → independent. What about eyecolor? (Depends on genes of parent.) → not independent. Tosses of different coins have nothing to do with each other → independent. Cloudy and rainy days. When it rains, there must be clouds. → not independent. Toss two coins. P [ Coin 1=H ] = 1 P [ Coin 2=H ] = 1 P [ Coin 1=H and Coin 2=H ] = 1 2 2 4 Toss 100 times: Coin 1 ≈ 50 H (of these) → Coin 2 ≈ 25 H (independent) P [ Coin 1=H and Coin 2=H ] = 1 4 = 1 2 × 1 2 = P [ Coin 1=H ] × P [ Coin 2=H ] . Creator: Malik Magdon-Ismail Independent Events: 4 / 13 Definition of Independence →

  9. Independence is a Simplifying Assumption Sex of first child has nothing to do with sex of second → independent. What about eyecolor? (Depends on genes of parent.) → not independent. Tosses of different coins have nothing to do with each other → independent. Cloudy and rainy days. When it rains, there must be clouds. → not independent. Toss two coins. P [ Coin 1=H ] = 1 P [ Coin 2=H ] = 1 P [ Coin 1=H and Coin 2=H ] = 1 2 2 4 Toss 100 times: Coin 1 ≈ 50 H (of these) → Coin 2 ≈ 25 H (independent) P [ Coin 1=H and Coin 2=H ] = 1 4 = 1 2 × 1 2 = P [ Coin 1=H ] × P [ Coin 2=H ] . 1 1 P [ rain and clouds ] = P [ rain ] = 35 = P [ rain ] × P [ clouds ] . 7 ≫ (not independent) Creator: Malik Magdon-Ismail Independent Events: 4 / 13 Definition of Independence →

  10. Definition of Independence Events A and B are independent if “They have nothing to do with each other.” Knowing the outcome is in B does not change the probability that the outcome is in A . Creator: Malik Magdon-Ismail Independent Events: 5 / 13 Fermi-Method →

  11. Definition of Independence Events A and B are independent if “They have nothing to do with each other.” Knowing the outcome is in B does not change the probability that the outcome is in A . The events A and B are independent if P [ A and B ] = P [ A ∩ B ] = P [ A ] × P [ B ] . In general, P [ A ∩ B ] = P [ A | B ] × P [ B ] . Independence means that P [ A | B ] = P [ A ] . Creator: Malik Magdon-Ismail Independent Events: 5 / 13 Fermi-Method →

  12. Definition of Independence Events A and B are independent if “They have nothing to do with each other.” Knowing the outcome is in B does not change the probability that the outcome is in A . The events A and B are independent if P [ A and B ] = P [ A ∩ B ] = P [ A ] × P [ B ] . In general, P [ A ∩ B ] = P [ A | B ] × P [ B ] . Independence means that P [ A | B ] = P [ A ] . Independence is a non-trivial assumption, and you can’t always assume it. When you can assume independence PROBABILITIES MULTIPLY Creator: Malik Magdon-Ismail Independent Events: 5 / 13 Fermi-Method →

  13. Fermi-Method: How Many Dateable Girls Are Out There? Creator: Malik Magdon-Ismail Independent Events: 6 / 13 Multiway Independence →

  14. Fermi-Method: How Many Dateable Girls Are Out There? A 1 = “Lives nearby”; A 2 = “Right sex”; A 3 = “Right age”; A 4 = “Single”; A 5 = “Educated”; A 6 = “Attractive”; A 7 = “Finds me attractive”; A 8 = “We get along”. Creator: Malik Magdon-Ismail Independent Events: 6 / 13 Multiway Independence →

  15. Fermi-Method: How Many Dateable Girls Are Out There? A 1 = “Lives nearby”; A 2 = “Right sex”; A 3 = “Right age”; A 4 = “Single”; A 5 = “Educated”; A 6 = “Attractive”; A 7 = “Finds me attractive”; A 8 = “We get along”. A = A 1 ∩ A 2 ∩ A 3 ∩ A 4 ∩ A 5 ∩ A 6 ∩ A 7 ∩ A 8 (all criteria must be met) Creator: Malik Magdon-Ismail Independent Events: 6 / 13 Multiway Independence →

  16. Fermi-Method: How Many Dateable Girls Are Out There? A 1 = “Lives nearby”; A 2 = “Right sex”; A 3 = “Right age”; A 4 = “Single”; A 5 = “Educated”; A 6 = “Attractive”; A 7 = “Finds me attractive”; A 8 = “We get along”. A = A 1 ∩ A 2 ∩ A 3 ∩ A 4 ∩ A 5 ∩ A 6 ∩ A 7 ∩ A 8 (all criteria must be met) Independence: P [ A ] = P [ A 1 ∩ A 2 ∩ A 3 ∩ A 4 ∩ A 5 ∩ A 6 ∩ A 7 ∩ A 8 ] . Creator: Malik Magdon-Ismail Independent Events: 6 / 13 Multiway Independence →

  17. Fermi-Method: How Many Dateable Girls Are Out There? A 1 = “Lives nearby”; A 2 = “Right sex”; A 3 = “Right age”; A 4 = “Single”; A 5 = “Educated”; A 6 = “Attractive”; A 7 = “Finds me attractive”; A 8 = “We get along”. A = A 1 ∩ A 2 ∩ A 3 ∩ A 4 ∩ A 5 ∩ A 6 ∩ A 7 ∩ A 8 (all criteria must be met) Independence: P [ A ] = P [ A 1 ∩ A 2 ∩ A 3 ∩ A 4 ∩ A 5 ∩ A 6 ∩ A 7 ∩ A 8 ] . number(nearby) number(world) ≈ 20 million 3 P [“Lives nearby”] 7 billion ≈ 1000 Creator: Malik Magdon-Ismail Independent Events: 6 / 13 Multiway Independence →

  18. Fermi-Method: How Many Dateable Girls Are Out There? A 1 = “Lives nearby”; A 2 = “Right sex”; A 3 = “Right age”; A 4 = “Single”; A 5 = “Educated”; A 6 = “Attractive”; A 7 = “Finds me attractive”; A 8 = “We get along”. A = A 1 ∩ A 2 ∩ A 3 ∩ A 4 ∩ A 5 ∩ A 6 ∩ A 7 ∩ A 8 (all criteria must be met) Independence: P [ A ] = P [ A 1 ∩ A 2 ∩ A 3 ∩ A 4 ∩ A 5 ∩ A 6 ∩ A 7 ∩ A 8 ] . number(nearby) number(world) ≈ 20 million 3 P [“Lives nearby”] 7 billion ≈ 1000 1 P [“Right sex”] 2 (there are about 50% male and 50% female in the world) Creator: Malik Magdon-Ismail Independent Events: 6 / 13 Multiway Independence →

  19. Fermi-Method: How Many Dateable Girls Are Out There? A 1 = “Lives nearby”; A 2 = “Right sex”; A 3 = “Right age”; A 4 = “Single”; A 5 = “Educated”; A 6 = “Attractive”; A 7 = “Finds me attractive”; A 8 = “We get along”. A = A 1 ∩ A 2 ∩ A 3 ∩ A 4 ∩ A 5 ∩ A 6 ∩ A 7 ∩ A 8 (all criteria must be met) Independence: P [ A ] = P [ A 1 ∩ A 2 ∩ A 3 ∩ A 4 ∩ A 5 ∩ A 6 ∩ A 7 ∩ A 8 ] . number(nearby) number(world) ≈ 20 million 3 P [“Lives nearby”] 7 billion ≈ 1000 1 P [“Right sex”] 2 (there are about 50% male and 50% female in the world) 15 P [“Right age”] 100 (about 15% of people between 20 and 30) Creator: Malik Magdon-Ismail Independent Events: 6 / 13 Multiway Independence →

  20. Fermi-Method: How Many Dateable Girls Are Out There? A 1 = “Lives nearby”; A 2 = “Right sex”; A 3 = “Right age”; A 4 = “Single”; A 5 = “Educated”; A 6 = “Attractive”; A 7 = “Finds me attractive”; A 8 = “We get along”. A = A 1 ∩ A 2 ∩ A 3 ∩ A 4 ∩ A 5 ∩ A 6 ∩ A 7 ∩ A 8 (all criteria must be met) Independence: P [ A ] = P [ A 1 ∩ A 2 ∩ A 3 ∩ A 4 ∩ A 5 ∩ A 6 ∩ A 7 ∩ A 8 ] . number(nearby) number(world) ≈ 20 million 3 P [“Lives nearby”] 7 billion ≈ 1000 1 P [“Right sex”] 2 (there are about 50% male and 50% female in the world) 15 P [“Right age”] 100 (about 15% of people between 20 and 30) 1 P [“Single”] 2 (about 50% of people are single) Creator: Malik Magdon-Ismail Independent Events: 6 / 13 Multiway Independence →

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