Professional Documents
Culture Documents
PredictingRepeatBuyers
Consumerbrandsoftenofferdiscountstoattractnewshopperstobuytheirproducts.Themostvaluable
customersarethosewhoreturnafterthisinitialincentedpurchase.Withenoughpurchasehistory,itispossible
topredictwhichshoppers,whenpresentedanoffer,willbuyanewitem.However,identifyingtheshopperwho
willbecomealoyalbuyerpriortotheinitialpurchaseisamorechallengingtask.
So,herewearepredictingwhichcustomerswillbecomerepeatbuyers.Thedatausedforpredictioncontains
theTransactionhistoryofcustomers,theoffersdetailsi.e,category,companyandbrandonwhichtheoffer
wasgranted.
Thefeaturesthatwerecalculatedforthepredictionare:
userid:uniqueidofeachcustomer.
uniqe_category:Countofuniquecategoriesonwhichpurchasewasmadebythecustomer.
Totalcatgry_trans:Totaltransactionsonthecategory.
OfferCatgry_trans:Totaltransactionsonthecategoryonwhichofferwasgranted.
uniqe_cmpny:Countofuniquecompaniesonwhichpurchasewasmadebythecustomer.
Totalcmpny_trans:Totaltransactionsonthecompany.
OfferCmpny_trans:Totaltransactionsonthecompanyonwhichofferwasgranted.
uniqe_brand:Countofuniquebrandsonwhichpurchasewasmadebythecustomer.
Totalbrand_trans:Totaltransactionsonthebrand.
Offerbrand_trans:Totaltransactionsonthebrandonwhichofferwasgranted.
unique_CtgryCompanyBrand:Countofuniquecombinationsofcategory,companyandbrandonwhich
purchasewasmadebythecustomer.
TotalCtgryCompanyBrand_trans:Totaltransactionsonthecombinationsofcategory,companyandbrand.
OfferCtgryCompanyBrand_trans:Totaltransactionsonthecombinationsofcategory,companyandbrand
onwhichofferwasgranted.
has_bought_30:thenumberoftimesashopperhasboughtfromthecombinationofcategory,companyand
brandanofferinthe30daysbeforethedatethecouponwasoffered.
has_bought_60:thenumberoftimesashopperhasboughtfromthecombinationofcategory,companyand
brandanofferinthe60daysbeforethedatethecouponwasoffered.
has_bought_90:thenumberoftimesashopperhasboughtfromthecombinationofcategory,companyand
brandanofferinthe90daysbeforethedatethecouponwasoffered.
has_bought_120:thenumberoftimesashopperhasboughtfromthecombinationofcategory,companyand
brandanofferinthe120daysbeforethedatethecouponwasoffered.
has_bought_150:thenumberoftimesashopperhasboughtfromthecombinationofcategory,companyand
brandanofferinthe150daysbeforethedatethecouponwasoffered.
has_bought_180:thenumberoftimesashopperhasboughtfromthecombinationofcategory,companyand
brandanofferinthe180daysbeforethedatethecouponwasoffered.
amt_range[205:144]:numberofitemspurchasedbetweentheamountrange.
(ve)signdenotesreturn.
amt_range[144:83]:numberofitemspurchasedbetweentheamountrange.
(ve)signdenotesreturn.
amt_range[83:22]:numberofitemspurchasedbetweentheamountrange.
(ve)signdenotesreturn.
amt_range[22:38]:numberofitemspurchasedbetweentheamountrange.
(ve)signdenotesreturn.
qty_range[31:14]:numberofitemspurchasedbetweenthequantityrange.
(ve)signdenotesreturn.
qty_range[14:3]:numberofitemspurchasedbetweenthequantityrange.
(ve)signdenotesreturn.
le:///home/rajat/predicting_customers.html 1/4
21/07/2016 predicting_customers
qty_range[3:20]:numberofitemspurchasedbetweenthequantityrange.
qty_range[20:37]:numberofitemspurchasedbetweentheamountrange.
offers_per:Percentageoftransactionsontheoffer.
total_returnTrans:Percentageoftransactionsonreturneditems.
total_returnQty:Totalquantityofproductsreturned.
repeater:Theoutcomevariabletobepredicted(torf).
## randomForest 4.6-12
##
## Attaching package: 'ggplot2'
le:///home/rajat/predicting_customers.html 2/4
21/07/2016 predicting_customers
IncludingPlots
le:///home/rajat/predicting_customers.html 3/4
21/07/2016 predicting_customers
le:///home/rajat/predicting_customers.html 4/4