Logistic Regression
Logistic Regression
Regression
Mansour Ahmady Phoulady Predicting Customer Behavior Using Logistic Regression June 18, 2024 1/5
Scenario and Data
Scenario: Predict if a customer will make a purchase on the 11th day
based on their past behavior.
Data Overview:
Day Made Purchase? Amount Spent ($) Promotional Day?
1 1 25 1
2 0 0 0
3 1 30 0
4 1 45 1
5 0 0 0
6 1 20 0
7 0 0 0
8 1 50 1
9 0 0 0
10 1 40 1
Table: Purchasing Data for 10 Days
Mansour Ahmady Phoulady Predicting Customer Behavior Using Logistic Regression June 18, 2024 2/5
Model and Coefficients
Logit(p) = β0 + β1 x1 + β2 x2
Mansour Ahmady Phoulady Predicting Customer Behavior Using Logistic Regression June 18, 2024 3/5
Prediction for Day 11: Assuming
35spentandpromotionalday .Logit(p) = −1.0 + 0.05 × 35 + 1.0 × 1
Logit(p) = 1.75
Mansour Ahmady Phoulady Predicting Customer Behavior Using Logistic Regression June 18, 2024 4/5
Conclusion
Mansour Ahmady Phoulady Predicting Customer Behavior Using Logistic Regression June 18, 2024 5/5