00:01
Let's say that now we have a new patient and we know that this patient, so we know, so given that the test was positive for this patient, we need to say if this patient has cancer or not in this case.
00:20
So we have to say it has cancer or not.
00:26
So how can we say this? we can compute this probability here for each one of the.
00:32
Of this case is cancer or not cancer.
00:35
So we need to compute the probability of not having cancer, but the test said that you have.
00:43
And we need to compute the probability of having cancer, given that your test was positive.
00:52
And if this probability is higher than this, we are going to say, so let's say like, let's say that this is one, and this is two.
01:04
So if you say the one is greater than two, this means that we are going to say that the patient does not have cancer.
01:13
But now if it is the opposite, this here is higher, we are saying that the patient has cancer.
01:20
Now we just need to compute this using the base rule.
01:24
Base rule.
01:26
So the formula he will be the probability, in this case, that we let's start with cancer given that your test was positive.
01:36
This is the same as the probability of your test being positive, but you have cancer, multiply by the probability that you have, that a person can have a cancer, divided by the probability that the test is positive.
01:52
And we also need to compute this with no cancer.
01:55
So the person does not have cancer, but the test is positive.
02:00
This is what we want to compute as well.
02:02
And we can compute this by calculating this probability here.
02:08
And again, this is coming from the base rule.
02:13
Now, we just need to compute the p positive here.
02:17
So the p positive here will be given by.
02:21
The test, let's just draw something here.
02:24
The test can be positive and negative for two cases.
02:29
If you don't have cancer, or if you have cancer, sorry, and if you don't have cancer.
02:35
And we have this probability, like the probability that if you have cancer, the test will be positive with 98%.
02:45
And if you don't have cancer, the test will be positive if you have with a probability 0 .03.
02:55
So this means that the test could be positive for these two cases when you don't have the cancer and when you have the cancer.
03:04
So this means that we need to consider these two cases that we have here...