A asks B a question, for any possible question B knows good answer $3$ times per $4$ questions but B thinks he always know good answer. B lies one time per $4$ questions. What is the probability B answer corret?
My textbook says $\frac{5}{8}$ and indeed if I list possible outcomes for $4$ questions there are $10$ outcomes that B answer correct (3+3+3+1) and $6$ (1+1+1+3) outcomes that B answer wrong. But when I want to use conditional probability I can't get this answer.
Let C be event that B knows good answer and let D be event that B lies.
$$P(C|D)=\frac{P(C \cap D)}{P(D)}$$
$$\frac{5}{8}=\frac{P(C \cap D)}{\frac{1}{4}}$$
So $P(C \cap D)$ should equal to $\frac{5}{32}$ but I have no idea why.
I think what is meant by the question is that B is given a yes/no question and is correct 3/4 of the time, but answers the opposite of what he thinks 1/4 of the time. If this is the case then the probability of him answering correctly is as below, where the former part represents when he is correct and doesn't lie and the latter where he is wrong and lies (correcting their mistake). $$\frac{3}{4}^2+\frac{1}{4}^2 = \frac{5}{8}$$
The problem with what you have written is that the probability of them replying with the correct answer is not $P(C\mid D)$