# The LaTeX syntax for this probabilistic formula

I would like to create a math formula as follows. How do I write it in LaTeX?

• Welcome to TeX.SX. What have you tried so far, how far did you get? Where did you get stuck? – Johannes_B May 20 at 4:53

I recommend reading one of the guides listed here: What are good learning resources for a LaTeX beginner?.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
$f\sim\mathcal{GP}(\mu(x),K(\mathbf{x},\mathbf{x}';\theta))$
\end{document}

Next time, please add a minimal working example (MWE) of what you tried.

• I'd suggest just a teeny tiny correction: \mathbf{x}' instead of \mathbf{x'}. It doesn't make a practical difference here but I think it is semantically better. (IMO of course.) – campa May 20 at 9:35
• @campa Yes, it's better, corrected, thanks! – CarLaTeX May 20 at 10:28
• I know texperts use [] but what do you use for inline expressions? $expression$ – santimirandarp May 20 at 13:14
• @santimirandarp I this this post can be helpful to you: tex.stackexchange.com/questions/510/… – CarLaTeX May 20 at 13:30
• thanks @CarLaTeX you're always helpful :) – santimirandarp May 20 at 13:42