##### Tweet
In this 🧵 We will calculate with the numbers from the disease example.

You can find the example here:

1/8
For better understanding, we will create a contingency table with our numbers:

2/8
We want to know:

What is the probability that you have the disease given that you have tested positive?

Mathematically,

P(A | B) = P(You have disease | Tested positive)

So

A = sick

B = tested positive

3/8
Now let's do the math.

1. Calculate P(A) namely the probability of being sick, this is our first prior.

Note: we can calculate this from the table, or from the given information:

We know that 1 out of every 10,000 patients is sick.

4/8
2. Calculate the other prior P(B), namely the probability of being tested sick.

5/8
3. Now calculate the event.

Our event is P(B | A), so being tested sick, when you are sick.

6/8
Now we can put everything together 🔽

The probability of being sick when you are tested sick is less than 1%.

7/8
That's it for today.

Like/Retweet the first tweet below for support and follow @levikul09 for more Data Science threads.

Thanks

8/8

##### Recommended by
Recommendations from around the web and our community.
• ##### You might also be interested in
• • Tweet
• May 9, 2023
by
• • Tweet
• May 6, 2023
by
• • Tweet
• Apr 26, 2023
by
• • Article
• Apr 18, 2023
• • Article
• Apr 6, 2023
by