feat(forecasting): months-of-inventory (MOI) — discriminating §9.8 metric #1055
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#1055
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/demand-supply-months-of-inventory"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What — §9.8 deficit fix: months-of-inventory (MOI)
deficit_indexpins to −1.0 for every ЕКБ segment (12mo demand FLOW vs multi-year supply STOCK — L1 open_units = entire unsold pipeline — → log-ratio clamps) → zero discriminating power. The oversupply is partly REAL (ЕКБ new-build glut at key_rate 14.5%), but the metric can't differentiate parcels.Fix (user-approved: MOI-primary + honest absolute deficit): ADD
months_of_inventory(MOI = gross_competing_supply / demand_per_mo) — the real-estate absorption standard — as an additive discriminating companion.deficit_indexmath kept exactly as-is (honest absolute: −1 = genuinely oversupplied; docstrings clarify it's common at current rates and MOI is the companion). No recalibration/overfit.Prod ground-truth (h=12, modified code in-container, restored after)
MOI discriminates (42→109mo) where deficit is uniformly −1.0.
How
months_of_inventory: float | NoneonDemandSupplyForecast(+as_dict)._gross_supply()extract-method (single source of truth;_project_supply/deficit_index/balance_ratiobehavior byte-identical — code-review-verified line-by-line). Guards: no demand→None, no supply→0, no div-by-zero.future_market(per-horizon passthrough) +exec_summary(_primary_months_of_inventorymirrors_primary_deficit_index; key_numbers + verdict clause "≈N мес конкурирующего предложения"). Advisory.Quality