Hacker News new | ask | show | jobs
by FabHK 1501 days ago
> What real math is involved in predicting the stock market?

1. Stock market valuation has a fairly tidy theoretical foundation that is not too much use in practice for prediction. (It is used for IPOs etc. in some form, when a market price hasn't been established yet.) It involves basic algebra, along the lines of sum_t=1^infty D/(1+r)^t = D/r, etc.

Fisher Black (of Black-Scholes fame) memorably wrote: "An efficient market is one in which price is within a factor 2 of value", where price = market price, and value = true value, as determined by that tidy formula assuming you had all the correct inputs, which you don't.

2. Similar for FX and Rates, though there is a bit more to it.

3. In derivatives, you have much more sophisticated maths (stochastic processes, Ito calculus, PDEs, Monte Carlo). Its focus is not so much prediction of the future, but a) deducing the true current state of the market from observable prices, and then b) from that true state deduce the price of derivative products, and c) computing risks (partial derivatives), which then lets you d) synthesise these derivative products. But that's not very relevant here.

4. Trying to predict the market is a whole other ballgame. You can work with time series analysis, regression and more sophisticated statistical methods and ML, and use any number of inputs: price history, company fundamentals, macro fundamentals, text/sentiment analysis, order book (market micro structure), etc.

Funny thing about this business is that there's a lot written about it, but those that have figured it out use it to make money, and don't write about it.

5. Now, cryptography involves real maths, but entirely different again, mostly number theory (such as n^p = n (mod p), for p prime).

GP might have been complaining that many vociferous crypto bros lack the basics to understand the mathematical foundations of cryptography. Though, I must say, I think one can understand e.g. hash functions and asymmetric encryption etc. quite well from their functionality alone, without needing to understand the math behind it (just as you don't need to understand transistors to understand what a NAND gate does).