FAQ: Rules of Probability - Conditional Probability Continued

This community-built FAQ covers the “Conditional Probability Continued” exercise from the lesson “Rules of Probability”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Master Statistics with Python

Probability

FAQs on the exercise Conditional Probability Continued

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!
You can also find further discussion and get answers to your questions over in Language Help.

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head to Language Help and Tips and Resources. If you are wanting feedback or inspiration for a project, check out Projects.

Looking for motivation to keep learning? Join our wider discussions in Community

Learn more about how to use this guide.

Found a bug? Report it online, or post in Bug Reporting

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

In the strep throat exercise I don’t understand how we come to the percent probabilities of event 2. Can anyone who understands this explain it to me. I understand event 1 - 20% of people have ST. I’m assuming event 2 is a dependent event because event 1 determines whether a person does or does not have ST. But otherwise I just can’t make it work. Would really appreciate some help. Thanks!

I recognize that this is an old topic and question but thought I would put this out here in case anyone else has a similar question.

In clinical testing, such as COVID tests, HIV, blood sample tests, etc. There is something call the sensitivity and specificity of tests. These tests are dependent tests because how well they work really depends on if the patient has the disease.

Sensitivity measures a given test’s ability to actually flag patients with the disease as positive. A highly sensitive test means that there are few false negative results, and thus fewer cases of disease are missed.

Specificity measures a given test’s ability to accurately screen out healthy patients as having negative results. A highly specific test means that there are a few false negative results.

The two measures often goes hand in hand and a good test has high sensitivity and high specificity. For example, a test that always test positive would be in theory perfectly sensitive, because it will catch all patients with a disease. But this test would also be zero when it comes to specificity, as it would have no ability to screen out negative patients.

In the given exercise, the event B is essentially talking about these measures. The strep throat test is 85% sensitive, because if someone has the disease it’s able to flag them 85% of the time. It performs better with its specificity, because it is able to identify true negative patients 98% of the time. The probability is dependent because it depends on whether the individual has the disease and performs differently based on that, hence why you see different values in branch 2.

Hope this helps!

2 Likes