1
00:00:04,310 --> 00:00:10,060
In the previous video, we've looked at mutually exclusive probability and non mutually exclusive probability,

2
00:00:10,520 --> 00:00:12,860
this video, we're going to look at conditional probability.

3
00:00:13,920 --> 00:00:19,820
Now, the events that occur can be considered independent if the likelihood of one event occurring does

4
00:00:19,820 --> 00:00:22,490
not change the likelihood of another event occurring.

5
00:00:23,240 --> 00:00:26,660
Perfect example of this is a coin toss or a roll of the dice.

6
00:00:27,590 --> 00:00:33,050
Getting a heads or rolling a set number will not affect the probability of getting the same event again

7
00:00:33,080 --> 00:00:34,010
or a different event.

8
00:00:34,430 --> 00:00:40,400
Every time you flip a coin or roll the dice, every outcome is equally as likely, no matter what the

9
00:00:40,400 --> 00:00:42,330
outcome was from the previous event.

10
00:00:43,430 --> 00:00:47,570
Now events can be considered dependent if they are the opposite.

11
00:00:47,750 --> 00:00:51,740
When one event occurs, it changes the probability of other events occurring.

12
00:00:53,680 --> 00:01:00,790
A deck of cards is a perfect example of this, if we pull out any card at random, we have a 50/50 chance

13
00:01:00,790 --> 00:01:03,910
of it being a black card or a red card.

14
00:01:04,180 --> 00:01:06,610
And we've previously calculated this before.

15
00:01:06,610 --> 00:01:10,640
So the probability of pulling out a red card is 26 over 52.

16
00:01:10,660 --> 00:01:14,590
So 26 red cards in this deck, 52 cards in total.

17
00:01:15,370 --> 00:01:17,080
We work it out is point five.

18
00:01:17,380 --> 00:01:19,870
And we do the same thing for black is point five as well.

19
00:01:20,230 --> 00:01:25,750
So if we pull out any card at random, we have a 50/50 chance of it being a black card or a red card.

20
00:01:26,710 --> 00:01:32,290
So if you pull out any card from a full deck, let's say we pull out a three of hearts.

21
00:01:32,290 --> 00:01:35,940
It was a 50/50 chance is a red card or a black card.

22
00:01:36,400 --> 00:01:42,220
And if we put it back and pull out a different card and this time we pull out a black seven of clubs,

23
00:01:43,510 --> 00:01:46,150
we still have a 50/50 chance of being black or red.

24
00:01:47,050 --> 00:01:50,400
Now, these are considered independent events.

25
00:01:50,920 --> 00:01:56,770
So what happens if we continue this experiment without replacing the last card we've just pulled out?

26
00:01:57,280 --> 00:02:01,360
So in the last example, we just had put out the seven of clubs.

27
00:02:02,350 --> 00:02:07,630
So what happens if now we don't replace this card, so we leave it pulled out?

28
00:02:07,990 --> 00:02:12,010
We're going to have to change the whole probability of getting a red or a black card.

29
00:02:12,010 --> 00:02:14,560
And we can calculate this again using basic probability.

30
00:02:15,590 --> 00:02:18,430
So the probability of pulling out a red card now has changed.

31
00:02:18,430 --> 00:02:19,320
It is two.

32
00:02:19,360 --> 00:02:22,540
It is now 26 over 50 to minus one.

33
00:02:22,990 --> 00:02:24,570
So we pulled out one card.

34
00:02:24,580 --> 00:02:26,530
So there is no longer 52 cards in the deck.

35
00:02:27,400 --> 00:02:28,660
So we subtract one from it.

36
00:02:28,660 --> 00:02:33,880
So we get a slightly higher probability than 50 percent of pulling out a red card.

37
00:02:34,480 --> 00:02:39,820
And if we look at the black now, we have twenty six minus one because we pulled out one black card

38
00:02:39,820 --> 00:02:42,190
already and we have one last card in the deck.

39
00:02:42,340 --> 00:02:43,900
So we have 50 to minus one.

40
00:02:43,930 --> 00:02:46,270
So this is equal to this point for nine.

41
00:02:46,750 --> 00:02:50,770
So a slightly lower chance of than 50 50 or pulling out a black card.

42
00:02:51,650 --> 00:02:54,040
So this is considered dependent events.

43
00:02:54,370 --> 00:03:00,280
Since we've already had one event occurred, the the probability of another event occurring has changed.

44
00:03:01,420 --> 00:03:07,420
So if we have a closer look at dependent events, the probability of event A and then event B occurring,

45
00:03:07,420 --> 00:03:11,270
if they are dependent, can be described using this equation here.

46
00:03:11,530 --> 00:03:18,940
So the probability of A and then event B occurring is equal to the probability of A and then the probability

47
00:03:18,940 --> 00:03:22,480
of event B happening, given that A has occurred.

48
00:03:23,020 --> 00:03:30,490
So this bar here represents the word given the probability of drawing out a red card followed by a black

49
00:03:30,490 --> 00:03:35,460
card without replacing the cards after drawn can be expressed using this equation up here.

50
00:03:35,710 --> 00:03:38,230
And it can be written as this equation.

51
00:03:38,230 --> 00:03:43,660
The probability of pulling out a red card and then a black card is equal to the initial probability

52
00:03:43,660 --> 00:03:47,650
of pulling a red card and then the probability of pulling on a black card.

