$\require{physics}\newcommand{\cbrt}[1]{\sqrt[3]{#1}}\newcommand{\sgn}{\text{sgn}}\newcommand{\ii}[1]{\textit{#1}}\newcommand{\eps}{\varepsilon}\newcommand{\EE}{\mathbb E}\newcommand{\PP}{\mathbb P}\newcommand{\Var}{\mathrm{Var}}\newcommand{\Cov}{\mathrm{Cov}}\newcommand{\pperp}{\perp\kern-6pt\perp}\newcommand{\LL}{\mathcal{L}}\newcommand{\pa}{\partial}\newcommand{\AAA}{\mathscr{A}}\newcommand{\BBB}{\mathscr{B}}\newcommand{\CCC}{\mathscr{C}}\newcommand{\DDD}{\mathscr{D}}\newcommand{\EEE}{\mathscr{E}}\newcommand{\FFF}{\mathscr{F}}\newcommand{\WFF}{\widetilde{\FFF}}\newcommand{\GGG}{\mathscr{G}}\newcommand{\HHH}{\mathscr{H}}\newcommand{\PPP}{\mathscr{P}}\newcommand{\Ff}{\mathcal{F}}\newcommand{\Gg}{\mathcal{G}}\newcommand{\Hh}{\mathbb{H}}\DeclareMathOperator{\ess}{ess}\newcommand{\CC}{\mathbb C}\newcommand{\FF}{\mathbb F}\newcommand{\NN}{\mathbb N}\newcommand{\QQ}{\mathbb Q}\newcommand{\RR}{\mathbb R}\newcommand{\ZZ}{\mathbb Z}\newcommand{\KK}{\mathbb K}\newcommand{\SSS}{\mathbb S}\newcommand{\II}{\mathbb I}\newcommand{\conj}[1]{\overline{#1}}\DeclareMathOperator{\cis}{cis}\newcommand{\abs}[1]{\left\lvert #1 \right\rvert}\newcommand{\norm}[1]{\left\lVert #1 \right\rVert}\newcommand{\floor}[1]{\left\lfloor #1 \right\rfloor}\newcommand{\ceil}[1]{\left\lceil #1 \right\rceil}\DeclareMathOperator*{\range}{range}\DeclareMathOperator*{\nul}{null}\DeclareMathOperator*{\Tr}{Tr}\DeclareMathOperator*{\tr}{Tr}\newcommand{\id}{1\!\!1}\newcommand{\Id}{1\!\!1}\newcommand{\der}{\ \mathrm {d}}\newcommand{\Zc}[1]{\ZZ / #1 \ZZ}\newcommand{\Zm}[1]{\left(\ZZ / #1 \ZZ\right)^\times}\DeclareMathOperator{\Hom}{Hom}\DeclareMathOperator{\End}{End}\newcommand{\GL}{\mathbb{GL}}\newcommand{\SL}{\mathbb{SL}}\newcommand{\SO}{\mathbb{SO}}\newcommand{\OO}{\mathbb{O}}\newcommand{\SU}{\mathbb{SU}}\newcommand{\U}{\mathbb{U}}\newcommand{\Spin}{\mathrm{Spin}}\newcommand{\Cl}{\mathrm{Cl}}\newcommand{\gr}{\mathrm{gr}}\newcommand{\gl}{\mathfrak{gl}}\newcommand{\sl}{\mathfrak{sl}}\newcommand{\so}{\mathfrak{so}}\newcommand{\su}{\mathfrak{su}}\newcommand{\sp}{\mathfrak{sp}}\newcommand{\uu}{\mathfrak{u}}\newcommand{\fg}{\mathfrak{g}}\newcommand{\hh}{\mathfrak{h}}\DeclareMathOperator{\Ad}{Ad}\DeclareMathOperator{\ad}{ad}\DeclareMathOperator{\Rad}{Rad}\DeclareMathOperator{\im}{im}\renewcommand{\BB}{\mathcal{B}}\newcommand{\HH}{\mathcal{H}}\DeclareMathOperator{\Lie}{Lie}\DeclareMathOperator{\Mat}{Mat}\DeclareMathOperator{\span}{span}\DeclareMathOperator{\proj}{proj}$
> [!definition] Moment Generating Function
> Given a random variable $X$, the ==**moment generating function**== is the function $m(\theta) = \EE\left[e^{\theta X}\right]$.
This funny-looking function concerned me when I first saw it. It's clearly somewhere in $(0,\infty]$, but we're not guaranteed to be finite for any $\theta$ except for $0$. First, observe that if $a < b < c$, then $e^b < e^a + e^c$, thus the region where this is finite is some interval $(\theta_-, \theta_+)$, (possibly with closed ends) containing $0$. So as long as this is intervals isn't $\{0\}$, we can perform some analysis on it.
In fact, this function is *very* well-behaved on this interval:
>[!theorem]
>Suppose there exist $\theta_- < 0 < \theta_+$ such that $m(\theta) < \infty$ on $(\theta_-, \theta_+)$. Then:
>- $\EE[X^k]$ exists and is finite for all $k\geq 1$.
>- $m(\theta)$ is a **smooth function** with derivative $m^{(k)}(\theta) = \EE[X^k e^{\theta X}] < \infty$.
> - In particular, if $\theta_+ > 0$, $m^{(k)}(\theta) \to \EE[X^k]$ as $\theta\downarrow 0$.
>[!proof]
> $\EE[X^k]$ is defined and finite if $\EE[\max(0, X^k)]$ and $\EE[-\min(0, X^k)]$ are finite (by definition), but each side is dominated by an exponential (observe we really need $\theta_- < 0 < \theta_+$ for this; one can easily find counterexamples otherwise).
>
> Uhh, todo finish later.
This object is the partition function of
> [!definition] Exponential Tilting
> For any $\theta\in (\theta_-, \theta_+)$, define a probability measure
> $P_\theta(A) = \EE\left[\id_A \frac{e^{\theta X}}{m(\theta)}\right]$
> This reweighting obeys
> $\EE_\theta[f(X)] = \EE\left[f(X) \frac{e^{\theta X}}{m(\theta)}\right]$
>[!proof]- This is a probability measure (TODO)
>Todo: boring
>[!example] Joint Tilted Distribution
>Now, we're going to extend the tilted probability measure to a sequence of i.i.d. $X_i