Customer Churn Prediction

Proyecto end-to-end de analisis de churn con Python, machine learning y visualizacion ejecutiva. El objetivo es detectar clientes con riesgo de abandono, explicar los segmentos criticos y proponer acciones de retencion.

Accuracy0.85rendimiento global
Recall churn1.00detecto todos los churn reales del test
Falsos positivos2clientes marcados en riesgo sin churn real
Principal variablemonthly_chargesimportancia 0.86

Evaluacion del modelo

El arbol de decision alcanza una exactitud de 0.85. En el set de prueba tuvo 2 verdaderos positivos, 9 verdaderos negativos, 2 falsos positivos y 0 falsos negativos.

Matriz de confusion

Variables relevantes

La variable con mayor peso fue monthly_charges, seguida por total_charges y support_calls_last_3m.

Importancia de variables

Insights de negocio

El mayor churn rate por contrato aparece en Month-to-month, con una tasa de 0.67.
El servicio de internet con mayor churn rate es Fiber, con una tasa de 0.61.
El modelo no dejo falsos negativos en el test set, pero si genero falsos positivos. Esto permite priorizar campanas de retencion con revision comercial previa.
Churn por contrato
Churn por internet
Churn por soporte
Errores por contrato

Pipeline del proyecto

Excel
Python
EDA
Decision Tree
Predicciones CSV
Reporte HTML
GitHub

Churn por segmento

Dimension Segmento Total_Clientes Clientes_Churn Churn_Rate
monthly_charge_segment (78.55, 92.0] 17 17 1.0000
support_calls_last_3m 5 4 4 1.0000
support_calls_last_3m 4 9 8 0.8889
support_calls_last_3m 3 9 6 0.6667
contract_type Month-to-month 30 20 0.6667
internet_service Fiber 31 19 0.6129
tenure_segment (0.928, 18.75] 35 20 0.5714
payment_method Debit 13 7 0.5385
payment_method Credit Card 25 13 0.5200
support_calls_last_3m 2 8 2 0.2500

Errores por segmento

Dimension Segmento Tipo_Error Cantidad
internet_service DSL TN 6
support_calls_last_3m 0 TN 4
contract_type One year TN 4
payment_method Credit Card TN 4
payment_method Transfer TN 4
monthly_charge_segment (50.875, 63.55] TN 4
tenure_segment (1.929, 19.5] TN 4
contract_type Month-to-month TN 3
monthly_charge_segment (63.55, 76.225] TN 3
internet_service Fiber TN 3

Recomendaciones