# Writing expectation like Shiryaev

I want to know how to get this symbol for Expectation. I tried with Mathpix to know the command, but it doesn't help.

Thanks!

\documentclass{article}
$\mathsf{E}\left[g(\theta) \mid \xi = x_j\right]$

• Do you need the \left and \right` sizing directives? – Mico Apr 26 at 2:35