This is a Bayes' theorem question but I'm kind of confused how to tackle it.
Someone lying fails the polygraph 95% of the time. However, someone telling the truth also fails 10% of the times. If a polygraph indicates that the applicant is lying, what is the probability that he is telling the truth?
(Assume a general probability $p$ that the person is truthful)