SPB Git

Repository Public Research preview

12 entries at the root
History

Latest commit docs(readme): keep live counters in badges only, so the generated block is stable 66011ec

NameLast commitUpdated
data WP23: protocol, data/evaluation modules, Task A/B models and runners, simulation, draft sections
docs README: series banner, metric badges, peer-review scorecard and links to the reviewed branch
figures WP23 v1.1: extended analyses...
paper chore: standardize SP Boucher source headers and attribution
results WP23 v1.1: extended analyses...
scripts chore: standardize SP Boucher source headers and attribution
src chore: standardize SP Boucher source headers and attribution
tests chore: standardize SP Boucher source headers and attribution
.gitignore WP23: protocol, data/evaluation modules, Task A/B models and runners, simulation, draft sections
.spb-source-governance.toml chore: standardize SP Boucher source headers and attribution
CLAUDE.md chore: standardize SP Boucher source headers and attribution
README.md docs(readme): keep live counters in badges only, so the generated block is stable
README.md View source

UQO Working Paper No. 23 — Beyond Hedonic Models: Spatiotemporal, Hierarchical and Probabilistic Architectures for Residential Real Estate Price Forecasting

peer review: completed ✓ review score: 53.9 → 62.4 / 100 gain: +8.5 pts integrity: PASS reproducibility: R2 · partially reproduced maturity: grade B referee reports: 7 review items addressed: 103

version: 1.2 · November 2026 pages: 97 figures: 13 tables: 58 numbered equations: 1 references: 142 words: 41 000

revised branch: review-20261103 @ 1c70c11 review commits: 27 ahead of main commits on main: 6 files: 180 LaTeX: 53 files Python: 22 files UQO: Sciences administratives

📄: Revised manuscript (PDF) 📖: Interactive reader 🔍: Review branch 🧾: Revision commits 🌐: Paper page

🏘️ In one sentence (revised, peer-reviewed version 1.2) — A strict pseudo-real-time test of five forecasting architectures and a stacked combination against 8 property-level and 19 panel benchmarks on 632,006 Quebec sales (2021–2026) finds that gradient boosting leads sale-price forecasts at one month and the hierarchical network only matches it from three months on, that no learned model beats a 36-number calendar table of seasonal means for index changes by a detectable amount at any horizon, and that no model's intervals are calibrated at every horizon, in a short sample covering one macroeconomic cycle.

# 🔬 Peer review at a glance

This paper went through the full multi-referee review of the UQO working-paper series: 7 independent referee reports, 103 review items, an editorial decision (claims not supported as written → reframed and revised), re-execution of the analysis, a complete revision of text, figures and tables, and an independent verification before sign-off. The revised manuscript and every change live on the branch review-20261103 of this repository (27 commits ahead of main, head 1c70c11, 2026-11-07).

Review scores before and after revision

Dimension Submitted Revised Δ
Originality 54.0 56.0 +2.0
Rigor 48.3 63.0 +14.7
Identification 54.0 64.0 +10.0
Data & reproducibility 49.3 58.0 +8.7
Robustness 59.3 66.0 +6.7
Writing 64.3 64.0 -0.3
Figures & tables 57.1 72.0 +14.9
Literature 64.3 74.0 +9.7
Weighted total 53.9 62.4 +8.5

Scientific integrity: PASS · Reproducibility: R2 · partially reproduced · Maturity: grade B

# What the review changed

