1

I am currently trying to get the following equation into my paper. Unfortunately, I have no idea about how to have only one level on the left side whereas two levels on the right side of the equation. Does anyone have an idea how to put that in Latex?

Thanks in advance! :) Best, Felix

enter image description here

  • Try \begin{cases}1&\text[with probability } \pi\\0&...\end{cases}. You will need \usepackage{amsmath}. There are other cases environments in the mathtools package. – Andrew Dec 3 '16 at 12:17
1

enter image description here

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[ y^i =
   \begin{cases}
     1 & \text{with probability $\pi^i+\theta e^i$} \\
     0 & \text{with probability $1-(\pi^i+\theta e^i)$}
   \end{cases}
\]
\end{document}
|improve this answer|||||
  • Perfect! I didn't know the case function. Thank you so much! – Felix Dec 3 '16 at 12:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.