8
$\begingroup$

I am an applied math postdoc and I have been presented with the option of leaving academia to work in high frequency trading. I wanted to get a feel for the field and the theory underlying it so I scanned through several books in the library and it seems there are almost no books on the mathematical theory of this field. All the books I have looked at contain lots of explanations of the various aspects of trading such as 'market participants', 'limit order books', 'market microstructure', etc..which of course are very important to know, and some relatively basic math on things like 'statistical arbitrage strategies'. But where is the rigorous mathematical underpinning?

I would have expected to find books containing the same type of theory as in books on mathematical finance, i.e. a deep treatment of measure theory and probability theory, mathematical statistics, stochastic processes etc..

Why are these topics not covered in HFT books? Is advanced math not needed? If this is the case, what are the main skills needed for a high frequency trader?

$\endgroup$
  • 4
    $\begingroup$ "high frequency trading" ... you mean gambling, right? $\endgroup$ – vsz Jun 17 at 4:30
  • 3
    $\begingroup$ @vsz You've obviously never seen a HFT p/l graph. $\endgroup$ – wildbunny Jun 17 at 9:38
  • 3
    $\begingroup$ @vsz when an individual tries to do it on their robinhood app or whatever, its gambling. When billion dollar NY trading firms pay you $500k/yr to do it, its more like a career. $\endgroup$ – mbrig Jun 17 at 18:21
24
$\begingroup$

Hah! There is no such thing as the “rigorous mathematical underpinning” of high frequency trading - because HFT, like all trading, is not primarily a mathematical endeavour.

It’s true that many people who work in HFT have a mathematical background, but that’s because the tools of applied math and statistics are useful when analysing the large amounts of data that are generated by HFT activity. So the math that is useful to know is linear algebra, statistics, time series and optimisation (to some extent it’s useful to be familiar with machine learning, which encompasses all of the above).

Don’t go into HFT thinking that you will primarily be doing advanced math. If you are lucky, you will mostly be doing data analysis. More likely, you will spend a lot of time cleaning data, writing code, and monitoring trading systems.

$\endgroup$
  • $\begingroup$ amazon.co.uk/…. What do you make of that book then? $\endgroup$ – Permian Jun 16 at 9:04
  • 8
    $\begingroup$ It’s a book about HFT written by an academic. Hard to say without reading it, but I would be surprised if it has much relevance to the day-to-day practice of most HFT firms. $\endgroup$ – Chris Taylor Jun 16 at 10:55
  • $\begingroup$ So how does a high frequency trader relate to a quantitative analyst? I was told that these are two separate roles, and that HF traders may work in collaboration with quants, but I imagine a quant also spends a lot of time writing code and monitoring trading systems. So what differentiates the two roles? $\endgroup$ – sonicboom Jun 17 at 7:32
  • 1
    $\begingroup$ @sonicboom In my experience, quants were mostly focused on getting models right, while HF traders were mostly focused on getting positive P/L :) $\endgroup$ – Artur Biesiadowski Jun 17 at 14:49
10
$\begingroup$

I would argue, taking a note from John von Neumman, that quantitative finance lacks rigorous underpinnings. Von Neumann warned in 1953 that many things that look like proofs in economics and finance depended on problems that were yet to be solved in mathematics, and where economists were assuming solutions into existence. As the problems were solved in math, economists did not go back and check to see if their solutions matched.

Let me give you an example of why it is a problem. Quantitative finance assumes, in the general case, though the actual practice in the wild varies, that the distributions of returns are either normal or log-normal.

Let us assume that wealth at a given point in time is defined as $w=p\times{q}$, where $p$ is the price, and $q$ is the quantity of shares. If we assume that $q_t=q_{t+1}$, then return at time $t$ is $$r_t=\frac{p_{t+1}}{p_t}-1.$$ That makes returns a ratio distribution.

If we make the assumption that is standard in mean-variance models of many buyers and sellers and that a double auction is happening, then the rational behavior of the actors at each point in time $t$ is to bid their expectation.

The limit book converges to normality as the number of actors becomes very large. I would note that this requirement is not necessary, far weaker assumptions could be used, but we would be here for thirty to forty pages.

So prices are normally distributed, and returns are a function of prices, which implies that the distribution of returns is the distribution of a statistic, whose distribution should be derived from the distribution of data.

If we assume that prices converge around an equilibrium and treat the equilibrium as $(0,0)$ in error space, then we can integrate around that point.

The ratio of two centered normal distributions is the Cauchy distribution, which has no first moment. Mean-variance finance is impossible. Indeed, right now, I am trying to put rigor around quantitative finance, but it is very difficult.

To see it a bit more directly, if you transform the data into polar coordinates you will note that the relationship between angles and returns is $\tan(\theta_t)=r_t.$ It follows that $\theta_t=arctan(r_t)$. The arctangent is the kernel of the cumulative density function of the Cauchy distribution. You can quickly arrive at obvious disproofs of the underlying basis for the economic proofs. Do note that I vastly oversimplified the real world as disproof by counter-example doesn't really require the detailed case if one small subset is sufficient and the rest wouldn't remove the cause.

