Cohortstatistieken

Klantsegmentatie in Python

Karolis Urbonas

Head of Data Science, Amazon

Klantretentie: `cohort_counts`-tabel

  • Hoeveel klanten zaten er oorspronkelijk in elk cohort in de cohort_counts-tabel?

$$

klantaantallen_retentie_1

Klantsegmentatie in Python

Klantretentie: `cohort_counts`-tabel

  • Hoeveel klanten zaten er oorspronkelijk in elk cohort?
  • Hoeveel daarvan waren in latere maanden actief?

klantretentie_2

Klantsegmentatie in Python

Retentiegraad berekenen

  1. Sla de eerste kolom op als cohort_sizes
    cohort_sizes = cohort_counts.iloc[:,0]
    
  2. Deel alle waarden in de cohort_counts-tabel door cohort_sizes
    retention = cohort_counts.divide(cohort_sizes, axis=0)
    
  3. Bekijk de retentietabel
    retention.round(3) * 100
    
Klantsegmentatie in Python

Retentietabel

retentietabel

Klantsegmentatie in Python

Andere statistieken

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)
Klantsegmentatie in Python

Gemiddelde hoeveelheid per cohort

gemiddelde_hoeveelheid

Klantsegmentatie in Python

Laten we oefenen!

Klantsegmentatie in Python

Preparing Video For Download...