In a country, the prevalence of malaria is observed to be 43 out of every 1000 people. The test for malaria is a 90% chance of detecting it when the patient is suffering from malaria. The same test yields a negative result in 95% of the cases of people not infected with malaria. What is the posterior probability that a person has malaria if test returns positive ?
what I have tried is-
$$\frac{0.90 \times 0.043}{(0.90\times0.043+(1-0.95)\times0.043)}$$
is this correct ??
or this-
$$\frac{0.90\times0.043}{(0.90\times0.043+0.95\times0.043)}$$