vignettes/utility_models.Rmd
utility_models.Rmd
In many applications of discrete choice models, modelers are interested in estimating consumer’s marginal “willingness-to-pay” (WTP) for different attributes. WTP can be estimated in two ways:
While the two procedures generally produce the same estimates of WTP for homogenous models, the same is not true for heterogeneous models where model parameters are assumed to follow a specific distribution, such as normal or log-normal (Train and Weeks 2005). For example, in a preference space specification, a normally distributed attribute parameter divided by a log-normally distributed price parameter produces a strange WTP distribution with large tails. In contrast, a WTP space specification allows the modeler to directly assume WTP is normally distributed. The package was developed to enable modelers to choose between these two utility spaces when estimating multinomial logit models.
The random utility model is a well-established framework in many fields for estimating consumer preferences from observed consumer choices (Louviere, Hensher, and Swait 2000; Train 2009). Random utility models assume that consumers choose the alternative a set of alternatives that has the greatest utility . Utility is a random variable that is modeled as , where is the “observed utility” (a function of the observed attributes such that ) and is a random variable representing the portion of utility unobservable to the modeler.
Adopting the same notation as in Helveston et al. (2018), consider the following utility model:
where is the vector of coefficients for non-price attributes , is the coefficient for price , and the error term, , is an IID random variable with a Gumbel extreme value distribution of mean zero and variance . This model is not identified since there exists an infinite set of combinations of values for , , and that produce the same choice probabilities. In order to specify an identifiable model, the modeler must normalize equation (). One approach is to normalize the scale of the error term by dividing equation () by , producing the “preference space” utility specification:
The typical preference space parameterization of the multinomial logit (MNL) model can then be written by rewriting equation () with , , , and :
$$\begin{equation} u_{j} = \mathbf{β}' \mathrm{\mathbf{x}}_{j} + \alpha p_{j} + \varepsilon_{j} \hspace{0.5in} \varepsilon_{j} \sim \textrm{Gumbel}\left(0,\frac{\pi^2}{6}\right) \label{eq:utilityPreference} \end{equation}$$
The vector represents the marginal utility for changes in each non-price attribute, and represents the marginal utility obtained from price reductions. In addition, the coefficients and are measured in units of utility, which only has relative rather than absolute meaning.
The alternative normalization approach is to normalize equation () by instead of , producing the “willingness-to-pay (WTP) space” utility specification:
Since the error term in equation is scaled by , we can rewrite equation () by multiplying both sides by ) and renaming , ), and :
$$\begin{equation} u_{j} = \lambda \left( \mathbf{ω}' \mathrm{\mathbf{x}}_{j} - p_{j} \right) + \varepsilon_{j} \hspace{0.5in} \varepsilon_{j} \sim \textrm{Gumbel}\left(0, \frac{\pi^2}{6}\right) \label{eq:utilityWtp} \end{equation}$$
Here represents the marginal WTP for changes in each non-price attribute, and represents the scale of the deterministic portion of utility relative to the standardized scale of the random error term.
The utility models in equations and represent the preference space and WTP space utility specifications, respectively. In equation , WTP is estimated as ; in equation , WTP is simply .