e fruit E Events E re E PREE i PREE The complement of event 1 - - PDF document

e fruit
SMART_READER_LITE
LIVE PREVIEW

e fruit E Events E re E PREE i PREE The complement of event 1 - - PDF document

Conditional probability July 20g 2020 The Monty Hall 1 problem 2 Conditional probability 3 Bayes Rude Probability Rule 4 Total time Last Sf Sample space Sample Point Outcome Wj w we was 1 1 g n WA of Prc wid f l wn n E Pr 1 wi is I


slide-1
SLIDE 1

Conditional probability

July 20g2020

1

The Monty Hall

problem

2 Conditional probability

3 Bayes Rude

4 Total

Probability Rule

Last

time

Sf Sample space

Wj

Sample Point Outcome

we w was

1

1

g n

WA

  • fPrcwid f l

wn

n

E Pr

wi

1

is I

Events E

PREE

efruit

The complement of event

E re E

PREE

i PREE

slide-2
SLIDE 2

1 The

Monty Hall Problem

I

z

z

There

are

three doors

A

car is behind one of

as a

the doors

Goats behind the

  • ther

two doors

1 The contestant picks

a door

but does not open it

2 Then

Hall'sassistant opens

  • ne of the
  • ther two

doors revealing agoat

3

The contestant is then given the

  • ption of

sticking with their current choice

  • r switching to

the other unopened door

4 He she win

the car

if andonly if

their

chosen

door is the

correct

  • ne

Question

Does

the

contestant have a better

chance of winning

if

he she switches door

Assume the

Prize

is equally likely to

be

behind any

  • f the

three doors

slide-3
SLIDE 3

sample

space

I 2

3

Pr

g L

a

c's

wz

g

cg

r.efeggggeggg.ge

ay

g g

c

W LO G

we

assume

w

happens

I 2

3

1

142,3

e

g

g

PRET

Prez sprE5f

E i winning by switching

a

3

A

2

I

3

2

I

pV ED Pr

I 2

Pr

3

Prez

B

Pr

D

O

t

5

15 23

Pru

23 13

Pr

EDs

J

l

slide-4
SLIDE 4

Pr

I

33

13

prez

D

13

1 13

Pr

3

i

x

is

EZE

winning

by

not

switching

Stick to

3 2

2

I

3 I

Pr

Ez

Pr

l

D

PREZ

23

Pr

3

3

Iz

e Ot D

Iz

Pr

ED

P8

l

B

b Xl Ig

pr

2 2Jstgx0

O

pr

3

3

13

0 SO

we

have

a better chance of winning if

we

use

switching strategy

slide-5
SLIDE 5

2 Conditionalprobability

Examples

Two

coin flips First flip is heads

Probability of two heads

R

AH HT TH TT

g uniform probability space

EVA

first flip

is

heads

A f HHy AT

r

New sample space

TH

Htt

Event B

two heads f HH

TT HT The probability of two heads if the first

flip is heads

The Probability of B given A

is PREBIA

42

Example

Two coin flips Atleast one of the flips is

heads

probability

  • f

two heads

Event AEf HI Tht

HH

Event Bsf htt

The Probability of

B

given A

Pr

BIA

Ig

slide-6
SLIDE 6

A

non uniform enample

r

Prew

Red

340

Bene

q

Green

4110

Expermint

  • range

410

r

f Red

Blue

Green orange

pr retired or green

t

7

B

A A if

3 reds

4 greens

B f3reds

Anotherexample

Ff

considers.sfb2

N

A p

g Pz

B with PrEnJspn

a

BzBg

Pa

Asfb2g3

Http

et

  • e

joint

Bsf3.4

p µfMt

probability

p

pm

PREBIAT Tipp

hB

  • r
slide-7
SLIDE 7

Assume

sample Point

WE

A

then

pros

Pr wlA

Pr WAA

pretty

r

Torres

Then

PREBIA

s

EBP.rcwnt

PREB.AT

PRCA

Prca

Definition

The conditional Probability of 13

given A

is pr BIA

Pr BRA

R

AAB

A given

Aegµ

B

Pratt

PRETTY

PRE

  • ne moreexample

suppose I toss

3 balls into 3 bins

  • ne

at the time

A

1st bin is empty

B

2ndbin is empty

what

is Pr AIB

000

z

se

r

f gzg3

Mls 33 27

i

2

3

A f 2,333

Bsf

333

1131

23

8 AAB

1333 IA Is 23 s 8

IANBI B

I

slide-8
SLIDE 8

1

Pr

At B

s

PKA.ms

2qfI

f

pVTBJprEB3sfBI

s z8ygPrCAhB

s ftp.B

zz

Bayesian Inference

8

A way update

knowledge after making

an

  • bservation

we

may have

an estimate of probability of

a

given

event A

prior

knowledge After

event

B

  • ccures

we

can update this

estimate

to PRCA1B

In this

interpretation

PEAT

Prior probability

Pr AIB Posterior Probability

Example There

is

a

new

test

for

a certain disease

1 when the test applied

to

an

affect Person

the

test

comes up positive

90 l

  • f

cases

and negative in

101

False negative

2 when applied to

a healthy Person the

test

a

slide-9
SLIDE 9

comes up negative 80

  • f cases and positive

215

False Positive

Suppose

that only

5

  • f

the

Population

has

this

disease

prior

A

Q when

a

random Person is tested positive what

is

the probability that

the Person

has

the

disease Pr

At B

Let's define events

Ae affected

Bo

Test

is Positive

PRCA

0.05

K

0.9 PREBTA

0.2

Pr AIB

PrEAAB

PREBIAJPREAT PVCB

PrEB

Pr BI AT PREAAB

t

puffy

PREAABF.PK

fPrCAJprEB7

prCAABJ

PREFAB

slide-10
SLIDE 10

Pr AhB3sPr BID PRCA

PREFAB

Pr

BIT

Prof

Pr B F

I PRAT

Pr AIB

PREBIAJP.CA

PrEBIA3PrCAJpprCBIATf PrcAJ

3 Bayes Rule

PLA 1B

PCBIAJPCAJPREAIB.IS

PVEAAB P

B

Tj

pr ABIA

Prc Anoypret

4 Total Probability Rule

Imagine two

bins containing

some

number of

red and green

Bini

Bin 2

One bin is chosen withequal

Bad Probability

507

BBB B

Bo

Then

a ball is drawn uniformly at rqndom

what is the probability that

b koYoYo

Ya

We Picked Bin i given that

BOB

a green baltwas drain

G I

  • B

Bz

slide-11
SLIDE 11

prosit green

PrE9rj

PrEgreenrigs Pr

green ABD ePr

greenMBB

PrEgreen BigPrCBDtPr green

IBD

pr

Bz

25

12

12 12 Ip

Definition

Event

B is Partitioned into

n

events

Aig

An

if

1 B

AATTn

B

2

Air Aj 0

forall

A

Az

sn

An i An

i.e A

An are

mutuallyexclusive

4

Then

the

total

probability is

pr B

s

PEBAAri

PRIBLADPREAD

slide-12
SLIDE 12

So

for

the bays rule

Pr AilB PREBIAITPREAD

PREBIAITPREAD

PREB

g

PREBIAJJPREAD