-
Notifications
You must be signed in to change notification settings - Fork 5
/
mycommands.sty
120 lines (96 loc) · 3.5 KB
/
mycommands.sty
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
\newcommand{\vspa}{\vskip+1em\pause}
\renewcommand{\t}{\textrm}
\renewcommand{\th}{\textrm{th}}
\renewcommand{\sec}{\textsection}
\newcommand{\Lq}[2]{\left|\left|#2\right|\right|_{#1}}
\newcommand{\Ltwo}[1]{\Lq{2}{#1}}
\renewcommand{\to}{\rightarrow}
\newcommand{\toDist}{\xrightarrow[]{\mathcal{D}}}
\newcommand{\toAS}{\xrightarrow[]{a.s.}}
\newcommand{\toWeak}{\xrightarrow[]{w}}
%\newcommand{\ToWeak}{\overset{w}{\Rightarrow}}
\newcommand{\ToWeak}{\Rightarrow}
\newcommand{\toVague}{\xrightarrow[]{v}}
\newcommand{\toProb}{\xrightarrow[]{p}}
\newcommand{\toTV}{\xrightarrow[]{t.v.}}
\newcommand{\toLp}[1]{\xrightarrow[]{L^#1}}
\newcommand{\toLone}{\toLp{1}}
\newcommand{\toLtwo}{\toLp{2}}
\newcommand{\eqAS}{\overset{\textrm{a.s.}}{=}}
\newcommand{\eqDist}{\overset{\mathcal{D}}{=}}
\newcommand{\simiid}{\overset{\textrm{i.i.d.}}{\sim}}
\newcommand{\simind}{\overset{\textrm{ind.}}{\sim}}
\newcommand{\imp}{\Rightarrow}
\newcommand{\nimp}{\nRightarrow}
\newcommand{\bimp}{\Leftarrow}
\newcommand{\nbimp}{\nLeftarrow}
\newcommand{\dimp}{\Leftrightarrow}
\newcommand{\ndimp}{\nLeftrightarrow}
\newcommand{\upto}{\uparrow}
\newcommand{\downto}{\downarrow}
\newcommand{\sub}{\subseteq}
\newcommand{\Perp}{\perp \! \! \! \perp}
\newcommand{\indep}{\Perp}
\newcommand{\gv}{\,|\,}
\newcommand{\1}{\mathbf{1}}
\newcommand{\re}{\t{re}}
\newcommand{\im}{\t{im}}
\newcommand{\ep}{\varepsilon}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\Q}{\mathbb{Q}}
\renewcommand{\P}{\mathbb{P}}
\newcommand{\E}{\mathbb{E}}
\newcommand{\Var}{\textrm{Var}}
\newcommand{\Cov}{\textrm{Cov}}
\newcommand{\sgn}{\textrm{sgn}}
\newcommand{\Tr}{\textrm{Tr}}
\newcommand{\Bin}{\textrm{Bin}}
\newcommand{\Beta}{\textrm{Beta}}
\newcommand{\Bern}{\textrm{Bern}}
%\ means mathcal for A,B,C, F,G,H, L, O, X,Y
\newcommand{\A}{\mathcal{A}}
\newcommand{\B}{\mathcal{B}}
\newcommand{\C}{\mathcal{C}}
\newcommand{\F}{\mathcal{F}}
\newcommand{\G}{\mathcal{G}}
\renewcommand{\H}{\mathcal{H}}
\renewcommand{\L}{\mathcal{L}}
\renewcommand{\O}{\mathcal{O}}
\newcommand{\X}{\mathcal{X}}
\newcommand{\Y}{\mathcal{Y}}
\newcommand{\bbS}{\mathbb{S}}
\newcommand{\bbT}{\mathbb{T}}
\newcommand{\bbI}{\mathbb{I}}
\newcommand{\cP}{\mathcal{P}}
\newcommand{\cS}{\mathcal{S}}
\newcommand{\EF}{\E^\F}
\renewcommand{\b}{\textbf}
\renewcommand{\bar}{\overline}
\newcommand{\abs}[1]{\left| #1 \right|}
\newcommand{\floor}[1]{\lfloor #1 \rfloor}
\newcommand{\ceiling}[1]{\lceil #1 \rceil}
\newcommand{\grad}{\nabla}
\newcommand{\pardd}[2]{\frac{\partial #1}{\partial #2}}
\newcommand{\parddtwo}[2]{\frac{\partial^2 #1}{\partial #2^2}}
\newcommand{\rank}{\textrm{rank}}
\DeclareMathOperator*{\argmin}{arg\,min}
\DeclareMathOperator*{\argmax}{arg\,max}
\newcommand{\logit}{\textrm{logit}}
\newcommand{\logistic}{\textrm{logistic}}
\newcommand{\diag}{\textrm{diag}}
\newcommand{\Sn}[2][i]{\sum_{#1=1}^n{#2}}
\newcommand{\SI}[2][n]{\sum_{#1=1}^\infty{#2}}
\newcommand{\limn}[1]{\lim_{n\to\infty}{#1}}
\newcommand{\liminfn}[1]{\liminf_{n\to\infty}{#1}}
\newcommand{\limsupn}[1]{\limsup_{n\to\infty}{#1}}
\newcommand{\lgst}[1]{\frac{e^{#1}}{1+e^{#1}}}
\newcommand{\Indic}{\mathbb{I}}
\newcommand{\TypeI}{\textrm{Type I Error}}
\newcommand{\TypeII}{\textrm{Type II Error}}
%GRAPHICS
\newcommand{\addplot}[1]{\includegraphics[width=.5\textwidth]{#1}}
\newcommand{\addbigplot}[1]{\includegraphics[width=1\textwidth]{#1}}
%STYLE
\newcommand{\red}{\textcolor{red}}