Quantitative finance violates the laws of general summation, in the general case. As a mathematician, dig deep. I have several papers out right now trying to add rigor, but it is hard to see how that will work out. I am proposing a new calculus for options pricing.

High-speed trading is a statistical concept and a key element of statistical theory that most people fail to notice is the absence of uniqueness theorems. There are a few non-existence proofs available, but generating THE solution isn't usually going to happen.

If I were wanting to ground high-frequency trading in sound math, I would avoid Kolmogorov (pace). I actually happen to have a copy of Kolmogorov's original work on probability about three meters from me at the moment, but I believe it will make your work more difficult. I would instead turn to Bruno de Finetti's coherence principle. You can derive Komogorov's axioms from de Finetti's coherence principle. Coherence is important because it is possible to wipe out a market maker who fails to use coherent measures. Generally speaking, Frequentist methods give rise to incoherent probabilities and incoherent prices. I have also worked out the conditions where a neural network will generate incoherent trading instructions(too long for this post).

If you are in want of greater rigor, then start with Leonard Jimmie Savage's "Foundations of Statistics." Again, the threat is incoherence if you do not. Another interesting grounding is Cox's 1961 book "The Algebra of Probable Inference."

The main skill is related to data mining. It may not actually be required that you are either good at it, or use sound methods because it may be the case that the people judging your work do not know calculus or statistics beyond t-tests. That is not a criticism, so much as a deep concern for soundness. Having spent a good chunk of my life inside financial institutions, I have more than a passing concern for the black-box system that is in place.

On the assumption that you want to do a very good job, then what I would do is work out the determinants of supply and the determinants of demand. I would factor the changes and risks to dividends, mergers, and bankruptcy. I would have to include liquidity costs. It would make it more like a very boring supply and demand model. It would likely not be very fancy and it would almost certainly lack pizzazz.

Boring is awesome if it makes you money.

EDIT I need to give a thanks to @Accumulation because I have been looking at this problem too long. Let me be a bit more rigorous.

Let observed return $r$ be defined as $$r=r^*+\gamma,$$ where $\gamma$ is a random variable and $r^*$ is the equilibrium return and the center of location.

Also, let observed return be defined as $$r=\frac{p_{t+1}}{p_t}.$$ Let equilibrium return be defines as $$r^*=\frac{p_{t+1}^*}{p_t^*}.$$

Let us defined prices with respect to equilibrium prices using Wold's decomposition theorem as $$p_t=p^*_t+\epsilon_t,$$ and $$p_{t+1}=p_{t+1}^*+\epsilon_{t+1}.$$

So, $$\frac{p_{t+1}^*+\epsilon_{t+1}}{p^*_t+\epsilon_t}=\frac{p_{t+1}^*}{p_t^*}+\gamma.$$ It follows that $$\gamma=\frac{p_{t+1}^*+\epsilon_{t+1}}{p^*_t+\epsilon_t}-\frac{p_{t+1}^*}{p_t^*}.$$

$$\gamma\approx\frac{\epsilon_{t+1}}{\epsilon_t}.$$

The author acknowledges that in the general case, the ratio of two normal random variates shifted by a price are not a Cauchy distribution but rather a Cauchy distribution scaled by $(1+\eta)$ where $\eta$ is a finite variance distribution. In this case, $\eta$ would become vanishingly small in effect. Out of equilibrium, that would not be true.

Note that $\epsilon$ is normal as described above centered on zero. Also, note that in the general case, $\sigma_{t+1}>\sigma_t$ or there would be a violation of rationality. It implies, in the general case, price heteroskedasticity.

$\endgroup$
  • $\begingroup$ That's very interesting. I encountered the cauchy distribution in my hawkes process trade timing analysis, where if you fit a exp powerlaw approximation hawkes model to a sequence of trade times of SPY, you get a critical hawkes process where the branching ratio is exactly equal to 1. If you forecast the next point of occurence and compare with the actual, you get a Cauchy distribution whose variance is half that of the mean inter-trade time. I did a lot of work on it, some posts on here too, not sure what to make of it $\endgroup$ – crow Jun 17 at 13:09
  • 2
    $\begingroup$ "If we assume that prices converge around an equilibrium and treat the equilibrium as (0,0) in error space, then we can integrate around that point. The ratio of two centered normal distributions is the Cauchy distribution" But the return isn't the ratio of the errors, it's the ratio of the prices, and the prices aren't centered at zero. $\endgroup$ – Acccumulation Jun 17 at 15:22
  • $\begingroup$ @Acccumulation thanks, I edited it. $\endgroup$ – Dave Harris Jun 18 at 0:08
  • 1
    $\begingroup$ @HomunculusReticulli You can bookmark the question, and if you hit the "share" link at the bottom left of the answer, you'll get a url that links directly to the question. $\endgroup$ – Acccumulation Jun 18 at 14:36
  • 1
    $\begingroup$ @HomunculusReticulli I am creating a series of videos replacing the rules of quantitative finance. I am proposing a new branch of stochastic calculus that FOSD Ito and Stratonovich methods and I am replacing Ito models of derivatives. You can find the first video at youtu.be/R3fcVUBgIZw $\endgroup$ – Dave Harris Oct 10 at 0:30
2
$\begingroup$

Optimal stochastic control. Hamilton jacobi bellman

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.