Hedonic Pricing Regression: A Worked Housing Example
Table of Contents
Two houses sell in the same quarter for different prices. One is larger, the other has more bedrooms, and they sit in different parts of town. How much of the price gap goes with size once you account for bedrooms and location? A hedonic pricing regression uses sales of different bundles of features to estimate those comparisons. It can help an analyst make sense of comparable sales, but a fitted price difference between two homes does not tell an owner what a renovation will earn back. [1] [2]
What Is Hedonic Pricing?
Buyers pay one price for a bundle: finished floor area, a floor plan, a lot and a location, among other features. There is no separate sale price for an extra square foot or a third bedroom. A hedonic regression estimates a price schedule by relating observed prices to the bundles that actually sold. In Sherwin Rosen’s framework, the slope of that schedule for a continuous feature is its implicit price at the chosen bundle. For an indicator such as neighborhood, use the fitted difference between two bundles instead. [1]
A bedroom coefficient compares homes with different bedroom counts at the same modeled area and location. It does not hold unmeasured features such as layout or condition fixed. A fourth bedroom within 1,500 square feet is also a different comparison from a fourth bedroom built in a 200-square-foot extension.
The Hedonic Regression Formula
Start with an ordinary least squares (OLS) multiple regression using the natural log of the positive sale price as the outcome. In the example, the fitted price schedule compares homes across three locations: West, Central and Outer. The model uses finished living area and bedrooms, with no interaction terms, so each location shifts the log-price level without changing the area or bedroom slope.
- S: (Finished living area in square feet − 1,500) ÷ 100. One unit is an additional 100 square feet.
- B: Bedrooms − 3. One unit is one additional bedroom at fixed area and location.
- C and O: Dummy variables. Central is (1, 0); Outer is (0, 1); West is (0, 0). Changing the reference changes the coefficient comparisons but leaves fitted prices unchanged if the same model is parameterized correctly.
The intercept α is the fitted log price for the West reference home with 1,500 square feet and three bedrooms. Including a separate West dummy as well as the other two and an intercept would make the design redundant: the three indicators sum to one on every row.
How to Read a Log-Price Coefficient
Let d be the difference between two fitted log prices. The ratio of their exponentiated fitted prices is exp(d). Use 100 × [exp(d) − 1] for the percent difference measured from the first profile. For a 0-to-1 dummy change with other columns unchanged, d is the dummy coefficient. Multiplying d by 100 approximates the percentage when d is near zero. [3]
Exponentiating a fitted conditional mean log price gives a fitted geometric mean price. It also represents a conditional median if the conditional median of the log error is zero. For an arithmetic mean in dollars, the appropriate extra factor is the conditional mean of exp(log error). A single pooled adjustment only fits that purpose if the factor is common across profiles. The example compares exponentiated fitted log prices, without estimating a dollar arithmetic mean. [6]
Worked Example: Fit Prices for 12 Home Sales
Suppose 12 comparable single-family homes close in one quarter in a fictional market. Each table cell is one sale price in dollars. Every location has one home of each size and bedroom combination. That balance simplifies the arithmetic and lets us compare three- and four-bedroom layouts at the same size. The prices were constructed for teaching and provide no evidence about a real market.
| Location | 1,500 sq ft 3 beds |
1,500 sq ft 4 beds |
1,700 sq ft 3 beds |
1,700 sq ft 4 beds |
|---|---|---|---|---|
| West | $357,070 | $351,754 | $371,643 | $396,602 |
| Central | $394,624 | $421,126 | $444,937 | $438,313 |
| Outer | $339,656 | $334,599 | $353,518 | $377,259 |
To reproduce the fit, make one row per sale with the natural log of its displayed price as the outcome and S, B, C and O as the predictors. Fit unweighted OLS with an intercept. For example, the $438,313 sale has S = 2, B = 1, C = 1 and O = 0. Keep the logs unrounded. Because this particular table is balanced, you can cross-check the size estimate by subtracting the average log price at 1,500 square feet from the average log price at 1,700 square feet and dividing by two. Use the average-log difference for four versus three bedrooms for B, and each location’s average log minus West’s for each location coefficient.
The fit gives an intercept of about 12.765688 and slopes of 0.040 for S, 0.025 for B, 0.140 for Central and −0.050 for Outer, rounded. At the West reference all four predictors are zero. Exponentiating the intercept gives about $350,000. That is the pooled fit for this profile; the one observed sale in the baseline cell was $357,070.
| Change | Fitted log change | Fitted price difference |
|---|---|---|
| Compare with 100 more sq ft | 0.040 | +4.08% |
| Compare with 4 bedrooms | 0.025 | +2.53% |
| Compare with Central | 0.140 | +15.03% |
| Compare with Outer | −0.050 | −4.88% |
At the reference size and bedroom count, Central’s fitted price is $350,000 × exp(0.140) ≈ $402,596, about $52,596 above West. For a three-bedroom home in Central with 1,700 square feet, the size and location differences both enter: d = 2 × 0.040 + 0.140 = 0.220. The fitted price is $350,000 × exp(0.220) ≈ $436,127, or 24.61% above the West reference. Add the log differences before exponentiating instead of adding the percentage differences.
The same percentage size adjustment is worth more dollars at a higher starting price. At the West reference, the local slope of the fitted dollar curve is $350,000 × (0.040 ÷ 100) = $140 per square foot. The fitted difference for a full 100 square feet is $350,000 × [exp(0.040) − 1] ≈ $14,284. A marginal slope and a finite difference answer different questions. The 100-square-foot comparison interpolates between the two sizes in the sample; the data contain no actual 1,600-square-foot sale.
Comparable-Sale Adjustments vs. CPI Quality Adjustments
Residential appraisal
- Question: How should a comparable sale be adjusted for a feature difference when assessing the subject property?
- Use: A local model can be one piece of evidence, alongside similar sales and market conditions. Fannie Mae’s Selling Guide calls for market-supported adjustments and specifically recognizes modeling as one possible source of evidence for time adjustments. [4]
Consumer Price Index
- Question: How much did price change across periods after accounting for differences between a sampled item and its replacement?
- Use: When BLS applies a hedonic adjustment, it estimates what the incoming version would have cost in the old period, then compares that estimate with the new observed price. This is a quality-adjusted price comparison for an item. [3]
In the BLS clothes-dryer example, a $729 outgoing dryer is replaced by a $1,250 unit with several different features. The fitted log difference for those features is 2.1619 − 1.7664 = 0.3955. Adjusting the old price gives $729 × exp(0.3955) ≈ $1,082.66. The price comparison for this replacement is then ($1,250 ÷ $1,082.66 − 1) × 100 ≈ 15.5%. The raw comparison, ($1,250 ÷ $729 − 1) × 100, is about 71.5%. This is one example used to explain CPI methodology, not a reading for the whole index. [3]
How to Analyze a Local Housing Market With Hedonic Regression
- Define the properties and period. Specify the type of home, submarket and transaction dates to which the result should apply. A broader real estate market analysis helps define what competes with what; a hedonic regression compares prices across property features within that scope.
- Choose consistent measurements and a comparison group. Record transaction prices, area as measured on a consistent basis, bedroom count, condition, timing and location when available. Check that the features of interest vary within the relevant group. You cannot reliably separate room count from area if all four-bedroom homes are bigger than all three-bedroom homes and the result relies on comparing similar sizes. [2]
- Choose a sensible price curve. A dollar-price regression with area in levels estimates dollars per unit of area. This log-price model with area in levels estimates a fixed proportional difference for each 100-square-foot increment. A regression of log price on log of raw area instead gives an elasticity. Use other functional forms if, for example, added space is priced differently for small and large homes.
- Check the model where it will be used. For this model, hold out later sales within areas already represented in the fitting sample and inspect errors by price band and location. Holding out all of Central leaves no data to estimate its coefficient. Coding an unseen area with two zeroes would treat it as West, so use a model that can handle a new area or collect local sales to estimate its effect. Report uncertainty and avoid treating an estimate based on a handful of observations as a firm adjustment. [2] [4]
Common Mistakes
- Dropping the units. Here 0.040 is per 100 square feet, not per square foot or per 1% change in area. Use the same finished-area definition when comparing homes.
- Converting a raw log coefficient directly into dollars. A Central coefficient of 0.140 means a fitted ratio of exp(0.140) relative to West at the same size and bedroom count. For dollars, multiply that ratio minus one by the fitted price of the comparison profile.
- Reading a fitted contrast as a construction return. Holding floor area fixed while varying the bedroom count compares layouts. To consider an extension, both size and bedroom count could change, along with condition or other features. Even the fitted difference across all recorded changes does not establish the effect of renovating the same property.
Limitations: Omitted Features, Selection and Changing Markets
If Central homes have better renovations or better access to transit and neither appears in the data, the Central coefficient may reflect both. Even within one area, omitted lot quality or views can be associated with size and distort the area slope. The model controls for the columns it includes; a location dummy does not isolate the effect of a particular amenity. [2]
Study design matters when the question is causal. In a published study of elementary school quality, Sandra Black compared houses near opposite sides of attendance boundaries within school districts to reduce confounding from neighborhood differences. That strategy targets a more specific comparison than reading one generic neighborhood coefficient; it does not make all market differences causal. [7]
Sales are a selected sample. Homes that close and enter a dataset may differ from homes that stay unsold or sell outside the covered channels. If those differences are related to prices after accounting for the recorded features, applying the fitted relationships to all homes can mislead. Decide whether to include transactions such as distressed sales based on the population you want to describe and check what your data source misses. [5]
The estimate belongs to the market and period studied. Location effects can absorb area averages but do not capture all shared shocks or nearby dependence. A 12-sale fit does not show how prices behave for a 3,000-square-foot house, a condo in a different city, or even the same home next year. Real work needs enough comparable observations near the profile in question and evidence from sales outside the fitting sample. [2]
Frequently Asked Questions
Sources
- Sherwin Rosen, “Hedonic Prices and Implicit Markets: Product Differentiation in Pure Competition” (Journal of Political Economy, 1974), pp. 34–35.
- U.S. Environmental Protection Agency, Guidelines for Preparing Economic Analyses, 3rd ed., chapter 7 (2024), pp. 7-36 and 7-39–7-40.
- U.S. Bureau of Labor Statistics, “Frequently Asked Questions about Hedonic Quality Adjustment in the CPI” (updated October 6, 2026), questions 3–6.
- Fannie Mae, Selling Guide B4-1.3-09, “Adjustments to Comparable Sales” (June 4, 2025).
- Dean H. Gatzlaff and Donald R. Haurin, “Sample Selection and Biases in Local House Value Indices” (Journal of Urban Economics, 1998), abstract.
- Naihua Duan, “Smearing Estimate: A Nonparametric Retransformation Method” (Journal of the American Statistical Association, 1983), sections 2–3.
- Sandra E. Black, “Do Better Schools Matter? Parental Valuation of Elementary Education” (Quarterly Journal of Economics, 1999), abstract and introduction.
Disclaimer
This article is for education. The housing data and estimates are hypothetical and do not provide an appraisal or investment advice.
