I have a density matrix $\rho$ where $$\rho = \frac{1}{4} \cdot \begin{pmatrix} 2 & 1 & 1\\ 1 & 1 & 0\\ 1 & 0 & 1 \end{pmatrix}$$
and the x component of a spin - 1 particle that is $$J_{x}=\frac{1}{\sqrt{2}} \cdot \begin{pmatrix} 0 & 1 & 0\\ 1 & 0 & 1\\ 0 & 1 & 0 \end{pmatrix}$$
How can I calculate the expectation value of the x component of the spin, $\langle J_{x} \rangle$, given the statistical ensemble described by the density matrix ?
And also, how to compute the standard deviation ?