Métriques de cohortes

Customer Segmentation in Python

Karolis Urbonas

Head of Data Science, Amazon

Rétention client : table cohort_counts

  • Combien de clients initialement dans chaque cohorte dans la table cohort_counts ?

$$

comptes_clients_rétention_1

Customer Segmentation in Python

Rétention client : table cohort_counts

  • Combien de clients initialement dans chaque cohorte ?
  • Combien étaient actifs les mois suivants ?

rétention_clients_2

Customer Segmentation in Python

Calculer le taux de rétention

  1. Stocker la première colonne comme cohort_sizes
    cohort_sizes = cohort_counts.iloc[:,0]
    
  2. Diviser toutes les valeurs de la table cohort_counts par cohort_sizes
    retention = cohort_counts.divide(cohort_sizes, axis=0)
    
  3. Examiner la table de rétention
    retention.round(3) * 100
    
Customer Segmentation in Python

Table de rétention

table_rétention

Customer Segmentation in Python

Autres métriques

grouping = online.groupby(['CohortMonth', 'CohortIndex'])

cohort_data = grouping['Quantity'].mean()
cohort_data = cohort_data.reset_index()
average_quantity = cohort_data.pivot(index='CohortMonth', columns='CohortIndex', values='Quantity')
average_quantity.round(1)
Customer Segmentation in Python

Quantité moyenne par cohorte

quantité_moyenne

Customer Segmentation in Python

Passons à la pratique !

Customer Segmentation in Python

Preparing Video For Download...