Peer review found that the hierarchical network's horizon embedding had been trained at only four of the twelve evaluated horizons, so the earlier sale-price comparison was withdrawn and rerun with the horizon given to every model. Adding calendar benchmarks showed that the forecastable part of index changes is seasonality rather than anything a learned model extracts, and the claim that one model has calibrated intervals at every horizon was dropped.

  • "Gradient boosting is the most accurate model at every horizon" → most accurate at one month (network − LightGBM +0.77 [+0.36, +1.20] log points); the network matches it, without beating it, from three months on; the earlier comparison is withdrawn
  • "Index changes are forecastable through momentum and seasonality" (pooled tree model 0.75 at three months) → a 36-number seasonal mean reaches 0.80 and is not beaten by a detectable amount by any learned model at any horizon (difference −0.19 [−0.44, +0.06] log points)
  • "At twelve months nothing beats an autoregression" (0.63) → the calendar benchmarks are the best twelve-month forecasts (seasonal mean 0.61, calendar dummies 0.60), ahead of the pooled AR(2) projection (0.63); pooled linear models fail through the linear time trend they extrapolate
  • "The state-space forecaster is the only model with calibrated intervals at every horizon" (97 % at three months) → that figure came from an over-covering variance; with the corrected variance coverage is 88, 90, 87 and 94 %, and no model is calibrated at every horizon
  • Ablations on a single seed → seed-averaged: removing the graph changes the six-month municipal error by −0.27 [−0.55, +0.02], an interval that now includes zero
  • 14 benchmarks → 8 property-level and 19 panel benchmarks, including seasonal mean, calendar dummies, spatial-lag ridge, pooled STAR and a dynamic-factor AR; 82 cells → 245 index series

# Limitations stated in the revised paper

  • The sample is short: 69 months, 13 to 33 evaluated origins per horizon and one macroeconomic cycle; "not beaten by a detectable amount" bounds the residual gain of the learned models rather than ruling it out, and the twelve-month results describe one episode.
  • The index-change target is the final smoothed index of Working Paper 22, itself an estimate whose revisions enter the target but not the real-time predictors.
  • The sale-price task does not forecast which dwellings will sell; selection into transaction is documented and not corrected, and the characteristics omit bedrooms, bathrooms, condition and listing information.
  • The neural architectures use fixed hyper-parameters, few epochs and, for sale prices, 3 seeds; a tuned architecture could rank differently among the neural models.

# Where to find the reviewed material

What Where
Revised manuscript (PDF, 97 pages) paper/main.pdf on review-20261103
Revised sources, code, figures and tables branch review-20261103
Commit-by-commit revision history review-20261103 commits
All branches (submitted main vs revised) branches
Interactive reader (figures, tables, citations) wp.spboucher.ai/papers/wp23/read
Paper page, abstract and citation formats wp.spboucher.ai/papers/wp23

# 🏆 Headline results (revised version)

Result What it is
+0.77 [+0.36, +1.20] Hierarchical hedonic network minus LightGBM, log points of MAE on sale prices at one month; the difference is +0.41 [−0.14, +0.99] at three months and −0.05 [−0.67, +0.52] at twelve, so the network matches the trees from three months on without beating them
21.52 [20.76, 22.30] LightGBM MAE in log points for sales one to three months ahead, against 23.97 for the hedonic OLS; a bias of −3.7 log points appears at seven to twelve months because the market's appreciation is not extrapolated
0.75 vs 0.80 Relative MAE against no change at three months, pooled LightGBM against the seasonal mean (36 numbers); the difference of −0.19 log points has an interval [−0.44, +0.06] that includes zero
0.61 Relative MAE of the seasonal mean at twelve months, the best forecast with the calendar dummies (0.60); LightGBM reaches 0.76 and the pooled ridge is worse than no change, on only 13 origins from one episode
p = 0.012 Holm-adjusted p-value of LightGBM's gain over no change at one month, the only horizon where a learned gain survives the family-wise adjustment
−0.27 [−0.55, +0.02] Change in six-month municipal MAE when the prior graph is removed from the spatial graph network (seed-averaged over 5 seeds): the graph carries no information
88 / 90 / 87 / 94 % Coverage of the state-space forecaster's 90 % intervals at one, three, six and twelve months with the corrected predictive variance; nominal coverage is rejected at one and twelve months, and no model is calibrated at every horizon
📄 Abstract

