Example of Binary Logistic Regression

A marketing consultant for a cereal company investigates the effectiveness of a TV advertisement for a new cereal product. The consultant shows the advertisement in a specific community for one week. Then the consultant randomly samples adults as they leave a local supermarket to ask whether they saw the advertisements and bought the new cereal. The consultant also asks adults what their annual household income is.

Because the response is binary, the consultant uses binary logistic regression to determine how the advertisement and income are related to whether or not the adults sampled bought the cereal.

  1. Open the sample data, CerealPurchase.MTW.
  2. Open the Binary Logistic Regression dialog box.
    • Mac: Statistics > Regression > Binary Logistic Regression
    • PC: STATISTICS > Binary Logistic > Binary Logistic Regression
  3. From the drop-down list, select Response in binary response/frequency format.
  4. In Response, enter Bought.
  5. In Continuous predictors, enter Income.
  6. In Categorical predictor, enter ViewAd.
  7. Click Options. In Confidence level, enter 90.
  8. Click OK.

Interpret the results

The Deviance table shows which predictors have a statistically significant relationship with the response. The consultant uses a 0.10 significance level and the results indicate that the predictor ViewAd has a statistically significant relationship with the response. Income does not have a statistically significant relationship with the response because the p-value is greater than 0.10. The consultant may want to refit the model without the income variable.

The odds ratio for adults that saw the ad indicates that they are about 3 times more likely to purchase the cereal than adults who have not seen the ad.

The goodness-of-fit tests are all greater than the significance level of 0.05, which indicates that there is not enough evidence to conclude that the model does not fit the data. The deviance R2 value indicates that the model explains approximately 8.8% of the deviance in the response.

Regression Equations
ViewAd
 
Response Information
Variable
Value
Count
 
(Event)
 
 
 
 
Deviance Table
Source
DF
Adj Dev
Adj Mean
Chi-Square
P-Value
Income
ViewAd
 
 
 
 
 
Model Summary
Deviance R-sq
Deviance R-sq(adj)
AIC
Coefficients
Term
Coef
SE Coef
Z-Value
P-Value
Yes
Odds Ratios for Continuous Predictor
 
Odds Ratio
Odds Ratios for Categorical Predictor
Level A
Level B
Odds Ratio
Yes
Odds ratio for level A relative to level B
Goodness-of-Fit Tests
Test
DF
Chi-Square
P-Value
Fits and Diagnostics for Unusual Observations
Obs
Observed Probability
Fit
Resid
Std Resid
 
R Large residual
By using this site you agree to the use of cookies for analytics and personalized content.  Read our policy