아래 그래픽을 코딩하는 데 도움을 줄 수 있는 사람이 있습니까? 어떤 팁이 있나요?

아래 그래픽을 코딩하는 데 도움을 줄 수 있는 사람이 있습니까? 어떤 팁이 있나요?

이것이 내가 지금까지 마모트로부터 얻은 전부입니다:

\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}

여기에 이미지 설명을 입력하세요

답변1

이 사이트의 목적은 (어느 정도) 추상적인 질문에 대한 도움을 제공하는 것입니다. 나 같은 사람이 스크린샷에 텍스트를 입력하고, 색칠하고, 옮기면 혜택을 받을 사람이 얼마나 될까요? 진짜 목적은 그런 일을 직접 하려고 하는 것이 아니라 스스로 하는 방법을 배우도록 도움을 제공하는 것입니다.

\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}

여기에 이미지 설명을 입력하세요

관련 정보