Problem bank

Problem 235 of 333MediumStatisticsP235

Logistic regression on perfectly separated data

  1. You have six observations with x=1,2,3,4,5,6x = 1, 2, 3, 4, 5, 6 and y=0,0,0,1,1,1y = 0, 0, 0, 1, 1, 1. You fit a logistic regression of yy on xx with an intercept. What does the software return, and why? How would you fix it?