A Little Quant Interview Question

A Little Quant Interview Question


Question was originally inspired by Guillermo Angeris post on 𝕏\mathbb{X}. He gave it a much deeper consideration than I did here.

A decade ago, this is the type of problem that my classmates would pretend they could reliably do 1) on the spot, 2) in their head. Some of them work at Jane Street now, so maybe not all of them were lying. Certainly does bear some resemblance to a question you might see in Heard on The Street.

Very straightforward question. Xi{±1};X=i=1nXiX_i \sim \{\pm 1\} \;; X=\sum_{i=1}^n X_i. Assuming +1+1 and 1-1 appear with equal probability, what is E[|X|]E[|X|]?

It is clear E[X]=0E[X]=0, but how can we go about finding the expected absolute value of XX? To get a very rough approximation, let’s first use Jensen’s inequality on X2X^2.

E[|X|]=E[X2]E[X2]=n\begin{equation} E[|X|] = E[\sqrt{X^2}] \leq \sqrt{E[X^2]} = \sqrt{n} \end{equation}

The second equality in the statement above comes from the observation that Xi{±1}X_i \in \{\pm 1\} implies nXi2=n\sum^{n}X_i^2 = n. This alone is actually pretty good, but we can do even better with just an iota more effort. We can approximate the sum of independent Rademacher RVs to N(0,n)N\Big(0, \sqrt{n}). With this fact, we can then just compute twice the expectation on (0,)\Big(0, \infty).

22nπ0xe12(xn)2dx2πn\begin{equation} \frac{2}{\sqrt{2n\pi}}\int_{0}^{\infty\ }x\ e^{-\frac{1}{2}\left(\frac{x}{\sqrt{n}}\right)^{2}}dx \approx \sqrt{\frac{2}{\pi}}\sqrt{n} \end{equation}