\documentclass[12pt,a4paper,oneside]{book}
\usepackage[utf8]{inputenc}
\usepackage{textgreek}
\usepackage{amsmath,amssymb,amsthm}
\usepackage{mathtools}
\begin{document}
\begin{equation*}
\begin{aligned}
\theta_1^*(t) ~ P(\theta_1| Y_1^{obs}, Y_2^{(t-1)},…,Y_p^{(t-1)})\\
Y_1^{*(t)} ~ P(Y_1| Y_1^{obs}, Y_2^{(t-1)},…,Y_p^{(t-1)}, theta_1^{*(t)}) %<----stops here
\end{aligned}
\end{equation*}
\end{document}
Hello, I'm trying to input equations into my thesis and I've been trying for quite sometime now, but it always stops at the line indicated in the code. I dont know what I'm doing wrong. Please could someone help me.
Best Answer
~
does not produce a visible symbol; you probably want\sim
…
should be\dots
Y_p^(t-1)
should beY_p^{t-1}
;theta
should be\theta
|
should be\mid
or the spacing would be wrong^obs
should be^{\mathrm{obs}}
so the superscript is in textual mode and a single object\Y
should probably beY
Here is the fixed code:
If you wanted a space instead of a
~
symbol: