All notes

Note 02 · Onion prices, Gujarat · Aug 2026 · 6 min read

Should I ship?

When the truck can’t turn back, recommend on the worst case. A tool that knows when to stay silent is what earns a seller’s trust.

Who
An onion trader or farmer-seller in Gujarat with stock to move. Thinks in aaj ka bhav, today’s going rate, not in statistics.
Trying to do
Sell where the load nets the most: here today, or a mandi 200 to 340 km away.
Where it breaks
The moment the truck rolls. They’re committed to whatever the price is two or three days later, minus transport.
Why the business cares
One load sold below the local price they walked away from, and the seller is back to rumour and WhatsApp.

What I saw

I built one daily “going rate” per market from the government’s own mandi price data: volume-weighted across onion varieties, because that’s the number a seller actually experiences.

Onion going rate in three Gujarat mandis, Nov 2025 to Aug 2026Daily volume-weighted onion price, rupees per quintal. Ahmedabad mostly highest, Surat steady, Rajkot lowest and the most jagged. On 14 August 2026: Ahmedabad 2,804, Rajkot 2,176, Surat 1,950, a gap of 854 rupees on the same day.5001,0001,5002,0002,500₹3,000DecJan ’26FebMarAprMayJunJulAugAhmedabad ₹2,804Rajkot ₹2,176Surat ₹1,950Onion going rate in three Gujarat mandis, Nov 2025 to Aug 2026Daily volume-weighted onion price, rupees per quintal. Ahmedabad mostly highest, Surat steady, Rajkot lowest and the most jagged. On 14 August 2026: Ahmedabad 2,804, Rajkot 2,176, Surat 1,950, a gap of 854 rupees on the same day.5001,0001,5002,0002,500₹3,000Jan ’26MarMayJul₹2,804₹2,176₹1,950

AhmedabadSuratRajkot14 Aug 2026 · ₹854 between highest and lowest

Daily going rate, ₹ per quintal, Nov 2025 to Aug 2026. Same onion, same day, three markets 200 to 340 km apart.

Then the question that decides the product: can anyone forecast the price across the two or three days a truck is on the road? I set a deliberately dumb forecast, “the price stays where it is”, against Prophet, a proper time-series model. Both predicted three days ahead, on days they had never seen.

Three-day-ahead forecast error (MAPE), lower is better

Surat calm

  • Naive: price stays put1.3%
  • Prophet, 9 months13.6%
  • Prophet, 19 months8.2%

Ahmedabad calm

  • Naive: price stays put3.5%
  • Prophet, 9 months7.9%
  • Prophet, 19 months6.4%

Rajkot volatile

  • Naive: price stays put18.3%
  • Prophet, 9 months15.8%
  • Prophet, 19 months16.5%
My backtests, August 2026. Nine months of live data, then 19 months once I stitched in an older government archive.

The dumb forecast won both calm markets, by a mile. Prophet only won in Rajkot, where prices swing so much that “stays the same” goes stale fast. Doubling the data cut Prophet’s error in Surat by about 40%. It still lost.

What I’d try first

Option A · my March version

Show each market’s guaranteed net profit after freight, then book the truck in one tap. Costs: a forecast dressed up as a promise. One dip in transit and the guarantee was never true.

Option B · my pick, August

Recommend on the conservative floor: Ship only if even the low end of the forecast beats selling at home, after transport and a safety margin. Costs: fewer Ship calls, and some days the tool says nothing.

B. The decision is irreversible, so a wrong “Ship” costs far more than a missed one. Pick the model per market by volatility, forecast only across the transit window, and give one of four answers: Ship, Stay local, Risky (your call), or Too volatile to call. A price rise in transit is upside; a drop is already absorbed.

My prototype on real prices to 14 August 2026. Rajkot to Ahmedabad: Ship it. Even in the worst likely case Ahmedabad nets 298 rupees a quintal more than selling in Rajkot today, past a 60 rupee margin. The working shows the local price 2,176, Ahmedabad's forecast 2,673 with a 3.5% band, its floor 2,579, transport 105, worst case plus 298, expected case plus 392. Surat to Rajkot: Too volatile to call. Rajkot swings 14.9% over a few days, so sell local or wait.
My prototype, on real prices to 14 Aug 2026. The answer is built on the worst case, and the working is always shown. Send the load to Rajkot and it refuses to call it.

How I’d know it worked

GoalSignalMetric
A better routing call than gut, on the calls sellers actually followSellers act on “Ship” (30% in month one) and come back (25% at week four)Realized ₹ per quintal on followed Ship calls, against selling local
GuardrailBad-call rate: followed Ship calls that did worse than selling local stay under 15%. And “Too volatile” fires on more than 80% of genuinely volatile days.

What I’m not sure about

  • I designed for the trader from reasoning, not from talking to one. That’s where I’d start.
  • The live price source only goes back to November 2025 and blocks scraping. A reliable daily feed is the dependency everything else sits on.
  • Where the seller’s real numbers come from: the local price they’re actually offered, and their real freight rate.
  • Seasonality needs two years of data. At 19 months it made the longer forecasts worse, so it stays off.

Keep reading

In my work: Crypto derivatives: the product audit. About Uday Dave · Explore the portfolio.