2. Probability Intro to Discrete Probability Anna Karlin With many - - PowerPoint PPT Presentation

2 probability
SMART_READER_LITE
LIVE PREVIEW

2. Probability Intro to Discrete Probability Anna Karlin With many - - PowerPoint PPT Presentation

2. Probability Intro to Discrete Probability Anna Karlin With many slides by Alex Tsun and CS70 at berkeley Agenda Definitions Axioms Equally Likely Outcomes Beyond equally likely outcomes Conditional Probability Definitions


slide-1
SLIDE 1
  • 2. Probability

Intro to Discrete Probability

Anna Karlin

With many slides by Alex Tsun and CS70 at berkeley

slide-2
SLIDE 2

Agenda

  • Definitions
  • Axioms
  • Equally Likely Outcomes
  • Beyond equally likely outcomes
  • Conditional Probability
slide-3
SLIDE 3

Definitions

slide-4
SLIDE 4

Definitions

slide-5
SLIDE 5

Definitions

slide-6
SLIDE 6

Example:weird dice (Sample Space)

Suppose i roll two 4-sided dice. Here is the sample space (set of possible outcomes)

1 2 3 4 1 (1, 1) (1, 2) (1, 3) (1, 4) 2 (2, 1) (2, 2) (2, 3) (2, 4) 3 (3, 1) (3, 2) (3, 3) (3, 4) 4 (4, 1) (4, 2) (4, 3) (4, 4) Die 2 (red) Die 1 (blue)

slide-7
SLIDE 7

Example:weird dice (Events)

Let D1 be the value of the blue die, and D2 the value of the red die. What outcomes match these events?

  • A. D1 = 1
  • B. D1 + D2 = 6
  • C. D1 = 2 * D2

1 2 3 4 1 (1, 1) (1, 2) (1, 3) (1, 4) 2 (2, 1) (2, 2) (2, 3) (2, 4) 3 (3, 1) (3, 2) (3, 3) (3, 4) 4 (4, 1) (4, 2) (4, 3) (4, 4) Die 2 (red) Die 1 (blue)

slide-8
SLIDE 8

Example:weird dice (Events)

Are A and B mutually exclusive? Are B And C mutually exclusive?

  • A. D1 = 1
  • B. D1 + D2 = 6
  • C. D1 = 2 * D2

1 2 3 4 1 (1, 1) (1, 2) (1, 3) (1, 4) 2 (2, 1) (2, 2) (2, 3) (2, 4) 3 (3, 1) (3, 2) (3, 3) (3, 4) 4 (4, 1) (4, 2) (4, 3) (4, 4) Die 2 (red) Die 1 (blue)

A A A A B B B C C

slide-9
SLIDE 9

Example:weird dice (mutually exclusive)

Are A and B mutually exclusive?

  • YES. A ∩ B = ∅ (no overlap)

1 2 3 4 1 (1, 1) (1, 2) (1, 3) (1, 4) 2 (2, 1) (2, 2) (2, 3) (2, 4) 3 (3, 1) (3, 2) (3, 3) (3, 4) 4 (4, 1) (4, 2) (4, 3) (4, 4) Die 2 (red) Die 1 (blue)

A A A A B B B C C

slide-10
SLIDE 10

Example:weird dice (mutually exclusive)

Are B And C mutually exclusive?

  • NO. B and C could happen at the

same time (4, 2)

1 2 3 4 1 (1, 1) (1, 2) (1, 3) (1, 4) 2 (2, 1) (2, 2) (2, 3) (2, 4) 3 (3, 1) (3, 2) (3, 3) (3, 4) 4 (4, 1) (4, 2) (4, 3) (4, 4) Die 2 (red) Die 1 (blue)

A A A A B B B C C

slide-11
SLIDE 11

Random Picture

slide-12
SLIDE 12

Axioms of Probability & Their Consequences

F E

slide-13
SLIDE 13

Axioms of Probability & Their Consequences

EC E

slide-14
SLIDE 14

Axioms of Probability & Their Consequences

F E

slide-15
SLIDE 15

Axioms of Probability & Their Consequences

slide-16
SLIDE 16

Example:weird dice (Events)

Think back to the 4-sided dice. Suppose each die is fair. Intuitively, What is the probability that the Two dice sum to 6? (D1 + D2 = 6)

1 2 3 4 1 (1, 1) (1, 2) (1, 3) (1, 4) 2 (2, 1) (2, 2) (2, 3) (2, 4) 3 (3, 1) (3, 2) (3, 3) (3, 4) 4 (4, 1) (4, 2) (4, 3) (4, 4) Die 2 (red) Die 1 (blue)

slide-17
SLIDE 17

Example:weird dice (Events)

Think back to the 4-sided dice. Suppose each die is fair. Intuitively, What is the probability that the Two dice sum to 6? (D1 + D2 = 6) Each of the 16 outcomes is Equally likely. 3/16.

1 2 3 4 1 (1, 1) (1, 2) (1, 3) (1, 4) 2 (2, 1) (2, 2) (2, 3) (2, 4) 3 (3, 1) (3, 2) (3, 3) (3, 4) 4 (4, 1) (4, 2) (4, 3) (4, 4) Die 2 (red) Die 1 (blue)

B B B

slide-18
SLIDE 18

Equally Likely Outcomes

slide-19
SLIDE 19

Coin tossing

Toss a coin 100 times. Each outcome is equally likely. What is the probability of seeing 50 heads?

slide-20
SLIDE 20

Non-equally Likely outcomes

slide-21
SLIDE 21

More examples – uniform probability spaces

slide-22
SLIDE 22

Nonuniform probability spaces

slide-23
SLIDE 23

Axioms of Probability & Their Consequences

slide-24
SLIDE 24

Probability

Alex Tsun Joshua Fan

slide-25
SLIDE 25

Conditional Probability

slides mostly by Alex Tsun

slide-26
SLIDE 26

Conditional Probability (idea)

36 7 13

What’s the probability that someone likes ice cream given they like donuts?

14

slide-27
SLIDE 27

Conditional Probability (idea)

36 7 13

What’s the probability that someone likes ice cream given they like donuts?

14

slide-28
SLIDE 28

Conditional Probability

slide-29
SLIDE 29

Conditional Probability (Reversal)

slide-30
SLIDE 30

Conditional Probability (intuition)

slide-31
SLIDE 31

Fun with conditional probability

  • Toss a red die and a blue die. All outcomes equally
  • likely. What is Pr(B | A)? What is Pr(B)?
slide-32
SLIDE 32

Fun with conditional probability

  • Toss a red die and a blue die. All outcomes equally
  • likely. What is Pr(B | A)?
slide-33
SLIDE 33

Gambler’s fallacy

  • Flip a fair coin 51 times. All outcomes equally likely.
  • A = “first 50 flips are heads”
  • B = “the 51st flip is heads”
  • Pr (B | A) = ?

33