% By default, titles and headers get rendered in a sans serif font while the
% rest of the document is serif. This subtle shift is a little bit jarring to
% me. The following line changes the sans serif font to be the serif font. It
% avoids assumptions about which fonts are installed (which might affect
% portability).
\renewcommand{\sfdefault}{\rmdefault}

% Math operators
\DeclareMathOperator{\E}{E}
\DeclareMathOperator{\Prob}{P}
\DeclareMathOperator{\Var}{Var}
\DeclareMathOperator{\Cov}{Cov}
\DeclareMathOperator{\Corr}{Corr}
\DeclareMathOperator*{\argmin}{argmin}
\DeclareMathOperator*{\argmax}{argmax}
\DeclareMathOperator{\logit}{logit}
\DeclareMathOperator{\rest}{---}
\DeclareMathOperator{\Diag}{Diag}
\DeclareMathOperator{\ind}{\text{I}}

% Math commands
\renewcommand{\vec}{\boldsymbol}
\newcommand{\iid}{\stackrel{\text{iid}}{\sim}}

% Remove asterisk from title for thanks
\makeatletter
\def\thanks#1{\protected@xdef\@thanks{\@thanks
        \protect\footnotetext{#1}}}
\makeatother
