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

(globaloilnetwork.staffinganalytics.io)

63 points | by eliotho 1 day ago

11 comments

  • 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.

    • 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 46 minutes 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 19 minutes 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 22 minutes 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 13 minutes 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 7 minutes ago
              The suspense is terrible, I hope it lasts. Great work on the project!
  • Normal_gaussian 55 minutes 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 48 minutes 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 34 minutes ago
    Good stuff.

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

    • eliotho 26 minutes 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)
  • firasd 2 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
  • kingjimmy 2 hours ago
    Are emergency stockpiles calculated correctly? China should not be the first to be exposed.
    • repeekad 1 hour 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 1 hour ago
        Which is the interesting game-theoretic aspect of the whole conflict. China really hasn't revealed their hand
    • eliotho 1 hour ago
      For the importer nodes those are IEA mandates. In the specific China case, the UN Comtrade data doesn't report sanctioned oil (Iran)
  • runlaszlorun 1 hour 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
  • sebzuddas 1 hour ago
    What modelling approach are you using, and where can I learn more about it? Really cool, btw.
    • eliotho 1 hour 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
  • tamimio 1 hour 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.
  • refulgentis 2 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 2 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