答案1
\mid
是关系而不是分隔符,不能与\bigg
use\mid
或\bigg|
(或\mathrel{\bigg|}
)一起使用
! Missing delimiter (. inserted).
<to be read again>
\mid
l.6 P (Y\bigg\mid
X) = \frac{P(X\bigg\mid Y)*P(Y)}{P(X)}
?
\bigg
但太大了:
\documentclass{article}
\begin{document}
\begin{equation}
P (Y\bigg| X) = \frac{P(X\bigg| Y)\cdot P(Y)}{P(X)}
\end{equation}
\begin{equation}
P (Y\mid X) = \frac{P(X\mid Y)\cdot P(Y)}{P(X)}
\end{equation}
\begin{equation}
P (Y\mathrel{\bigg|} X) = \frac{P(X\mathrel{\bigg|} Y)\cdot P(Y)}{P(X)}
\end{equation}
\end{document}