Example:
-
- You can rewrite it into:
- Because , it's positive, we don't need to worry about flipping the inequality signs.
\begin{document}
\begin{tikzpicture}[>=stealth, scale=3]
% Define the area to be filled (the centre)
\fill[color=blue!15] plot[domain=-0.9:0.9, samples=100] (\x, {exp(-0.5*\x*\x)}) -- (0.9,0) -- (-0.9,0) -- cycle;
% Draw the normal distribution curve
\draw[thick, color=blue!80!black] plot[domain=-3:3, samples=100] (\x, {exp(-0.5*\x*\x)});
% Draw the horizontal axis
\draw[->] (-3.5,0) -- (3.5,0) node[right] {$z$};
% Vertical dashed lines at z = -0.9 and z = 0.9
\draw[dashed, thin] (-0.9,0) -- (-0.9, {exp(-0.5*0.81)});
\draw[dashed, thin] (0.9,0) -- (0.9, {exp(-0.5*0.81)});
% Labels for the z-axis coordinates
\node[below] at (-0.9,0) {\small $-0.9$};
\node[below] at (0.9,0) {\small $0.9$};
\node[below] at (0,0) {\small $0$};
% Label for the central area
\node at (0, 0.4) {\scalebox{0.9}{$0.6318$}};
% Labelling the symmetrical tails
% Left tail
\draw[<-] (-1.3, 0.1) -- (-2, 0.5) node[above] {\small $0.1841$};
% Right tail
\draw[<-] (1.3, 0.1) -- (2, 0.5) node[above] {\small $0.1841$};
% Symmetry indicator arrow
\draw[<->, bend left=30, color=gray] (-1.1, 1.1) to node[above, color=black] {\footnotesize Symmetry} (1.1, 1.1);
% Title or formula context
\node[above] at (0, 1.3) {\footnotesize $P(-0.9 \leq Z \leq 0.9) = 1 - 2(0.1841)$};
\end{tikzpicture}
\end{document}