如果有人能告诉我为什么下面的代码中的情况会变得如此荒谬,我会非常高兴。
\begin{align}
I^*= \begin{cases}
0, & \left(\mathbb{E}\left[\theta_c|C=1\right] < \theta_i \ \
\text{and} \ \ \mathbb{E}\left[\max\left\{\theta_i,\theta_c\right\}|C=1\right] <
\frac{c_I}{\gamma}\right) \\
0, & \left(\mathbb{E}\left[\theta_c|C=1\right] \geq
\theta_i \ \ \text{and} \ \ \mathbb{E}\left[\max\left\
\theta_i,\theta_c\right\}|C=1\right] < \frac{c_I}{\gamma}\right) \\
\left[0,1\right], & \left(\mathbb{E}\left[\theta_c|C=1\right] < \theta_i \ \
\text{and} \ \ \mathbb{E}\left[\max\left\{\theta_i,\theta_c\right\}|C=1\right] =
\frac{c_I} {\gamma}\right) \\
\left[0,1\right], & \left(\mathbb{E}\left[\theta_c|C=1\right] \geq
\theta_i \ \ \text{and} \ \ \mathbb{E}\left[\max\left\
{\theta_i,\theta_c\right\}|C=1\right] = \frac{c_I}{\gamma}\right) \\
1, \left(\mathbb{E}\left[\theta_c|C=1\right] < \theta_i \ \ \text{and} \ \
\mathbb{E}\left[\max\left\{\theta_i,\theta_c\right\}|C=1\right] > \frac{c_I}
{\gamma}\right) \\
1, \left(\mathbb{E}\left[\theta_c|C=1\right] \geq \theta_i \ \
\text{and} \ \ \mathbb{E}\left[\max\left\{\theta_i,\theta_c\right\}|C=1\right] >
\frac{c_I}{\gamma}\right)
\end{cases}
\end{align}
代码如下所示: 谢谢
答案1
您缺少&
代码1,
的最后两行:
\begin{equation}
I^*= \begin{cases}
0, & \text{if }
\mathbb{E}[\theta_c\mid C=1] < \theta_i
\text{ and }
\mathbb{E}[\max\{\theta_i,\theta_c\} \mid C=1] < \frac{c_I}{\gamma}
\\
0, & \text{if }
\mathbb{E}[\theta_c \mid C=1] \geq \theta_i
\text{ and }
\mathbb{E}[\max\{\theta_i,\theta_c\} \mid C=1] < \frac{c_I}{\gamma}
\\
[0,1], & \mathbb{E}[\theta_c \mid C=1] < \theta_i
\text{ and }
\mathbb{E}[\max\{\theta_i,\theta_c\} \mid C=1] = \frac{c_I}{\gamma}
\\
[0,1], & \text{if }
\mathbb{E}[\theta_c \mid C=1] \geq \theta_i
\text{ and }
\mathbb{E}[\max\{\theta_i,\theta_c\} \mid C=1] = \frac{c_I}{\gamma}
\\
1, & \text{if }
\mathbb{E}[\theta_c \mid C=1] < \theta_i
\text{ and }
\mathbb{E}[\max\{\theta_i,\theta_c\} \mid C=1] > \frac{c_I}{\gamma}
\\
1, & \text{if }
\mathbb{E}[\theta_c \mid C=1] \geq \theta_i
\text{ and }
\mathbb{E}[\max\{\theta_i,\theta_c\} \mid C=1] > \frac{c_I}{\gamma}
\end{cases}
\end{equation}
请注意,我做了一些改进,即我删除了外括号,放在if
每一行,删除了周围不必要的空格and
(并将它们放在里面\text{...}
,但这不是必需的),我删除了所有虚假的\left...\right
,我改为|
以\mid
获得适当的间距。
(我希望我没有搞砸任何事情,我现在无法测试代码。)