PSYC40005 Lecture 7: Logistic Regression and Loglinear Models
26 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is a characteristic of linear models?

  • Changes in y are always negatively accelerated
  • Changes in x produce the same change in y regardless of the value of x (correct)
  • Changes in x produce different changes in y depending on the value of x
  • Changes in x are always proportional to changes in y
  • What is an example of a scenario where a linear model might be inappropriate?

  • Predicting IQ from years of education
  • Predicting weight from height
  • Predicting height from weight
  • Predicting amount of food consumed (correct)
  • What is a characteristic of non-linear models?

  • Changes in y are always positively accelerated
  • Changes in x produce the same change in y regardless of the value of x
  • Changes in x produce different changes in y depending on the value of x (correct)
  • Changes in x are always proportional to changes in y
  • What is the shape of the non-linear model described in the lecture if changes in y get lower as x increases?

    <p>Negatively accelerated</p> Signup and view all the answers

    What is the primary reason for using the generalized linear model?

    <p>To explore datasets that do not conform to the assumptions of linear regression</p> Signup and view all the answers

    Which link function is used for modeling counts or frequencies?

    <p>Logarithm link</p> Signup and view all the answers

    What is the range of the predictors in logistic regression and what does the logistic function ensure about those predictors

    <p>Values from negative infinity to infinity AND the logistic function ensures that the predictors only between 0 and 1</p> Signup and view all the answers

    What is the primary advantage of using the logistic function in logistic regression?

    <p>It ensures the predicted values are always between 0 and 1</p> Signup and view all the answers

    What is the link used as a function of Y in the Genearlised Linear Model for binary variables?

    <p>Logistic Link</p> Signup and view all the answers

    What is the purpose of the link function in the generalized linear model?

    <p>To transform the response variable into a linear scale</p> Signup and view all the answers

    What is the main advantage of binary data not having an assumption of normality?

    <p>It eliminates the need for data transformation</p> Signup and view all the answers

    There is no homoscedasticity for logistic regression (equal variance) because

    <p>With binomially distributed data, the variance depends on the probability or frequency. As the probability/frequency approaches 0 or 1 the variances approaches 0</p> Signup and view all the answers

    What is the method used to fit the model to the data in binary logistic regression?

    <p>Maximum likelihood estimation</p> Signup and view all the answers

    What is the distribution of binary outcomes in binary logistic regression?

    <p>Bernoulli distribution</p> Signup and view all the answers

    What is the assumption about the observations in binary logistic regression?

    <p>Independent observations</p> Signup and view all the answers

    What is the result of exponentiating the log odds of 0.190?

    <p>1.21</p> Signup and view all the answers

    What is the relationship between the predictors and the probability in a logistic model?

    <p>Non-linear</p> Signup and view all the answers

    What is the effect of a one-unit increase in parental education on the log odds of taking algebra 2?

    <p>Increase by 0.380</p> Signup and view all the answers

    What is the relationship between the odds and the predictors in a logistic model?

    <p>Non-linear</p> Signup and view all the answers

    What is the purpose of exponentiating log odds?

    <p>To get the odds ratio</p> Signup and view all the answers

    What is the primary method used to estimate parameters in logistic regression?

    <p>Numerical methods</p> Signup and view all the answers

    Why is it easier to account for more variance in logistic regression when the mean is close to 0 or 1?

    <p>Because the variance is larger at extreme values</p> Signup and view all the answers

    What is the basis for calculating R2 in logistic regression?

    <p>Likelihood ratios comparing the model to the null model</p> Signup and view all the answers

    What adjustment is made to the Cox and Snell R2 by Nagelkerke?

    <p>Taking the ratio to its maximum possible value</p> Signup and view all the answers

    Why is it not possible to compare the variance explained in logistic regression to that of linear regression?

    <p>Because the variance depends on the proportion (mean)</p> Signup and view all the answers

    What does it mean to correctly predict values in logistic regression?

    <p>To estimate the probability of the response variable</p> Signup and view all the answers

    Study Notes

    Binary Data and Logistic Regression

    • Binary data come from a binomial or Bernoulli distribution
    • There are no assumptions of normality, linearity, or homoscedasticity (equal variances)
    • The variance of binomially distributed data depends on the probability or frequency
    • Variability is highest for intermediate probabilities and decreases for extreme probabilities (p = 0.02 and 0.99)

    Assumptions of Logistic Regression

    • Binary outcomes that are mutually exclusive
    • Independence of observations (as per usual)
    • Independent variables can be continuous or categorical
    • Model is fit to data using maximum likelihood estimation

    How Logistic Regression Works

    • Predicted probabilities are calculated from the model for each observation (0 or 1)
    • Likelihood of each observation is calculated according to a Bernoulli distribution
    • The closer the predicted probabilities are to the data, the higher the likelihood

    Linear vs Non-Linear Models

    • Linear models: changes in x produce the same change in y regardless of the value of x
    • Non-linear models: changes in x produce changes in y that depend on the value of x
    • Logistic regression is a non-linear model that predicts a binary variable from other variables

    Generalized Linear Model

    • A way to explore datasets that do not conform to the assumptions of linear regression
    • The appropriate function/link allows linear techniques to be employed, even if the data are not linear

    Logistic Regression Equation

    • Regression equation is substituted into the logistic function
    • Predictors can range from negative infinity to infinity, but the logistic function makes it such that the predictors only predict values between 0 and 1

    Interpreting Logistic Regression Results

    • A value of 1 is predicted if the predicted probability is > 0.5, and a value of 0 is predicted if the predicted probability is < 0.5
    • B is the log odds ratio
    • Log odds increase by a certain value for every unit increase in the predictor
    • Odds are exponentially related to the predictors, and probability is linked to the predictors via a logistic function

    Model Evaluation

    • Models should be compared using the Cox & Snell/Nagelkerke R2
    • R2 is not calculated based on the correlation or variation accounted for, but rather on likelihood ratios
    • The Cox and Snell (1989) approximation is a ratio of the log likelihood of the data under the model to the log likelihood of the data under the "null model" (no predictors)

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Related Documents

    Description

    This quiz covers the concepts of logistic regression and loglinear models, including linear models and their applications, as discussed in Lecture 7 of PSYC40005.

    More Like This

    Use Quizgecko on...
    Browser
    Browser