News for hackers. Stuff that matters.
Re:Markets are efficient if and only if P=NP (2010) by whoisburbansky on Wednesday October 21, 2020 @12:20AM (#24844705)
How much does this matter given that in the vast majority of cases, we don't care about exact/perfect solutions to problems that might be NP complete in the general case, but usually have heuristic methods that work well enough for most practical purposes?
Re:Markets are efficient if and only if P=NP (2010) by klyrs on Wednesday October 21, 2020 @12:35AM (#24844765)
The first corollary that I see is that greedy algorithms will almost certainly suck for society at large. I'm looking specifically at the meme that public companies are somehow required to maximize short-term profits for their shareholders.

Some NP-complete problem classes have polynomial time approximation schemes, but not all, unless P=NP. That is to say, sufficiently large markets may be arbitrarily inefficient. I'm curious to see that dichotomy resolved.

Re:Markets are efficient if and only if P=NP (2010) by whoisburbansky on Wednesday October 21, 2020 @12:40AM (#24844782)
In every case of problems classes I have seen, in my admittedly limited experience, polynomial time approximation schemes only fail under pathological circumstances. I'm not convinced that there's a connection between pathological problem instances and problem sizes, necessarily, and I'm even less convinced that real-world markets would reflect such pathological instances.
Re:Markets are efficient if and only if P=NP (2010) by klyrs on Wednesday October 21, 2020 @12:49AM (#24844817)
Granted, but such a PTAS would need to be agreed upon and faithfully executed by all market players.
Re:Markets are efficient if and only if P=NP (2010) by unishark on Wednesday October 21, 2020 @12:53AM (#24844833)
Greedy algorithms suck compared to what? If the greedy algorithm still converges fastest and is closest to optimal compared to any other practical scheme, the paper's result still does not say anything of practical use.
Re:Markets are efficient if and only if P=NP (2010) by klyrs on Wednesday October 21, 2020 @01:46AM (#24845088)
They suck at escaping local minima, for one.

Your "if" is doing a ton of work there, and this paper is quite abstract market theory. The "practical use" is to better contextualize the efficient market hypothesis.

Re:Markets are efficient if and only if P=NP (2010) by unishark on Wednesday October 21, 2020 @02:24AM (#24845247)
They don't escape local minimum at all. And that means they suck for society at large compared to what? Random guessing? A corrupt government price system? An omniscient one that can solve NP hard problems? The "if" motivates answering the question.

Anyway markets have a lot more going on than a simple greedy algorithm. For injecting noise into the optimization to get out of local minima. Markets clearly have a lot of this.

Re:Markets are efficient if and only if P=NP (2010) by jabl on Wednesday October 21, 2020 @03:02AM (#24845410)
> And that means they suck for society at large compared to what? Random guessing? A corrupt government price system? An omniscient one that can solve NP hard problems?

There's an intriguing recent book (that, admittedly, I haven't read) called "The People's Republic of Walmart" https://www.penguinrandomhouse.com/books/564287/the-peoples-...

If large corporations are the shining beacons of capitalism, how come they are run internally as top-down planned economies? And to the extent they prove than planning can work at scale, could planning work society-wide? Not saying I agree or disagree (again, I haven't actually read it), but dusting off the ye olde calculation debate and updating it for today seems like an interesting idea.

Re:Markets are efficient if and only if P=NP (2010) by imtringued on Wednesday October 21, 2020 @05:20AM (#24846100)
The worst part of centrally planned economies is that they are prescriptive and essentially authoritarian in nature. If they make mistakes then nothing prevents them from repeating the same mistake. There is no threat of the central planner being replaced.

If all Walmart does is make mistakes then they go out of business. Central planning won't work but federated planning with 20 super corporations that are in competition with each other might actually be good enough. The only problem is that we both need and want the underdogs(startups) and this would undermine them.

Re:Markets are efficient if and only if P=NP (2010) by rbanffy on Wednesday October 21, 2020 @06:27AM (#24846408)
> There is no threat of the central planner being replaced

You are conflating an economic model with a political one. In fact, the central planner doesn't even need to be a person, but a set of assumptions and strategies that can be measured against the benefit they provide and be continually adjusted.

You touch an important point, however. The people most affected by Walmart's central planning, their employees, have no say in what strategies and assumptions the central planner uses and that removes any incentive to provide benefit to them.

Re:Markets are efficient if and only if P=NP (2010) by TheOtherHobbes on Wednesday October 21, 2020 @07:19AM (#24846663)
The EMH is also conflating an economic model with a political belief system.

The notion that these huge corporate bureaucracies are somehow "efficient" at anything except trashing the environment and homogenising and controlling - if not ultimately economically cannibalising - their own workers and customer base is clearly counterfactual.

Re:Markets are efficient if and only if P=NP (2010) by jabl on Wednesday October 21, 2020 @08:16AM (#24847016)
> The worst part of centrally planned economies is that they are prescriptive and essentially authoritarian in nature. If they make mistakes then nothing prevents them from repeating the same mistake. There is no threat of the central planner being replaced.

From reading the book synopsis (again, I haven't read the book itself), it seems the authors are proposing some kind of democratic socialism rather than USSR-style authoritarianism. Is it workable? I have no idea. To me it seems that USSR-style authoritarianism and current Western neoliberal capitalism are but two small dots on the political economy spectrum. There are other ways of organizing society as well; certainly worth thought experiments to see what kind of other options there might be and what we might learn from them.

Re:Markets are efficient if and only if P=NP (2010) by unishark on Wednesday October 21, 2020 @03:31AM (#24845564)
I'd say startups are a much better example. But I didn't come here to argue politics, just asked for someone to describe their superior optimization process (math being my actual interest, so still waiting to hear it). I wouldn't describe "do what walmart did" as a particularly useful optimization strategy.
Re:Markets are efficient if and only if P=NP (2010) by klyrs on Wednesday October 21, 2020 @08:03AM (#24846941)
> But I didn't come here to argue politics, just asked for someone to describe their superior optimization process

Look. I don't believe that P=NP. I can't describe a superior optimization process, and if I did, I would claim the Clay Math prize. I'm also not an economist.

My takeaway is that any simple strategy is almost certainly bad in the long term. You can optimize your own personal take, but in doing so, "the invisible hand" isn't going to somehow flip that into a benefit for all.

Re:Markets are efficient if and only if P=NP (2010) by allemagne on Wednesday October 21, 2020 @02:07PM (#24850448)
The fact that large corporations are certainly top-down, planned, and successful in a meaningful sense is certainly a rhetorical blow to anyone who believes in a simplistic way that "markets" and "decentralization" are literally the only way to be large and successful.

But if large corporations prove the efficacy of planning at scale, then they surely prove the drawbacks as well. What are the society-wide central planning equivalents of layoffs and maximizing shareholder value? Does a centrally planned corporation outsourcing their supply chain or HR department represent a fundamental failure of central planning?

Re:Markets are efficient if and only if P=NP (2010) by rocqua on Wednesday October 21, 2020 @08:54AM (#24847320)
It seems quite obvious that 'competition' between the various 'planned economies' and choice between them by consumers is generally a good thing. One that would not work for a fully centrally planned economy.

That said, it is indeed quite interesting to figure out at what size such central planning starts to become non viable. And for that the observations: "It is viable for wallmart, but not for all of the USA" give some interesting bounds.

Re:Markets are efficient if and only if P=NP (2010) by xondono on Wednesday October 21, 2020 @08:38AM (#24847170)
I’ve always seen this debate as kind of moot. The thing with optimizing, is that you always optimize with a target.

Large corporations rule top-down because goals are set at the top. That’s very different from a society problem.

Re:Markets are efficient if and only if P=NP (2010) by mcbits on Wednesday October 21, 2020 @02:17AM (#24845214)
Greedy algorithms can be arbitrarily bad on large NP-hard problems. But if we're using terms metaphorically, we could also say each greedy company is just a Monte Carlo sample of the whole economy. Some fail or stagnate in local optima; others succeed for longer. But the economy is too complex to expect anyone to ever find a global optimum, so continuous exploration of the landscape is important for overall growth. Thus we can aim for and admire success but should be vigilant against anticompetitive behaviors that stifle the sampling.
Re:Markets are efficient if and only if P=NP (2010) by xondono on Wednesday October 21, 2020 @08:34AM (#24847134)
> I'm looking specifically at the meme that public companies are somehow required to maximize short-term profits for their shareholders.

I love that meme for how wrong it is. Public companies don’t maximize short-term profits, maximize profits (with future profits discounted).

The fact that to a lot of people “profits” == “short term profits”, reveals quite a lot about our assumptions and time preferences..

Re:Markets are efficient if and only if P=NP (2010) by refurb on Wednesday October 21, 2020 @08:50AM (#24847295)
Indeed. I can think of plenty of examples where companies strongly focus on long-term profits, I mean, if they don't it's likely the company won't exist.

Now if someone said companies focus on continuous quarterly growth, and sometimes sacrifice a portion of long-term growth for short-term growth, I could agree with that.

Re:Markets are efficient if and only if P=NP (2010) by na85 on Wednesday October 21, 2020 @12:26AM (#24844731)
Well what I think is interesting as an amateur with an interest in economics and investing, is that if P!=NP then it would cast a great deal of doubt on so-called Technical Market Analysis or "Technicals" which are predicated on the Efficient Market Hypothesis being true.

My own suspicions have been for quite some time now that fundamentals are what move markets and that technicals are mostly bullshit and are only valid because algo-traders school like fish based on technicals.

Re:Markets are efficient if and only if P=NP (2010) by whoisburbansky on Wednesday October 21, 2020 @12:29AM (#24844741)
The efficient market hypothesis doesn't say anything about the amount of time it might take for markets to iron out inconsistencies and take into account new information; "the market can remain irrational longer than you can stay solvent." It's the sort of thing that's hard to falsify because you can always say "oh, it'll eventually become consistent." Given that, I don't think this fundamentally changes anything about "technicals," even if P!=NP, but my intuition a priori is also the same as yours, that "technicals" are mostly window dressing anyways.
Re:Markets are efficient if and only if P=NP (2010) by na85 on Wednesday October 21, 2020 @12:32AM (#24844755)
>The efficient market hypothesis doesn't say anything about the amount of time it might take for markets to iron out inconsistencies and take into account new information

Actually it does. The central premise of the Efficient Market Hypothesis is that all relevant information is already priced in.

>"the market can remain irrational longer than you can stay solvent."

Irrational behaviour by uninformed investors is theoretically already priced in, if the market is efficient.

Re:Markets are efficient if and only if P=NP (2010) by whoisburbansky on Wednesday October 21, 2020 @12:38AM (#24844775)
Taking that literally, it's clearly false; information can't affect prices faster than the speed of light.
[dead]
Re:Markets are efficient if and only if P=NP (2010) by bawolff on Wednesday October 21, 2020 @07:19AM (#24846666)
We're literally talking about a paper comparing emh to np=p, isn't pointless pedantry the name of the game?
Re:Markets are efficient if and only if P=NP (2010) by jabl on Wednesday October 21, 2020 @02:45AM (#24845335)
Ah, but here's an interesting topic for an ambitious research project, "Efficient relativistic markets". The proposal would score cross-disciplinarity brownie points in the evaluation committee.
Re:Markets are efficient if and only if P=NP (2010) by hchasestevens on Wednesday October 21, 2020 @06:21AM (#24846373)
You might be surprised to learn that the well-known economist Paul Krugman wrote in the late 70s about trade in relativistic scenarios, see https://en.wikipedia.org/wiki/The_Theory_of_Interstellar_Tra... and http://www.standupeconomist.com/pdf/misc/interstellar.pdf (for the paper itself).
Re:Markets are efficient if and only if P=NP (2010) by jabl on Wednesday October 21, 2020 @12:48PM (#24849581)
Ah, but of course. When you're not a subject matter expert what you think is a novel idea is something the actual experts have already investigated decades ago. sigh, oh well.
Re:Markets are efficient if and only if P=NP (2010) by rocqua on Wednesday October 21, 2020 @08:57AM (#24847354)
I mean, in that sense the efficient market theory is immediately false, since someone must be the first to learn some new information and price it in.

Thing is, the hypothesis can be useful whilst being only approximately true. If it is true to with 0.1% then, in most cases, it is quite appropriate to model it as being perfectly true. And obviously, there are other cases where that model isn't useful. In those cases, it would probably still be useful to take the 0.1% number into account.

Re:Markets are efficient if and only if P=NP (2010) by akra on Wednesday October 21, 2020 @02:03AM (#24845159)
I thought technical analysis (as opposed to fundamental analysis) assumes markets aren't efficient and subject to things like herd behavior and other psychological effects of human decision making. Otherwise things like momentum trading wouldn't work (i.e. price would just gap to the true value if markets were indeed efficient). If tech analysis works at times for me it would show that markets aren't that efficient as a whole.

IMO markets can't be efficient because we as humans aren't - our perception of value itself can be subjective and influenced by many things including FOMO, safety in numbers perceptions, risk aversion (usually), etc etc.

Re:Markets are efficient if and only if P=NP (2010) by bo1024 on Wednesday October 21, 2020 @02:18AM (#24845218)
> our perception of value itself can be subjective and influenced by many things including FOMO, safety in numbers perceptions, risk aversion (usually), etc etc.

The intuition behind the efficient market hypothesis is that each of these deviations from "homo economicus", if it occurs in a market, is an opportunity for someone else to make money. EMH says that opportunity won't be wasted, at least for very long.

Re:Markets are efficient if and only if P=NP (2010) by kohlerm on Wednesday October 21, 2020 @07:04AM (#24846590)
That still means efficiency is lost. E.g. the market might fluctuate between non-optimal state. And then again in case monopolies build up, then there is no easy way to get out of a suboptimal state, because there are no real opportunities for someone else.
Re:Markets are efficient if and only if P=NP (2010) by shawnz on Wednesday October 21, 2020 @10:11AM (#24848049)
Technical analysis doesn't depend on EMH being true, in fact it depends on EMH being false. It is not evidence based in any way.
Re:Markets are efficient if and only if P=NP (2010) by coldtea on Wednesday October 21, 2020 @06:37AM (#24846450)
>How much does this matter given that in the vast majority of cases, we don't care about exact/perfect solutions to problems that might be NP complete in the general case, but usually have heuristic methods that work well enough for most practical purposes?

Well, define "well enough"...

We do get results. Are they "well enough"?

Re:Markets are efficient if and only if P=NP (2010) by sacado2 on Wednesday October 21, 2020 @11:17AM (#24848642)
Even better, in practice we have amazing tools nowadays that can solve practical NP complete problems in a reasonable amount of time (I mean, optimal solutions, not OK-ish ones).
Re:Markets are efficient if and only if P=NP (2010) by adrianN on Wednesday October 21, 2020 @01:38AM (#24845053)
Well given that this assumes rational actors and humans aren't really rational, it's probably not very important in practice.