Building a Customer Churn Prediction Model with Logistic Regression
Описание и применение
Создана модель логистической регрессии для прогнозирования оттока клиентов телеком‑компании, достигнута точность около 80 %.
Задача
Identify telecom customers likely to churn to enable proactive retention strategies.
Результат
Achieved ~80% accuracy on validation set, identified contract type as most informative categorical feature, and demonstrated end‑to‑end ML workflow from data prep to model interpretation.
Рабочий процесс
- Explore dataset: target variable, missing values, feature distributions
- Compute feature importance: risk ratio/difference, mutual information, correlation
- Encode categorical features with Scikit‑Learn DictVectorizer to 45‑column matrix
- Train logistic regression model on encoded data
- Evaluate model accuracy (~80%) and interpret weights
- Create smaller model with selected features and manual prediction calculation
Доказательства
I trained a logistic regression model using Scikit‑Learn and achieved approximately 80% accuracy on the validation set.
One finding that stood out was that contract type had the highest mutual information among the categorical features we examined.
- Дата записи: 2026-10-12T11:41:02.827Z