Professional Documents
Culture Documents
PRIYANKA SINDHWANI
JANUARY, 14 2018
1
Objectives
• Recommendations
2
About the Data
• 3 months of data
3
Monetize users with repeated
Sales Overview purchase
4
Align marketing campaign
Weekly trends with purchase days
5
Need to tap into
Geographical trends potential market
60%
o 2% of Users have also ordered for different cities
50%
0%
HI T KA A N H AL
o Sales in week 13 saw an uplift from Delhi DE
L
JA
RA TA SH
TR
ST
HA
AD
ES
EN
G
GU NA A JA PR B
KA
R AR RA R ES
T
AH TA W
M UT
6
Customer segmentation
Definition of segments
o 5X5 Segmentation grid defining recency and frequency
o 5 Macro segment MACROSEGMENT ROWS
>> Stars : Customers with high recency and frequency
more than 3 Stars 44|34|54|35|45|55
>> Potential Loyalist : High recency and frequency Potential Loyalist 32|42|52|33|43|53
between 2 and 3 New 31|41|51
>> New : High recency and frequency is equal to 1 Sliding 14|24|15|25
>> Sliding: Low on recency but frequency is
Hibernating 11|21|12|22|13|23
more than 3
>>Hibernating : Low on recency and frequency
7
Focus on potential loyalist
Segmentation Strategy and sliding
REACTIVATE NURTURE
frequency
HIBERNATING
17% STARS 28%
3k 6k
recency
Week 1 Week 13
8
Monthly forecast for inventory
Inventory prediction management
Assumption: As only 13 data points to work with, therefore assumption that data has no trend or seasonality
Method Used : Single exponential forecasting method
Forecast : Top 12 selling products
Week 14
3000
2500
2000
1500
1000
500
0
s c ic cs ct l s
in eti si v
e
ni c id na tic nu ati
c
ai
d
m i ta du gi io lc o Ns
am ab n de
An
o
an
b am
vit tid
i rte pi am pr
An
ti yo th
ti pe rli ist a
An
ti s
ul An y
yp
e h rm M
tia
M tih An
ti
De An
An ntih
A
9
Market Basket Analysis
Data Observations
o 285 transactions
10
Top Associations
Total of 121 rules generated
TOP 10 RULES
lhs rhs support confidence lift
[1] {Antianginal,Antihypertensive,Multivitamins} => {Ayurvedic product} 0.007017544 0.6666667 27.14286
[2] {Antifungal,Antihypertensive} => {Myoclonus} 0.007017544 0.6666667 17.27273
[3] {Antihypertensive,Ayurvedic product,Multivitamins} => {Antianginal} 0.007017544 1.0000000 14.25000
[4] {Antidiabetic,Antihypertensive,Derma product} => {Antianginal} 0.007017544 1.0000000 14.25000
[5] {Antidiabetic,Derma product,Multivitamins} => {Antianginal} 0.007017544 1.0000000 14.25000
[6] {Antidiabetic,Derma product} => {Antianginal} 0.010526316 0.7500000 10.68750
[7] {Antacid,Antihistaminics} => {Derma product} 0.007017544 1.0000000 10.17857
[8] {Antihypertensive,Ayurvedic product} => {Antianginal} 0.007017544 0.6666667 9.50000
[9] {Antibiotic,Antidiabetic} => {Antihistaminics} 0.007017544 1.0000000 9.50000
[10] {Antacid,Antibiotic} => {Antiasthamatic} 0.007017544 0.5000000 8.90625
>> The table above states the top 10 associations based on lift
>> This can be read as follows
eg : rule 10: Customer buying Antacid, Antibiotic is 8 times more likely to
buy Antiasthamatic than typical customer
11
Package discounts on meds brought
Valid Associations together
o Rubifacient, Anthelmintic,
Antihyperlipidemic, Laxative and
Antidepresant are 3 times more likely to buy
Multivitamins
o Customer ordering
Antiasthamatic,Antihypertensive are 8 times
more likely to order Antacid lhs
Top 10 rules
rhs support confidence lift
[1] {Rubifacient} => {Multivitamins} 0.007017544 1 3.275862
[2] {Anthelmintic} => {Multivitamins} 0.007017544 1 3.275862
[3] {Antihyperlipidemic,Laxative} => {Multivitamins} 0.007017544 1 3.275862
[4] {Antidiabetic,Nsaid} => {Multivitamins} 0.007017544 1 3.275862
[5] {Antianginal,Ayurvedic product} => {Multivitamins} 0.007017544 1 3.275862
[6] {Antacid,Ayurvedic product} => {Multivitamins} 0.007017544 1 3.275862
[7] {Antidiabetic,Ayurvedic product} => {Multivitamins} 0.010526316 1 3.275862
[8] {Antihyperlipidemic,Antihypertensive,Laxative} => {Multivitamins} 0.007017544 1 3.275862
[9] {Antianginal,Antihypertensive,Ayurvedic product} => {Multivitamins} 0.007017544 1 3.275862
For all rules click here [10] {Antidepresant,Antidiabetic,Antihypertensive} => {Multivitamins} 0.007017544 1 3.275862
12
Recommendations
o Declining over all trend, mainly because of decline sales in Maharashtra, need to monitor
sales decline
o Customers also place order for different cities, need to focus on customer experience to
increase loyalty
o Have continuous feedback and survey from hibernating and sliding customers
13
SQL syntax
Write a MySQL query that displays the customer_id, order_id, next order placed by the customer against
the same
SELECT
c.customer_id,
max(c.order_id),
max(c.or1)
FROM
(select order_id, 0 as or1, customer_id FROM temp
UNION ALL
select 0 as order_id, min(a.order_id) as or1, a.customer_id from order as a, temp b where a.customer_id =
b.customer_id and a.order_id <> b.order_id group by a.customer_id) as c
group by c.customer_id
14
SQL syntax
Write a MySQL query to determine the list of customers who placed orders with anti diabetic medicines in
the month of February from the cities where the number of orders placed has been greater than 2000 till
now
SELECT
customer_id,
count(order_id) as CountOrder,
State
FROM order
WHERE Date BETWEEN '2016-02-01' AND '2016-02-29' AND
disease_name = 'Antidiabetic'
GROUP BY customer_id
HAVING CountOrder > 2000;
15
THANK YOU
16