Automated causal inference + predictive ML + prescriptive recommendations + AI orchestration
on Indian mandi prices. Data sourced daily from data.gov.in
and IMD rainfall records. RDD cutoff at −19% rainfall deficiency
(official IMD classification) returns +₹101, p = 0.28 on the current
warehouse - no statistically significant discontinuity, and the 30-specification
curve agrees (0/30 significant, verdict fragile). Fully automated, nightly, zero manual intervention.
Powered by OpenRouter free-tier multi-model AI routing.
Ask MandiIQ →
Average onion modal price (₹/quintal) by rainfall departure from normal. The −19% threshold is IMD's official classification for "deficient" rainfall - and on the current warehouse the live estimate there is +₹101 with p = 0.28: no statistically significant jump, with 0 of 30 specifications significant.
| Finding | Detail |
|---|---|
| RDD discontinuity effect (Onion at −19% cutoff) | +₹101 (p = 0.28) - not significant |
| Specification curve (30 combos) | 0 / 30 significant - verdict: fragile |
| BH-FDR across commodity fits | 0 survivors after correction |
| Bandwidth sensitivity (15–30%) | +₹81…+₹101, p = 0.42…0.27 - null in every window |
| Placebo tests (fake cutoffs) | 3 of 4 null; one spurious jump at −37% |
| McCrary density test | Not available on the current warehouse |
| Covariate balance | log(observations) p = 0.04 - not clean |
| Forecast MAPE (Prophet winner) | served by 2.4.0 |
| Classifier ROC-AUC | served by 2.4.0 |
| Data sources | data.gov.in + IMD rainfall |
| AI Orchestrator | OpenRouter free-tier routing |
| Pipeline freshness | Continuous - container every 30 min, externally verified every 15 |
Reading the findings from the API...
Every RDD estimate is tested against the full battery before it reaches the dashboard. These are the live results, including the ones that cut against the finding.
Ask free-text procurement questions in plain English. The AI orchestrator routes across multiple free-tier OpenRouter models with automatic circuit-breaker fallback - if one model is rate-limited, the next in the chain serves the request. Answers are grounded in live tool-call results (never fabricated).
An automated ELT pipeline ingests live mandi prices and rainfall data, runs causal RDD analysis + ML forecasts, serves results through a FastAPI gateway, and renders them in an interactive Streamlit dashboard.
%%{init: {"theme": "dark", "themeVariables": { "primaryColor": "#1a1a2e", "primaryTextColor": "#fff", "lineColor": "#d7ff00", "secondaryColor": "#16213e", "tertiaryColor": "#0f3460"}}}%%
flowchart LR
A["data.gov.in
Mandi Prices"]
B["IMD Rainfall
Monthly Grids"]
C["Ingestion
Pagination + Retry"]
D["DuckDB
Analytical Store"]
E["RDD Engine
Causal Inference"]
F["ML Pipeline
XGBoost + Prophet"]
G["Prescriptive
Procurement Advice"]
H["FastAPI Gateway
10 Endpoints"]
I["Streamlit Dashboard
5 Interactive Pages"]
J["AI Orchestrator
Multi-model Router"]
A --> C
B --> C
C --> D
D --> E
D --> F
E --> G
F --> G
G --> H
H --> I
H --> J
J --> I