Skip to content
All library documents

Using Normal Moments to Evaluate Avellaneda–Stoikov Utility

Article Quant Q&A · Author: Mike

Summary

The document shows how to simplify two conditional expectations used in an Avellaneda–Stoikov limit order book model. For a price following arithmetic Brownian motion, terminal price is normally distributed; factoring out current wealth and applying the normal moment-generating function evaluates exponential utility of terminal inventory value. The result contains a term for current inventory marked at spot and a variance-related risk penalty.

For the second utility expression, the response uses driftless geometric Brownian motion and computes the first two moments of the terminal price. Substituting those moments into the expected quadratic deviation from current spot yields the stated closed form. The derivation illustrates why the two calculations use different price processes: one uses arithmetic Brownian motion, while the other assumes geometric Brownian motion. The explanation is algebraic and depends on those specified dynamics and utility forms; it does not assess the model’s empirical fit or broader market-making performance.

Key ideas

  • Under arithmetic Brownian motion, terminal price is normal with variance determined by volatility and elapsed time.
  • The normal moment-generating function evaluates exponential utility of terminal inventory value.
  • The second calculation assumes driftless geometric Brownian motion and uses its first two terminal-price moments.
  • Substituting those moments gives the expected quadratic inventory deviation in closed form.
  • The results depend on the distinct price dynamics and utility specifications used in each derivation.

Tags

Full text
# Stochastic equation in "High Frequency Trading in LoB, Sasha Stoikov and Marco Avellaneda"


# Stochastic equation in "High Frequency Trading in LoB, Sasha Stoikov and Marco Avellaneda"












I am reading paper High-frequency trading in a limit order book by Marco Avellaneda and Sasha Stoikov. Please help me to understand how they rewritten and obtained function

$$ v(x,s,q,t)= -\exp(-{\gamma}x)exp(-{\gamma}qs)exp(\frac{{\gamma}^2q^2{\sigma}^2(T-t)}{2}) (3) $$

from

$$ v(x,s,q,t)= E_t[-\exp(-{\gamma}(x+q{S_T}))] $$

And also in appendix they rewritten another utility function $$ V(x,s,q,t)= E_t[(x+q{S_T})-\frac{\gamma}{2}(q{S_T}-qs)^2] $$

into $$ V(x,s,q,t) = x+qs-\frac{{\gamma}q^2s^2}{2}(e^{{\sigma}^2(T-t)}-1) $$

I understand that they're trying to integrate Normal Distribution's PDF (=Brownian motion), but I can't achieve the same results during transformation of integrals

## Answer by Pleb (score 8)

https://quant.stackexchange.com/a/68778

## First part of your question:

The solution comes from solving the SDE specified in the paper and then using the moment generating function of a normal random variable.

Formally, let us define the SDE specified in the paper:

$$dS_u = \sigma dW_u,$$ with initial value $S_t = s$. To get the solution to the above SDE, we can integrate from $t$ to $T$ on both sides:

\begin{align*} \int_{t}^T dS_u &= \int_t^T\sigma dW_u.\\ &\Updownarrow\\ S_T - S_t &= \sigma (W_T - W_t) \\ &\Updownarrow\\ S_T &= S_t + \sigma (W_T - W_t) \end{align*} Since Brownian increments are normally distributed with $W_T - W_t \sim N(0, T-t)$ and we further have that $S_t = s$, we get the following distribution for $S_T \sim N(s, \sigma^2 (T-t))$.

Now, reformulating the expectation in your second formula gives us:

$$\mathbb{E}_t\left[-e^{-\gamma(x + qS_T)}\right] = -e^{-\gamma x}\mathbb{E}_t\left[e^{-\gamma q S_T}\right],$$

where $x$ is the initial wealth in dollars and is just a known constant.

Remember that the moment generating function of a Normal random variable with distribution $X \sim N(\mu, \sigma^2)$ is given by (see here for formula):

$$\mathbb{E}\left[e^{tX}\right] = e^{t\mu}e^{\frac{1}{2}\sigma^2t^2}. $$

Using this formula, we get the desired result:

$$-e^{-\gamma x}\mathbb{E}_t\left[e^{-\gamma q S_T}\right] = -\exp(-\gamma x)\exp(-\gamma qs) \exp\left(\frac{\gamma^2 q^2 \sigma^2 (T-t)}{2}\right)$$

## Second part of your question:

We need to observe that the authors now use a driftless GBM as SDE:

$$\frac{dS_u}{S_u} = \sigma dW_u,$$

with initial value $S_t = s$. This has the solution:

$$S_T = S_t e^{-\frac{\sigma^2}{2}(T-t) + \sigma (W_T - W_t)}.$$

#### Calculating first and second moment:

Let us redefine $S_T$ as $$S_T \overset{d}{=} S_t e^{-\frac{\sigma^2}{2}(T-t) + \sqrt{T-t}\cdot x},$$

where $x$ is normal distributed with $x \sim N(0, \sigma^2)$ and furthermore its squared counterpart is given by:

$$S_T^2\overset{d}{=} S_t^2 e^{-\sigma^2(T-t) + 2\sqrt{T-t}\cdot x}.$$

Calculating the moments follows from the moment generating function defined above and we conclude that:

\begin{align} \mathbb{E}_t\left[S_T\right] &= \mathbb{E}_t\left[S_t e^{-\frac{\sigma^2}{2}(T-t) + \sqrt{T-t}\cdot x}\right] \\ &= S_t e^{-\frac{\sigma^2}{2}(T-t)} \mathbb{E}_t\left[e^{\sqrt{T-t}x} \right]\\ &= S_t e^{-\frac{\sigma^2}{2}(T-t)}e^{\frac{\sigma^2}{2}(T-t)}\\ &= S_t \end{align} \begin{align} \mathbb{E}_t\left[S_T^2\right] &=\mathbb{E}_t\left[ S_t^2 e^{-\sigma^2(T-t) + 2\sqrt{T-t}\cdot x}\right]\\ &= S_t^2 e^{-\sigma^2(T-t)} \mathbb{E}_t\left[e^{2\sqrt{T-t}x}\right]\\ &= S_t^2 e^{-\sigma^2(T-t)}e^{2\sigma^2(T-t)}\\ &= S_t^2 e^{\sigma^2(T-t)}, \end{align} and remember that $S_t = s$.

Now, rewriting your third equation and inserting the above moments, we get the answer as depicted in your fourth equation: \begin{align} \mathbb{E}_t\left[x + qS_T - \frac{\gamma}{2} \left(qS_t - qs\right)^2\right] &= \mathbb{E}_t\left[x + qS_T - \frac{\gamma}{2} q^2(S_t - s)^2\right]\\ &= x + q \mathbb{E}_t\left[S_T\right] - \frac{\gamma}{2} q^2 \mathbb{E}_t\left[(S_T-s)^2\right]\\ &= x + qs - \frac{\gamma q^2}{2} \mathbb{E}_t\left[S_T^2 + s^2 - 2 S_T\cdot s\right]\\ &= x + qs - \frac{\gamma q^2}{2} \left(\mathbb{E}_t\left[S_T^2\right] + s^2 - 2s^2\right)\\ &= x + qs - \frac{\gamma q^2}{2} \left(s^2 e^{\sigma^2 (T-t)} - s^2\right)\\ &= x + qs - \frac{\gamma q^2 s^2}{2} \left(e^{\sigma^2 (T-t)} - 1\right)\\ \end{align}

I hope this provides a bit of help.

Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.