|
@@ -3,6 +3,8 @@
|
|
|
\usepackage[latin1]{inputenc}
|
|
|
\usepackage{amsmath}
|
|
|
\usepackage{pgfplots}
|
|
|
+\usepackage{tikz}
|
|
|
+\usetikzlibrary{arrows,positioning}
|
|
|
\usepackage{helvet}
|
|
|
\usepackage[eulergreek]{sansmath}
|
|
|
|
|
@@ -67,6 +69,18 @@ every axis label/.append style={font=\sffamily\footnotesize},
|
|
|
rotate=90,
|
|
|
font=\boldmath\Large},
|
|
|
]
|
|
|
+
|
|
|
+ \coordinate (plotAcoord) at (axis cs:70,0.024);
|
|
|
+ \coordinate (plotAcoordY) at (axis cs:0,0.024);
|
|
|
+ \draw[plotA,thick, dashed](plotAcoord -| plotAcoordY) -- (plotAcoord);
|
|
|
+
|
|
|
+ \coordinate (plotBcoord) at (axis cs:70,0.0004);
|
|
|
+ \coordinate (plotBcoordY) at (axis cs:0,0.0004);
|
|
|
+ \draw[plotB,thick, dashed](plotBcoord -| plotBcoordY) -- (plotBcoord);
|
|
|
+
|
|
|
+ \node[above right=0cm and 0cm of plotAcoordY,color=red!90!black] (f1y) {$f_{I}(70)$};
|
|
|
+ \node[above right=0cm and 0cm of plotBcoordY,color=cyan!50!black] (f2y) {$f_{II}(70)$};
|
|
|
+
|
|
|
% Plots of the distributions
|
|
|
\addplot [domain=0:120,samples=200,plotA] {gauss(80,100)};
|
|
|
\addplot [domain=0:120,samples=200,plotB] {gauss(40,100)};
|
|
@@ -75,19 +89,18 @@ every axis label/.append style={font=\sffamily\footnotesize},
|
|
|
\addplot+[plotA,
|
|
|
samples at={70},
|
|
|
mark=*,
|
|
|
- mark options={scale=1, fill=red!90!black}] {gauss(80,100)}
|
|
|
- node[pin={95:\large$f_I(70)$}] {};
|
|
|
+ mark options={scale=1, fill=red!90!black}] {gauss(80,100)};
|
|
|
\addplot+[plotB,
|
|
|
samples at={70},
|
|
|
mark=*,
|
|
|
- mark options={scale=1, fill=cyan!50!black}] {gauss(40,100)}
|
|
|
- node[pin={10:\large$f_{II}(70)$}] {};
|
|
|
+ mark options={scale=1, fill=cyan!50!black}] {gauss(40,100)};
|
|
|
\coordinate (a) at (axis cs:70,0.024);
|
|
|
\draw[black,thick](a |- current plot begin) -- (a);
|
|
|
|
|
|
+
|
|
|
% Add labels
|
|
|
- \node[plotA,above] at (axis cs:102,0.03){\Large $\mathcal{N}(80, 100)$};
|
|
|
- \node[plotB,above] at (axis cs:20,0.03){\Large $\mathcal{N}(40, 100)$};
|
|
|
+ \node[plotA,above] at (axis cs:102,0.03){\Large $\mathcal{N}(80, 100)$};
|
|
|
+ \node[plotB,above] at (axis cs:20,0.03){\Large $\mathcal{N}(40, 100)$};
|
|
|
% \addlegendentry{$\mu=80,\enskip \sigma^2 = 100$}
|
|
|
% \addlegendentry{$\mu=40,\enskip \sigma^2 = 100$}
|
|
|
\end{axis}
|