3 ms·
Pretty much every dataset I work with as an SRE is full of these paradoxes. One classic published example comes from Google: A network engineer took a trip to
by jldugger 3y ago
Pretty much every dataset I work with as an SRE is full of these paradoxes. One classic published example comes from Google:
A network engineer took a trip to Indonesia or something (can't find the citation to confirm the exact tale), noticed the service was slow, and when asking around everyone said "that's how its always been." Basically the local cellular networks are slow and off island fiber connects are saturated. Back at the office they decide to attack the problem by optimizing payload sizes. Does the work, reducing download sizes by half, and ships it. Latency metrics? Average and p95 latency actually increased after shipping the work to production.
How does an objectively good change make things worse? Well, the service had improved for those customers so much that they used it a lot more. Even with the lighter demand on bandwidth the network latency to the datacenter was worse than typical US customers, so as more of these people realized the service sucked way less, they used it more and drove the numbers up.
I have tons of these examples where a data team looks at a particular slice of request telemetry, and comes to a wrong conclusion because they didn't model enough of the system, or controlled for the wrong (or too many) variables. The worst ones the cyclic finger pointing situations that Simpson's paradox can produce: App developers blaming a regression on the server side component while the server team blames the app team, often because the server and app release schedules accidentally aligned too well. In this case we have canary data to exonerate our side of the equation, but sometimes the problem lies in even deeper spaces, like app updates from an entirely different app.
- Tomte 3y agoBut your example isn‘t a case of Simpson‘s Paradox (which is purely statistical), but Jevons Paradox (which is about human behaviour and economics).
- jldugger 3y agoGood point! I'm just a humble Linux sysadmin dubbed "SRE" who slept through Stats for Engineers and now pays the price every week dealing with SWE eager to blame me for their mistakes.
- roenxi 3y agoYou were right; that was a case of Simpson's paradox. Every category experienced a latency boost but the overall statistic worsened. Jevon's paradox is what caused the induced demand, but when the new usage data was gathered the initial review was an example of Simpson's paradox. Effect of the change -> Jevon's paradox. Measurement of Jevon's paradox -> Simpson's paradox (in this case, that isn't a general rule). The fact that the two are easily linked is one of the reasons the statistical paradox is so common in practice.
- ploxiln 3y agoIf I recall the youtube slow-internet optimisation case correction, I think it is an example of Simpson's paradox. They made it faster for countries with fast internet, and faster for countries with slow internet, and then the average performance across all users/countries was slower, because now the countries with slow internet used youtube much more than before.
- lordgrenville 3y agoBut the improvement induced the demand, which to my mind makes this different from Simpson's Paradox.
- lern_too_spel 3y agoDoesn't matter. That is not relevant to the paradox.
- kgwgk 3y agoHow does "Average and p95 latency actually increased after shipping the work to production. How does an objectively good change make things worse?" relate to Simpson's paradox again?
- ploxiln 3y agoThat's exactly it. After "shipping the work to production" (making it faster for everybody), the overall average and p95 got worse. Each sub-population experienced improvement: countries with fast internet got faster youtube, countries with slow internet got faster youtube. But the overall average and p95 got worse: overall average was slower youtube. Because now more users from the second sub-population bring the overall average speed down (or latency up). That's Simpson's paradox.
- kgwgk 3y agoAh, you may be right. It's not clear in the story that "Average and p95 latency actually increased after shipping the work to production." means average of Indonesia and ex-Indonesia and not just Indonesian average.
- lern_too_spel 3y agoLatency improved for everyone, but overall average latency increased because usage increased faster in high latency areas. That's Simpson's Paradox. Simpson's Paradox doesn't care where the subpopulations you're measuring came from.
- tetris11 3y agoisn't that the "One More Lane, I Promise!" meme
- wastewastewaste 3y agoIt is, but usually the meme misrepresents induced demand. While I don't like cars and we should focus on other infrastructure, adding a lane does help. It does not reduce congestion, but it does now serve more people at this same current congestion level. And those people have come from somewhere. Sometimes from public transport, which isn't really good, but sometimes from some backwater road.
- lmz 3y agoUntil more people choose to live further away because the commute is now tolerable with the extra lane (and it's cheaper), and then you're back to square one.
- vidarh 3y agoThe bigger problem with induced demand is that it's often poor ROI to add that lane where the demand is highest. That is, imagine you have a big city. You can add capacity for 1m extra people to travel to the city centre, where there's lots of congestion. Or you find ways to induce demand around the other limits of town, even town current demand is low there. Odds are you'll pick the first, because it's "obvious" and doesn't require much thinking to see it'd help. But we really ought to look at cost-benefit of the second option too, because repeatedly inducing demand in the centre keeps driving up the incremental cost of further improvements, along plenty of other undesirable second order effects.
- otherme123 3y agoAdding lanes is like getting a bigger cache with the same throughput. It's obvious at the supermarket: what goes faster, a single cashier processing four short lanes of 10 people with round robin, or two cashiers processing a single lane with 40 people? Is the city center able to process 1m extra people? If not, it doesn't matter how many lanes you build.
- clemiclemen 3y agoThis reminds me of a similar story with YouTube [1] where improving the page weight decreased the metrics because more people with lower end connections could access the page. Metrics interpretation is as important as the metrics themselves! [1]: https://blog.chriszacharias.com/page-weight-matters https://blog.chriszacharias.com/page-weight-matters
- jldugger 3y agoThat may be exactly the story I was thinking of, or perhaps the original of a story I encountered on a GCP cloud post or something.