Logistic regression and classification
Predicting yes/no outcomes such as churn or conversion, and measuring how good the predictions are.
Lesson 20 of 24~32 min of learningIncludes ~22 min for questions and tasks
Contents1 of 60 steps
Alex Tutor
You
Alex Tutor
You
Alex Tutor
Alex Tutor
Question 1
What's the main problem with fitting a plain linear regression to a yes/no outcome coded as 0 and 1?
Alex Tutor
You
Alex Tutor
Alex Tutor
Question 2
If the probability of a customer churning is 0.8, what are the odds of churning?
Units: e.g. 2.0
Alex Tutor
You
Alex Tutor
Alex Tutor
You
Alex Tutor
Question 3
CatChow's churn model is ln(odds)=−2+0.8×months_since_last_purchase. Predict the probability of churn for a customer with 3 months since their last purchase.
Units: 0 to 1, e.g. 0.5
You
Alex Tutor
Alex Tutor
You
Alex Tutor
Alex Tutor
Question 4
An odds ratio of 2.23 for a predictor means that each extra unit of the predictor doubles (roughly) the predicted probability of the outcome.
Alex Tutor
You
Alex Tutor
Alex Tutor
You
Alex Tutor
Alex Tutor
Alex Tutor
Question 5
Match each confusion-matrix cell to its meaning for a churn model.
Tap an answer, then tap the row it belongs to. You can also drag.
- Model predicted churn, and the customer really churned
- Model predicted churn, but the customer stayed
- Model predicted the customer would stay, but they churned
- Model predicted the customer would stay, and they stayed
Answers left to place
You
Alex Tutor
You
Alex Tutor
Question 6
A churn model's confusion matrix: 40 true positives, 10 false positives, 20 false negatives, 130 true negatives. Compute precision.
Units: 0 to 1, e.g. 0.5
You
Alex Tutor
Alex Tutor
Question 7
You lower the classification threshold for the churn model (flagging more customers as at risk). Which of these typically happen? Select all that apply.
Alex Tutor
You
Alex Tutor
You
Alex Tutor
Question 8Short answer · AI-checked task
CatChow's churn model flags customers above a threshold for a $5 retention email. A churned customer costs about $150 in lost lifetime value on average. Would you want a higher or lower classification threshold, and why? Answer in 2-4 sentences.
Write your answer and get a score with feedback from our AI reviewer.
Log in to get AI feedbackYou
Alex Tutor
Alex Tutor
Question 9Case · AI-checked task
Recommend whether CatChow should lower the churn model's classification threshold.
CatChow's churn model (ln(odds)=−2+0.8×months_since_last_purchase) is currently run at a 0.5 threshold, giving this confusion matrix on last month's customers: 40 true positives, 10 false positives, 20 false negatives, 130 true negatives. Retention emails cost about $5 each; a churned customer costs roughly $150 in lost lifetime value. The retention team wants to know whether to lower the threshold to flag more customers. Write a short recommendation covering the current precision and recall, the cost trade-off, and what you'd suggest next.
Write your answer and get a score with feedback from our AI reviewer.
Log in to get AI feedbackAlex Tutor
That’s the lesson. You answered every task — nicely done.