Pricing Elasticity: Log-Log Regression & Monte Carlo Simulation
How to measure price sensitivity using log-log transformations and handle uncertainty in your estimates with probabilistic modeling.
Pricing Analytics
Price elasticity of demand Economics
Elasticity measures how sensitive demand is to a price change. It answers the question: if I raise my price by 1%, what happens to the quantity sold?
Elastic (|β| > 1)
- Price up 10% → demand down >10%
- Revenue falls with price increases
- Many substitutes available
- Example: economy flights, generic brands
Inelastic (|β| < 1)
- Price up 10% → demand down <10%
- Revenue grows with price increases
- Few substitutes, strong loyalty
- Example: insulin, electricity
I found β = 0.2294 across 358 active Airbnb listings. This means a 10% increase in price tier is associated with a 2.3% increase in demand. Counterintuitive, but it makes sense for Airbnb: bigger properties (higher price tier) attract groups who need the space, so they book anyway.
The big caveat
Elasticity from observational data measures correlation, not causation. A positive coefficient tells you that larger listings get more bookings; it doesn't prove that raising prices will increase demand. To truly test price sensitivity, an A/B test is needed where some listings are randomly assigned higher prices.
Log-log regression Statistics
Standard linear regression assumes a straight-line relationship: "for every $1 increase in price, demand drops by X units." But real-world demand is rarely that clean. Log-log regression assumes a proportional relationship: "a 1% increase in price leads to a β% change in demand." That's exactly what elasticity is.
The transformation is simple:
# Linear regression (what we didn't use) # demand = α + β × price # Problem: assumes each $1 change has same effect # Log-log regression (what we used) # ln(demand) = α + β × ln(price) # β directly = price elasticity import numpy as np from scipy.stats import linregress log_price = np.log(df['price']) log_demand = np.log(df['demand']) slope, intercept, r, p, se = linregress(log_price, log_demand) # slope IS the elasticity coefficient β
Why log? Because percentage changes (1% more, 1% less) compress large numbers and expand small ones. Log does exactly that; it converts absolute values into relative scale, which is the natural language of prices and demand.
Alternative regression approaches
Monte Carlo simulation Probabilistic modeling
Your elasticity estimate is β = 0.2294, but there's uncertainty around it; the 95% CI is [0.05, 0.41]. Monte Carlo handles this uncertainty by running the calculation thousands of times, each time drawing a slightly different value of β from its confidence interval. The result is a distribution of outcomes, not a single point estimate.
# The core idea in 5 lines np.random.seed(42) n = 1000 # Draw β from its uncertainty distribution elasticity_samples = np.random.normal(β_mean, β_std_err, n) # Each sample gives a different revenue outcome revenue_outcomes = base_price * 1.10 * base_demand * ( 1 + elasticity_samples * 10 / 100 ) # Summarize the distribution print(np.percentile(revenue_outcomes, [5, 50, 95]))
The 5th percentile is the "downside risk": the worst outcome in 95% of scenarios. When even that is positive, the recommendation is robust to uncertainty in the elasticity estimate.
Resources: Pricing Analytics
Best free intro to elasticity concepts. Start here before the math.
Free PDF. Chapter 3 covers linear regression thoroughly. The gold standard textbook.
Decision framework
Choosing the right technique for Pricing Analytics.
Point estimates vs distributions
A single number (β = 0.23) hides uncertainty. Always report confidence intervals. Monte Carlo simulation lets you propagate that uncertainty through to final outputs like revenue scenarios.