WTP & Simulations
EMSE 6035: Marketing Analytics for Design Decisions
John Paul Helveston
November 11, 2026

Week 12: WTP & Simulations

1. Computing “Willingness to Pay” (WTP)

2. Incorporating Uncertainty via Simulation

3. Directly Estimating WTP

4. Simulating Market Shares

Week 12: WTP & Simulations

1. Computing “Willingness to Pay” (WTP)

2. Incorporating Uncertainty via Simulation

3. Directly Estimating WTP

4. Simulating Market Shares

Willingness to Pay (WTP)


\[\tilde{u}_j = \alpha p_j + \boldsymbol{\beta} x_j + \tilde{\varepsilon_j}\]


\[\boldsymbol{\omega} = \frac{\boldsymbol{\beta}}{-\alpha}\]

Notational convention: hats mean “estimated”

Model
\[\tilde{u}_j = \alpha p_j + \boldsymbol{\beta} x_j + \tilde{\varepsilon_j}\]
\[\boldsymbol{\omega} = \frac{\boldsymbol{\beta}}{-\alpha}\]
Estimated Model
\[\tilde{u}_j = \hat{\alpha} p_j + \hat{\boldsymbol{\beta}} x_j + \tilde{\varepsilon_j}\]
\[\hat{\boldsymbol{\omega}} = \frac{\hat{\boldsymbol{\beta}}}{-\hat{\alpha}}\]

Practice Question 1

Suppose we estimate the following utility model describing preferences for cars:

\[ \tilde{u}_j = \alpha p_j + \beta_1 x_j^{\mathrm{mpg}} + \beta_2 x_j^{\mathrm{elec}} + \varepsilon_j \]

The estimated model produces the following coefficients:

  • \(\alpha\): -0.7
  • \(\beta_1\): 0.1
  • \(\beta_2\): -4.0
  1. Use the estimated coefficients to compute the WTP for fuel economy and electric car vehicle type.

Week 12: WTP & Simulations

1. Computing “Willingness to Pay” (WTP)

2. Incorporating Uncertainty via Simulation

3. Directly Estimating WTP

4. Simulating Market Shares

Simulating uncertainty

We can use the coefficients and hessian from a model to obtain draws that reflect parameter uncertainty

beta <- c(-0.7, 0.1, -4.0)

hessian <- matrix(c(
    -6000,   50,   60,
       50, -700,   50,
       60,   50, -300),
    ncol = 3, byrow = TRUE)
covariance <- -1 * solve(hessian)
draws <- MASS::mvrnorm(10^4, beta, covariance)

head(draws)
#>            [,1]       [,2]      [,3]
#> [1,] -0.6863012 0.10377457 -4.067518
#> [2,] -0.7055525 0.07070391 -3.984283
#> [3,] -0.6750049 0.08589199 -4.026048
#> [4,] -0.7077806 0.17031792 -3.961917
#> [5,] -0.7104361 0.13943050 -4.002240
#> [6,] -0.7191487 0.12070569 -3.997669

Computing WTP with draws

\[\hat{\boldsymbol{\omega}} = \frac{\hat{\boldsymbol{\beta}}}{-\hat{\alpha}}\]

draws_other <- draws[, 2:ncol(draws)]
draws_price <- draws[, 1]
draws_wtp <- draws_other / (-1 * draws_price)
head(draws_wtp)
#>           [,1]      [,2]
#> [1,] 0.1512085 -5.926725
#> [2,] 0.1002107 -5.647039
#> [3,] 0.1272465 -5.964472
#> [4,] 0.2406366 -5.597662
#> [5,] 0.1962604 -5.633497
#> [6,] 0.1678452 -5.558891

Mean WTP with confidence interal

logitr::ci(draws_wtp)
#>         mean       lower     upper
#> 1  0.1429468  0.03650848  0.250882
#> 2 -5.7176206 -5.98406591 -5.469265

Practice Question 2

Suppose we estimate the following utility model describing preferences for cars:

\[ \tilde{u}_j = \alpha p_j + \beta_1 x_j^{\mathrm{mpg}} + \beta_2 x_j^{\mathrm{elec}} + \varepsilon_j \]

The estimated model produces the following coefficients and hessian:

  • \(\alpha\): -0.7
  • \(\beta_1\): 0.1
  • \(\beta_2\): -4.0

