swirldev / swirl_courses

:mortar_board: A collection of interactive courses for the swirl R package.
http://swirlstats.com
Other
4.32k stars 7.24k forks source link

Question does not specify number of decimal places for answer #463

Open pakjiddat opened 4 years ago

pakjiddat commented 4 years ago

In this Swirl exercise: https://github.com/swirldev/swirl_courses/blob/master/Statistical_Inference/ConditionalProbability/lesson: The following question does not specify the number of decimal places for the answer:

Now put the pieces together to compute the probability that the patient has the disease given his positive test result, P(D|+). Plug your last two answers into the formula P(+|D) P(D) / ( P(+|D) P(D) + P(+|~D) * P(~D) ) to compute P(D|+).

In the question hint, it says: Divide (.997*.001) by (.997*.001 + .015*.999). I tried the calculation in a desktop calculator application. It gave me the result: 0.062382681. But this answer was not accepted as correct by Swirl. The question should specify the number of decimal places for the answer.