Predicting Median Real Estate Prices in Select US Cities

Problem Statement
Home buyers, investors, and analysts need forward-looking price estimates to make informed decisions about when and where to buy. This Streamlit dashboard automates the process by building city-specific SARIMA models on monthly Redfin metro-level data, automatically selecting optimal parameters, and validating accuracy through walk-forward backtesting - giving users data-driven 12-month price forecasts for seven major metros.
Methodology
Preprocessing & Stationarity
Monthly median sale price series for each city were tested for stationarity using the Augmented Dickey-Fuller test. First-order differencing was applied to achieve stationarity, with ACF and PACF diagnostics confirming the transformation. Each city is modeled independently to capture its unique seasonal housing cycle.
Automatic Parameter Selection
Rather than manually tuning SARIMA parameters, the pipeline uses pmdarima’s auto_arima to search over (p, d, q) and (P, D, Q, 12) parameter spaces for each city, selecting the model that minimizes AIC. This ensures each city gets an individually optimized model without manual intervention.
Walk-Forward Backtesting
Models are validated using expanding-window walk-forward backtesting: train on 60+ months of historical data, forecast the next 12 months, step forward 6 months, and repeat. This simulates real-world conditions where the model only has access to past data, providing honest out-of-sample accuracy metrics.
Results
Multi-City Price Trends
Year-over-Year Price Changes
City-Level SARIMA Forecasts
ROI Analysis
Model Validation
Model Parameters
Price Distribution
Future Directions
- Incorporate macro-economic features (mortgage rates, housing starts, CPI) as exogenous regressors via SARIMAX
- Extend coverage to additional metro areas and smaller cities
- Add ensemble methods combining SARIMA with machine learning models for improved accuracy