เมตริกของโคฮอร์ต

การแบ่งกลุ่มลูกค้าด้วย Python

Karolis Urbonas

Head of Data Science, Amazon

การรักษาลูกค้า: ตาราง cohort_counts

  • ตาราง cohort_counts มีลูกค้าเริ่มต้นกี่รายในแต่ละโคฮอร์ต?

$$

customer_counts_retention_1

การแบ่งกลุ่มลูกค้าด้วย Python

การรักษาลูกค้า: ตาราง cohort_counts

  • แต่ละโคฮอร์ตมีลูกค้าเริ่มต้นกี่ราย?
  • มีลูกค้ากี่รายที่ยังคงใช้งานในเดือนต่อ ๆ มา?

customer_retention_2

การแบ่งกลุ่มลูกค้าด้วย Python

คำนวณอัตราการรักษาลูกค้า

  1. เก็บคอลัมน์แรกเป็น cohort_sizes
    cohort_sizes = cohort_counts.iloc[:,0]
    
  2. หารค่าทั้งหมดในตาราง cohort_counts ด้วย cohort_sizes
    retention = cohort_counts.divide(cohort_sizes, axis=0)
    
  3. ตรวจสอบตารางการรักษาลูกค้า
    retention.round(3) * 100
    
การแบ่งกลุ่มลูกค้าด้วย Python

ตารางการรักษาลูกค้า

ตารางการรักษาลูกค้า

การแบ่งกลุ่มลูกค้าด้วย Python

เมตริกอื่น ๆ

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)
การแบ่งกลุ่มลูกค้าด้วย Python

ปริมาณเฉลี่ยของแต่ละโคฮอร์ต

ปริมาณเฉลี่ย

การแบ่งกลุ่มลูกค้าด้วย Python

มาฝึกกันเถอะ!

การแบ่งกลุ่มลูกค้าด้วย Python

Preparing Video For Download...