Do new forecasting architectures improve residential price forecasts over strong conventional methods? On the audited Quebec land-registry sample of UQO Working Paper 22 (632,006 sales, 2021–2026) and its real-time quality-adjusted index vintages, we forecast in a strict pseudo-real-time design the price of a dwelling sold one to twelve months ahead, the one- to twelve-month change of municipal, regional and provincial indices, and their predictive distributions, comparing five candidate architectures and a stacked combination with 8 property-level and 19 panel benchmarks. For sale prices, gradient boosting is the most accurate model at one month (hierarchical hedonic network − LightGBM +0.77 log points of MAE, bootstrap interval [+0.36, +1.20]) and the network matches it, without beating it, from three months on once every model receives the horizon as a feature; the version-1.1 comparison, whose horizon embedding was trained at four of twelve horizons, is withdrawn. For index changes, no architecture improves on a pooled tree model, and no learned model improves by a detectable amount on a 36-number calendar table of seasonal means at any horizon (relative MAE against no change 0.75 against 0.80 at three months; difference -0.19 log points, interval [-0.44, +0.06]): the forecastable component of the index is its calendar. Spatial, regime and hierarchical components add nothing that survives a seed-averaged ablation, and no model's intervals are calibrated at every horizon.

🧩 Contributions
  • Three tasks in a leakage-audited real-time design — For every monthly origin from December 2022 to September 2025 the information set contains only property characteristics, real-time municipal market features computed from past sales and the real-time index vintages of Working Paper 22, re-estimated at every publication date so that no full-sample index enters a predictor.
  • Architectures tested against the nulls they claim to improve on — Five candidate architectures and an integrated stack face 8 property-level and 19 panel benchmarks, from no-change, momentum and calendar rules through autoregressive, spatial-lag, factor and state-space models to gradient boosting and recurrent, convolutional and attention networks.
  • A negative answer for the price of a future sale — Once every model receives the horizon as a feature, gradient boosting is the most accurate model at one month and the hierarchical hedonic network is indistinguishable from it from three months on; the learned municipality embeddings add nothing beyond the municipal market features.
  • The forecastable component of the index is the calendar — A table of class-by-level-by-month-of-origin means is not beaten by a detectable amount by any learned model at any horizon, under final or pseudo-real-time training labels; the remaining short-horizon structure is the cell's own momentum, not spatial information.
  • Seed-averaged ablations and seed variability — The spatial graph, the regime gating and the hierarchical intercepts add nothing on the 64-municipality panel; neural sequence models vary across ten seeds by as much as the differences between them; an equal-weight combination of components is not worse than the learned stack.
  • A simulation in the same design — The same forecasters run on synthetic markets with known latent dynamics. Only a process with a calibrated annual cycle reproduces the real-data gains, so the simulation is consistent with the empirical ranking rather than an explanation of it.
🗄️ Data
  • Quebec land-registry sample of Working Paper 22 — The snapshot of 21 October 2026 of Quebec land-registry deeds, geocoded and matched to the provincial assessment roll (769,995 registered sales from 4 January 2021 to 7 October 2026), reduced by the exclusion ledger to 632,006 house, condominium and plex sales with roll characteristics. Bedrooms, bathrooms, condition and listing attributes are not observed; no image or text features are used.
  • Real-time quality-adjusted index vintages — 245 index series: 82 cells (the province, 17 regions and 64 municipalities) times three property classes, with 33, 31, 25 and 13 evaluated origins at one, three, six and twelve months. The target is the change of the final smoothed index.
  • Property-level evaluation sample — 12 quarterly origins and 1,255,898 evaluated sale × origin pairs (388,780 distinct sales), by exact horizon and horizon band.
