News for hackers. Stuff that matters.
Re:Jane Street Market Prediction ($100k Kaggle competition) by riazrizvi on Tuesday November 24, 2020 @03:06PM (#25202458)
Mathematical analysis of financial markets is more celebrated when applied to relative valuation of different assets, rather than prediction of the market. Black-scholes, for example, applied calculus with an underlying no-arbitrage assumption to create a thriving market in option pricing, by giving traders a mechanism to reduce risk and thereby reduce bid offer spreads. Same in fixed income, mortgage, and credit market assets over the years.

The problem with predicting absolute levels, is that there is a game theoretic aspect which undermines any mathematical trading strategy as soon as it is public. optimal game theory trading strategies don’t produce great results, and they are relatively trivial to identify. Instead strong profits in market long/short macro positions are mostly created by information advantages, which don’t really make for interesting Kaggle competitions. For example, big profits in macro trading have historically been consistently achieved by front running customer orders, by building timing advantages on top of trading infrastructure, by funding research analysts that inspect operations on the ground, by lobbying for regulations that change market directions and so on.

It’s very hard to tell if a best performing hedge funds that doesn’t have an unfair advantage, that declares its only using quantitative strategies, is in fact just a statistical anomaly with a hollow narrative.

Re:Jane Street Market Prediction ($100k Kaggle competition) by georgeecollins on Tuesday November 24, 2020 @03:45PM (#25202837)
This!

>> The problem with predicting absolute levels, is that there is a game theoretic aspect which undermines any mathematical trading strategy as soon as it is public.

I took finance in Business school, coming from doing a lot of statistical analysis in a research lab. I hated my finance professors and there pseudo science. Pricing formulas work great until they don't. The problem is when they don't, they really don't, in a catastrophic way. Read "When Genius Failed." Real traders know this. But some economists and finance professors act like these mathematical models are describing a predictable physical phenomena.

Re:Jane Street Market Prediction ($100k Kaggle competition) by riazrizvi on Tuesday November 24, 2020 @04:31PM (#25203203)
To clarify, the hedge fund LTCM in "When Genius Failed", collapsed not because it relied on arbitrage 'pricing formulae', rather because it failed to properly execute arbitrage trades.

LTCM in being overly leveraged, relied on other market participants to maintain short term price alignment, which meant it was not arbitrage. Salomon's reduced its role as market-maker, maintaining short term price alignment, which increased short term price anomalies, and thus increased LTCM's vulnerability. The Asian financial crisis increased the frequency and extent of those pricing anomalies, and the subsequent Russian Default crisis did the same. Margin calls were made on LTCM that it couldn't cover, forcing them to close out of their positions at very unprofitable times of the trade strategy.

So I don't think "pseudo-science" is a great description for what those B-School profs are teaching. Rather the pricing formulae are just the beginnings of the financial theory you need to run arbitrage strategies, but they are not sufficient. You need to augment them with a broader picture of market dynamics and capital management, just like you'd need to learn about financial law, financial market technology, and a bunch of other stuff to run a successful market-making desk.

Re:Jane Street Market Prediction ($100k Kaggle competition) by eru on Wednesday November 25, 2020 @02:05AM (#25206644)
'Why aren't they shouting' also has some things to say about LTCM. Broadly in the same vein. Those guys were leveraged to the gills and couldn't take market movements against them.

From what I've read elsewhere, if you had managed to hold an LTCM replica portfolio until expiry, you would have actually made money.

Re:Jane Street Market Prediction ($100k Kaggle competition) by milesvp on Tuesday November 24, 2020 @04:01PM (#25202958)
To add to this, unless your model is situated, and can purturb the market, it has no way of knowing what happens when you flex your muscle. I have a friend who did algorithmic trading professionally for a few years, and he said it was amazing to watch the data. Said he could see other bots come along and poke him, trying to look for weaknesses in his algorithm to exploit. I would expect a purely formulaic trader to underperform other traders who can take advantage of others. It’s no different than how you have to win a rhoshambo turnament.
Re:Jane Street Market Prediction ($100k Kaggle competition) by jtms on Wednesday November 25, 2020 @01:27PM (#25212470)
Ok, I’ll bite - how, precisely, does one win a rhoshambo tournament?
Re:Jane Street Market Prediction ($100k Kaggle competition) by blovescoffee on Tuesday November 24, 2020 @04:14PM (#25203062)
I've wanted to start learning about this for a while but I'm really not sure where to start. I have a degree in CS and Math so I'm not a total layman wrt the maths. Do you have any suggestions?
Re:Jane Street Market Prediction ($100k Kaggle competition) by secondcoming on Tuesday November 24, 2020 @07:35PM (#25204680)
Re:Jane Street Market Prediction ($100k Kaggle competition) by blovescoffee on Wednesday November 25, 2020 @09:30AM (#25209564)
Thanks, I'll give it a shot
Re:Jane Street Market Prediction ($100k Kaggle competition) by quantumofalpha on Wednesday November 25, 2020 @12:39PM (#25211854)
Eh, don't bother reading any financial literature that other commentators suggest you for this competition. With anonymized input data and even the nature of the problem (is it even short or long term prediction? the two are very different beasts), you're not going to use any financial domain knowledge here. Besides, the good stuff is rarely if ever openly published. Just keep in mind two useful unchanging truths about finance here: it's time series data and with very low signal-to-noise ratio, so overfitting is a major concern.

Start by reading/running notebooks ("kernels") and winners solutions from this and previous competitions with tabular/time series data, building models and then grid searching, stacking, bagging, boosting 'em up. Here's a bit aged but still useful guide how pros do it: https://mlwave.com/kaggle-ensembling-guide/

Re:Jane Street Market Prediction ($100k Kaggle competition) by eru on Wednesday November 25, 2020 @02:06AM (#25206653)
I have a book called Empirical Asset Pricing by Wayne Ferson. Seems like as good a place to start as any.

If you want something online, check out https://www.quantopian.com/

Re:Jane Street Market Prediction ($100k Kaggle competition) by blovescoffee on Wednesday November 25, 2020 @09:30AM (#25209559)
It looks like I'm a bit too novice for Empirical Asset Pricing. I'll check out the website though, thanks.
Re:Jane Street Market Prediction ($100k Kaggle competition) by eru on Wednesday November 25, 2020 @12:57PM (#25212049)
Yeah, I haven't read that book myself yet. Borrowed it from work. But it seems like the Real Deal. So you could just use it as a stepping stone, and just see what basic material the author recommends to work through beforehand. You can usually find these recommendations in the preface or similar.
Re:Jane Street Market Prediction ($100k Kaggle competition) by riazrizvi on Tuesday November 24, 2020 @04:34PM (#25203228)
What's your goal?
Re:Jane Street Market Prediction ($100k Kaggle competition) by blovescoffee on Wednesday November 25, 2020 @09:27AM (#25209523)
Primarily to learn for the sake of the thrill of learning. I would like to have a better understanding of the analytical methods for understanding markets. I'm interested in the application of game theory from more of a beginners point of view but any mathematical tools to understand the world better are interesting to me. I'm not really focused on making money, just interested in better intuition/understanding of economics.
Re:Jane Street Market Prediction ($100k Kaggle competition) by nikbojo on Tuesday November 24, 2020 @06:15PM (#25204158)
To have fun exploring and learning.
Re:Jane Street Market Prediction ($100k Kaggle competition) by partingshots on Tuesday November 24, 2020 @10:41PM (#25205818)
And also rule the world.
Re:Jane Street Market Prediction ($100k Kaggle competition) by andi999 on Wednesday November 25, 2020 @03:11AM (#25206976)
I am not that ambitious, just one or two billion in assets.
Re:Jane Street Market Prediction ($100k Kaggle competition) by hogFeast on Tuesday November 24, 2020 @05:12PM (#25203571)
Also, prices aren't stationary. For an equity security, you are predicting the price for a company that is compounding capital over time. You can predict the price for the company at one point, the relative valuation for the company (for example, against peer group) may not change in one year but that company is investing their capital at X% so you get price growth.

The reason why relative valuation models are more effective is the same reason why most sports betting models use current odds as an input. Prices contain information but, in my experience, these methods aren't totally effective because they often miss important information about the company itself (big price moves happen because relative valuations are wrong). Value or quality appears to do fundamental work but is often woefully blind (for example, there are proven accounting issues with value strategies...does your average quant understand this? No. Have they ever read a set of accounts? No. They have no hope. None.)

Just imo, I think quant strategies are almost totally worthless beyond liquidity provision (even a strategy like front-running news in FX...humans do this better, and I know people who are still making tons of money doing this). I think there is massive value in that mode of analysis but the people who make the most are always going to be people who know the fundamentals better (I think firms like Marshall Wace that are doing this synthesis will move ahead) because that information is often not in the price at all.

Re:Jane Street Market Prediction ($100k Kaggle competition) by ackbar03 on Tuesday November 24, 2020 @07:58PM (#25204830)
> Also, prices aren't stationary

I'm not sure about the rest of your comment, but this is mathematically the correct reason why we don't predict absolute price levels.

And the reason why this is mathematically the correct reason is because for a non-stationary process, when you predict into the future, the variance tends to infinity which means taking expectation on any statistical model is useless since the variance is ridiculously wide

Re:Jane Street Market Prediction ($100k Kaggle competition) by logicchains on Wednesday November 25, 2020 @02:11AM (#25206672)
>The problem with predicting absolute levels, is that there is a game theoretic aspect which undermines any mathematical trading strategy as soon as it is public. optimal game theory trading strategies don’t produce great results, and they are relatively trivial to identify.

This isn't true if you're fast enough. Everybody knows how to do arbitrage but it's still extremely profitable if you're faster than everyone else. HFTs are consistently more profitable than slow trading firms, earning 40%+ returns, it's just a much more capacity-constrained form of trading so absolute returns are lower.

Re:Jane Street Market Prediction ($100k Kaggle competition) by eru on Wednesday November 25, 2020 @02:03AM (#25206633)
Just as an aside: the kind of prediction you are describing as relatively boring is still really useful, because it improves markets as far as the rest of society is concerned.

But yeah, it might not be that useful for the funds themselves.

Re:Jane Street Market Prediction ($100k Kaggle competition) by amelius on Tuesday November 24, 2020 @06:29PM (#25204258)
> relative valuation of different assets, rather than prediction of the market

But isn't prediction an inherent part of valuation?

Re:Jane Street Market Prediction ($100k Kaggle competition) by riazrizvi on Tuesday November 24, 2020 @07:38PM (#25204705)
Relative price prediction is an inherent part of valuation. You predict what the price of, say, a bond is given the price of the discount rate over the life of that bond. You are not predicting the absolute price of the bond, you are not able to predict if rates are going to go up or down. That's the appeal of arbitrage, you don't need to see the future, you make money no matter what if you see that a particular asset is 'out of whack', mis-priced, cheap, expensive, and you buy/sell it (and execute the appropriate arbitrage hedging strategy until maturity of the trade).
Re:Jane Street Market Prediction ($100k Kaggle competition) by harry8 on Tuesday November 24, 2020 @06:37PM (#25204307)
>But isn't prediction an inherent part of valuation?

Doesn't need to be. You have wealth you have to store somehwere because it is not being spent now. Can store it as equities, debt (including a bank account), Paper cash money under the mattress, gold bars, BTC, etc etc.

Let's say you have the list of potential places to store it and can get a price/value ratio but with a common term of "X" in the value

  - A = 3.1/X
  - B = 2.8/X
  - C = 1.9/X
  - D = 4.2/X
Gotta put it somewhere if you aren't spending it. In the above you'd Choose "C". Lowest price to value ratio even though you don't know what the actual value is.

Yes, this is a massive simplification as it ignores diversification benefits and so on but there's the basics of the usefulness of valuation where you don't and can't know the value.

"prediction of the market" here means "Do you think the S&P500 is going up or down this year?" Warren Buffet completely ignores this, takes no view on it. Timing the market is very hard. Assuming the market will reflect the economy and the economy will grow because people work hard, are smart, we invent new things and population increases, then picking the best of what's available is the normal value investors route, a la Buffet as the most famous practioner.

Burton Malkiel's "A Random Walk Down Wall St." is still, IMHO the best summary of all the theory and practise of investing - excluding the quant funds like Renaissance. Maybe he has an update for them? Maybe it's also worth reading if it exists or maybe not. Don't know.

No idea if renaissance time the market or what.

edit: punctuation and the Malkiel recommendation.

Re:Jane Street Market Prediction ($100k Kaggle competition) by arthurcolle on Tuesday November 24, 2020 @06:50PM (#25204399)
This is highly dependent on the model in question. If you look at the parameters of the Black-Merton-Scholes model, there are assumptions embedded in the model that aren't necessarily predictions.