Say we have two teams $A$, $B$ that will play in a best of $n$ series, which to win you must win $w$ games, which is the ceiling of $\frac{n}{2}$. Say that when the two teams play each other, $A$ has a probability $p$ of winning a single game, and $B$ has a probability $q$ of winning a single game.
Say that in our (for example) best of $5$ match, $B$ wins $3-2$ over $A$, what is the probability that $A$ was actually the better team, or that $p>q$?
Rephrased: what is $$ P(p>q\mid B\text{ won 3-2}) $$
My attempt: Since $p+q=1$, we know $q = 1-p$ so in order for $p>q \implies p>\frac{1}{2}$ via substitution. The probability will then be
$$ P(p>q\mid B\text{ won 3-2}) = \int_{.5}^{1} P(p=x\mid B\text{ won 3-2})dx $$
which we can expand with Bayes Theorem to get
$$ \int_{.5}^{1} P(p=x\mid B\text{ won 3-2})dx = \int_{.5}^{1} \dfrac{P(B\text{ won 3-2}\mid p=x)P(B\text{ won 3-2})}{P(p=x)}dx $$
Which is where I get stuck. Any help would be appreciated!