Market prices and selling smart
Price data can show trends, and a moving average smooths out daily ups and downs. Learn to read prices calmly, and why no tool can tell you tomorrow's price.
In 60 seconds
Market prices and selling smart
Price data can show trends, and a moving average smooths out daily ups and downs. Learn to read prices calmly, and why no tool can tell you tomorrow's price.
Where price information comes from
- Government portals publish daily arrivals and prices from many mandis (agricultural markets). Agmarknet is one such portal.
- e-NAM is a national online platform that links mandis for trading. Check its current coverage for your crop and market.
- Local traders, farmer producer organisations (FPOs) and other farmers are also sources.
Reading a price trend
prices = [20, 22, 19, 25, 24, 26, 23] # made-up daily prices
window = 3
for day in range(window - 1, len(prices)):
last = prices[day - window + 1 : day + 1]
avg = sum(last) / window
print(f"day {day + 1}: price {prices[day]:3d} 3-day average {avg:.1f}")Simple rules, and their limits
- Deciding from one day's price
- Believing an app that 'predicts' tomorrow's price exactly
- Forgetting transport cost, storage losses and quality grade
- Looking at the trend over days or weeks
- Comparing a few nearby markets
- Counting transport, storage and quality before comparing prices
Watch and read more
Lab
A moving-average function and a simple 'above or below average' description of made-up prices.
The problem
This runs in your browser. The prices are made-up numbers, not real market data, and the rule is for learning only. It is not advice about when to sell.
- Complete
moving_average(prices, window). It returns a list the same length asprices. The firstwindow - 1items areNone(not enough days yet). Each later item is the average of that day and thewindow - 1days before it. - Complete
describe(prices, window). It compares the last price with the last moving average and returns"above average","below average"or"at average". - Run it and look at the chart.
- Write two lines: what does the rule miss that a farmer would know?
Practice lab
Edit the code and run it. Python runs in your browser — nothing is sent to our server.
No output. Add print(...) to see values.
You are done when
Hard questions
Try to answer before you reveal. If you can answer these, you understood the lesson.
Q1The price jumps above its 7-day average for one day and then falls back. Why might a simple rule be fooled, and what could reduce this?Reveal
One high day can come from a small, high-quality lot or a short-term shortage. A rule that reacts to every day will flip often. Using a longer window, waiting for two or three days above the average, or comparing several markets reduces false signals. But every rule still only looks at the past.
Q2An app claims its AI predicts next week's price with high accuracy. What would you ask?Reveal
Ask how accuracy was measured: on which crops, markets and years, and whether the test was on data the model had not seen. Ask how it did in unusual periods, such as sudden rule changes. Ask whether it shows a range instead of one number. And ask who pays for the app, in case it benefits from farmers selling at a certain time.
Questions people ask
Can AI predict crop prices?
Some tools try, using past prices, arrivals and weather. Predictions can sometimes help as a rough guide, but prices depend on many things that are hard to foresee, like sudden rules or events far away. Be very careful with any tool that sounds sure about future prices.
Why use a 7-day average and not a 30-day one?
A short window reacts fast but stays bumpy. A long window is smooth but slow to show a real change. Many people look at both. There is no single correct window.
Why are prices different in two nearby mandis?
Quality grades, how much arrived that day, local demand, and traders present can all differ. Before comparing, check that you are comparing the same crop, variety and grade, and count the cost of getting there.
Should I take a loan to store my crop and wait?
That is a financial decision with risks that depend on your situation. This course cannot advise you on it. Ask a trusted bank officer, your FPO or agriculture officer, and understand all terms before signing anything.
Lesson test
5 questions. Get 3 right (60%) to pass and complete this lesson.