Multinomial Logistic Regression

Total Page:16

File Type:pdf, Size:1020Kb

Multinomial Logistic Regression 26-Osborne (Best)-45409.qxd 10/9/2007 5:52 PM Page 390 26 MULTINOMIAL LOGISTIC REGRESSION CAROLYN J. ANDERSON LESLIE RUTKOWSKI hapter 24 presented logistic regression Many of the concepts used in binary logistic models for dichotomous response vari- regression, such as the interpretation of parame- C ables; however, many discrete response ters in terms of odds ratios and modeling prob- variables have three or more categories (e.g., abilities, carry over to multicategory logistic political view, candidate voted for in an elec- regression models; however, two major modifica- tion, preferred mode of transportation, or tions are needed to deal with multiple categories response options on survey items). Multicate- of the response variable. One difference is that gory response variables are found in a wide with three or more levels of the response variable, range of experiments and studies in a variety of there are multiple ways to dichotomize the different fields. A detailed example presented in response variable. If J equals the number of cate- this chapter uses data from 600 students from gories of the response variable, then J(J – 1)/2 dif- the High School and Beyond study (Tatsuoka & ferent ways exist to dichotomize the categories. Lohnes, 1988) to look at the differences among In the High School and Beyond study, the three high school students who attended academic, program types can be dichotomized into pairs general, or vocational programs. The students’ of programs (i.e., academic and general, voca- socioeconomic status (ordinal), achievement tional and general, and academic and vocational). test scores (numerical), and type of school How the response variable is dichotomized (nominal) are all examined as possible explana- depends, in part, on the nature of the variable. If tory variables. An example left to the interested there is a baseline or control category, then the reader using the same data set is to model the analysis could focus on comparing each of the students’ intended career where the possibilities other categories to the baseline. With three or consist of 15 general job types (e.g., school, more categories, whether the response variable manager, clerical, sales, military, service, etc.). is nominal or ordinal is an important consider- Possible explanatory variables include gender, ation. Since models for nominal responses achievement test scores, and other variables in can be applied to both nominal and ordinal the data set. response variables, the emphasis in this chapter 390 26-Osborne (Best)-45409.qxd 10/9/2007 5:52 PM Page 391 Multinomial Logistic Regression 391 is on extensions of binary logistic regression to ODDS models designed for nominal response vari- ables. Furthermore, a solid understanding of the The baseline model can be viewed as the set models for nominal responses facilitates master- of binary logistic regression models fit simulta- ing models for ordinal data. A brief overview of neously to all pairs of response categories. With models for ordinal variables is given toward the three or more categories, a binary logistic end of the chapter. regression model is needed for each (nonredun- A second modification to extend binary dant) dichotomy of the categories of the response logistic regression to the polytomous case is the variable. As an example, consider high school need for a more complex distribution for the program types from the High School and response variable. In the binary case, the distri- Beyond data set (Tatsuoka & Lohnes, 1988). bution of the response is assumed to be bino- There are three possible program types: aca- mial; however, with multicategory responses, = demic, general, and vocational. Let P(Yi aca- the natural choice is the multinomial distribu- = = demic), P(Yi general), and P(Yi vocational) tion, a special case of which is the binomial dis- be the probabilities of each of the program types tribution. The parameters of the multinomial for individual i. Recall from Chapters 24 and 25 distribution are the probabilities of the cate- that odds equal ratios of probabilities. In our gories of the response variable. example, only two of the three possible pairs of The baseline logit model, which is sometimes program types are needed because the third can also called the generalized logit model, is the be found by taking the product of the other two. starting point for this chapter because it is a Choosing the general program as the reference, well-known model, it is a direct extension of the odds of academic versus general and the binary logistic regression, it can be used with odds of vocational versus general equal ordinal response variables, and it includes explanatory variables that are attributes of indi- P(Y = academic) viduals, which is common in the social sciences. i (1a) ( = ) The baseline model is a special case of the condi- P Yi general tional multinomial logit model, which can P(Yi = vocational) include explanatory variables that are character- . (1b) P(Y = general) istics of the response categories, as well as attri- i butes of individuals. The third odds, academic versus vocational, A word of caution is warranted here. In the equals the product of the two odds in (1a) and literature, the term multinomial logit model some- (1b)—namely, times refers to the baseline model, and sometimes it refers to the conditional multinomial logit P(Y = academic) model. An additional potential source of confu- i P(Y = vocational) sion lies in the fact that the baseline model is i (2) ( = )/ ( = ) a special case of the conditional model, which in = P Yi academic P Yi general . turn is a special case of Poisson (log-linear) P(Yi = vocational)/P(Yi = general) regression.1 These connections enable researchers to tailor models in useful ways and test interesting More generally, let J equal the number of cate- hypotheses that could not otherwise be tested. gories or levels of the response variable. Of the J(J – 1)/2 possible pairs of categories, only (J – 1) of them are needed. If the same category is used in the denominator of the (J – 1) odds, then the set MULTINOMIAL REGRESSION MODELS of odds will be nonredundant, and all other pos- sible odds can be formed from this set. In the One Explanatory Variable Model baseline model, one response category is chosen The most natural interpretation of logistic as the baseline against which all other response regression models is in terms of odds and odds categories are compared. When a natural baseline ratios; therefore, the baseline model is first pre- exists, that category is the best choice in terms of sented as a model for odds and then presented as convenience of interpretation. If there is not a a model for probabilities. natural baseline, then the choice is arbitrary. 26-Osborne (Best)-45409.qxd 10/9/2007 5:52 PM Page 392 392 BEST PRACTICES IN QUANTITATIVE METHODS As a Model for Odds When fitting the baseline model to data, the binary logistic regressions for the (J – 1) Continuing our example from the High odds must be estimated simultaneously to School and Beyond data, where the general pro- ensure that intercepts and coefficients for all gram is chosen as the baseline category, the first other odds equal the differences of the corre- model contains a single explanatory variable, the sponding intercepts and coefficients (e.g., α mean of five achievement test scores for each 3 = (α − α ) and β = (β − β ) in Equation 5). student (i.e., math, science, reading, writing, and 1 2 3 1 2 To demonstrate this, three separate binary civics). The baseline model is simply two binary logistic regression models were fit to the High logistic regression models applied to each pair of School and Beyond data, as well as the base- program types; that is, line regression model, which simultaneously estimates the models for all the odds. The ( = | ) estimated parameters and their standard P Yi academic xi = α + β (3) exp[ 1 1xi ] errors are reported in Table 26.1. Although P(Y = general|x ) i i the parameters for the separate and simulta- and neous cases are quite similar, the logical rela- tionships between the parameters when the ˆ ( = | ) models are fit separately are not met (e.g., β P Yi vocational xi = α + β , ˆ 1 exp[ 2 2xi ] (4) −β= 0.1133 + 0.0163 = 0.1746 ≠ 0.1618); P(Y = general|x ) 2 i i however, the relationships hold for simulta- βˆ −βˆ + neous estimation (e.g., 1 2 = 0.1099 = = = where P(Yi academic|xi), P(Yi general|xi), 0.0599 0.1698). = and P(Yi vocational|xi) are the probabili- Besides ensuring that the logical relation- ties for each program type given mean ships between parameters are met, a second achievement test score xi for student i, the advantage of simultaneous estimation is that it α β js are intercepts, and the js are regression is a more efficient use of the data, which in turn coefficients. The odds of academic versus leads to more powerful statistical hypothesis vocational are found by taking the ratio of tests and more precise estimates of parameters. (3) and (4), Notice that the parameter estimates in Table 26.1 from the baseline model have smaller stan- dard errors than those in the estimation of P(Y = academic|x ) α + β j i = exp[ 1 1xi ] separate regressions. When the model is fit ( = | ) α + β simultaneously, all 600 observations go into the P Yj vocational xi exp[ 2 2xi ] estimation of the parameters; however, in the = exp[(α1 − α2) + (5) separately fit models, only a subset of the obser- (β − β ) 1 2 xi ] vations is used to estimate the parameters (e.g., 453 for academic and general, 455 for academic = exp[α + β x ], 3 3 i and vocational, and only 292 for vocational and general).
Recommended publications
  • Small-Sample Properties of Tests for Heteroscedasticity in the Conditional Logit Model
    HEDG Working Paper 06/04 Small-sample properties of tests for heteroscedasticity in the conditional logit model Arne Risa Hole May 2006 ISSN 1751-1976 york.ac.uk/res/herc/hedgwp Small-sample properties of tests for heteroscedasticity in the conditional logit model Arne Risa Hole National Primary Care Research and Development Centre Centre for Health Economics University of York May 16, 2006 Abstract This paper compares the small-sample properties of several asymp- totically equivalent tests for heteroscedasticity in the conditional logit model. While no test outperforms the others in all of the experiments conducted, the likelihood ratio test and a particular variety of the Wald test are found to have good properties in moderate samples as well as being relatively powerful. Keywords: conditional logit, heteroscedasticity JEL classi…cation: C25 National Primary Care Research and Development Centre, Centre for Health Eco- nomics, Alcuin ’A’Block, University of York, York YO10 5DD, UK. Tel.: +44 1904 321404; fax: +44 1904 321402. E-mail address: [email protected]. NPCRDC receives funding from the Department of Health. The views expressed are not necessarily those of the funders. 1 1 Introduction In most applications of the conditional logit model the error term is assumed to be homoscedastic. Recently, however, there has been a growing interest in testing the homoscedasticity assumption in applied work (Hensher et al., 1999; DeShazo and Fermo, 2002). This is partly due to the well-known result that heteroscedasticity causes the coe¢ cient estimates in discrete choice models to be inconsistent (Yatchew and Griliches, 1985), but also re‡ects a behavioural interest in factors in‡uencing the variance of the latent variables in the model (Louviere, 2001; Louviere et al., 2002).
    [Show full text]
  • Logit and Ordered Logit Regression (Ver
    Getting Started in Logit and Ordered Logit Regression (ver. 3.1 beta) Oscar Torres-Reyna Data Consultant [email protected] http://dss.princeton.edu/training/ PU/DSS/OTR Logit model • Use logit models whenever your dependent variable is binary (also called dummy) which takes values 0 or 1. • Logit regression is a nonlinear regression model that forces the output (predicted values) to be either 0 or 1. • Logit models estimate the probability of your dependent variable to be 1 (Y=1). This is the probability that some event happens. PU/DSS/OTR Logit odelm From Stock & Watson, key concept 9.3. The logit model is: Pr(YXXXFXX 1 | 1= , 2 ,...=k β ) +0 β ( 1 +2 β 1 +βKKX 2 + ... ) 1 Pr(YXXX 1= | 1 , 2k = ,... ) 1−+(eβ0 + βXX 1 1 + β 2 2 + ...βKKX + ) 1 Pr(YXXX 1= | 1 , 2= ,... ) k ⎛ 1 ⎞ 1+ ⎜ ⎟ (⎝ eβ+0 βXX 1 1 + β 2 2 + ...βKK +X ⎠ ) Logit nd probita models are basically the same, the difference is in the distribution: • Logit – Cumulative standard logistic distribution (F) • Probit – Cumulative standard normal distribution (Φ) Both models provide similar results. PU/DSS/OTR It tests whether the combined effect, of all the variables in the model, is different from zero. If, for example, < 0.05 then the model have some relevant explanatory power, which does not mean it is well specified or at all correct. Logit: predicted probabilities After running the model: logit y_bin x1 x2 x3 x4 x5 x6 x7 Type predict y_bin_hat /*These are the predicted probabilities of Y=1 */ Here are the estimations for the first five cases, type: 1 x2 x3 x4 x5 x6 x7 y_bin_hatbrowse y_bin x Predicted probabilities To estimate the probability of Y=1 for the first row, replace the values of X into the logit regression equation.
    [Show full text]
  • Lecture 9: Logit/Probit Prof
    Lecture 9: Logit/Probit Prof. Sharyn O’Halloran Sustainable Development U9611 Econometrics II Review of Linear Estimation So far, we know how to handle linear estimation models of the type: Y = β0 + β1*X1 + β2*X2 + … + ε ≡ Xβ+ ε Sometimes we had to transform or add variables to get the equation to be linear: Taking logs of Y and/or the X’s Adding squared terms Adding interactions Then we can run our estimation, do model checking, visualize results, etc. Nonlinear Estimation In all these models Y, the dependent variable, was continuous. Independent variables could be dichotomous (dummy variables), but not the dependent var. This week we’ll start our exploration of non- linear estimation with dichotomous Y vars. These arise in many social science problems Legislator Votes: Aye/Nay Regime Type: Autocratic/Democratic Involved in an Armed Conflict: Yes/No Link Functions Before plunging in, let’s introduce the concept of a link function This is a function linking the actual Y to the estimated Y in an econometric model We have one example of this already: logs Start with Y = Xβ+ ε Then change to log(Y) ≡ Y′ = Xβ+ ε Run this like a regular OLS equation Then you have to “back out” the results Link Functions Before plunging in, let’s introduce the concept of a link function This is a function linking the actual Y to the estimated Y in an econometric model We have one example of this already: logs Start with Y = Xβ+ ε Different β’s here Then change to log(Y) ≡ Y′ = Xβ + ε Run this like a regular OLS equation Then you have to “back out” the results Link Functions If the coefficient on some particular X is β, then a 1 unit ∆X Æ β⋅∆(Y′) = β⋅∆[log(Y))] = eβ ⋅∆(Y) Since for small values of β, eβ ≈ 1+β , this is almost the same as saying a β% increase in Y (This is why you should use natural log transformations rather than base-10 logs) In general, a link function is some F(⋅) s.t.
    [Show full text]
  • Generalized Linear Models
    CHAPTER 6 Generalized linear models 6.1 Introduction Generalized linear modeling is a framework for statistical analysis that includes linear and logistic regression as special cases. Linear regression directly predicts continuous data y from a linear predictor Xβ = β0 + X1β1 + + Xkβk.Logistic regression predicts Pr(y =1)forbinarydatafromalinearpredictorwithaninverse-··· logit transformation. A generalized linear model involves: 1. A data vector y =(y1,...,yn) 2. Predictors X and coefficients β,formingalinearpredictorXβ 1 3. A link function g,yieldingavectoroftransformeddataˆy = g− (Xβ)thatare used to model the data 4. A data distribution, p(y yˆ) | 5. Possibly other parameters, such as variances, overdispersions, and cutpoints, involved in the predictors, link function, and data distribution. The options in a generalized linear model are the transformation g and the data distribution p. In linear regression,thetransformationistheidentity(thatis,g(u) u)and • the data distribution is normal, with standard deviation σ estimated from≡ data. 1 1 In logistic regression,thetransformationistheinverse-logit,g− (u)=logit− (u) • (see Figure 5.2a on page 80) and the data distribution is defined by the proba- bility for binary data: Pr(y =1)=y ˆ. This chapter discusses several other classes of generalized linear model, which we list here for convenience: The Poisson model (Section 6.2) is used for count data; that is, where each • data point yi can equal 0, 1, 2, ....Theusualtransformationg used here is the logarithmic, so that g(u)=exp(u)transformsacontinuouslinearpredictorXiβ to a positivey ˆi.ThedatadistributionisPoisson. It is usually a good idea to add a parameter to this model to capture overdis- persion,thatis,variationinthedatabeyondwhatwouldbepredictedfromthe Poisson distribution alone.
    [Show full text]
  • A Generalized Gaussian Process Model for Computer Experiments with Binary Time Series
    A Generalized Gaussian Process Model for Computer Experiments with Binary Time Series Chih-Li Sunga 1, Ying Hungb 1, William Rittasec, Cheng Zhuc, C. F. J. Wua 2 aSchool of Industrial and Systems Engineering, Georgia Institute of Technology bDepartment of Statistics, Rutgers, the State University of New Jersey cDepartment of Biomedical Engineering, Georgia Institute of Technology Abstract Non-Gaussian observations such as binary responses are common in some computer experiments. Motivated by the analysis of a class of cell adhesion experiments, we introduce a generalized Gaussian process model for binary responses, which shares some common features with standard GP models. In addition, the proposed model incorporates a flexible mean function that can capture different types of time series structures. Asymptotic properties of the estimators are derived, and an optimal predictor as well as its predictive distribution are constructed. Their performance is examined via two simulation studies. The methodology is applied to study computer simulations for cell adhesion experiments. The fitted model reveals important biological information in repeated cell bindings, which is not directly observable in lab experiments. Keywords: Computer experiment, Gaussian process model, Single molecule experiment, Uncertainty quantification arXiv:1705.02511v4 [stat.ME] 24 Sep 2018 1Joint first authors. 2Corresponding author. 1 1 Introduction Cell adhesion plays an important role in many physiological and pathological processes. This research is motivated by the analysis of a class of cell adhesion experiments called micropipette adhesion frequency assays, which is a method for measuring the kinetic rates between molecules in their native membrane environment. In a micropipette adhesion frequency assay, a red blood coated in a specific ligand is brought into contact with cell containing the native receptor for a predetermined duration, then retracted.
    [Show full text]
  • Week 12: Linear Probability Models, Logistic and Probit
    Week 12: Linear Probability Models, Logistic and Probit Marcelo Coca Perraillon University of Colorado Anschutz Medical Campus Health Services Research Methods I HSMP 7607 2019 These slides are part of a forthcoming book to be published by Cambridge University Press. For more information, go to perraillon.com/PLH. c This material is copyrighted. Please see the entire copyright notice on the book's website. Updated notes are here: https://clas.ucdenver.edu/marcelo-perraillon/ teaching/health-services-research-methods-i-hsmp-7607 1 Outline Modeling 1/0 outcomes The \wrong" but super useful model: Linear Probability Model Deriving logistic regression Probit regression as an alternative 2 Binary outcomes Binary outcomes are everywhere: whether a person died or not, broke a hip, has hypertension or diabetes, etc We typically want to understand what is the probability of the binary outcome given explanatory variables It's exactly the same type of models we have seen during the semester, the difference is that we have been modeling the conditional expectation given covariates: E[Y jX ] = β0 + β1X1 + ··· + βpXp Now, we want to model the probability given covariates: P(Y = 1jX ) = f (β0 + β1X1 + ··· + βpXp) Note the function f() in there 3 Linear Probability Models We could actually use our vanilla linear model to do so If Y is an indicator or dummy variable, then E[Y jX ] is the proportion of 1s given X , which we interpret as the probability of Y given X The parameters are changes/effects/differences in the probability of Y by a unit change in X or for a small change in X If an indicator variable, then change from 0 to 1 For example, if we model diedi = β0 + β1agei + i , we could interpret β1 as the change in the probability of death for an additional year of age 4 Linear Probability Models The problem is that we know that this model is not entirely correct.
    [Show full text]
  • Improving Exam Score Models Using the Logit-Normal Distribution
    Grades are not Normal: Improving Exam Score Models Using the Logit-Normal Distribution Noah Arthurs Ben Stenhaug Sergey Karayev Stanford University Stanford University Gradescope [email protected] [email protected] [email protected] Chris Piech Stanford University [email protected] ABSTRACT Understanding exam score distributions has implications for item response theory (IRT), grade curving, and downstream modeling tasks such as peer grading. Historically, grades have been assumed to be normally distributed, and to this day the normal is the ubiquitous choice for modeling exam scores. While this is a good assumption for tests comprised 0.2 0.4 0.6 0.8 0.2 0.4 0.6 0.8 of equally-weighted dichotomous items, it breaks down on Norm ali zed Exa m Score Normalized Exa m Score the highly polytomous domain of undergraduate-level ex- ams. The logit-normal is a natural alternative because it is has a bounded range, can represent asymmetric distri- butions, and lines up with IRT models that perform lo- gistic transformations on normally distributed abilities. To tackle this question, we analyze an anonymized dataset from Gradescope consisting of over 4000 highly polytomous un- dergraduate exams. We show that the logit-normal better 0.2 0.4 0.6 0.8 0.4 0.6 0.8 Normalized Exa m Score Norm ali zed Exa m Score models this data without having more parameters than the normal. In addition, we propose a new continuous polyto- mous IRT model that reduces the number of item-parameters Figure 1: Score histograms of four assignments, by using a logit-normal assumption at the item level.
    [Show full text]
  • Modeling Bounded Outcome Scores Using the Binomial-Logit-Normal Distribution
    Chilean Journal of Statistics Vol. 5, No. 2, September 2014, 3{14 Generalized Linear Models Research Paper Modeling Bounded Outcome Scores Using The Binomial-Logit-Normal Distribution Ye Liang1;∗, Dongchu Sun2, Chong He2 and Mario Schootman3 1Department of Statistics, Oklahoma State University, Stillwater, USA, 2Department of Statistics, University of Missouri, Columbia, USA, 3Washington University School of Medicine, St. Louis, USA (Received: 23 September 2013 · Accepted in final form: 30 September 2014) Abstract Bounded outcome scores are often encountered in health-related survey studies. Such scores are usually bounded and discrete and are often treated as categorical or ordinal data, which is not satisfactory in some scenarios. The binomial-logit-normal distribution, as a parametric model, is a useful alternative for the bounded outcome scores. The proposed model converges to the continuous logit-normal model and hence bridges the gap between discrete modeling and continuous modeling. This result is useful when the score is dense and smooth within its bounded support. A quality of life data is shown as an application. Keywords: health outcome · binomial-logit-normal · ordinal data · logistic regression · quality of life. Mathematics Subject Classification: Primary 60F05 · Secondary 62J12. 1. Introduction Bounded outcome scores are encountered in many survey studies, especially in survey studies involving health assessment. Examples are the Barthel index, drug compliance studies, pain relief studies and quality of life (QOL) studies (Lesaffre et al., 2007). In this paper, we present a QOL study as our motivation example. This is a survey study on breast cancer survivors, investigating their health-related QOL and comparing their QOL with that of community-dwelling women without any type of reportable cancer.
    [Show full text]
  • Logit and Probit Models
    York SPIDA John Fox Notes Logit and Probit Models Copyright © 2010 by John Fox Logit and Probit Models 1 1. Topics I Models for dichotmous data I Models for polytomous data (as time permits) I Implementation of logit and probit models in R c 2010 by John Fox York SPIDA ° Logit and Probit Models 2 2. Models for Dichotomous Data I To understand why logit and probit models for qualitative data are required, let us begin by examining a representative problem, attempting to apply linear regression to it: In September of 1988, 15 years after the coup of 1973, the people • of Chile voted in a plebiscite to decide the future of the military government. A ‘yes’ vote would represent eight more years of military rule; a ‘no’ vote would return the country to civilian government. The no side won the plebiscite, by a clear if not overwhelming margin. Six months before the plebiscite, FLACSO/Chile conducted a national • survey of 2,700 randomly selected Chilean voters. Of these individuals, 868 said that they were planning to vote yes, · and 889 said that they were planning to vote no. Of the remainder, 558 said that they were undecided, 187 said that · they planned to abstain, and 168 did not answer the question. c 2010 by John Fox York SPIDA ° Logit and Probit Models 3 I will look only at those who expressed a preference. · Figure 1 plots voting intention against a measure of support for the • status quo. Voting intention appears as a dummy variable, coded 1 for yes, 0 for · no.
    [Show full text]
  • Logistic Regression
    Newsom Psy 526/626 Multilevel Regression, Spring 2019 1 Logistic Regression Logistic regression involves a prediction equation in which one or more explanatory (predictor) variables is used to provide information about expected values of a binary response (dependent) variable. Ordinary least squares regression assumes that Y is distributed approximately normally in the population, and, because a binary response variable will not be normal, we need to consider a different type of model. Predicting the Probability that Y = 1 For a binary response variable, we can frame the prediction equation in terms of the probability of a discrete event occurring. Usual coding of the response variable is 0 and 1, with the event of interest (e.g., “yes” response, occurrence of an aggressive behavior, or heart attack), so that, if X and Y have a positive linear relationship, the probability that a person will have a score of Y = 1 will increase as values of X increase. For example, we might try to predict whether or not a couple is divorced based on the age of their youngest child. Does the probability of divorce (Y = 1) increase as the youngest child’s age (X) increases? If we take a hypothetical example, in which there were 50 couples studied and the children have a range of ages from 0 to 20 years, we could represent this tendency to increase the probability that Y = 1 with a graph, grouping child ages into four-year intervals for the purposes of illustration. Assuming codes of 0 and 1 for Y, the average value in each four-year period is the same as the estimated probability of divorce for that age group.
    [Show full text]
  • Generalized Linear Models Link Function the Logistic Equation Is
    Newsom Psy 525/625 Categorical Data Analysis, Spring 2021 1 Generalized Linear Models Link Function The logistic equation is stated in terms of the probability that Y = 1, which is π, and the probability that Y = 0, which is 1 - π. π ln =αβ + X 1−π The left-hand side of the equation represents the logit transformation, which takes the natural log of the ratio of the probability that Y is equal to 1 compared to the probability that it is not equal to one. As we know, the probability, π, is just the mean of the Y values, assuming 0,1 coding, which is often expressed as µ. The logit transformation could then be written in terms of the mean rather than the probability, µ ln =αβ + X 1− µ The transformation of the mean represents a link to the central tendency of the distribution, sometimes called the location, one of the important defining aspects of any given probability distribution. The log transformation represents a kind of link function (often canonical link function)1 that is sometimes given more generally as g(.), with the letter g used as an arbitrary name for a mathematical function and the use of the “.” within the parentheses to suggest that any variable, value, or function (the argument) could be placed within. For logistic regression, this is known as the logit link function. The right hand side of the equation, α + βX, is the familiar equation for the regression line and represents a linear combination of the parameters for the regression. The concept of this logistic link function can generalized to any other distribution, with the simplest, most familiar case being the ordinary least squares or linear regression model.
    [Show full text]
  • Binary Logistic Regression
    Binary Logistic Regression The coefficients of the multiple regression model are estimated using sample data with k independent variables Estimated Estimated Estimated slope coefficients (or predicted) intercept value of Y ˆ Yi = b0 + b1 X 1i + b2 X 2i ++ bk X ki • Interpretation of the Slopes: (referred to as a Net Regression Coefficient) – b1=The change in the mean of Y per unit change in X1, taking into account the effect of X2 (or net of X2) 2 – b0 Y intercept. It is the same as simple regression. Binary Logistic Regression • Binary logistic regression is a type of regression analysis where the dependent variable is a dummy variable (coded 0, 1) • Why not just use ordinary least squares? ^ Y = a + bx – You would typically get the correct answers in terms of the sign and significance of coefficients – However, there are three problems 3 Binary Logistic Regression OLS on a dichotomous dependent variable: Yes = 1 No = 0 Y = Support Privatizing Social Security 1 10 X = Income 4 Binary Logistic Regression – However, there are three problems 1. The error terms are heteroskedastic (variance of the dependent variable is different with different values of the independent variables 2. The error terms are not normally distributed 3. And most importantly, for purpose of interpretation, the predicted probabilities can be greater than 1 or less than 0, which can be a problem for subsequent analysis. 5 Binary Logistic Regression • The “logit” model solves these problems: – ln[p/(1-p)] = a + BX or – p/(1-p) = ea + BX – p/(1-p) = ea (eB)X Where: “ln” is the natural logarithm, logexp, where e=2.71828 “p” is the probability that Y for cases equals 1, p (Y=1) “1-p” is the probability that Y for cases equals 0, 1 – p(Y=1) “p/(1-p)” is the odds ln[p/1-p] is the log odds, or “logit” 6 Binary Logistic Regression • Logistic Distribution P (Y=1) x • Transformed, however, the “log odds” are linear.
    [Show full text]