매우 특이한 방식으로 행동하는 사례

매우 특이한 방식으로 행동하는 사례

누군가가 다음 코드에서 사례가 터무니없이 동작하는 이유를 말해 줄 수 있다면 매우 기쁠 것입니다.

\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

(아무것도 엉망으로 만들지 않았으면 좋겠는데 지금은 코드를 테스트할 수 없습니다.)

관련 정보