# Normal Gauss Distribution

Apr 4th, 2024
930
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. \documentclass{article}[14pt,a4paper] % Comment the following line to NOT allow the usage of umlauts
2. %\usepackage[utf8]{inputenc}
3. %\useusepackage[utf8]{imputenc} %\usepackage[a4paper, lmargin=2cm, rmargin=2cm, bottom=2cm]{geometry}
4. \usepackage{color} % Uncomment the following line to allow the usage of graphics (.png, .jpg)
5. \usepackage{multicol} \usepackage{verbatim} \usepackage{graphicx} \usepackage{amsmath} \usepackage[all]{xy} \usepackage{pst-all} \usepackage{tikz} \usepackage{gnuplottex}  \usepackage{pst-pdf}
6. \usepackage{mathtools,amssymb}
7. \usepackage{xcolor}
8. %\usepackage{chronology}
9. %\usepackage{pst-solides3d}
10. \tikzset{flippedeventlabel/.append style={align=center}} \usetikzlibrary{datavisualization} \usetikzlibrary{matrix.skeleton} \usetikzlibrary[shapes,arrows,positioning,fit,backgrounds,intersections,shadows,calc] \usetikzlibrary{positioning} \usetikzlibrary{decorations.text} \usetikzlibrary{decorations.pathmorphing}
11. \usepackage{pgfplots} \pgfplotsset{width=10cm,compat=1.9}
12. %\psset{viewpoint=10 18 60 rtp2xyz,Decran=10,fontsize=10,unit=0.65cm}
13. \usetikzlibrary{patterns}
14. \pgfmathdeclarefunction{gauss}{2}{\pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))} }
15. % Start the document
16. \begin{document}
17. \begin{center}
18.
19.
20.
21. \begin{tikzpicture}
22. \begin{pgfonlayer}{background} \path[fill=black,rounded corners]
23. (-1,-1) rectangle (10,5);
24. \end{pgfonlayer}
25.
26.
27.
28. \begin{axis}[white,no markers, domain=0:10, samples=100, axis lines*=left, xlabel=Normal, ylabel=axis $y$, height=5cm, width=10cm, xticklabels={0, $-\infty$, -z, -z/2, 0, z/2, z, $+\infty$, 0}, ytick=\empty, enlargelimits=false, clip=false, axis on top]
29. \addplot [very thick, green, domain=-3:3] {gauss(0,1)} \closedcycle;
30.
31. \end{axis}
32. \draw node at (4,1){\large\textcolor{white}{$f(z) = \frac{1}{\sqrt{2\pi}}\ \mathbf{e}^{(\frac{z-\mu}{\sigma})^2}$}};
33. \end{tikzpicture}
34. \end{center}
35. %Uncomment the following two lines if you want to have a bibliography1 %\bibliographystyle{alpha} %\bibliography{document} %\begin{thebibliography}{document} %\renewcommand %\refname{BIBLIOGRAFIA} %\bibitem{Baz} \textit{Bazaraa, M.S., J.J. %Jarvis} y \textit{H.D. Sheraly}, %\textit{ProgramaciÃ³n lineal y flujo de redes}, %Segunda EdiciÃ³n. LimusÃ¡, MÃ©xico, DF. 2004. %\end{thebibliography}
36. \end{document}
37.