-
Notifications
You must be signed in to change notification settings - Fork 0
/
testdraws.tex
148 lines (118 loc) · 3.76 KB
/
testdraws.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
\PassOptionsToPackage{usenames}{xcolor}
\documentclass[10pt]{beamer}
\usetheme[progressbar=frametitle]{metropolis}
\usepackage{booktabs}
\usepackage[scale=2]{ccicons}
\usepackage{pgfplots}
\usepgfplotslibrary{dateplot}
\usepackage{xspace}
\usepackage{verbatim}
\usepackage{tabulary}
\usepackage{gensymb}
\renewcommand{\arraystretch}{1.2}
\usepackage{amsmath,amssymb}
\usepackage[belowskip=-10pt,aboveskip=0pt]{caption}
\usepackage{tikz}
\usepackage{scalefnt}
\usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,positioning,fit,petri}
\newcommand{\themename}{\textbf{\textsc{metropolis}}\xspace}
% Title and other staffs
\title{Drawings}
\subtitle{Introduction to Research Methods and Statistics}
\date{\today}
\author{Haseeb Mahmud}
\institute{Faculty of International Business}
\titlegraphic{\hfill\includegraphics[height=1.5cm]{logo}}
% Document start
\begin{document}
\pgfmathdeclarefunction{gauss}{2}{%
\pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))}%
}
\maketitle
%%%%%%%%%%%%% Slide # 1 %%%%%%%%%%%%%%%%%%%
\begin{frame}[fragile]{Bell curve}
\begin{center}
{\scalefont{.50}
\begin{tikzpicture}[scale=1.3]
\begin{axis}
[
no markers, domain=0:8, samples=1000,
axis lines*=left, %xlabel=$x$, ylabel=$y$,
hide y axis,
hide x axis,
height=4cm, width=8cm,
xtick=\empty, ytick=\empty,
enlargelimits=false, clip=false, axis on top,
]
\addplot [very thick,mDarkTeal] {gauss(4,1)};
\end{axis}
% heads
\node at (-.7,1.49) {Percentages};
\node at (-.7,-.3) {$\mu \pm \sigma$};
\node at (-.7,-.6) {Cumulative $\%$};
% Percentails
\node at (0.4,1.49) {$.13\%$};
\node at (1.2,1.49) {$2.14\%$};
\node at (2,1.49) {$13.59\%$};
\node at (2.8,1.49) {$34.13\%$};
\node at (3.6,1.49) {$34.13\%$};
\node at (4.4,1.49) {$13.59\%$};
\node at (5.2,1.49) {$2.14\%$};
\node at (6,1.49) {$.13\%$};
% x - sigma
\node at (0,-.3) {$-4\sigma$};
\node at (.8,-.3) {$-3\sigma$};
\node at (1.6,-.3) {$-2\sigma$};
\node at (2.4,-.3) {$-1\sigma$};
\node at (3.2,-.3) {$\mu$};
\node at (4,-.3) {$1\sigma$};
\node at (4.8,-.3) {$2\sigma$};
\node at (5.6,-.3) {$3\sigma$};
\node at (6.4,-.3) {$4\sigma$};
% Cumulative percentages
\node at (.8,-.6) {$0.1\%$};
\node at (1.6,-.6) {$2.3\%$};
\node at (2.4,-.6) {$15.9\%$};
\node at (3.2,-.6) {$50\%$};
\node at (4,-.6) {$84.1\%$};
\node at (4.8,-.6) {$97.7\%$};
\node at (5.6,-.6) {$99.9\%$};
% figures
\node at (3.2,2.8) {$62.28\%$};
\node at (3.2,3.1) {$95.44\%$};
\node at (3.2,3.4) {$99.72\%$};
%baseline
\draw [mDarkTeal][-] ((0,-.1) -- (6.4,-.1);
% 0
\draw [very thick, mLightBrown][-] ((3.2,-.1) -- (3.2,2.4);
% -1 sigma
\draw [very thick, mLightBrown][-] ((2.4,-.1) -- (2.4,1.49);
\draw [very thick, mLightBrown!30][-] ((2.4, 1.49) -- (2.4,2.7);
\draw [very thick, mLightBrown!30][-] ((2.4, 2.685) -- (4,2.685);
% -2 sigma
\draw [very thick, mLightBrown][-] ((1.6,-.1) -- (1.6,.34);
\draw [very thick, mLightBrown!30][-] (1.6, .34) -- (1.6,3);
\draw [very thick, mLightBrown!30][-] ((1.6, 2.985) -- (4.8,2.985);
% -3 sigma
\draw [very thick, mLightBrown][-] ((.8,-.1) -- (.8,.05);
\draw [very thick, mLightBrown!30][-] (.8, 0.05) -- (0.8,3.3);
\draw [very thick, mLightBrown!30][-] ((.8, 3.285) -- (5.6,3.285);
% 1 sigma
\draw [very thick, mLightBrown][-] ((4,-.1) -- (4,1.49);
\draw [very thick, mLightBrown!30][-] ((4, 1.49) -- (4,2.7);
% 2 sigma
\draw [very thick, mLightBrown][-] ((4.8,-.1) -- (4.8,2.4);
\draw [very thick, mLightBrown!30][-] (4.8, .34) -- (4.8,3);
% 3 sigma
\draw [very thick, mLightBrown][-] ((5.6,-.1) -- (5.6,.05);
\draw [very thick, mLightBrown!30][-] (5.6, .05) -- (5.6,3.3);
\end{tikzpicture}
}\\
\end{center}
\end{frame}
%\begin{frame}[fragile]{Barplot}
%\begin{center}
%\includegraphics[width=10cm]{bar}
%\end{center}
%\end{frame}
\end{document}