News for hackers. Stuff that matters.
Re:Jane Street Market Prediction ($100k Kaggle competition) by npmisdown on Tuesday November 24, 2020 @04:39PM (#25203266)
I'm sorry, if you could build a model to predict markets, why will you post in to Kaggle to get $40k in prize instead of applying this model to your own broker account?
Re:Jane Street Market Prediction ($100k Kaggle competition) by tikhonj on Tuesday November 24, 2020 @05:02PM (#25203464)
It is much harder to turn a model into a profitable trading strategy than people realize. Apart from transaction costs, risk management and market impact there are also a lot of small operational details which can make or break your execution. One example I vaguely recall was that the details of how a specific foreign exchange conducted its closing auction could make a substantial difference to a strategy that involved executing there alongside other trading venues.

The payoff for getting these operational details right or wrong is massively asymmetrical. If you get everything right, you'll only do as well as your model lets you. But if you get anything wrong, you run a real chance of losing far more money than you could have hoped to make!

Even just validating your strategy on historical data (ie back-testing) is harder than it sounds. If you make a mistake that leaks information to the code you're testing, you can end up with a much rosier return and risk profile than you really have. Another way to lose money when you go put your model into action.

If you get over these challenges and run your strategy successfully for a while, other market participants are going to start adjusting against it and you have to adjust in turn. You can't just "set and forget".

I should note that I am far from an expert on any of this, though! I just know enough to not trade with serious money—my real savings are all in index funds I don't touch, thank you very much :).

Re:Jane Street Market Prediction ($100k Kaggle competition) by hogFeast on Tuesday November 24, 2020 @05:20PM (#25203663)
I believe what you are referring to is the fix. Foreign exchange markets, that I am aware of, do not have closing auctions.

I have heard of some quants trading foreign exchange markets, agreeing to trade at the fix with their counter-party, and not realising that traders often manipulate the fix resulting in the quant's strategy appearing not to work. It is almost comical (I worked in finance but not in FX, everyone knew this was going on for decades before the SEC starting fining people) that someone who managed money was making this error.

You are 100% correct about all the other stuff. Lots of issues with "production"...that is why financial firms employ traders/risk people/etc. Most people who trade themselves tend to go for lower-frequency strategies that they can implement personally. I actually don't think there are huge barriers, smaller investors have a huge advantage (when you trade at scale, the market moves against you) but you have to work with what you have and realise that you will get crushed if you try to replicate what someone with more money is doing.

Also, data. Data is expensive, and a huge fixed cost.

Re:Jane Street Market Prediction ($100k Kaggle competition) by tikhonj on Tuesday November 24, 2020 @09:03PM (#25205200)
I was half-remembering some story I heard a while ago about the work needed to arbitrage between some US ETF and some securities on a Brazilian exchange, or something to that effect. I don't remember the details, and I'm not even sure that specific example was real, but it stuck out as a great illustration of the complexities involved in executing a strategy vs just coming up with a model.

Nothing foreign-exchange-specific there although, now that you mention it, dealing with different currencies is another problem you can run into with strategies.

Re:Jane Street Market Prediction ($100k Kaggle competition) by nstj on Tuesday November 24, 2020 @05:24PM (#25203701)
A “foreign exchange” not “foreign exchange market”
Re:Jane Street Market Prediction ($100k Kaggle competition) by hogFeast on Tuesday November 24, 2020 @05:39PM (#25203849)
Ah, same principle. I have heard of many similar stories.
Re:Jane Street Market Prediction ($100k Kaggle competition) by mmahemoff on Tuesday November 24, 2020 @08:24PM (#25204985)
Data quality is another real-world problem. There can be typos, deliberate biases, omissions that need to be guesstimated, sudden structural changes (e.g. a stock split event or a change in reporting cycles) etc.

There's also heterogeneous data sources to aggregate and consolidate, each with their own way of measuring things. e.g. You can see how different states and countries are tracking Covid related stats, they all have their own metrics and interpretations. Some even change the way they report overnight. Companies will similarly report their data in different ways.

Data cleansing is its own science and art for this reason, quite separately from developing any algos on it. It's a practical problem that's easy to overlook when you're just looking at ML transformations from input to output data sets.

Re:Jane Street Market Prediction ($100k Kaggle competition) by ben_w on Tuesday November 24, 2020 @06:28PM (#25204249)
This is basically why I’ve never seriously considered doing it myself. I had a neat idea in about 2005 which I tested on historical data, and it beat buy-and-forget on every share I tried except for Google, and it only had one free parameter.

But, even if I’d implemented it perfectly, and even if the algorithm has survived the financial crash, it would’ve only worked if I could trade for free, and other people copying the algorithm would probably have made it stop working.

Re:Jane Street Market Prediction ($100k Kaggle competition) by galaxyLogic on Wednesday November 25, 2020 @01:49AM (#25206568)
Consider you have some extra money, what do you do with it? Do you put it (or keep it) in a bank-account? That is an investment choice you have. If you have more money than you need for living then you are already investing it in some way, maybe a bank-account. And you make this investment decision following some algorithm in your head. So if you algorithm was so great wouldn't it make sense to use it rather than put money into a low-interest bank-account?

My point is when it comes to investing, inaction IS action too. Therefore an investment algorithm does not need to beat the market. It just needs to beat doing nothing.

Consider that if you have earnings you can put money into an IRA account and then trade with it almost for free.

Re:Jane Street Market Prediction ($100k Kaggle competition) by ben_w on Wednesday November 25, 2020 @04:27AM (#25207398)
> So if you algorithm was so great wouldn't it make sense to use it rather than put money into a low-interest bank-account?

It wasn’t great outside of the spreadsheet.

I forget the exact numbers, but imagine: making 0.1% per transaction sounds amazing until you find out the transaction fee is 1%.

> Consider that if you have earnings you can put money into an IRA account and then trade with it almost for free.

This was the UK in 2005 — no IRAs [0], and I received 5% on my current account around then.

[0] Actually it’s worse than that — if you went into a UK bank in the early 2000s and said “IRA”, I’d expect the armed response unit to be called.

Re:Jane Street Market Prediction ($100k Kaggle competition) by beagle3 on Wednesday November 25, 2020 @05:58AM (#25207938)
But the transaction fee is not 1% if you are a professional. It’s now higher, but there was a time you could easily get closer to 0.05% with some effort and nontrivial but not huge volume.

Iirc, last I checked, bitmex cost 0.075% to take liquidity, and paid 0.025 to give liquidity (which should be noted, is more than a tick - so, market making on bitmex is free money in an unpredictable market - which has made it technically expensive)

INET had a similar incentive structure before they were bought by Nasdaq, as did BATS when it started - it’s a common way to jumpstart liquidity in a new exchange.

Robinhood and IB will let you trade for free today (with other hidden and hard to quantify costs related to their order flow transactions instead)

So there’s no general solution - the details keep changing - but there’s likely a way to make nice profit of 0.1%.

Re:Jane Street Market Prediction ($100k Kaggle competition) by filoleg on Wednesday November 25, 2020 @11:57AM (#25211331)
>if you could build a model to predict markets, why will you post in to Kaggle to get $40k in prize instead of applying this model to your own broker account?

Because things aren't that simple. I find this argument very similar to that of devs who complain "I wrote this piece of code that made my company $3mil in revenue over the past year, but I only got paid a fraction of that, i am getting ripped off, oh woe poor me". If you could do that, you would have made it on your own and made that much money already.

Turns out, other people at the company are actually doing tons of work to make it possible to make that much revenue off your code. Same applies here. It isn't just as simple as having one good model at a single point in time to be able to make tons of money off it, there are a lot of other people doing their own work at those finance shops that make it possible for those models to bring in tons of money.

Re:Jane Street Market Prediction ($100k Kaggle competition) by logicchains on Wednesday November 25, 2020 @02:15AM (#25206687)
I'd be surprised if the data Jane Street provides isn't some form of high-frequency tick data. It's relatively easy to make accurate short-term predictions with such data, the challenge is being fast enough that behemoths like Jump and Citadel don't get all the good trades before you, leaving you with just the bad predictions. This requires a huge investment in infrastructure and connectivity, beyond the reach of individuals who aren't already quite wealthy.
Re:Jane Street Market Prediction ($100k Kaggle competition) by kolbe on Tuesday November 24, 2020 @06:54PM (#25204419)
This competition doesn’t predict markets. It’s a manufactured game to resemble things JS does. And even if it were an accurate representation, the competition is run on 128 unknown features that you would have to discover for yourself. And trust me, >90% of the work is identifying the features.
Re:Jane Street Market Prediction ($100k Kaggle competition) by madrafi on Tuesday November 24, 2020 @05:08PM (#25203523)
well because quant trading isn't about import xgboost, you need a sustainable infra to handle api failovers, bad data... not even going to mention risk management which is 50% of what quant trading is about. the data provided is anonymized but would probably be a mix of laggard measurements (moving averages, rsi...) and maybe some flow data... quant trading isn't really about finding "secret stuff" most profitable strats you can deploy can be based on stat-arb, basis trading or even just delta-neutral funding farming and such
Re:Jane Street Market Prediction ($100k Kaggle competition) by homie on Tuesday November 24, 2020 @04:50PM (#25203345)
Mostly because it’s impossible to accurately predict the market - and this is just a competition to see who can build the best model.
Re:Jane Street Market Prediction ($100k Kaggle competition) by thegjp210 on Tuesday November 24, 2020 @05:40PM (#25203856)
HFT firms aren't trying to predict "the market" as a whole - just small eddies of it. A typical example of this is arbing names at the bottom of index fund rebalances. Speed is important mostly to make sure someone else doesn't hit the arb first.
Re:Jane Street Market Prediction ($100k Kaggle competition) by mbesto on Tuesday November 24, 2020 @05:22PM (#25203684)
It's a good question. The basic answer is not everyone has capital and risk, but they may have the time and intellect.