⚙️ Methodology
  • Five architectures and an integrated stack — A hierarchical spatiotemporal hedonic network, a dynamic spatial graph forecasting network, a regime-adaptive mixture of experts, a Bayesian hierarchical probabilistic forecaster and a quality-adjusted neural state-space model, plus a stacked combination; each is classified as an application, an adaptation or a new combination of known components.
  • Benchmarks with distributional outputs — Hedonic OLS, random forest, XGBoost, LightGBM, support vector regression and a quantile MLP for sale prices; no-change, mean-growth, momentum, seasonal and calendar rules, pooled AR(2), spatial-lag ridge, pooled STAR, dynamic-factor AR, ridge, LightGBM, MLP, LSTM, GRU, TCN and TFT-lite for index changes. No hyper-parameter was tuned on test origins.
  • Inference for short samples — Diebold–Mariano tests with horizon-adjusted long-run variances, Clark–West tests for nested comparisons, Holm-adjusted families, Giacomini–White conditional tests, stationary block bootstraps with minimum detectable effects, seed-averaged comparisons for the neural models and proper scoring rules for the predictive distributions.
  • Simulation with known latent dynamics — Six data-generating processes on the synthetic markets of Working Paper 22: random walks, persistent momentum, Markov-switching regimes, regional spillovers, sparse cells and a calibrated annual cycle; 20 replications of 72 months, with the real-time index re-estimated on the synthetic sales at each origin.
  • Ablations and robustness — Component ablations as seed-averaged paired differences with origin × seed bootstrap intervals, feature-group ablations, a trend-term ablation that locates the twelve-month failure of pooled linear models, ten-seed re-estimation of the neural models and equal-weight versus learned combinations.
♻️ Reproducibility
  • All code is in the repository, with a pinned environment, a root Makefile that chains panel construction, estimation, evaluation, tables, figures and the paper, and unit, chronology and tolerance-regression tests.
  • The index-change analysis panel (39,690 rows) and the corresponding prediction files are committed with their checksums, and every index-change exhibit recomputes exactly from them.
  • The sale-price prediction files (about 613 MB) and the simulation panels are not committed; their checksums are listed and the files are provided by the author on request, while the per-origin loss series by model and exact horizon is committed.
  • The transaction data are proprietary to the provider and are not distributed with the paper; the derived inputs from Working Paper 22 are available from the author to researchers who hold a licence to the underlying feed.
  • Every number quoted in the text is a generated macro, and the manuscript compiles from a clean clone.

Keywords house price forecasting · machine learning · graph neural networks · state-space models · hierarchical Bayes · regime switching · probabilistic forecasting · Quebec
JEL R31, C53, C45, C11, C21, C55

# 📚 How to cite

