News for hackers. Stuff that matters.
Re:Jane Street Market Prediction ($100k Kaggle competition) by usmannk on Tuesday November 24, 2020 @02:15PM (#25201940)
As a frequent Kaggler (perhaps too frequent... it's a bit addicting, in a way I'm sure others on HN will understand), I was fairly intrigued to see this one pop up in the competition list a few days ago. Finance shops have tried their hand at Kaggle before, but I think they've normally been out of their domain. e.g. Two Sigma recently did a reinforcement learning game competition.

I'd caution the HN crowd not to expect production-level quant models out of this, like I'm seeing some doing in the comments already. Kagglers are excellent machine learning practitioners and the models that come out of many competitions are top-notch stuff, often making their way into research papers. But this is a short competition on limited data in a non-real-world scenario. The winning models will be very interesting educational exercises and probably wonderful recruiting material for Jane Street, but won't be the underpinnings of a new fund.

That said, I can't wait to see what comes out of this one. It ticks all of my competitive boxes :)

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.
Re:Jane Street Market Prediction ($100k Kaggle competition) by fractionalhare on Tuesday November 24, 2020 @02:19PM (#25201990)
Yes, it's overwhelmingly unlikely that the winning model will actually be a competitive trading strategy.

Kaggle encourages a domain agnostic approach to modeling, in the sense that participants use sophisticated machine learning and statistical methods but typically have no domain expertise in the underlying data. This kind of approach to finance has historically performed poorly. [1]

Good quantitative trading is usually backed by a strong fundamental thesis and an interpretable model, which is obtained by cross-pollinating sophisticated math and statistics with domain expertise in some part of finance. That domain expertise might be in different kinds of assets, liquidity or market microstructure, but it's there.

$100k is cheap for Jane Street. If nothing else they have a new recruiting pipeline of people with demonstrable machine learning skills.

______________

1. I would also say this is a poor way to approach statistical analysis in most domains, and usually leads to spurious or overfit results. But the idea that you can just run a model and find patterns in pricing data is especially attractive and insidious.

Re:Jane Street Market Prediction ($100k Kaggle competition) by usmannk on Tuesday November 24, 2020 @02:22PM (#25202023)
> Kaggle encourages a domain agnostic approach to modeling, in the sense that participants use sophisticated machine learning and statistical methods but typically have no domain expertise in the underlying data.

Yes this is accurate and put very well. This is so much the case that if you have a strong background understanding of the field, the ML part can actually be picked up quite quickly or contributed by someone else. There are a few notable users who are both domain and ML experts and they tend to absolutely clean up in their field. I'm thinking of a couple of med students in particular who are formidable in every medical imaging competition.

Re:Jane Street Market Prediction ($100k Kaggle competition) by rahimnathwani on Tuesday November 24, 2020 @03:16PM (#25202547)
"have no domain expertise in the underlying data. This kind of approach to finance has historically performed poorly"

I recently read 'The man who solved the market', about Jim Simons and Renaissance Capital. The way the book tells it, looking for patterns without seeking domain expertise (e.g. ignoring fundamental valuation of equities) is exactly what Renaissance did, and it worked out very well.

Re:Jane Street Market Prediction ($100k Kaggle competition) by fractionalhare on Tuesday November 24, 2020 @03:26PM (#25202636)
I can see why someone would characterize RenTech that way but it's not really fair to do so. There is a lot of mythos about how Simons hired computer scientists, mathematicians, signal processing and NLP experts, etc. When Mercer came over from IBM, he definitely contributed a significant amount of analytical expertise that was probably nonexistent in financial trading at the time (with the possible exception of the Ed Thorp diaspora). The astrophysicists RenTech hires every year bring new insights in ways to model and understand vast amounts of data with absurd dimensionality.

But all of this has to be utilized in the context of the data. The reality is that you're not going to develop a sophisticated options trading strategy without a strong understanding of what an option (and more generally, a derivative) is. You can't develop a viable statistical arbitrage strategy just by treating market microstructure as a blackbox signal to be solved with e.g. Fourier analysis. You can certainly find an edge in using fundamentally superior methods of analysis, but you still need to know what that data represents in the context of the market.

Don't be fooled: people working at firms like RenTech have a strong understanding of the underlying finance. It's just that they learned it on the job, because the ethos at these firms is that learning fundamental theory in math and statistics is harder than learning fundamental theory in finance. You don't have to take my word for it though. Read about one of the few strategies of RenTech's which has been publicized: https://www.bloomberg.com/opinion/articles/2014-07-22/senate.... Deutsche and RenTech didn't team up on this strategy (to fantastic success) by treating basket options as some kind of blackbox abstraction devoid of delta, gamma, theta and vega.

Re:Jane Street Market Prediction ($100k Kaggle competition) by ciamac on Tuesday November 24, 2020 @04:19PM (#25203110)
That DB/rentech basket option is a tax avoidance scheme. It has nothing to do options pricing and concepts like delta, gamma, etc.
Re:Jane Street Market Prediction ($100k Kaggle competition) by fractionalhare on Tuesday November 24, 2020 @04:27PM (#25203179)
Yeah, yeah. That controversy has been litigated on HN a dozen times already, I'm not going to rehash it. Do you dispute my primary point here? If so, why?

(Also, even if I agree it was purely intended for tax avoidance, I don't understand why you think that would obviate having to understand how the options work intimately well).

Re:Jane Street Market Prediction ($100k Kaggle competition) by abhinav2019 on Saturday November 28, 2020 @12:55AM (#25235614)
I don't really think you can categorize that they worked well as these companies are market maker. This is all the way more evident in 9 out 10 times they were profitable. It seems more as that options were 9X strike.
Re:Jane Street Market Prediction ($100k Kaggle competition) by nojito on Tuesday November 24, 2020 @03:49PM (#25202864)
Yup.

https://www.rentec.com/Careers.action?computerProgrammer=tru...

They look for programmers with knowledge of Tax and Risk Management.

Re:Jane Street Market Prediction ($100k Kaggle competition) by reese_john on Tuesday November 24, 2020 @05:57PM (#25203996)
How much do you think does their advantage stems from having high quality proprietary/alternative datasets?
Re:Jane Street Market Prediction ($100k Kaggle competition) by nojito on Wednesday November 25, 2020 @09:58AM (#25209882)
Not much if at all.

However, RenTech probably has the cleanest data warehouse of any firm. It was revealed that they have PHDs who do nothing but sort data into databases.

Re:Jane Street Market Prediction ($100k Kaggle competition) by Spinnaker_ on Tuesday November 24, 2020 @04:54PM (#25203380)
We should also remember that Jane Street is primarily an ETF market maker. Their main business isn't betting on prices of stocks or managing a portfolio.

I've only taken a quick look at the data, but the problem doesn't seem to be focused on their core competencies, but instead is much more general.

Re:Jane Street Market Prediction ($100k Kaggle competition) by optimalsolver on Tuesday November 24, 2020 @06:13PM (#25204140)
>I've only taken a quick look at the data, but the problem doesn't seem to be focused on their core competencies, but instead is much more general

How can you tell? All the features are completely anonymized.

Re:Jane Street Market Prediction ($100k Kaggle competition) by x87678r on Tuesday November 24, 2020 @04:49PM (#25203337)
They even say in the instructions:

Admittedly, this challenge far oversimplifies the depth of the quantitative problems Jane Streeters work on daily, and Jane Street is happy with the performance of its existing trading model for this particular question.

Re:Jane Street Market Prediction ($100k Kaggle competition) by anonu on Tuesday November 24, 2020 @10:35PM (#25205790)
Can you comment on the specific setup of this kaggle competition? Versus other finance/trading related challenges?