SPB Git

Repository Public Research preview

11 entries at the root
History

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

NameLast commitUpdated
data révision scientifique complète (editorial board, 2026-10-17)
docs README: series banner, metric badges, peer-review scorecard and links to the reviewed branch
figures révision scientifique complète (editorial board, 2026-10-17)
paper chore: standardize SP Boucher source headers and attribution
results révision scientifique complète (editorial board, 2026-10-17)
scripts chore: standardize SP Boucher source headers and attribution
.gitignore révision scientifique complète (editorial board, 2026-10-17)
.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
requirements.txt harmonisation standard UQO WP (2026-10-17)
README.md View source

UQO Working Paper No. 1 — Heterogeneous Amenity Capitalization in the Quebec Residential Market: A Spatial Quantile Regression Approach

peer review: not yet peer reviewed version: 1.1 · October 2026 pages: 58 references: 125 field: Real Estate & Housing

commits: 4 last commit: 2026-10-17 files: 59 LaTeX: 28 files Python: 6 files SSRN: 7639660 UQO: Sciences administratives

📄: Manuscript (PDF) 🧾: Commit history 🌐: Reviewed papers of the series

🏘️ In one sentence — Quantile and two-stage spatial quantile regressions on 42,481 Centris listings (January 2026) show that, for houses, the highway capitalisation differential falls from 0.205 at the 10th percentile to 0.034 at the 90th, and a spatial lag attenuates median differentials by a third to a half.

# 🔬 Review status

This working paper has not yet gone through the multi-referee review of the UQO working-paper series (blinded referee reports, editorial decision, re-execution, full revision, independent verification). Its results should be read as preliminary. Only reviewed papers of the series are presented on wp.spboucher.ai and www.spboucher.ai.


# 🏡 Heterogeneous Amenity Capitalization in the Quebec Residential Market

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

Tracked files lines of code languages docs screenshots

# Figures

fig coefficients by quantile
fig coefficients by quantile
fig implicit prices by quantile
fig implicit prices by quantile
fig ols qr sqr median
fig ols qr sqr median
fig pseudo r2
fig pseudo r2
fig wald adjacent quantiles
fig wald adjacent quantiles

UQO Working Paper No. 1 — A Spatial Quantile Regression Approach

Paper Python Data Reproducible Institution Author

TL;DR — Do neighbourhood amenities capitalise into asking prices the same way at the bottom and at the top of the conditional price distribution? Using a January 2026 snapshot of 42,481 Centris listings (estimation samples: 6,250 houses, 1,031 condominiums, 3,755 plexes, 9,239 parcels), we estimate quantile regressions at τ ∈ {.10, .25, .50, .75, .90} and a two-stage spatial quantile regression (2SQR) with a k-nearest-neighbour spatial lag instrumented by lagged covariates. For houses, the highway, transit and park coefficients fall monotonically from τ = .10 to τ = .90 (0.205 → 0.034; 0.178 → 0.053; 0.122 → 0.014) and the hospital coefficient changes sign (−0.085 → +0.041); tail equality is rejected for all four, while the school discount (≈ −0.11) is constant. Moran's I on OLS residuals is 0.51–0.58; the median spatial lag is 0.13–0.32 and attenuates the house highway/transit/school differentials by a third to a half. Asking prices, binary broker-reported amenities, paired bootstrap: capitalisation gradients, not willingness to pay.


# 📌 Status

Item Value
Version 1.1 (October 2026) — revised 2026-10-17 by the editorial-board review (see docs/REVIEW-REPORT.md, docs/CHANGELOG-REVISION.md)
SSRN not yet submitted — not ready for SSRN until the pipeline is re-run (see Notes)
Journal — (candidate outlets after re-estimation: Journal of Housing Economics, Journal of Real Estate Research, Papers in Regional Science)
Code & data tables and figures reproducible from the preserved log (scripts/06_…); the estimation itself requires the Centris snapshot, which is not redistributed and is not on the revision machine

# 🎯 What this paper does

