1
00:00:02,970 --> 00:00:08,790
Bayes Theorem, or Bayes Rule, is one of the most important concepts used in Bayesian estimation or

2
00:00:08,790 --> 00:00:15,210
probabilistic estimation, Bayes Theorem allows you to calculate the likelihood or bounds of an unknown

3
00:00:15,210 --> 00:00:19,060
parameter or event based on some prior information related to that event.

4
00:00:19,320 --> 00:00:22,110
And this process is called Bayesian inference.

5
00:00:24,250 --> 00:00:27,140
Bayes theorem is derived from conditional probability.

6
00:00:27,160 --> 00:00:33,790
So from conditional probability, we can work out the conditional probability of A given B as the joint

7
00:00:33,790 --> 00:00:36,590
probabilities of A and B over the marginal probability.

8
00:00:37,120 --> 00:00:42,490
We can also write this equation in the opposite way so we can work out the conditional probability of

9
00:00:42,490 --> 00:00:44,820
being given a it's just going to be the reverse.

10
00:00:45,600 --> 00:00:52,060
And now from probability, we know that the joint probability, so the probability of A and B and the

11
00:00:52,060 --> 00:00:55,600
probability of B and A, they're going to be equal the same thing.

12
00:00:55,600 --> 00:00:57,310
So joint probabilities are equivalent.

13
00:00:58,030 --> 00:01:01,700
So then we can rearrange this equation and substitute them into each other.

14
00:01:02,020 --> 00:01:03,670
We end up with Bayes Theorem.

15
00:01:04,450 --> 00:01:07,360
So Bayes Theorem, a rule is now displayed on the slide.

16
00:01:07,660 --> 00:01:13,360
We can see that this first term here, this is a conditional probability and it is the likelihood of

17
00:01:13,360 --> 00:01:19,260
event A, given the event B occurs the next time over here is another conditional probability.

18
00:01:19,270 --> 00:01:23,290
It is the likelihood of event B given the event A has occurred.

19
00:01:24,040 --> 00:01:29,130
The next term is the marginal probability is just the likelihood of event A occurring.

20
00:01:29,410 --> 00:01:36,650
And this last time the divisor is another marginal probability and it's the likelihood of Event B occurring.

21
00:01:37,600 --> 00:01:41,980
Now when we talk about these different conditional and marginal probabilities, we give them special

22
00:01:41,980 --> 00:01:42,430
names.

23
00:01:42,430 --> 00:01:46,070
When we're talking about Bayes Theorem, first time here.

24
00:01:46,480 --> 00:01:49,880
Sometimes we can call that the posterior probability.

25
00:01:50,020 --> 00:01:56,710
So this is the probability, given this information over here, this term here is called the likelihood.

26
00:01:58,210 --> 00:02:01,530
This next term here is called the primary probability.

27
00:02:02,410 --> 00:02:04,490
And this term here is called the evidence.

28
00:02:05,200 --> 00:02:08,940
Now, we'll go over what these terms actually mean in the next sample here.

29
00:02:09,670 --> 00:02:12,300
So let's look at an example.

30
00:02:12,310 --> 00:02:16,160
So we might be asked, what is the likelihood of it raining today?

31
00:02:16,210 --> 00:02:19,320
Well, we can use Bayes Theorem and a bit of information to work this out.

32
00:02:20,200 --> 00:02:23,770
What we want to do is we can want to use some prior information.

33
00:02:23,770 --> 00:02:31,150
So if we know that it has rained in the last 18 days and 30 days, well, then we can work out the probability

34
00:02:31,150 --> 00:02:35,800
of it raining today so we get probability of rain being point six.

35
00:02:36,700 --> 00:02:38,620
So this is the prior information.

36
00:02:38,740 --> 00:02:43,930
Now, if we just use this information, we can get one estimate of the likelihood of rain is going to

37
00:02:43,930 --> 00:02:47,590
be today, but we can include some other information.

38
00:02:47,590 --> 00:02:52,310
So if we know some other information, we can come up with a better estimate of the likelihood of rain.

39
00:02:53,140 --> 00:02:55,520
So this is called the prior information.

40
00:02:55,540 --> 00:02:56,970
This is this term up here.

41
00:02:58,450 --> 00:03:03,550
Next, we can look at evidence so we can look out the window and we can come to some evaluation and

42
00:03:03,550 --> 00:03:04,240
some judgment.

43
00:03:04,250 --> 00:03:10,010
And we're going to say it is a forty eight percent chance of clouds in the morning today.

44
00:03:10,330 --> 00:03:14,730
So now we can look at including some other information and we can include the likelihood.

45
00:03:14,740 --> 00:03:16,310
So that's this term up here.

46
00:03:16,900 --> 00:03:21,550
And in this case, it's going to be the what's the likelihood that is going to be cloudy, given that

47
00:03:21,550 --> 00:03:28,780
it rains so we can use some prior information so we can look at on the days that is range rain, we

48
00:03:28,780 --> 00:03:32,640
can sort of say that 68 percent of the time it was also cloudy in the morning.

49
00:03:32,650 --> 00:03:34,900
So this is its point, six, eight.

50
00:03:36,370 --> 00:03:43,110
So we can include all these term into using Bayes Theorem and we can come up with the posterior probability,

51
00:03:43,240 --> 00:03:47,980
what is a probability that it's going to rain today, given that it might be cloudy in the morning?

52
00:03:48,550 --> 00:03:55,660
So evaluating this equation here, we can work out that there's a point eighty five or eighty five percent

53
00:03:55,660 --> 00:03:57,250
chance that there's actually going to rain today.

54
00:03:57,750 --> 00:04:04,690
So you can see here this probability is a lot has included a lot more information than just this probability

55
00:04:04,690 --> 00:04:05,440
of rain over here.

56
00:04:06,220 --> 00:04:11,410
So using this information, we can say the probability that it's going to rain today is not point six

57
00:04:11,410 --> 00:04:12,550
is point eight five.

58
00:04:12,670 --> 00:04:15,100
So in that case, we better bring an umbrella.

59
00:04:16,510 --> 00:04:22,300
So this is an example of how we can use Bayes Theorem to include more information on prior information

60
00:04:22,300 --> 00:04:26,740
into the estimate to come up with an even better estimate of some probability.

