The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
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 \(j\) a set of alternatives that has the greatest utility \(u_{j}\). Utility is a random variable that is modeled as \(u_{j} = v_{j} + \varepsilon_{j}\), where \(v_{j}\) is the “observed utility” (a function of the observed attributes such that \(v_{j} = f(\mathrm{\mathbf{x}}_{j})\)) and \(\varepsilon_{j}\) 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:
\[\begin{equation} u^*_{j} = \mathbf{β}^{*'} \mathrm{\mathbf{x}}_{j} + \alpha^{*} p_{j} + \varepsilon^{*}_{j}, \quad\quad \varepsilon^{*}_{j} \sim \textrm{Gumbel}\left(0, \sigma^2\frac{\pi^2}{6}\right) \label{eq:utility} \end{equation}\]
where \(\mathbf{β}^{*}\) is the vector of coefficients for non-price attributes \(\mathrm{\mathbf{x}}_{j}\), \(\alpha^{*}\) is the coefficient for price \(p_{j}\), and the error term, \(\varepsilon^{*}_{j}\), is an IID random variable with a Gumbel extreme value distribution of mean zero and variance \(\sigma^2(\pi^2/6)\). This model is not identified since there exists an infinite set of combinations of values for \(\mathbf{β}^{*}\), \(\alpha^{*}\), and \(\sigma\) that produce the same choice probabilities. In order to specify an identifiable model, the modeler must normalize equation (\(\ref{eq:utility}\)). One approach is to normalize the scale of the error term by dividing equation (\(\ref{eq:utility}\)) by \(\sigma\), producing the “preference space” utility specification:
\[\begin{equation} \left(\frac{u^*_{j}}{\sigma}\right) = \left( \frac{\mathbf{β}^{*}}{\sigma} \right)' \mathrm{\mathbf{x}}_{j} + \left( \frac{\alpha^{*}}{\sigma} \right) p_{j} + \left( \frac{\varepsilon^{*}_{j}}{\sigma} \right), \quad\quad \left( \frac{\varepsilon^{*}_{j}}{\sigma} \right) \sim \textrm{Gumbel}\left(0, \frac{\pi^2}{6}\right) \label{eq:utilityPreferenceScaled} \end{equation}\]
The typical preference space parameterization of the multinomial logit (MNL) model can then be written by rewriting equation (\(\ref{eq:utilityPreferenceScaled}\)) with \(u_j = (u^*_j / \sigma)\), \(\mathbf{β}= (\mathbf{β}^{*} / \sigma)\), \(\alpha = (\alpha^{*} / \sigma)\), and \(\varepsilon_{j} = (\varepsilon^{*}_{j} / \sigma)\):
\[\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 \(\mathbf{β}\) represents the marginal utility for changes in each non-price attribute, and \(\alpha\) represents the marginal utility obtained from price reductions. In addition, the coefficients \(\mathbf{β}\) and \(\alpha\) are measured in units of utility, which only has relative rather than absolute meaning.
The alternative normalization approach is to normalize equation (\(\ref{eq:utility}\)) by \(- \alpha^*\) instead of \(\sigma\), producing the “willingness-to-pay (WTP) space” utility specification:
\[\begin{equation} \left(\frac{u^*_{j}}{- \alpha^*}\right) = \left(\frac{\mathbf{β}^{*}}{- \alpha^{*}}\right)' \mathrm{\mathbf{x}}_{j} + \left(\frac{\alpha^{*}}{- \alpha^{*}}\right) p_{j} + \left(\frac{\varepsilon^{*}_{j}}{- \alpha^{*}}\right), \quad\quad \left(\frac{\varepsilon^{*}_{j}}{- \alpha^{*}}\right) \sim \textrm{Gumbel} \left(0, \frac{\sigma^2}{(- \alpha^{*})^2}\frac{\pi^2}{6} \right) \label{eq:utilityWtpScaled} \end{equation}\]
Since the error term in equation is scaled by \(\lambda^2 = \sigma^2/(- \alpha^{*})^2\), we can rewrite equation (\(\ref{eq:utilityWtpScaled}\)) by multiplying both sides by \(\lambda= (- \alpha^{*} / \sigma\)) and renaming \(u_j = (\lambda u^*_j /- \alpha^*)\), \(\mathbf{ω}= (\mathbf{β}^{*} /- \alpha^{*}\)), and \(\varepsilon_j = (\lambda \varepsilon^*_j / - \alpha^*)\):
\[\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 \(\mathbf{ω}\) represents the marginal WTP for changes in each non-price attribute, and \(\lambda\) represents the scale of the deterministic portion of utility relative to the standardized scale of the random error term.
The utility models in equations \(\ref{eq:utilityPreference}\) and \(\ref{eq:utilityWtp}\) represent the preference space and WTP space utility specifications, respectively. In equation \(\ref{eq:utilityPreference}\), WTP is estimated as \(\hat{\mathbf{β}} / \hat{- \alpha}\); in equation \(\ref{eq:utilityWtp}\), WTP is simply \(\hat{\mathbf{ω}}\).
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.