Conditional-mean hedonic regressions impose one implicit price per attribute. This paper asks whether the capitalisation of six broker-reported amenities (highway, hospital, park, school, transit, golf course) into Quebec residential asking prices varies along the conditional price distribution, separately for four product types, and whether it survives an adjustment for spatial dependence.

text
Q_τ(ln P_i | Z_i)                 = Z_i'θ(τ)                                   (quantile regression)
Q_τ(ln P_i | Z_i, [W ln P]_i)     = Z_i'θ(τ) + ρ(τ) · [W ln P]_i               (spatial quantile model)
W ln P = Π0 + Z Π1 + WZ Π2 + v    → second stage on the fitted lag              (2SQR, least-squares first stage)

W is a row-standardised inverse-distance 10-nearest-neighbour matrix built within each segment. Standard errors of the quantile regressions are paired-bootstrap (B = 200); inter-quantile Wald tests compare τ = .10 and τ = .90; Moran's I is computed on OLS, QR and 2SQR second-stage residuals; dollar-equivalent implicit prices and a scalar LeSage–Pace decomposition are reported at the median.

# 🏆 Headline results

Object Estimate (houses unless stated; from results/sqr_multi_segment_output.txt)
Highway coefficient, τ = .10 → .90 0.205*** → 0.034 (n.s.); OLS 0.133; Wald(.10 vs .90) = 17.1
Transit coefficient, τ = .10 → .90 0.178*** → 0.053**; OLS 0.113; Wald = 11.6
Park coefficient, τ = .10 → .90 0.122*** → 0.014 (n.s.); OLS 0.042; Wald = 6.7
Hospital coefficient, τ = .10 → .90 −0.085*** → +0.041*; OLS −0.049; Wald = 12.1
School coefficient −0.102 to −0.136 at every quantile; Wald = 0.05
Amenities with significant tail heterogeneity houses 4/6; condominiums 0/6; multiplexes 2/6 (highway, hospital); land 2/6 (school, golf)
OLS adjusted R² / Moran's I on OLS residuals 0.619 / 0.506 (houses); 0.669 / 0.551 (condos); 0.576 / 0.528 (plex); 0.154 / 0.580 (land)
Median spatial lag ρ̂(.50) (no SE available) 0.291 (houses), 0.203 (condos), 0.131 (plex), 0.322 (land)
QR → 2SQR at the median (houses) highway 0.113 → 0.057; transit 0.094 → 0.071; school −0.110 → −0.072; park 0.038 → 0.042
Moran's I on 2SQR second-stage residuals 0.52–0.55 (houses): no reduction, because residuals use the fitted lag

Interpretation: asking prices, cross-section, binary amenity indicators → quantile-specific capitalisation gradients, not causal effects nor willingness to pay.

# 🗂 Repository layout

text
amenity-capitalization-spatial-quantile/
├── data/
│   ├── raw/                  # Centris JSON snapshot (4 files, see data/raw/README.md) — not committed
│   └── processed/
├── scripts/                  # the pipeline, in order
│   ├── 01_hedonic_ols_v1.py          # baseline log-linear OLS, single-family subset
│   ├── 02_hedonic_ols_v2.py          # quadratic terms, surface selection correction, spatial interactions
│   ├── 03_hedonic_ols_final.py       # final OLS specification (centred variables, HC3)
│   ├── 04_quantile_spatial_hedonic.py # QR + instrumented spatial lag, Moran, Wald (houses only, asymptotic SE)
│   ├── 05_sqr_multi_segment.py       # multi-segment 2SQR with bootstrap (the paper); arg = data directory
│   └── 06_tables_figures_from_log.py # parses the preserved log → paper/tables/*.tex, figures/*.png, results/log_parsed.json
├── results/
│   ├── sqr_multi_segment_output.txt  # preserved console log of the original run of (an earlier version of) step 05
│   └── log_parsed.json               # machine-readable parse of the log (step 06)
├── figures/                  # 5 figures rebuilt from the log (copied to paper/figures/)
├── docs/                     # REVIEW-REPORT.md, CHANGELOG-REVISION.md, main_pre-revision-20261017.pdf
└── paper/                    # main.tex + sections/ + appendix/ + tables/ + references.bib → main.pdf