\[ \nabla_{\beta}^2 \ln(\mathcal{L}) = \begin{bmatrix} -6000 & 50 & 60 \\ 50 & -700 & 50 \\ 60 & 50 & -300 \end{bmatrix} \]

  1. Generate 10,000 draws of the model coefficients using the estimated coefficients and hessian. Use the mvrnorm() function from the MASS library.

  2. Use the draws to compute the mean WTP and 95% confidence intervals of WTP for fuel economy and electric car vehicle type.

Computing WTP from an estimated model


1. Open logitr-cars
2. Open code/6.1-compute-wtp.R

Your Turn

As a team, compute the WTP from an estimated model you used in your pilot analysis report

Week 12: WTP & Simulations

1. Computing “Willingness to Pay” (WTP)

2. Incorporating Uncertainty via Simulation

3. Directly Estimating WTP

4. Simulating Market Shares

Willingness to Pay (WTP)

“Preference Space”
\[\tilde{u}_j = \alpha p_j + \boldsymbol{\beta} x_j + \tilde{\varepsilon_j}\]
“WTP Space”
\[\boldsymbol{\omega} = \frac{\boldsymbol{\beta}}{-\alpha}\]
\[\lambda = - \alpha\]
\[\tilde{u}_j = \lambda (\boldsymbol{\omega} x_j - p_j) + \tilde{\varepsilon_j}\]

WTP space models have non-convex
log-likelihood functions!

WTP space models have non-convex
log-likelihood functions!


Use multi-start loop with
random starting points

Computing WTP from an estimated model


1. Open logitr-cars
2. Open code/6.2-model-wtp.R

Your Turn

As a team, re-estimate the main model you used in your pilot analysis report, but now in the WTP space.

Try plotting your results (see 6.3-plot-wtp.R for examples)

Break

Week 12: WTP & Simulations

1. Computing “Willingness to Pay” (WTP)

2. Incorporating Uncertainty via Simulation

3. Directly Estimating WTP

4. Simulating Market Shares

We want to find \(\boldsymbol{\beta}\) by maximizing the log-likelihood

Simulate Market Shares

1. Define a market, \(X\)

2. Compute shares:

\[\hat{P}_j = \frac{e^{\hat{\boldsymbol{\beta}}'\boldsymbol{X}_j}}{\sum_{k=1}^J e^{\hat{\boldsymbol{\beta}}'\boldsymbol{X}_k}}\]

Simulate Market Shares

Simulate Market Shares

In R:

X %*% beta

Practice Question 1

Suppose we estimate the following utility model describing preferences for cars:

\[ \tilde{u}_j = \alpha p_j + \beta_1 x_j^{\mathrm{mpg}} + \beta_2 x_j^{\mathrm{elec}} + \varepsilon_j \]

The estimated model produces the following coefficients:

  • \(\alpha\): -0.7
  • \(\beta_1\): 0.1
  • \(\beta_2\): -4.0
  1. Use the estimated coefficients to compute the WTP for fuel economy and electric car vehicle type.

  2. Use the estimated coefficients to compute market shares for the alternatives in the following market:

alternative price mpg elec
1 15 20 0
2 30 100 1
3 20 40 0

Simulating Market Shares with Uncertainty

We can use the coefficients and hessian from a model to obtain draws that reflect parameter uncertainty

beta <- c(-0.7, 0.1, -4.0)

hessian <- matrix(c(
    -6000,   50,   60,
       50, -700,   50,
       60,   50, -300),
    ncol = 3, byrow = TRUE)
covariance <- -1 * solve(hessian)
draws <- MASS::mvrnorm(10^4, beta, covariance)

head(draws)
#>            [,1]       [,2]      [,3]
#> [1,] -0.6967780 0.17301065 -3.949949
#> [2,] -0.7229003 0.06867770 -4.018826
#> [3,] -0.6991102 0.05821212 -3.949547
#> [4,] -0.7092873 0.14409428 -4.000576
#> [5,] -0.6888186 0.12140738 -3.958083
#> [6,] -0.6767735 0.11266683 -3.990181

Simulating Market Shares with Uncertainty

Rely on the predict() function to compute shares with uncertainty.

Internally, it:

  1. Takes draws of \(\boldsymbol{\beta}\)
  2. Computes \(P_j\) for each draw
  3. Returns mean and confidence interval computed from draws

Simulating Market Shares with Uncertainty


1. Open logitr-cars
2. Open code/7.1-compute-market-sims.R

Your Turn

As a team:

  1. Develop one or two scenarios pitting your product against one or more competitors.
  2. Use one of your estimated models and the predict() function to predict market shares for those scenarios.
  3. Try plotting your results (see 7.2-plot-market-sims.R for examples)