Problem Description
As you know, Covid-19 tests are common nowadays, but some results of tests are not true. Let’s assume a diagnostic test has 90% accuracy and 60% of all people have Covid-19. If a patient tests positive, what is the probability that they actually have Covid Positive? Write a program that calculates the required probability.
Input Format
prior_probability (float) probability of positive marked (float) probability of negative marked (float) All the inputs are in string format kindly typecast them into required formats.
Output Format
A float
Example Input
0.7 0.95 0.05
Example Output
0.97
Example Explanation
Used the concept of bayes theorem