# 🚀 Quick start

bash
python3 -m pip install -r requirements.txt
# Without the Centris snapshot (what the 2026-10-17 revision could do):
python3 scripts/06_tables_figures_from_log.py        # ~5 s: tables + figures from results/sqr_multi_segment_output.txt
cd paper && make                                      # latexmk → main.pdf (58 p.)
# With the snapshot (four JSON files in data/raw/):
python3 scripts/05_sqr_multi_segment.py data/raw | tee results/sqr_multi_segment_output.txt   # ~15 min, bootstrap 200 × 5 τ × 4 segments
python3 scripts/06_tables_figures_from_log.py

# 🗃 Data

42,481 Centris active listings (province of Quebec, snapshot of 8 January 2026) in four product types; asking price, structural attributes, coordinates, municipality, parking type and a free-text broker field from which six binary amenity indicators are derived. Listings with missing price, coordinates or required structural variables are dropped; land area is winsorised at the 99th percentile; log price and log areas are trimmed at 0.5/99.5 percent. Estimation samples: 6,250 / 1,031 / 3,755 / 9,239. Details and access conditions in data/raw/README.md.

# 🔬 Methodology

  1. OLS hedonic benchmark (semi-log, HC3) and Moran's I on residuals — scripts/05_… (and 03_… for houses).
  2. Quantile regression (Koenker & Bassett 1978) at five quantiles, paired bootstrap SE (B = 200), pseudo-R² (Koenker & Machado 1999).
  3. Two-stage spatial quantile regression: least-squares first stage of W ln P on [Z, WZ] (Kelejian & Prucha 1998 instruments), quantile second stage on the fitted lag (Amemiya 1982 / Powell 1983 / Kim & Muller 2004 family) — second stage not bootstrapped, median only.
  4. Inter-quantile Wald tests (bootstrap variances, covariance between quantiles omitted → conservative).
  5. Dollar-equivalent implicit prices P(τ)[exp(β̂(τ)) − 1] and scalar direct/indirect/total effects at the median.

# 🖼 Figures & tables inventory

Figure (file in figures/) Content Source
1 fig_coefficients_by_quantile amenity coefficients ± 1.96 bootstrap SE, 4 segments × 6 amenities log
2 fig_wald_adjacent_quantiles Wald statistics for adjacent quantile pairs, 4 segments log
3 fig_ols_qr_sqr_median OLS vs QR(.50) vs 2SQR(.50) amenity coefficients log
4 fig_implicit_prices_by_quantile dollar-equivalent implicit prices by quantile log
5 fig_pseudo_r2 pseudo-R² by quantile and segment log
(not reproducible) ρ(τ) by quantile; price distributions require the second-stage coefficients at all τ / the raw data —

