Show HN: I simulated closing the Strait of Hormuz on real oil trade data

(globaloilnetwork.staffinganalytics.io)

82 points | by eliotho 1 day ago

12 comments

  • anigbrowl 21 minutes ago
    An interesting fact to consider is that the US stockpile (the Strategic Petroleum Reserve) is reported as the total of sour (high sulfur) and sweet (low sulfur) crude oil. The sweet stock makes up about 1/3 of the reserve and hardly varies at all. This is because US refineries are virtually all configured for sour crude: due to a mistaken belief in the 1990s that sweet crude was running out, the industry bet the farm on sour crude refining, and if sour crude runs low, it's extremely economical to switch.

    As a result, almost all the draw from the SPR is of sour crude (currently ~5 million barrels/week). However, you can't just use up all the reserve because as levels get lower brine must be pumped into the storage chambers to retain pumping pressure, and the more brine that is pumped, the more the output quality declines.

    The weekly reports indicate a total in the SPR of about 300mbb, of which ~100 are sweet and 200 sour. But for the reasons above, output becomes unusable one the sour levels fall to ~140-150mbb, at which point there is almost certainly a severe diesel supply shock. At current drawdown rates, that would be sometime around October/November, right in the middle of harvest season when demand for diesel is highest.

    There's more complexity to this than I want to type out in a HN comment, but not that much more. Draw your own conclusions.

  • HarHarVeryFunny 1 day ago
    What concrete predictions does your model make?

    What developments in pricing/other would indicate that your model is wrong or incomplete?

    Nice website regardless, but I'm a bit skeptical that the dynamics of the global oil/energy market can be accurately predicted.

    • maxerickson 10 minutes ago
      It's making crude predictions.
    • eliotho 1 day ago
      >What concrete predictions does your model make?

      Well, the model is less of a prediction and more of a stress testing tool. But under the hypothetical closure scenarios it shows the timing the oil reserves of distant countries exhaust, as well as the systemic effects on pricing (the France paradox).

      >What developments in pricing/other would indicate that your model is wrong or incomplete? The model has a stylized way of incorporating pricing as a function of the total supply. In practice, when countries ration their oil that's beyond the scope of the model. That being said, the implied pricing trajectory is estimated and could be tested (the staircase graph showing prices constant while countries absorb the shock with their reserves and rebalanced whenever there is a reserve depletion).

      >Nice website regardless, but I'm a bit skeptical that the dynamics of the global oil/energy market can be accurately predicted. Thank you! Indeed, but I think having at least a stylized testing tool might be useful for policymakers :$ (assuming decisions are ever data-driven lol)

      • bragr 1 hour ago
        >In practice, when countries ration their oil that's beyond the scope of the model.

        Does your model assume that demand is constant regardless of price? We're already seeing a reduction in demand over the last several months.

        https://finance.yahoo.com/energy/articles/global-oil-demand-...

        • eliotho 1 hour ago
          There are two versions of the model: -The one rendered by default (called Endogenous), with endogenous price that affects the demands according to the price elasticity slider. Reflecting how reactive are the nodes demand wrt price -With fix price (called Fixed): that in the oil market doesn't apply, but it's an interesting baseline to consider oil purely as flow. And as a modeling tool, this allows the model to capture small supply chains that don't have price setting power.
        • toomuchtodo 1 hour ago
          > China's decrease of 1.5 million barrels per day, representing a 9% decline, was by far the largest globally, the report said.

          Some global demand destruction is occurring, but that of China is them switching to large internal strategic reserves.

          https://youtu.be/BkA0bkb6ZO0 (whole video is worth the watch)

          • eliotho 1 hour ago
            And this is what the model price formation assumes, and in fact, the silent mechanism that makes the crisis worse. Reserves silently deplete for each country, and each epoch where they exhaust is when the price rebalancing occurs IN A SUDDEN SPIKE, affecting other nodes that are not even connected to Hormuz, which is one of the conclusions of the paper. Either directly or indirectly all countries feel the pain: the question is who can stand the game of chicken the longer before intervening
            • toomuchtodo 1 hour ago
              The suspense is terrible, I hope it lasts. Great work on the project!
              • eliotho 44 minutes ago
                Thank you! Much appreciated. On the suspense, we are all riding the same train :$
  • firasd 3 hours ago
    Very interesting. Here in India people were very concerned about potential cooking gas shortages (LPG) when the disruptions began which is also a good example of usually-overlooked dependencies on the the Strait
    • eliotho 2 hours ago
      and the interesting thing is that the common factor is that all these crises (oil, financial, gas) spread silently until a node collapses and there is a domino effect over the whole network
  • Normal_gaussian 1 hour ago
    I don't know if I'm doing something wrong, but if I set Capacity Retained to 100% then no matter what I set the other values to a bunch of countries deplete their reserves.

    This feels wrong; but I'm inclined to think I'm missing something.

    • eliotho 1 hour ago
      Fair point. Actually this is both a semantics oversight on my part and also expected behaviour. at 100% retained there's no shock, but the model's countries target consumption plus a large safety buffer, and some can't fill that target even in peacetime, so they draw reserves at baseline, the shock scenarios show the additional damage relative to that baseline
  • entropie 1 hour ago
    Good stuff.

    Maybe you can make a playback speed option for the simulation/play button? I fail to follow up.

    • eliotho 1 hour ago
      Thank you. Yes, in desktop there is one (that might still be going a little bit too fast), but in mobile it might not be that easy to find. Perhaps I will slow down the speed in mobile by default and change the location (should be in the bottom right corner, the 2 wk/s can be changed to 1 wk/s)
  • kingjimmy 2 hours ago
    Are emergency stockpiles calculated correctly? China should not be the first to be exposed.
    • repeekad 2 hours ago
      China hides its stockpile numbers, and estimates are only what we can see. After buying loads of sanctioned oil for stockpiles, they are perfectly positioned to take advantage of trumps blunders in the straight and likely will get to set the price of oil if they aren’t already..
      • eliotho 2 hours ago
        Which is the interesting game-theoretic aspect of the whole conflict. China really hasn't revealed their hand
    • eliotho 2 hours ago
      For the importer nodes those are IEA mandates. In the specific China case, the UN Comtrade data doesn't report sanctioned oil (Iran)
  • tamimio 2 hours ago
    But in reality this won’t happen, because China won’t be happy and will force Iran to a deal like last time or they will lose all the parts and intelligence tech they are providing to them.
  • sebzuddas 2 hours ago
    What modelling approach are you using, and where can I learn more about it? Really cool, btw.
    • eliotho 2 hours ago
      Thanks, the modeling is similar math to the financial banking networks paper by Eisenberg and Noe Systemic Risk in Financial Systems (used as a stress tool by regulators after the 2008 financial crisis). My adaptation is combining this with the inventory management part in my article: https://arxiv.org/abs/2607.17491
  • runlaszlorun 2 hours ago
    Very cool. I'll def check this out more later on.
    • eliotho 1 hour ago
      Much appreciated, server seems to be (fingers crossed) going strong so far
  • refulgentis 3 hours ago
    I really do appreciate the effort but the data doesn’t reflect current conditions, and it’s falsified given it’s been virtually closed for months, certainly the same as 30% throughout that is the models default parameter, and we didn’t see ex. prices at $150/barrel 3 weeks in, or a host of other things it predicts.

    EDIT: I’m not saying it doesn’t matter the strait is closed - it does! - it’s just, what are we to do with a model that generically tells us oil barrel prices is at $150 3 weeks in, when we are months in?

    • eliotho 3 hours ago
      That's kind of the point because it hasn't been totally 100% closed. There's both sanctioned and unsanctioned oil flowing, which is the point of the scenarios in the simulation. Also it's more of a simulation/stress tool at a sustained closure than a prediction one