星巴克推荐菜单的数据分析

该项目使用模拟的星巴克移动应用客户数据进行分析,旨在通过不同的优惠策略提高销售额。研究了用户行为、人口统计信息和交易记录,通过数据预处理、多变量分析,构建和比较了多个机器学习模型,发现BOGO和折扣优惠最受欢迎,成年人和男性顾客具有较高消费潜力。最终选择了Logistic Regression模型并进行了优化,提出应针对特定客户群体提供定制优惠。
摘要由CSDN通过智能技术生成

Udacity Data Scientist Nano Degree - Capstone Project

Starbucks Offer Study

Project Introduction

This data set contains simulated data that mimics customer behavior on the Starbucks rewarding system in their mobile application. Once every few days, Starbucks sends out an offer to users of the mobile app. The message can be an advertisement for a drink or an actual offer such as a discount or BOGO (buy one get one free). Some users might not receive any offer during certain weeks. We are going to analyze three file:

  1. portfolio: containing offer ids and meta data about each offer (duration, type, etc.). 10 rows, 6 columns.
  2. profile: demographic data for each customer. 17000 rows, 5 columns.
  3. transcript: records for transactions, offers received, offers viewed, and offers completed. 306534 rows, 4 columns.

The process of our analysis will be by the following step: Define our Business question, understanding the data sets, Data preparation and wrangling, analyze the data, model the data, compare model performance, and finally selecting one model and improving it.

Business Model

Starbucks is wondering how they can increase the total sales revenue by providing different offers to different customers. That’s exactly the target of this project, namely, investigation of the corresponding offers according to customer profiles. The objective of Starbucks is to find out the relationship between customers patterns and offer types.

Data Model

Now, let’s go through the data tables, so as to get an overview of the data sets. The raw dataframes will be illustrated as follows.

  1. portfolio dataframe
    *portfolio*
  2. profile dataframe
    *profile*
  3. transcript dataframe
    *transcript*

Data preprocessing and wrangling

Based on what we have seen in the previous step, there needs to be some work to prepare the data for analysis and modeling.
For our first dataframe which is portfolio, we can see that the ‘channels’ column need some work. Why? because it contains a list, so each value in that list must have its own column. After separating each value, we will obviously need to drop the ‘channels’ column as it is no longer needed. The table will look like this:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值