Tables (paper/tables/*.tex, all generated by step 06 except the two definitional ones): variables, specification, sample, descriptive, moran (OLS fit + Moran), qr_houses, qr_condos, qr_plex, qr_land, qr_houses_structural (appendix), pseudo_r2, wald_houses, wald, sqr, effects, moran_resid, implicit_prices.

# ⚠️ Limitations

  • Asking (listing) prices, not transaction prices; single cross-section; binary broker-reported amenity indicators without distance or quality.
  • Paired bootstrap ignores spatial dependence; Wald tests ignore the covariance between quantiles; no standard errors for ρ̂(τ) or for the 2SQR coefficients (second stage not bootstrapped); 2SQR coefficients recorded at τ = .50 only.
  • Moran's I on 2SQR residuals was computed on second-stage (fitted-lag) residuals and therefore cannot show a reduction; structural residuals were not computed.
  • The log-distance-to-Montreal coefficients in the preserved log are implausibly large (1.6–2.5 for houses, up to 8.4 for plexes): the scaling of that control must be verified when the pipeline is re-run.
  • Robustness checks described in v1.0 (sensitivity to k, B = 500, alternative trimming, Montreal split, VIF, partial first-stage F, LeSage–Pace comparison) have no surviving output and are withdrawn; listed as analyses to execute.

# 📝 Citation

bibtex
@techreport{boucher2026amenity,
  author      = {Boucher, Simon-Pierre},
  title       = {Heterogeneous Amenity Capitalization in the Quebec Residential Market: A Spatial Quantile Regression Approach},
  institution = {Universit\'e du Qu\'ebec en Outaouais, D\'epartement des sciences administratives},
  type        = {Working Paper},
  number      = {1},
  year        = {2026},
  month       = {October},
  note        = {Version 1.1}
}

# 👤 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

  • Revision of 2026-10-17 (v1.0 → v1.1). Full editorial-board review: docs/REVIEW-REPORT.md (diagnosis, verdict) and docs/CHANGELOG-REVISION.md (audit trail). Pre-revision PDF: docs/main_pre-revision-20261017.pdf (git tag pre-revision-20261017).
  • Numerical record. The tables of v1.0 could not be reconciled with the only preserved output of the pipeline, results/sqr_multi_segment_output.txt (e.g. houses: adj. R² 0.685 vs 0.619 in the log; ρ̂(.50) 0.227 vs 0.291; highway β(.10) 0.040 vs 0.205). They evidently came from a second run of a later script version whose log was not kept, as did the original Figure 2. v1.1 reports the log throughout; every table and figure is generated from it by scripts/06_tables_figures_from_log.py. The log itself was produced by a version of scripts/05_… earlier than the one in the repository (which additionally prints VIFs, the first-stage F and an omnibus test).
  • Not ready for SSRN until the figures and tables are regenerated from a fresh run. Procedure: place the four Centris JSON files in data/raw/, run python3 scripts/05_sqr_multi_segment.py data/raw | tee results/sqr_multi_segment_output.txt, then python3 scripts/06_tables_figures_from_log.py, then cd paper && make; compare the new log with the current one and update the text (Appendix A of the paper lists the anomalies to resolve and the outputs to restore, in priority order: bootstrapped second stage, partial first-stage F, structural-residual Moran's I, cluster/block bootstrap, sensitivity to k / projection / trimming / municipality FE, descriptive moments, VIFs).
  • Bibliography converted from an inline thebibliography (103 entries, 17 unverifiable or misattributed) to paper/references.bib (125 entries, all verified via Crossref or the publisher page, DOIs included; natbib aer).
  • Figures 1 and 3–7 of v1.0 were never in the repository; v1.1 rebuilds five figures from the log (new numbering) and removes the two that cannot be rebuilt (ρ(τ) by quantile; price distributions).
  • Snapshot date corrected from "May 2025" (v1.0 text) to 8 January 2026 (file timestamps).
  • The original flat LaTeX draft (paper_sqr_hedonic.tex, May 2026) is archived in Recherche-UQO/_archives/versions-mai-2026/amenity-capitalization--flat-tex-20260519/.
  • Cover date corrected from "May 2025" (typo) to May 2026 during the 2026-10-17 harmonisation.

# Languages

Language Files Lines Share
Python 6 4 061 ███████████████ 74.8 %
LaTeX 28 1 367 █████ 25.2 %

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

# Documentation

Document Title
CLAUDE.md Source header policy (SP Boucher)
docs/CHANGELOG-REVISION.md WP 1 — Journal d'audit de la révision scientifique (2026-10-17)
docs/REVIEW-REPORT.md WP 1 — Heterogeneous Amenity Capitalization in the Quebec Residential Market : rapport de

# Repository facts

First commit 2026-10-17
Contributors 1
Default branch main
Latest tag pre-revision-20261017
Tracked files 77
Clone git clone https://git.spboucher.ai/wp1_uqo.git

# Author

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

Clone wp1_uqo

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

Snapshot of main

Files main
Menu

Theme