31
1

Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

1

Page 2: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

Probability distribution if area under curve = 1

Percentage of people shorter than 5’8’’: area under the curve for –inf to 5’8’’

2

Page 3: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

Two unbound variables in f(x) for a gaussian curve: sigma and mu

3

Page 4: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

This is why a lot of stuff you measure looks like a Gaussian

4

Page 5: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

The joint distribution table gives you all the information you need to ask these types

5

of questions.

Page 6: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

6

Page 7: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

A and B might be dependent on each other, however they are independent given c.

7

Therefore they are conditionally independent

Page 8: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

Bayesian networks allow you to specify the joint distribution without needing a huge

8

table.

P(liked) = P(Li AND Lo) + P(Li AND not Lo) = P(Li|Lo)*P(Lo) + P(Li|not Lo)*P(not

Lo) = 0.4*0.5 + 0.7*0.5 = 0.55

Page 9: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

9

Page 10: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

The scenario: My house is in LA equipped with an alarm, and I live in Pittsburgh.

10

Mary & John are my neighbors in LA. If the alarm sounds, Mary or John might call

me. Either a burglary or an earthquake can set off the alarm.

Page 11: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

First, this is a naïve way of calculating the joint distribution

11

Page 12: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

12

Page 13: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

We are assuming here that Burglaries and earthquakes are independent (in the real

13

world people might loot after an earthquake.)

Page 14: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

14

Page 15: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

15

Page 16: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

When you draw the bayes net, you are making assumptions about independence

16

(like burglaries and earthquakes are independent). After it is drawn, you can ask

any question.

Page 17: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

17

Page 18: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

18

Page 19: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

19

Page 20: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

20

Page 21: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

21

Page 22: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

22

Page 23: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

However, on average using bayesian networks saves us time

23

Page 24: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

Prove that it must be possible

24

Page 25: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

25

Page 26: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

26

Page 27: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

P(J=1|…) = 0.05, P(M=0|…) = 0.85, so we’re going to weigh this sample by

27

0.05*0.85

Luis strongly recommends you to read Ch.14 of Russell and Norvig

Page 28: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

28

Page 29: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

29

Page 30: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

30

Page 31: Probability distribution if area under curve = 1 ...€¦ · We are assuming here that Burglaries and earthquakes are independent (in the real 13 world people might loot after an

Luis’s special public announcement

31