



























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




























CHAPTER 5; SECTION A: LOGIT, NESTED LOGIT, & PROBIT
Logit, Nested Logit, and Probit models are used to model a relationship between a dependent variable Y and one or more independent variables X. The dependent variable, Y, is a discrete variable that represents a choice, or category, from a set of mutually exclusive choices or categories. For instance, an analyst may wish to model the choice of automobile purchase (from a set of vehicle classes), the choice of travel mode (walk, transit, rail, auto, etc.), the manner of an automobile collision (rollover, rear-end, sideswipe, etc.), or residential location choice (high-density, suburban, exurban, etc.). The independent variables are presumed to affect the choice or category or the choice maker, and represent a priori beliefs about the causal or associative elements important in the choice or classification process. In the case of ordinal scale variables, an ordered logit or probit model can be applied to take advantage of the additional information provided by the ordinal over the nominal scale (not discussed here).
Examples: An analyst wants to model:
1. The effect of household member characteristics, transportation network characteristics, and alternative mode characteristics on choice of transportation **_mode; bus, walk, auto, carpool, single occupant auto, rail, or bicycle.
The observations on dependent variable Y are assumed to have been randomly sampled from the population of interest (even for stratified samples or choice-based samples).
Y is caused by or associated with the X’s, and the X’s are determined by influences (variables) ‘outside’ of the model.
There is uncertainty in the relation between Y and the X’s, as reflected by a scattering of observations around the functional relationship.
The distribution of error terms must be assessed to determine if a selected model is appropriate.
Discrete variable Y is the observed choice or classification, such as brand selection, transportation mode selection, etc. For grouped data, where choices are observed for homogenous experimental units or observed multiple times per experimental unit, the dependent variable is proportion of choices observed.
One or more continuous and/or discrete variables X, which describe the attributes of the choice maker or event and/or various attributes of the choices thought to be causal or influential in the decision or classification process.
Pavements Koehne, Jodi, Fred Mannering, and Mark Hallenbeck (1996). Analysis of Trucker and Motorist Opinions Toward Truck-lane Restrictions. Transportation Research Record #1560 pp. 73-82. National Academy of Sciences.
Traffic Mannering, Fred, Jodi Koehne and Soon-Gwan Kim. (1995). Statistical Assesssment of Public Opinion Toward Conversion of General-Purpose Lanes to High-Occupancy Vehicle Lanes. Transportation Research Record #1485 pp. 168-176. National Academy of Sciences.
Planning Koppelman, Frank S., and Chieh-Hua Wen (1998). Nested Logit Models: Which Are You Using? Transportation Research Record #1645 pp. 1-9. National Academy of Sciences.
Yai, Tetsuo, and Tetsuo Shimizu (1998). Multinomial Probit with Structured Covariance for Choice Situations with Similar Alternatives. Transportation Research Record #1645 pp. 69-75. National Academy of Sciences.
McFadden, Daniel. Modeling the Choice of Residential Location. (1978). Transportation Research Record #673 pp. 72-77. National Academy of Sciences.
Horowitz, Joel L. (1984) Testing Disaggregate Travel Demand Models by Comparing Predicted and Observed Market Shares. Transportation Research Record #976 pp. 1-7. National Academy of Sciences.
How is a choice model equation interpreted? How do continuous and indicator variables differ in the choice model? How are beta coefficients interpreted? How is the Likelihood Ratio Test interpreted? How are t-statistics interpreted? How are phi and adjusted phi interpreted? How are confidence intervals interpreted? How are degrees of freedom interpreted? How are elasticities computed and interpreted? When is the independence of irrelevant alternatives (IIA) assumption violated?
Should interaction terms be included in the model? How many variables should be included in the model? What methods can be used to specify the relation between choice and the X’s? What methods are available for fixing heteroscedastic errors?
What methods are used for fixing serially correlated errors? What can be done to deal with multi-collinearity? What is endogeneity and how can it be fixed? How does one know if the errors are Gumbel distributed?
Discrete choice models (logit, nested logit, and probit) are used to develop models of behavioral choice or of event classification. It is accepted a priori that the analyst doesn’t know the complexity of the underlying relationships, and that any model of reality will be wrong to some degree. Choice models estimated will reflect the a priori assumptions of the modeler as to what factors affect the decision process. Common applications of discrete choice models include choice of transportation mode, choice of travel destination choice, and choice of vehicle purchase decisions. There are many potential applications of discrete choice models, including choice of residential location, choice of business location, and transportation project contractor selection.
In order to postulate meaningful choice models, the modeler should review past literature regarding the choice context and identify factors with potential to affect the decision making process. These factors should drive the data-collection process—usually a survey instrument given to experimental units, to collect the information relevant in the decision making process. There is much written about survey design and data collection, and these sources should be consulted for detailed discussions of this complex and critical aspect of choice modeling
Transportation Planning Example: An analyst is interested in modeling the mode choice decision made by individuals in a region. The analyst reviews the literature and develops the following list of potential factors influencing the mode choice decision for most travelers in the region.
**_1. Trip maker characteristics (within the household context): Vehicle availability, possession of driver’s license, household structure (stage of life- cycle), role in household, household income (value of time)
Planning Example: In identifying the choice set of travel mode the analyst identifies the universal choice set C to consist of the following:
**_1. driving alone
The analyst identifies a family whose choice set is fairly restricted because the do not own a vehicle, and so their choice set Cn is given by:
**_1. sharing a ride
The modeler, who is an OBSERVER of the system, does not possess complete information about all elements considered important in the decision making process by all individuals making a choice, so Utility is broken down into 2 components, V and ε:
Uin = (Vin + εin); where; Uin is the overall utility of choice i for individual n, Vin is the systematic or measurably utility which is a function of xn and i for individual n and choice i εin includes idiosyncrasies and taste variations, combined with measurement or observations errors made by modeler, and is the random utility component.
The error term allows for a couple of important cases: 1) two persons with the same measured attributes and facing the same choice set make different decisions; 2) some individuals do not select the best alternative (from the modelers point of view it demonstrated irrational behavior).
The decision maker n chooses the alternative from which he derives the greatest utility. In the binomial or two-alternative case, the decision-maker chooses alternative 1 if and only if:
U1n ≥ U2n or when:
v 1 - v 2
n (^) ∫ ε ε ∞
V1n + ε1n ≥ V2n + ε2n.
In probabilistic terms, the probability that alternative 1 is chosen is given by:
Pr ( 1 ) = Pr (U 1 ≥ U 2 ) = Pr (V 1 + ε 1 ≥ V 2 + ε 2 ) = Pr (ε 2 - ε 1 ≤ V 1 - V 2 ).
Note that this equation looks like a cumulative distribution function for a probability density. That is, the probability of choosing alternative 1 (in the binomial case) is equal to the probability that the difference in random utility is less than or equal to the difference in deterministic utility.
If ε = ε 2 - ε 1 , which is the difference in unobserved utilities between alternatives 2 and 1 for travelers 1 through N (subscript not shown), then the probability distribution or density of ε, ƒ(ε), can be specified to form specific classes of models.
A couple of important observations about the probability density given by F (V 1 - V 2 ) can be made.
Thus, for binomial models of discrete choice:
v 1 - v 2
(^1 2) ∫ ∞
n
i 1
pi
y n 1
y ∏ n =
n
i
The cumulative distribution function, or CDF, typically looks like:
This structure for the error term is a general result for binomial choice models. By making assumptions about the probability density of the residuals, the modeler can choose between several different binomial choice model formulations. Two types of binomial choice models are most common and found in practice: the logit and the probit models. The logit model assumes a logistic distribution of errors, and the probit model assumes a normal distributed errors. These models, however, are not practical for cases when there are more than two cases, and the probit model is not easy to estimate (mathematically) for more than 4 to 5 choices.
Mathematical Estimation of Choice Models
Recall that choice models involve a response Y with various levels (a set of choices or classification), and a set of X’s that reflect important attributes of the choice decision or classification. Usually the choice or classification of Y is a modeled as a linear function or combination of the X’s. Maximum likelihood methods are employed to solve for the betas in choice models.
Consider the likelihood of a sample of N independent observations with probabilities p 1 , p 2 ,……,pn. The likelihood of the sample is simply the product of the individual likelihoods. The product is a maximum when the most likely set of p’s is used.
i.e. Likelihood L* = p 1 p 2 p 3 ……pn =
For the binary choice model:
L* = (β 1 , ……, βK) =
where, Prn (i) is a function of the betas, and i and j are alternatives 1 and 2 respectively. It is generally mathematically simpler to analyze the logarithm of L* , rather than the likelihood function itself. Using the fact that ln (z 1 z 2 ) = ln (z 1 ) + ln (z 2 ), ln (z)x^ = x ln (z), Pr (j)=1-Pr (i), and yjn = 1 – yin, the equation becomes:
F (ε) = cdf (ε)
Prn (i)
The maximum of L is solved by differentiating the function with respect to each of the beta’s and setting the partial derivatives equal to zero, or the values of β 1 , ……, βK that provides the maximum of L. In many cases the log likelihood function is globally concave, so that if a solution to the first order conditions exist, they are unique. This does not always have to be the case, however. Under general conditions the likelihood estimators can be shown to be consistent, asymptotically efficient, and asymptotically normal.
In more complex and realistic models, the likelihood function is evaluated as before, but instead of estimating one parameter, there are many parameters associated with X’s that must be estimated, and there are as many equations as there are X’s to solve. In practice the probabilities that maximize the likelihood function are likely to be different across individuals (unlike the simplified example above where all individuals had the same probability).
Because the likelihood function is between 0 and 1, the log likelihood function is negative. The maximum to the log-likelihood function, therefore, is the smallest negative value of the log likelihood function given the data and specified probability functions.
( ) ( ) ( )
1
in n in n
1
in n jn n
1
y n
y n
1
in^ jn
∑
∑
∑
∏
=
=
=
=
n
i
n
i
n
i
n
i
y n
y n
in jn
∑ (^) ∈
n
jn
in
j C
V
V n
_Similarly (and in practice), one could use the log likelihood function to derive the maximum likelihood estimates, where L = log (L) = Log [p_*^7 (1-p)^3 ] = Log p^7 + Log (1-p)^3 = 7 Log p + 3 Log (1-p).
Note that in this simple model p is the only parameter being estimated, so maximizing the likelihood function L _ or the log (_* L _) only requires one first order condition, the derivative of p with respect to log (_* L _)._*
The Multinomial Logit Model
The multinomial logit (MNL) model is the most commonly applied model to explain and forecast discrete choices due to its ease of estimation and foundation in utility theory. The MNL model is a general extension of the binomial choice model to more than two alternatives. The universal choice set is C, which contains j elements, and a subset of C for each individual Cn, defines their restricted choice sets. It should be noted that it is not a trivial task to define restricted choice sets for individuals. In most cases Jn for decision maker n is less than or equal to J, the total number of alternatives in the universal choice set, however it is often assumed that all decision makers face the same set of universal alternatives.
Without showing the derivation, which can be found in the references for this chapter, the MNL model is expressed as:
Where;
0.0 0.2 0.4 0.6 0.8 1. P
Log(L*)
′
′
n jn
in J
j
x
x n
1
β
β
The MNL model expresses the probability that a specific alternative is chosen is the exponent of the utility of the chosen alternative divided by the exponent of the sum of all alternatives (chosen and not chosen). The predicted probabilities are bounded by zero and one. There are several assumptions embedded in the estimation of MNL models.
The linear in parameters restriction is made for convenience of estimation, which enables simple and efficient estimation of parameters. When the functional form of the systematic component of the utility function is linear in parameters, the MNL model can be written as:
where xin and xjn are vectors describing the attributes of alternatives i and j as well as attributes of traveler n.
Succinctly stated, the IIA property states that for a specific individual the ratio of the choice probabilities of any two alternatives is entirely unaffected by the systematic utilities of any other alternatives. This property arises from the assumption in the derivation of the logit model that the error terms εn across individuals are independent. In other words, it is assumed that un- observed attributes (error terms) of alternatives are independent. In many cases this is an unrealistic assumption, and creates some difficulties. For example, if driver n has an unobserved (error term) preference for public transit, then public transit mode error terms will not be independent.
Another way to express IIA is that the ratio of choice probabilities of any two alternatives for a specific individual is entirely unaffected by the systematic utilities of any other alternatives.
because for traveler n a ‘new’ alternative has not been introduced. In estimating MNL models, the analyst must be cautious of cases similar to the red-bus/blue-bus problem, in which mode share should decrease by a factor for each of the ‘similar’ alternatives.
If one attempts an alternate solution where the original ‘bus’ share is split between RB and BB, and the correct ratios are retained, one obtains the same answer as previously.
This is an unrealistic forecast by the logit model, since the individual is forecast to use buses more than before, and auto and rail less, despite the fact that a new mode with new attributes has not been introduced. In reality, one would not expect the probability of auto to decline, because for traveler n a ‘new’ alternative has not been introduced. In estimating MNL models, the analyst must be cautious of cases similar to the red-bus/blue-bus problem, in which mode share should decrease by a factor for each of the ‘similar’ alternatives.
The IIA restriction does not apply to the population as a whole. That is, it does not restrict the shares of the population choosing any two alternatives to be unaffected by the utilities of other alternatives. The key in understanding this distinction is that for homogenous market segments IIA holds, but across market segments unobserved attributes vary, and thus the IIA property does not hold for a population of individuals.
A MNL therefore is an appropriate model if the systematic component of utility accounts for heterogeneity across individuals. In general, models with many socio-economic variables have a better chance of not violating IIA.
When IIA does not hold, there are various methods that can be used to ‘get around’ the problem, such as nested logit and probit models.
Elasticities of MNL
The analyst can use coefficients estimated in logit models to determine both disaggregate and aggregate elasticities, as well as cross-elasticities.
An example of dissaggregate direct elasticity is given by the following. An analyst wants to know the effect of a unit change in the value of some attribute on alternative mode utilities, or mode preferences for traveler n. The elasticity of traveler n for parameter k on alternative i is given by:
() n ink k
P i
n
− −
∑
∑
=
N
n
n
N
n
i n x Pi x
n jnk jk
1
1
Pr() ()
For example, assume that individual 18 (an observation in observed data) has an auto travel time of 51.0 minutes and transit travel time of 85.0 minutes. For this individual, the probability of choosing auto is given by plugging auto travel time and transit travel time into the MNL estimated on the sample of data:
This individual’s direct elasticity of auto travel time with respect to auto choice probability is calculated to obtain:
Thus for an additional minute of travel time in the auto, there would be a decrease of 0.39% in auto usage for this individual. Of course this is the statistical result, which suggests that over repeated choice occasions, the decision maker would use auto 1 time less in 100 per 3 minutes of additional travel time.
If the analyst was instead interested in the effect that travel time had on choosing mode j, say auto, where Pn (Auto) = .45, the analyst could simply set up a cross elasticity as follows:
which suggests that the deterministic utility of the Auto for traveler n increases by 22.5 given a unit increase of 1 minute of travel time to the bus stop.
This type of elasticity is simply the weighted average of individual elasticities across some subgroup of individuals who chose alternative i. This is useful for predicting the change in the expected mode share across the group who chose alternative i. The elasticity is given by:
Planning Example: A binary logit model was estimated on data from Washington, D.C. (see Ben-Akiva and Lerman, 1985). The following table (adapted from Ben-Akiva et. al.) shows the model results, specifically coefficient estimates, asymptotic standard errors, and the asymptotic t-statistic. These t-statistics represent the t-value (which corresponds to some probability) that the true model parameter is equal to zero. Recall that the critical values of for a two-tailed test are ± 1.65 and ± 1.96 for the 0.90 and 0. confidence levels respectively.
_Variable Name Coef. Estimate Standard Error t statistic Auto Constant 1.45 0.393 3. In-vehicle time (min) -0.00897 0.0063 -1. Out-of-vehicle time (min) -0.0308 0.0106 -2. Out of pocket cost -0.0115 0.00262 -4. Transit fare ** -0.00708 0.00378 -1. Auto ownership 0.770 0.213 3. Downtown workplace* -0.561 0.306 -1. (indicator variable)_**
*_ auto specific variable; transit specific variable_
Inspection of the estimation results suggests that all else being equal, the auto is the preferred alternative, since the alternative specific constant for auto is positive. Note that only one alternative specific constant is entered in the model. Also, all but one of the variables is statistically significant at the 10% level of significance.
The model shows that for an additional minute of in-vehicle travel time, the utility of that mode decreases. Since the variable is entered as “generic”, it reflects the effect of in vehicle travel time in either transit or auto. It might be believed that travelers do not have the same response to travel time by mode, and so this variable could be entered as alternative specific.
The model shows that out-of-vehicle time, entered as “generic”, is by a factor of about 3 more influential on utility than is in-vehicle time.
The model shows that travelers are sensitive to travel costs; utility for transit decreases as transit fare increases, and utility for auto decreases as out-of-pocket costs increase. Notice that auto riders are approximately doubly sensitive to travel costs as are transit riders.
Owning a vehicle provides greater utility for taking auto, as one would expect. Working in the downtown actually reduces the utility of the auto—presumably the downtown is easily accessed via transit, and the impedance to downtown via auto is great. Although part of the impedance may partly be cost and travel time, which has already been captured, there may be additional impedance due to availability and cost of parking, safety, and other factors.
Assess Goodness of Fit
There are several goodness of fit measures available for testing ‘how’ well a MNL model fits the data on which it was estimated.
The likelihood ratio test is a generic test that can be used to compare models with different levels of complexity. Let L (β′) be the maximum log likelihood attained with the estimated parameter vector β′, on which no constraints have been imposed. Let (β′c) be the maximum log likelihood attained with constraints applied to a subset of coefficients in β′. Then, asymptotically (i.e. for large samples) -2(L (β′c)-L (β′)) has a chi-square distribution with degrees of freedom equaling the number of constrained coefficients. Thus the above statistic, called the “likelihood ratio”, can be used to test the null hypothesis that two different models perform approximately the same (in explaining the data). If there is insufficient evidence to support the more complex model, then the simpler model is preferred. For large differences in log likelihood there is evidence to support preferring the more complex model to the simpler one.
In the context of discrete choice analysis, two standard tests are often provided. The first test compares a model estimated with all variables suspected of influencing the choice process to a model that has no coefficients whatsoever—a model that predicts equal probability for all choices. The test statistic is given by:
-2(L (0) - L (β′)) ≈ χ^2 , df = total number of coefficients
The null hypothesis, H 0 is that all coefficients are equal to 0, or, all alternatives are equally likely to be chosen. L (0) is the log likelihood computed when all coefficients including alternative specific constants are constrained to be zero, and L (β′) is the log likelihood computed with no constraints on the model.
A second test compares a complex model with another naïve model, however this model contains alternative specific constants for n-1 alternatives. This naïve model is a model that predicts choice probabilities based on the observed market shares of the respective alternatives. The test statistics is given by:
-2(L(C) - L (β′)) ≈ χ^2 , df = total number of coefficients
The null hypothesis, H 0 is that coefficients are zero except the alternative specific constants. L(C) is the log likelihood value computed when all slope coefficients are constrained to be equal to zero except alternative specific constants.
In general the analyst can conduct specification tests to compare ‘full’ models versus reduced models using the chi-square test as follows:
-2(L (F) - L(R)) ≈ χ^2 , df = total number of restrictions, = KF - KR