Suppose you have been contracted by a pharmaceutical or diagnostic company to analyze a test for influenza. It turns out that this test, which is called the InfluTest, is positive 90% of the time it is tested in patients with influenza. We have that for InfluTest the probability of a positive test when an individual has influenza is given by: (P(test+|influenza) = 0.9), and it is negative 95% of the time when performed on a healthy person, that means that the probability of (P(test-|no influenza) = 0.95). Likewise, we know that influenza annually affects 1% of the population (P(influenza)=0.01). It turns out that the company tells you the following: For a patient who tests positive, what is the probability that they actually have influenza? Based on the previous concepts, and that you know that this is based on conditional probability. Code and build a small snippet in RStudio using a Boolean to identify this probability.
Suppose you have been contracted by a pharmaceutical or diagnostic company to analyze a test for influenza. It turns out that this test, which is called the InfluTest, is positive 90% of the time it is tested in patients with influenza. We have that for InfluTest the
Based on the previous concepts, and that you know that this is based on conditional probability. Code and build a small snippet in RStudio using a Boolean to identify this probability.
Step by step
Solved in 2 steps with 1 images