-2

This question already has an answer here:

That is all I've got so far from marmot:

\documentclass[tikz,border=3.14mm]{standalone}
\usetikzlibrary{patterns}
\definecolor{lazy}{RGB}{189,208,112}
\begin{document}
\begin{tikzpicture}[declare function={gauss(\x,\y)=exp(-(\x/\y)*(\x/\y));}]
 \draw (-5,0) -- (5,0)node[below right]{$\mu$};
 \draw (0,0) -- (0,4) node[above]{$f(x)$};
 \path[pattern color=lazy,pattern=vertical lines]
 plot[variable=\x,domain=-2:3,smooth] ({\x},{3*gauss(\x+2,1.5)}) -| cycle;
 \draw[color=lazy] plot[variable=\x,domain=-5:3,smooth] ({\x},{3*gauss(\x+2,1.5)});
 \path[pattern color=red,pattern=vertical lines]
 plot[variable=\x,domain=-5:-2,smooth] ({\x},{3*gauss(\x,1.5)}) |- cycle;
 \draw[color=blue] plot[variable=\x,domain=-5:5,smooth] ({\x},{3*gauss(\x,1.5)});
\end{tikzpicture}
\end{document}

enter image description here

marked as duplicate by Thruston, user36296, user156344, Raaja, Dr. Manuel Kuehner Mar 18 at 6:01

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 5
    Maybe you could indicate the source of the code... – marmot Mar 17 at 21:44
  • yes, that was my previous question Thruston, unfortunately I am not capable of drawing arrows etc. in Latex, I would really appreciate every tip! Thank you so much in advance! – Rebecca Mar 17 at 22:15
  • 3
    What have you tried? Did you check the documentation of tikz? – Kurt Mar 17 at 22:55
8

The purpose of this site is to provide help with (moderately) abstract questions. How many others do you think will benefit from someone like me punching in texts from a screen shot, coloring them and moving them around? The real purpose is to provide you assistance in learning to do such things yourself, not to punch them in.

\documentclass[tikz,border=3.14mm]{standalone}
\usetikzlibrary{patterns}
\definecolor{lazy}{RGB}{189,208,112}
\begin{document}
\begin{tikzpicture}[declare function={gauss(\x,\y)=exp(-(\x/\y)*(\x/\y));},
font=\sffamily]
 \draw (-5,0) -- (5,0)node[below right]{$\mu$};
 \draw (0,0) -- (0,4) node[above]{$f(x)$};
 \path[pattern color=lazy,pattern=vertical lines]
 plot[variable=\x,domain=-2:3,smooth] ({\x},{3*gauss(\x+2,1.5)}) -| cycle;
 \draw[color=lazy] plot[variable=\x,domain=-5:3,smooth] ({\x},{3*gauss(\x+2,1.5)});
 \node[color=lazy,anchor=south] at (-2.5,{3*gauss(0,1.5)}) {Wahre Verteilung
 mit $\mu_0=139.5$};
 \draw[color=lazy,latex-] (-1.5,1.2) -- (-3.5,2) node[left,draw] {Fl\"ache=\dots};
 \path[pattern color=red,pattern=vertical lines]
 plot[variable=\x,domain=-5:-2,smooth] ({\x},{3*gauss(\x,1.5)}) |- cycle;
 \draw[color=red,latex-] (-2.5,0.1) -- (-3.5,1) node[left] {Ablehnungsbereich};
 \draw[red,thick] (-2,0) -- (-2,3);
 \draw[color=blue] plot[variable=\x,domain=-5:5,smooth] ({\x},{3*gauss(\x,1.5)});
 \node[anchor=south west,blue] at ({0.3},{3*gauss(0.3,1.5)}) {Verteilung unter
 H0 mit $\mu_0=140$}; 
 \draw[-latex] (0.1,3.75) -- (3.5,3.75) node[midway,above]{H0 Bereich};
 \draw[-latex] (-0.1,3.75) -- (-3.5,3.75) node[midway,above]{H1 Bereich};
\end{tikzpicture}
\end{document}

enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.