bibtex
@techreport{boucher2026wp23,
  author      = {Simon-Pierre Boucher},
  title       = {Beyond Hedonic Models: Spatiotemporal, Hierarchical and Probabilistic Architectures for Residential Real Estate Price Forecasting: A pseudo-real-time evaluation on 632,000 Quebec transactions and 245 local market index series, 2021–2026},
  institution = {Université du Québec en Outaouais},
  type        = {UQO Working Paper No. 23},
  year        = {2026},
  note        = {Version 1.2, November 2026, revised after peer review},
  url         = {https://wp.spboucher.ai/papers/wp23}
}

ℹ️ Below: documentation of the main branch (the version submitted to review). Numbers and claims that the review corrected are superseded by the block above and by the branch review-20261103.


# 📈 Beyond Hedonic Models: Spatiotemporal, Hierarchical and Probabilistic Architectures for Residential Real Estate Price Forecasting

commits last-commit activity language languages size branches tags license clones

Tracked files lines of code languages test files docs screenshots

# Figures

fig error map
fig error map
fig map density
fig map density
fig calibration a
fig calibration a
fig calibration b
fig calibration b
fig decline reliability
fig decline reliability
fig error time a
fig error time a

UQO Working Paper No. 23 — A pseudo-real-time evaluation on 632,000 Quebec transactions and 82 local market indices, 2021–2026

Paper Python Data Reproducible Institution Author

TL;DR — Three forecasting tasks on the WP22 Quebec registry data in a strict forward-chaining design: (A) the price of a dwelling sold 1–12 months after the origin, (B) the 1/3/6/12-month change of municipal, regional and provincial quality-adjusted indices (predictors = WP22 real-time vintages only), (C) calibrated predictive distributions. Five candidate architectures (HSHN, DSGFN, RAREF, BHPF, QANSS) and an integrated stack (QREFA) against ~25 benchmarks (naive, AR, local linear trend, ridge, LightGBM, XGBoost, random forest, SVR, MLP, LSTM/GRU/TCN/TFT-lite). Inference: Diebold–Mariano (HAC), Giacomini–White, model confidence sets, stationary bootstrap; simulation study with known latent dynamics (random walk, momentum, regimes, spillovers, sparse). Verified bibliography (152 entries).


# 📌 Status

Item Value
Version 1.1 (October 2026) — extended analyses and completed appendices
SSRN not yet submitted
Journal —
Code & data reproducible from scripts/; inputs are WP22 artefacts (read-only)

# 🎯 What this paper does

Tests, on the same transaction-level data, whether spatial, hierarchical, regime-adaptive, Bayesian and state-space forecasting mechanisms beat strong conventional forecasts, and when. Every architecture is classified against the verified literature (application / adaptation / new combination); none is claimed unprecedented.

# 🏆 Headline results

Object Estimate
Task A, 1–3 months: MAE (log ×100) LightGBM / HSHN partial / hedonic OLS / naive municipal median 21.21 / 22.36 / 23.24 / 34.96
Task A, 7–12 months: LightGBM MAE / bias of all models 22.70 / −4 to −9 log pts (market not extrapolated)
Task B, h = 3: MASE vs no change — LightGBM panel / QREFA / QANSS / ridge / AR(2) / DSGFN 0.75 / 0.82 / 0.83 / 0.84 / 0.90 / 0.88
Task B, h = 12: best = AR(2) MASE 0.63; pooled models worse than no change (bias +6 to +11 log pts) —
90 % coverage at h = 3: QANSS / BHPF / ridge / LightGBM / DSGFN / TFT-lite 97 / 90 / 90 / 76 / 73 / 73 %
Ablations (municipal, h = 6): DSGFN without graph vs full / equal-weight combo vs QREFA / ridge without momentum -0.59 / -0.38 / +0.53 log pts
Seed variability (h = 3): DSGFN 3.76–4.05, TFT-lite 4.33–4.83, QANSS 3.75–3.96 —
Simulation (municipal, h = 3, MAE / no change): regimes AR(2) 0.78 · momentum ridge 1.53 · spillover DSGFN 1.29 · rw QANSS 2.04 —
Task B, h = 3, by ex-post provincial regime: LightGBM MASE rising windows (17 origins) / flat (13) 0.63 / 1.00 (the gain is the forecastability of spring upswings)
Task B, h = 3, Holm-adjusted DM p-value vs no change: LightGBM / QANSS (unadjusted 0.007 / 0.037) 0.11 / 0.59 — no improvement survives a 10 % family-wise rate
Task B, h = 3, directional accuracy all / at turning points: DSGFN / QREFA / LightGBM 77 / 76 / 75 % overall; 65 / 66 / 65 % at turning points
Task C, h = 3, Brier skill of P(decline) vs climatology: QREFA / LightGBM / QANSS / no change +0.17 / +0.15 / +0.07 / -0.02
Task B, h = 3, 192 municipal cells: share where LightGBM / QANSS / ridge beats no change; LightGBM median MASE 91 / 83 / 72 %; 0.74
Equal-weight combinations (h = 3): LightGBM alone / LightGBM + QANSS / four models / QREFA stack 0.754 / 0.760 / 0.765 / 0.816
Task A, 1–3 months, median absolute dollar error LightGBM vs municipal median: house / condo / plex $61,102 vs $92,750 / $32,005 vs $127,000 / $80,115 vs $135,000

Every number is a generated macro (paper/tables/numbers.tex).

# 🗂 Repository layout

text
forecasting-architectures-quebec/
├── CLAUDE.md                  # protocol (as received; truncated section completed)
├── src/wp23/                  # config, data (Task A), data_b (Task B), evaluation, models_a(+_torch), models_b(+_torch)
├── scripts/                   # 10 task A · 20 task B · 30 evaluate · 35 interpret · 36/37 ablation · 38 robustness · 39 extra analyses · 40/41 simulation · 50 tables · 60 figures
├── tests/
├── data/processed/            # task_b_panel.parquet (built from WP22 vintages; not committed)
├── results/                   # task_a, task_b, eval_a, eval_b, ablation_b, robustness_b, simulation, interpret, extra (time/regime/direction/decline/combination/municipal/cost/dollar/selection)
├── docs/                      # PLAN, decision_log, leakage_audit, limitations, literature/ (152 verified refs, novelty scan)
└── paper/                     # main.tex, sections/, appendix/, tables/ (generated), references.bib

# 🚀 Quick start

bash
# WP22 must be present as ../sharp-hpi-quebec with its processed layers and index_vintages.parquet
python3 -c "import sys; sys.path.insert(0,'src'); from wp23 import data_b; data_b.build_panel().write_parquet('data/processed/task_b_panel.parquet')"
python3 scripts/10_task_a.py --family trees; python3 scripts/10_task_a.py --family torch     # separate processes (OpenMP conflict on macOS)
python3 scripts/20_task_b.py --family classic; python3 scripts/20_task_b.py --family trees; python3 scripts/20_task_b.py --family torch
python3 scripts/30_evaluate.py a; python3 scripts/30_evaluate.py b
python3 scripts/35_interpret.py; python3 scripts/36_ablation.py; python3 scripts/37_ablation_summary.py; python3 scripts/38_robustness.py
python3 scripts/40_simulation.py --build --reps 10; for f in classic trees torch; do python3 scripts/40_simulation.py --reps 10 --family $f; done; python3 scripts/41_sim_summary.py
python3 scripts/50_tables.py; python3 scripts/60_figures.py; cd paper && latexmk -pdf main.tex

Heavy runs were executed on a 32-core Mac Studio (M3U96b) with the same code.

# 🗃 Data

WP22 (../sharp-hpi-quebec): headline sample of 632,006 sales (2021-01 → 2026-10-07), real-time SHARP-HPI vintages (publication dates July 2022 → October 2026, filtered and smoothed modes), retrospective panel (targets only), SDA boundaries. No listing, bedroom/bathroom, condition or image data exist in this source.

# 🔬 Methodology

See paper/sections/{targets,architectures,benchmarks,framework}.tex and docs/leakage_audit.md.

# ⚠️ Limitations

See docs/limitations.md and the paper's final section.

# 📝 Citation

bibtex
@techreport{boucher2026forecasting,
  author      = {Boucher, Simon-Pierre},
  title       = {Beyond Hedonic Models: Spatiotemporal, Hierarchical and Probabilistic Architectures for Residential Real Estate Price Forecasting},
  institution = {Universit\'e du Qu\'ebec en Outaouais, D\'epartement des sciences administratives},
  type        = {Working Paper},
  number      = {23},
  year        = {2026},
  month       = {October}
}

# 👤 Author & contact

Simon-Pierre Boucher — Département des sciences administratives, Université du Québec en Outaouais (UQO), Gatineau, QC. 📧 simon-pierre.boucher@uqo.ca

# 🗒 Notes

  • Follows Recherche-UQO/HARMONISATION.md. The pasted protocol ended at section 17 ("11. Prob…"); the remaining sections were completed from the series conventions (see CLAUDE.md).

# Languages

Language Files Lines Share
Python 22 3 797 ██████████ 50.7 %
LaTeX 53 3 688 ██████████ 49.3 %

Counted on git-tracked files, excluding dependencies and generated files.

# Documentation

Document Title
CLAUDE.md CLAUDE.md — WP23: Next-Generation Real Estate Price Forecasting
docs/decision_log.md Decision log — WP23
docs/leakage_audit.md Leakage audit — WP23
docs/limitations.md Limitations — WP23
docs/PLAN.md WP23 — plan (2026-10-21)
docs/research_log.md Research log — WP23
docs/literature/novelty_scan.md Novelty scan: closest existing work for the six proposed WP23 architectures
docs/literature/unverified.md Unverified, re-attributed or caveated items (WP23, forecasting-architectures-quebec)

# Repository facts

First commit 2026-10-21
Contributors 1
Default branch main
Tracked files 210
Clone git clone https://git.spboucher.ai/wp23_uqo.git

# Author

Simon-Pierre Boucher · spboucher.ai · contact@spboucher.ai

Clone wp23_uqo

Anonymous clone and fetch. Pushing requires the owner's personal access token.

Snapshot of main

Files main
Menu

Theme