1 of 12

Lecture 14

Chance

DATA 8

Fall 2017

Slides created by John DeNero (denero@berkeley.edu) and Ani Adhikari (adhikari@berkeley.edu)

2 of 12

Announcements

3 of 12

The Monty Hall Problem

4 of 12

Monty Hall Problem

5 of 12

Attendance

6 of 12

Probability

7 of 12

Probability

  • Lowest value: 0
    • Chance of event that is impossible
  • Highest value: 1 (or 100%)
    • Chance of event that is certain

  • If an event has chance 70%, then the chance that it doesn’t happen is
    • 100% - 70% = 30%
    • 1 - 0.7 = 0.3

(Demo)

8 of 12

Equally Likely Outcomes

Assuming all outcomes are equally likely, the chance of an event A is:

number of outcomes that make A happen

P(A) = ---------------------------------------------------------------

total number of outcomes

9 of 12

Fraction of a Fraction

(Demo)

10 of 12

Multiplication Rule

Chance that two events A and B both happen

= P(A happens) x P(B happens given that A has happened)

  • The answer is less than or equal to each of the two chances being multiplied
  • The more conditions you have to satisfy, the less likely you are to satisfy them all

(Demo)

11 of 12

Addition Rule

If event A can happen in exactly one of two ways, then

P(A) = P(first way) + P(second way)

  • The answer is greater than or equal to the chance of each individual way

12 of 12

Example: At Least One Head

  • In 3 tosses:
    • Any outcome except TTT
    • P(TTT) = (½) x (½) x (½) = ⅛
    • P(at least one head) = 1 - P(TTT) = ⅞ = 87.5%

  • In 10 tosses:
    • 1 - (½)**10
    • 99.9%

(Demo)