53
00:03:47,650 --> 00:03:53,170
Given that a red card has been drawn and we can fill in the numbers from the previous slide and come

54
00:03:53,170 --> 00:03:54,380
up with this probability here.

55
00:03:54,850 --> 00:03:59,760
So the probability of pulling out a red card initially is just the twenty six fifty two.

56
00:04:00,400 --> 00:04:01,720
So that's just point five.

57
00:04:02,110 --> 00:04:06,970
And then the probability of pulling out a black card, given that a red card has been previously drawn,

58
00:04:07,240 --> 00:04:09,250
is this twenty six over 51.

59
00:04:09,790 --> 00:04:16,750
So we multiply them together, we get a probability of this point two five five so we can mathematically

60
00:04:16,750 --> 00:04:19,580
express conditional probability using this term here.

61
00:04:20,050 --> 00:04:26,620
So again, this is the probability of an event, a occurring given the event B has occurred, is equal

62
00:04:26,620 --> 00:04:32,350
to the probability of A and B occurring, divided by the probability of B occurring.

63
00:04:33,040 --> 00:04:37,720
So these terms and equations here are commonly referred to as conditional probability.

64
00:04:38,440 --> 00:04:43,810
This term up here is called the joint probability because it's a joint probability of A and B occurring.

65
00:04:44,140 --> 00:04:47,140
And this is usually referred to as the marginal probability.

66
00:04:48,940 --> 00:04:54,580
Now to work out whether an event is dependent or independent, it follows a few simple rules.

67
00:04:55,000 --> 00:04:58,450
So independent events follow this equation here.

68
00:04:58,450 --> 00:05:04,510
The probability of A and B occurring is just equal to the probability of eight times the probability

69
00:05:04,510 --> 00:05:08,710
of B, there's no dependence on either of the other ones.

70
00:05:09,880 --> 00:05:17,140
So if we look at the conditional probability, the conditional probability of A occurring given that

71
00:05:17,200 --> 00:05:20,590
B has occurred, is just the probability of a..

72
00:05:20,620 --> 00:05:25,030
So there's no dependence on B and likewise B right around the other way.

73
00:05:25,030 --> 00:05:30,880
The probability of Event B occurring, given that A has occurred, is still just equal to the probability

74
00:05:30,880 --> 00:05:33,100
of B, again, there's no dependence on.

75
00:05:33,970 --> 00:05:39,200
And you can easily say this relationship up here from this total relationship up here.

76
00:05:39,910 --> 00:05:45,130
So if the probability of A and B occurring is just a multiple of the probabilities, the probability

77
00:05:45,130 --> 00:05:51,250
of A given that B occurred is just going to be the probability of eight times the probability, B,

78
00:05:51,280 --> 00:05:54,700
divided by the probability of B, leaving the probability of A..

79
00:05:54,730 --> 00:05:57,400
So that's just what this equation here is expressing.

80
00:06:00,590 --> 00:06:06,350
Now, let's look at another example to help explain the concept here we have a number of shapes displayed

81
00:06:06,350 --> 00:06:08,140
on screen and they're different colors.

82
00:06:08,720 --> 00:06:13,960
So if we pull out a shape at random, we can work out a few different probabilities.

83
00:06:13,970 --> 00:06:17,830
So the probability that we pull out a circle is three of right.

84
00:06:17,870 --> 00:06:20,500
So there's eight shapes and three of them are circles.

85
00:06:20,510 --> 00:06:24,670
So it's pretty simple to calculate that and we can do the same thing for the square.

86
00:06:24,680 --> 00:06:29,580
So to pull out a square where there's five different squares and there's eight shapes in total.

87
00:06:29,600 --> 00:06:34,480
So basic probability holds, we can also look at joint probability.

88
00:06:34,490 --> 00:06:40,480
So the probability point at a circle and its screen is going to be equal to one over eight.

89
00:06:40,490 --> 00:06:43,160
So there's only one green circle in the set here.

90
00:06:44,450 --> 00:06:48,260
Now we can use conditional probability to calculate a few other properties.

91
00:06:49,160 --> 00:06:53,210
So what is the probability that if we pull out a circle that it is green?

92
00:06:53,690 --> 00:06:59,090
Well, we can use conditional probability and we can fill in this equation here and it can be calculated

93
00:06:59,090 --> 00:07:04,040
by the probability of pulling out of green and circle divided, the probability of pulling out a circle.

94
00:07:04,550 --> 00:07:08,720
So you fill in these values up here into the equation.

95
00:07:08,720 --> 00:07:09,620
We end up here.

96
00:07:10,040 --> 00:07:14,940
We end up with one of our eight divided by three or eight, which is just equal to one third.

97
00:07:15,740 --> 00:07:19,820
So if we pull out a circle, there's a one in three chance that it'll be green.

98
00:07:20,570 --> 00:07:26,000
And we can easily verify this from looking at this set up and we can calculate it directly.

99
00:07:26,420 --> 00:07:29,910
We can say there's three circles and only one of them is green.

100
00:07:29,930 --> 00:07:30,910
So one, seven, three.

101
00:07:31,300 --> 00:07:37,190
So this is a fairly trivial example, but we can always come back to a basic probability and calculate

102
00:07:37,190 --> 00:07:39,140
it directly from a set by inspection.

