Artificial intelligent assistant

Going wrong with Bayes theorem Lets say we have following case: Probability of bring a drunk driver = $0.10$ Probability of a drinking test coming positive = $0.30$ Probability of a drinking test coming negative, given the subject was not drunk = $0.90$ Then by Bayes theorem, $$P(Not Drunk|Negative Test) = \frac{P(Negative Test|Not Drunk) \times P(Not Drunk) }{P(Negative Test)}.$$ Now, \begin{align} P(Negative Test|Not Drunk)& = 0.90\\\ P(Not Drunk)& = 0.90\\\ P(Negative test)& = 0.70 = (1 - Probability(Positive Test)) \end{align} Thus, $$P(Not Drunk|Negative Test) = (0.90 * 0.90) / 0.70 = 1.51.$$ As far as I understand, the probabilities shouldn't ever become more than 1 and above result is counterintuitive to me. Is this correct, if not where am I going wrong?

Your initial numbers are impossible.

To use your notation, and the Law of Total Probability:

$$.7=P(NegativeTest)=P(Negative\,|\,Drunk)P(Drunk)+P(Negative\,|\,NotDrunk)P(NotDrunk)$$

Thus $$.7=.9\times.9 + P(Negative\,|\,NotDrunk)\times .1\implies P(Negative\,|\,NotDrunk)=-\frac {.11}{.1}=-1.1<0$$

Informally: say you had $100$ people. Then you have $90$ sober and $10$ drunk. Of the ninety, you tell us that exactly $9$ tests negative...so $81$ of those test positive. Thus the number of positive tests is at least $81$. Yet you claim that only $70$ test positive.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 5473aec094fb0dd31190809db582a08d