SlideShare a Scribd company logo
1 of 19
R-LANGUAGE in
Retail Business
1
Author: Douglas Bernardini
• Retail store network
wish to offering ‘young’
products
• 25-35 year olds
• 5 Weeks Data
• 1 M Rows each week
• Random Sample of 20%
taken from each week
• Data Analysed using
Rstudio
• Summary(), Reshape2,
GoogleVis
2
Business Case
2
• Dunhumby: Customer science
company
• Use data and science to help retailers
and brands delight customers and
earn their loyalty.
• Dunhunby provide 117 weeks of till
dummy data. Each week’s data
consists of over 1M entries. This
analysis we will investigate five weeks
data.
3
Data Source
3
• Identify Young Adult and Young
Family Customers within the
customer dataset.
• Profile those customers using
categories such as
• Time they shop
• Day of the week
• Spend
• Affluence
• Compare Young Adult and Young
Family Customers with population
percentages.
4
Objectives
4
• The data was imported into R and a
random sample of 200,000
transactions was extracted for each
week.
• The samples were then combined
using the rbind() command and
summary statistics were generated.
A store location table was added to
the dataset to identify stores by
location in Ireland. This was to
enable the comparison with CSO
data.
5
R-Studio
5
6
Staticstics
6
SHOP_WEEK SHOP_DATE SHOP_WEEKDAY SHOP_HOUR QUANTITY
Min. :200607 Min. :20060410 Min. :1 Min. : 8.00 Min. : 1.000
1st Qu.:200608 1st Qu.:20060418 1st Qu.:2 1st Qu.:12.00 1st Qu.: 1.000
Median :200609 Median :20060427 Median :4 Median :15.00 Median : 1.000
Mean :200609 Mean :20060455 Mean :4 Mean :14.96 Mean : 1.452
3rd Qu.:200610 3rd Qu.:20060506 3rd Qu.:6 3rd Qu.:18.00 3rd Qu.: 1.000
Max. :200611 Max. :20060514 Max. :7 Max. :21.00 Max. :275
SPEND PROD_CODE PROD_CODE_10 PROD_CODE_20 PROD_CODE_30
Min. : 0.000 PRD0903052: 25671 CL00063: 45027 DEP00019: 84770 G00007 :219603
1st Qu.: 0.770 PRD0904358: 15579 CL00031: 33307 DEP00008: 82996 G00004 :208864
Median : 1.220 PRD0900121: 13863 CL00045: 22793 DEP00011: 73591 G00016 : 86704
Mean : 1.905 PRD0901265: 9531 CL00070: 22749 DEP00022: 54388 G00015 : 60254
3rd Qu.: 2.090 PRD0900830: 6751 CL00073: 21411 DEP00067: 51972 G00021 : 51972
Max. :484.900 PRD0901015: 5574 CL00067: 21362 DEP00052: 49826 G00013 : 49727
(Other) :923031 (Other):833351 (Other) :602457 (Other):322876
7
Staticstics
7
PROD_CODE_40 CUST_CODE CUST_PRICE
SENSITIVITY
CUST_LIFESTAGE
D00002 :495588 Blank :194512 Blank :194512 Blank :297533
D00003 :291852 CUST0000792020: 56 LA:224642 OA:103419
D00005 : 94612 CUST0000529404: 45 MM:361558 OF: 52011
D00001 : 90104 CUST0000298339: 34 UM:216322 OT:210764
D00008 : 17231 CUST0000395398: 33 XX: 2966 PE: 59909
D00004 : 5778 CUST0000456100: 33 YA:106363
(Other): 4835 (Other) :805287 YF:170001
BASKET_ID BASKET_SIZE BASKET_PRICE
SENSITIVITY
BASKET_TYPE
Min.:9.941e+14 L:707704 LA:276214 Full Shop :370547
1st Qu.:9.941e+14 M:238018 MM:467181 Small Shop:186766
Median :9.941e+14 S: 54278 UM:254889 Top Up :441728
Mean:9.941e+14 XX: 1716 XX : 959
3rd Qu.:9.941e+14
Max :9.941e+14
8
Staticstics
8
BASKET
DOMINANT
STORE_CODE STORE_FORMAT STORE_REGION
Fresh :503347 STORE00696: 4013 LS :637301 S02 :104217
Grocery: 95436 STORE01423: 3691 MS :212024 N01 : 99916
Mixed :386522 STORE02339: 3623 SS : 65509 N03 : 95487
Nonfood: 13736 STORE00729: 3576 XLS: 85166 W02 : 92210
XX : 959 STORE02504: 3489 N02 : 84354
STORE01758: 3468 S01 : 81194
(Other) :978140 (Other):442622
• Missing Data
• 20% of baskets were purchased by customers who didn’t have a customer
code.
• 30% of baskets are purchased by customers who do not have a Customer Life-
stage classification.
• Reclassification
• Given that there was no missing data for Basket Type and only 1% of data is
missing for Basket Size and Basket Sensitivity, I investigated the data using
summary statistics to see if I could reclassify “Other” and “Blanks” as per
CUST_LIFESTAGE.
• While similarities were identified within the dataset, I did not have sufficient
evidence to reclassify.
• Further work using Association Rules and Cluster Analysis is suggested.
9
Problems Encountered
9
• The stores stay open 7 days per week.
• The trading times are between 8am and
9pm although there may be some
variation at weekends.
• The quantity is the number of items of
the same product bought in each basket.
• The mean number of items was 1.45
items with a max of 275.
• The mean spend per basket was €1.9 with
a max of €485
• Product Codes are listed and the number
of baskets containing each product code.
• Customer Price Sensitivity:
• 22% baskets = LA (Less Affluent),
• 36% baskets = MM (Mid Market),
• 21.6% baskets = UM (Up Market),
• 3% = XX (unclassified).
• Customer Lifestage:
• 10% = OA (Old Age),
• 5% = OF (Older Families),
• 21% = OT (Other),
• 6% = PE (Pensioner),
• 11% = YA (Young Adult),
• 17% = YF (Young Family).
10
Retail Data Investigation
10
• 297533 baskets representing 30% of the
dataset did not have a Customer Life-
stage category assigned to them.
• Basket ID: All baskets have an ID.
• There are no blank variables.
• Basket Size:
• 71% = Large Baskets,
• 24% = Medium Baskets,
• 5% = Small Baskets.
• 194512 baskets, representing 19% of
baskets were not assigned a customer
price sensitivity.
11
Retail Data Investigation
11
• Customer Codes are listed with the
number of times each customer appeared
in the dataset.
• The most frequent customer from this
sample purchased 56 times in the store.
• However, 194,512 baskets were,
representing 19% of the data were
purchased by customers with no
customer number.
• Basket Price Sensitivity:
• 27.6% = LA (Less Affluent),
• 46.7% = MM (Mid Market),
• 25.4% = UM (Up Market),
• 0.2% = XX (Unclassified)
• Basket Type:
• Full Shop :37%,
• Small Shop:18.6%,
• Top Up :44% ,
• XX : 1%
• Basket Dominant Content:
• Fresh = 50%,
• Grocery = 10%,
• Mixed = 38%,
• Non Food = 1%,
• Unclassified = 1%.
12
Retail Data Investigation
12
• Store Code = Each store had a store code.
• Most popular store was STORE00696.
• Store Format:
• 64% = Large,
• 21% = Medium,
• 6.5% = Small
• 8.5% = Extra Large.
• Each store was identified by region.
13
Summary Statistics
13
• Young Adult and Young Family represent
28% of the Customer Dataset
• Summary() used to create summary stats in R
14
Summary Statistics
14
• Average Shopping Times
• Young Family – 14.9 pm
• 50% of shopping between 2pm and 6pm
• Young Adult – 15.9 pm
• 50% of shopping completed between 1pm and 6pm
• Day of Week
• No preferred shopping day for any of the Lifestage
categories.
• Subset(), mean(), quartile() used in R
15
Shopping Patterns
15
Region County YA YF (YF + YA) as a
Percentage of
Customer Base
E01 Kildare 7494 12423 27%
E02 Laois 7304 12182 27%
E03 Meath 7692 12381 27%
N01 Donegal 11071 17605 29%
N02 Monaghan 9368 14543 28%
N03 Cavan 9998 16122 27%
S01 Limerick 8443 14310 28%
S02 Cork 11071 16919 27%
S03 Kerry 8490 13714 28%
W01 Mayo 8256 13618 27%
W02 Galway 9807 15197 27%
W03 Roscommon 6857 11307 27%
16
YA & YF as % of Population
16
17
GoogleViS
17
• Young Adult and Young Family make up a greater proportion
of the customer base than the population %.
• 18% - Average Target Population in Ireland
• 28% - Average Target Population in Customer Database.
• Suggest running promotions between 1pm and 6pm.
• There is no preferred day for running promotions as
everyday is equally important.
18
Outcome
18
douglas.bernardini@d2-data.com
Questions?
19

More Related Content

Viewers also liked

B.Tech. Summer Training Report
B.Tech. Summer Training ReportB.Tech. Summer Training Report
B.Tech. Summer Training ReportShashank Narayan
 
Xmas party 2012
Xmas party 2012Xmas party 2012
Xmas party 2012chapmark
 
ISP Connectivity Webinar: No Longer a Black Box
ISP Connectivity Webinar: No Longer a Black BoxISP Connectivity Webinar: No Longer a Black Box
ISP Connectivity Webinar: No Longer a Black BoxThousandEyes
 
Brochure trường Anh ngữ BOC - Việt Nam
Brochure trường Anh ngữ BOC - Việt NamBrochure trường Anh ngữ BOC - Việt Nam
Brochure trường Anh ngữ BOC - Việt NamMYD Vietnam
 
Focus on Form LALS520 Stafford Lumsden
Focus on Form LALS520 Stafford LumsdenFocus on Form LALS520 Stafford Lumsden
Focus on Form LALS520 Stafford LumsdenStafford Lumsden
 
Pengembangan kurikulum pendidikan tinggi
Pengembangan kurikulum pendidikan tinggiPengembangan kurikulum pendidikan tinggi
Pengembangan kurikulum pendidikan tinggiSamuel Hadjo
 
10. analysis of statically indeterminate structures by the force method
10. analysis of statically indeterminate structures by the force method10. analysis of statically indeterminate structures by the force method
10. analysis of statically indeterminate structures by the force methodChhay Teng
 

Viewers also liked (10)

B.Tech. Summer Training Report
B.Tech. Summer Training ReportB.Tech. Summer Training Report
B.Tech. Summer Training Report
 
Xmas party 2012
Xmas party 2012Xmas party 2012
Xmas party 2012
 
ISP Connectivity Webinar: No Longer a Black Box
ISP Connectivity Webinar: No Longer a Black BoxISP Connectivity Webinar: No Longer a Black Box
ISP Connectivity Webinar: No Longer a Black Box
 
Brochure trường Anh ngữ BOC - Việt Nam
Brochure trường Anh ngữ BOC - Việt NamBrochure trường Anh ngữ BOC - Việt Nam
Brochure trường Anh ngữ BOC - Việt Nam
 
Focus on Form LALS520 Stafford Lumsden
Focus on Form LALS520 Stafford LumsdenFocus on Form LALS520 Stafford Lumsden
Focus on Form LALS520 Stafford Lumsden
 
Pengembangan kurikulum pendidikan tinggi
Pengembangan kurikulum pendidikan tinggiPengembangan kurikulum pendidikan tinggi
Pengembangan kurikulum pendidikan tinggi
 
Teacing by Principles - Form - Focused Instruction - Chapter 20
Teacing by Principles - Form - Focused Instruction - Chapter 20Teacing by Principles - Form - Focused Instruction - Chapter 20
Teacing by Principles - Form - Focused Instruction - Chapter 20
 
10. analysis of statically indeterminate structures by the force method
10. analysis of statically indeterminate structures by the force method10. analysis of statically indeterminate structures by the force method
10. analysis of statically indeterminate structures by the force method
 
Technology PowerPoint Presentations
Technology PowerPoint Presentations Technology PowerPoint Presentations
Technology PowerPoint Presentations
 
Tipos de torax
Tipos de toraxTipos de torax
Tipos de torax
 

Similar to R-language

Presentation final
Presentation finalPresentation final
Presentation finalSagar Das
 
2 strategic sourcing.pptx
2 strategic sourcing.pptx2 strategic sourcing.pptx
2 strategic sourcing.pptxAnish993330
 
Dominick’s retail analysis
Dominick’s retail analysisDominick’s retail analysis
Dominick’s retail analysisEeshan Srivastava
 
Big bazaar gen next store operations
Big bazaar gen next store operationsBig bazaar gen next store operations
Big bazaar gen next store operationsAshwarya Chaudhary
 
Natureview Farm- A Harvard Case Study
Natureview Farm- A Harvard Case StudyNatureview Farm- A Harvard Case Study
Natureview Farm- A Harvard Case StudyPawan Prasad K
 
Convenient store chain in Thailand
Convenient store chain in ThailandConvenient store chain in Thailand
Convenient store chain in ThailandDI Marketing
 
Weis Markets' People-First Data Strategy
Weis Markets' People-First Data Strategy Weis Markets' People-First Data Strategy
Weis Markets' People-First Data Strategy MediaPost
 
Category Management Food Storage
Category Management Food StorageCategory Management Food Storage
Category Management Food StorageTaylor Armour
 
What Are Your Market Numbers?
What Are Your Market Numbers?What Are Your Market Numbers?
What Are Your Market Numbers?Galena Ojiem
 
Final Meijer Presentation
Final Meijer Presentation Final Meijer Presentation
Final Meijer Presentation Karrah Bernat
 
Comic book Retailing plan
Comic book Retailing planComic book Retailing plan
Comic book Retailing planAshutosh Singh
 
Understanding urban distribution systems of coffee: The case of Addis
Understanding urban distribution systems of coffee:  The case of AddisUnderstanding urban distribution systems of coffee:  The case of Addis
Understanding urban distribution systems of coffee: The case of Addisessp2
 
Different meaning of "Shop&Go" concept in Vietnam
Different meaning of "Shop&Go" concept in VietnamDifferent meaning of "Shop&Go" concept in Vietnam
Different meaning of "Shop&Go" concept in VietnamDI Marketing
 
MBEC 6001 Pre-MBA Economics L1(1) (1) (5 files merged).pdf
MBEC 6001 Pre-MBA Economics L1(1) (1) (5 files merged).pdfMBEC 6001 Pre-MBA Economics L1(1) (1) (5 files merged).pdf
MBEC 6001 Pre-MBA Economics L1(1) (1) (5 files merged).pdfAhmedMousa724718
 
Inventrory Management
Inventrory ManagementInventrory Management
Inventrory ManagementGramercyone
 

Similar to R-language (20)

Presentation final
Presentation finalPresentation final
Presentation final
 
2 strategic sourcing.pptx
2 strategic sourcing.pptx2 strategic sourcing.pptx
2 strategic sourcing.pptx
 
Dominick’s retail analysis
Dominick’s retail analysisDominick’s retail analysis
Dominick’s retail analysis
 
Big bazaar gen next store operations
Big bazaar gen next store operationsBig bazaar gen next store operations
Big bazaar gen next store operations
 
Natureview Farm- A Harvard Case Study
Natureview Farm- A Harvard Case StudyNatureview Farm- A Harvard Case Study
Natureview Farm- A Harvard Case Study
 
[Survey] Vietnam mom's shopping behavior change
[Survey] Vietnam mom's shopping behavior change[Survey] Vietnam mom's shopping behavior change
[Survey] Vietnam mom's shopping behavior change
 
Convenient store chain in Thailand
Convenient store chain in ThailandConvenient store chain in Thailand
Convenient store chain in Thailand
 
Weis Markets' People-First Data Strategy
Weis Markets' People-First Data Strategy Weis Markets' People-First Data Strategy
Weis Markets' People-First Data Strategy
 
Baseline ppt
Baseline pptBaseline ppt
Baseline ppt
 
Category Management Food Storage
Category Management Food StorageCategory Management Food Storage
Category Management Food Storage
 
What Are Your Market Numbers?
What Are Your Market Numbers?What Are Your Market Numbers?
What Are Your Market Numbers?
 
Final Meijer Presentation
Final Meijer Presentation Final Meijer Presentation
Final Meijer Presentation
 
Markets for high-value commodities in Indonesia
Markets for high-value commodities in IndonesiaMarkets for high-value commodities in Indonesia
Markets for high-value commodities in Indonesia
 
Customer Segmentation
Customer SegmentationCustomer Segmentation
Customer Segmentation
 
Comic book Retailing plan
Comic book Retailing planComic book Retailing plan
Comic book Retailing plan
 
Understanding urban distribution systems of coffee: The case of Addis
Understanding urban distribution systems of coffee:  The case of AddisUnderstanding urban distribution systems of coffee:  The case of Addis
Understanding urban distribution systems of coffee: The case of Addis
 
CIDSE 2014 (13 May)
CIDSE 2014 (13 May)CIDSE 2014 (13 May)
CIDSE 2014 (13 May)
 
Different meaning of "Shop&Go" concept in Vietnam
Different meaning of "Shop&Go" concept in VietnamDifferent meaning of "Shop&Go" concept in Vietnam
Different meaning of "Shop&Go" concept in Vietnam
 
MBEC 6001 Pre-MBA Economics L1(1) (1) (5 files merged).pdf
MBEC 6001 Pre-MBA Economics L1(1) (1) (5 files merged).pdfMBEC 6001 Pre-MBA Economics L1(1) (1) (5 files merged).pdf
MBEC 6001 Pre-MBA Economics L1(1) (1) (5 files merged).pdf
 
Inventrory Management
Inventrory ManagementInventrory Management
Inventrory Management
 

More from Douglas Bernardini

Top reasons to choose SAP hana
Top reasons to choose SAP hanaTop reasons to choose SAP hana
Top reasons to choose SAP hanaDouglas Bernardini
 
How can Hadoop & SAP be integrated
How can Hadoop & SAP be integratedHow can Hadoop & SAP be integrated
How can Hadoop & SAP be integratedDouglas Bernardini
 
Hadoop benchmark: Evaluating Cloudera, Hortonworks, and MapR
Hadoop benchmark: Evaluating Cloudera, Hortonworks, and MapRHadoop benchmark: Evaluating Cloudera, Hortonworks, and MapR
Hadoop benchmark: Evaluating Cloudera, Hortonworks, and MapRDouglas Bernardini
 
Finance month closing with HANA
Finance month closing with HANAFinance month closing with HANA
Finance month closing with HANADouglas Bernardini
 
Hortonworks.Cluster Config Guide
Hortonworks.Cluster Config GuideHortonworks.Cluster Config Guide
Hortonworks.Cluster Config GuideDouglas Bernardini
 
SAP Business Objects - Lopes Supermarket
SAP   Business Objects - Lopes SupermarketSAP   Business Objects - Lopes Supermarket
SAP Business Objects - Lopes SupermarketDouglas Bernardini
 
SAP - Business Objects - Ri happy
SAP - Business Objects - Ri happySAP - Business Objects - Ri happy
SAP - Business Objects - Ri happyDouglas Bernardini
 
Retail: Big data e Omni-Channel
Retail: Big data e Omni-ChannelRetail: Big data e Omni-Channel
Retail: Big data e Omni-ChannelDouglas Bernardini
 
Granular Access Control Using Cell Level Security In Accumulo
Granular Access Control  Using Cell Level Security  In Accumulo             Granular Access Control  Using Cell Level Security  In Accumulo
Granular Access Control Using Cell Level Security In Accumulo Douglas Bernardini
 
Proposta aderencia drogaria onofre
Proposta aderencia   drogaria onofreProposta aderencia   drogaria onofre
Proposta aderencia drogaria onofreDouglas Bernardini
 

More from Douglas Bernardini (20)

Top reasons to choose SAP hana
Top reasons to choose SAP hanaTop reasons to choose SAP hana
Top reasons to choose SAP hana
 
The REAL face of Big Data
The REAL face of Big DataThe REAL face of Big Data
The REAL face of Big Data
 
How can Hadoop & SAP be integrated
How can Hadoop & SAP be integratedHow can Hadoop & SAP be integrated
How can Hadoop & SAP be integrated
 
Hadoop benchmark: Evaluating Cloudera, Hortonworks, and MapR
Hadoop benchmark: Evaluating Cloudera, Hortonworks, and MapRHadoop benchmark: Evaluating Cloudera, Hortonworks, and MapR
Hadoop benchmark: Evaluating Cloudera, Hortonworks, and MapR
 
SAP HORTONWORKS
SAP HORTONWORKSSAP HORTONWORKS
SAP HORTONWORKS
 
REDSHIFT - Amazon
REDSHIFT - AmazonREDSHIFT - Amazon
REDSHIFT - Amazon
 
Splunk
SplunkSplunk
Splunk
 
Finance month closing with HANA
Finance month closing with HANAFinance month closing with HANA
Finance month closing with HANA
 
RDBMS x NoSQL
RDBMS x NoSQLRDBMS x NoSQL
RDBMS x NoSQL
 
SAP - SOLUTION MANAGER
SAP - SOLUTION MANAGER SAP - SOLUTION MANAGER
SAP - SOLUTION MANAGER
 
MS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTUREMS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTURE
 
DBA oracle
DBA oracleDBA oracle
DBA oracle
 
Hortonworks.Cluster Config Guide
Hortonworks.Cluster Config GuideHortonworks.Cluster Config Guide
Hortonworks.Cluster Config Guide
 
SAP Business Objects - Lopes Supermarket
SAP   Business Objects - Lopes SupermarketSAP   Business Objects - Lopes Supermarket
SAP Business Objects - Lopes Supermarket
 
SAP - Business Objects - Ri happy
SAP - Business Objects - Ri happySAP - Business Objects - Ri happy
SAP - Business Objects - Ri happy
 
Hadoop on retail
Hadoop on retailHadoop on retail
Hadoop on retail
 
Retail: Big data e Omni-Channel
Retail: Big data e Omni-ChannelRetail: Big data e Omni-Channel
Retail: Big data e Omni-Channel
 
Granular Access Control Using Cell Level Security In Accumulo
Granular Access Control  Using Cell Level Security  In Accumulo             Granular Access Control  Using Cell Level Security  In Accumulo
Granular Access Control Using Cell Level Security In Accumulo
 
Proposta aderencia drogaria onofre
Proposta aderencia   drogaria onofreProposta aderencia   drogaria onofre
Proposta aderencia drogaria onofre
 
SAP-Solution-Manager
SAP-Solution-ManagerSAP-Solution-Manager
SAP-Solution-Manager
 

Recently uploaded

SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...Elaine Werffeli
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...amitlee9823
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Pooja Nehwal
 
Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...
Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...
Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...gajnagarg
 
➥🔝 7737669865 🔝▻ Ongole Call-girls in Women Seeking Men 🔝Ongole🔝 Escorts S...
➥🔝 7737669865 🔝▻ Ongole Call-girls in Women Seeking Men  🔝Ongole🔝   Escorts S...➥🔝 7737669865 🔝▻ Ongole Call-girls in Women Seeking Men  🔝Ongole🔝   Escorts S...
➥🔝 7737669865 🔝▻ Ongole Call-girls in Women Seeking Men 🔝Ongole🔝 Escorts S...amitlee9823
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...amitlee9823
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men 🔝Sambalpur🔝 Esc...
➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men  🔝Sambalpur🔝   Esc...➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men  🔝Sambalpur🔝   Esc...
➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men 🔝Sambalpur🔝 Esc...amitlee9823
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...amitlee9823
 
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...karishmasinghjnh
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...amitlee9823
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...amitlee9823
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 

Recently uploaded (20)

Predicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science ProjectPredicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science Project
 
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
 
Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...
Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...
Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...
 
➥🔝 7737669865 🔝▻ Ongole Call-girls in Women Seeking Men 🔝Ongole🔝 Escorts S...
➥🔝 7737669865 🔝▻ Ongole Call-girls in Women Seeking Men  🔝Ongole🔝   Escorts S...➥🔝 7737669865 🔝▻ Ongole Call-girls in Women Seeking Men  🔝Ongole🔝   Escorts S...
➥🔝 7737669865 🔝▻ Ongole Call-girls in Women Seeking Men 🔝Ongole🔝 Escorts S...
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men 🔝Sambalpur🔝 Esc...
➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men  🔝Sambalpur🔝   Esc...➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men  🔝Sambalpur🔝   Esc...
➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men 🔝Sambalpur🔝 Esc...
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
 
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
 

R-language

  • 2. • Retail store network wish to offering ‘young’ products • 25-35 year olds • 5 Weeks Data • 1 M Rows each week • Random Sample of 20% taken from each week • Data Analysed using Rstudio • Summary(), Reshape2, GoogleVis 2 Business Case 2
  • 3. • Dunhumby: Customer science company • Use data and science to help retailers and brands delight customers and earn their loyalty. • Dunhunby provide 117 weeks of till dummy data. Each week’s data consists of over 1M entries. This analysis we will investigate five weeks data. 3 Data Source 3
  • 4. • Identify Young Adult and Young Family Customers within the customer dataset. • Profile those customers using categories such as • Time they shop • Day of the week • Spend • Affluence • Compare Young Adult and Young Family Customers with population percentages. 4 Objectives 4 • The data was imported into R and a random sample of 200,000 transactions was extracted for each week. • The samples were then combined using the rbind() command and summary statistics were generated. A store location table was added to the dataset to identify stores by location in Ireland. This was to enable the comparison with CSO data.
  • 6. 6 Staticstics 6 SHOP_WEEK SHOP_DATE SHOP_WEEKDAY SHOP_HOUR QUANTITY Min. :200607 Min. :20060410 Min. :1 Min. : 8.00 Min. : 1.000 1st Qu.:200608 1st Qu.:20060418 1st Qu.:2 1st Qu.:12.00 1st Qu.: 1.000 Median :200609 Median :20060427 Median :4 Median :15.00 Median : 1.000 Mean :200609 Mean :20060455 Mean :4 Mean :14.96 Mean : 1.452 3rd Qu.:200610 3rd Qu.:20060506 3rd Qu.:6 3rd Qu.:18.00 3rd Qu.: 1.000 Max. :200611 Max. :20060514 Max. :7 Max. :21.00 Max. :275 SPEND PROD_CODE PROD_CODE_10 PROD_CODE_20 PROD_CODE_30 Min. : 0.000 PRD0903052: 25671 CL00063: 45027 DEP00019: 84770 G00007 :219603 1st Qu.: 0.770 PRD0904358: 15579 CL00031: 33307 DEP00008: 82996 G00004 :208864 Median : 1.220 PRD0900121: 13863 CL00045: 22793 DEP00011: 73591 G00016 : 86704 Mean : 1.905 PRD0901265: 9531 CL00070: 22749 DEP00022: 54388 G00015 : 60254 3rd Qu.: 2.090 PRD0900830: 6751 CL00073: 21411 DEP00067: 51972 G00021 : 51972 Max. :484.900 PRD0901015: 5574 CL00067: 21362 DEP00052: 49826 G00013 : 49727 (Other) :923031 (Other):833351 (Other) :602457 (Other):322876
  • 7. 7 Staticstics 7 PROD_CODE_40 CUST_CODE CUST_PRICE SENSITIVITY CUST_LIFESTAGE D00002 :495588 Blank :194512 Blank :194512 Blank :297533 D00003 :291852 CUST0000792020: 56 LA:224642 OA:103419 D00005 : 94612 CUST0000529404: 45 MM:361558 OF: 52011 D00001 : 90104 CUST0000298339: 34 UM:216322 OT:210764 D00008 : 17231 CUST0000395398: 33 XX: 2966 PE: 59909 D00004 : 5778 CUST0000456100: 33 YA:106363 (Other): 4835 (Other) :805287 YF:170001 BASKET_ID BASKET_SIZE BASKET_PRICE SENSITIVITY BASKET_TYPE Min.:9.941e+14 L:707704 LA:276214 Full Shop :370547 1st Qu.:9.941e+14 M:238018 MM:467181 Small Shop:186766 Median :9.941e+14 S: 54278 UM:254889 Top Up :441728 Mean:9.941e+14 XX: 1716 XX : 959 3rd Qu.:9.941e+14 Max :9.941e+14
  • 8. 8 Staticstics 8 BASKET DOMINANT STORE_CODE STORE_FORMAT STORE_REGION Fresh :503347 STORE00696: 4013 LS :637301 S02 :104217 Grocery: 95436 STORE01423: 3691 MS :212024 N01 : 99916 Mixed :386522 STORE02339: 3623 SS : 65509 N03 : 95487 Nonfood: 13736 STORE00729: 3576 XLS: 85166 W02 : 92210 XX : 959 STORE02504: 3489 N02 : 84354 STORE01758: 3468 S01 : 81194 (Other) :978140 (Other):442622
  • 9. • Missing Data • 20% of baskets were purchased by customers who didn’t have a customer code. • 30% of baskets are purchased by customers who do not have a Customer Life- stage classification. • Reclassification • Given that there was no missing data for Basket Type and only 1% of data is missing for Basket Size and Basket Sensitivity, I investigated the data using summary statistics to see if I could reclassify “Other” and “Blanks” as per CUST_LIFESTAGE. • While similarities were identified within the dataset, I did not have sufficient evidence to reclassify. • Further work using Association Rules and Cluster Analysis is suggested. 9 Problems Encountered 9
  • 10. • The stores stay open 7 days per week. • The trading times are between 8am and 9pm although there may be some variation at weekends. • The quantity is the number of items of the same product bought in each basket. • The mean number of items was 1.45 items with a max of 275. • The mean spend per basket was €1.9 with a max of €485 • Product Codes are listed and the number of baskets containing each product code. • Customer Price Sensitivity: • 22% baskets = LA (Less Affluent), • 36% baskets = MM (Mid Market), • 21.6% baskets = UM (Up Market), • 3% = XX (unclassified). • Customer Lifestage: • 10% = OA (Old Age), • 5% = OF (Older Families), • 21% = OT (Other), • 6% = PE (Pensioner), • 11% = YA (Young Adult), • 17% = YF (Young Family). 10 Retail Data Investigation 10
  • 11. • 297533 baskets representing 30% of the dataset did not have a Customer Life- stage category assigned to them. • Basket ID: All baskets have an ID. • There are no blank variables. • Basket Size: • 71% = Large Baskets, • 24% = Medium Baskets, • 5% = Small Baskets. • 194512 baskets, representing 19% of baskets were not assigned a customer price sensitivity. 11 Retail Data Investigation 11 • Customer Codes are listed with the number of times each customer appeared in the dataset. • The most frequent customer from this sample purchased 56 times in the store. • However, 194,512 baskets were, representing 19% of the data were purchased by customers with no customer number.
  • 12. • Basket Price Sensitivity: • 27.6% = LA (Less Affluent), • 46.7% = MM (Mid Market), • 25.4% = UM (Up Market), • 0.2% = XX (Unclassified) • Basket Type: • Full Shop :37%, • Small Shop:18.6%, • Top Up :44% , • XX : 1% • Basket Dominant Content: • Fresh = 50%, • Grocery = 10%, • Mixed = 38%, • Non Food = 1%, • Unclassified = 1%. 12 Retail Data Investigation 12 • Store Code = Each store had a store code. • Most popular store was STORE00696. • Store Format: • 64% = Large, • 21% = Medium, • 6.5% = Small • 8.5% = Extra Large. • Each store was identified by region.
  • 14. • Young Adult and Young Family represent 28% of the Customer Dataset • Summary() used to create summary stats in R 14 Summary Statistics 14
  • 15. • Average Shopping Times • Young Family – 14.9 pm • 50% of shopping between 2pm and 6pm • Young Adult – 15.9 pm • 50% of shopping completed between 1pm and 6pm • Day of Week • No preferred shopping day for any of the Lifestage categories. • Subset(), mean(), quartile() used in R 15 Shopping Patterns 15
  • 16. Region County YA YF (YF + YA) as a Percentage of Customer Base E01 Kildare 7494 12423 27% E02 Laois 7304 12182 27% E03 Meath 7692 12381 27% N01 Donegal 11071 17605 29% N02 Monaghan 9368 14543 28% N03 Cavan 9998 16122 27% S01 Limerick 8443 14310 28% S02 Cork 11071 16919 27% S03 Kerry 8490 13714 28% W01 Mayo 8256 13618 27% W02 Galway 9807 15197 27% W03 Roscommon 6857 11307 27% 16 YA & YF as % of Population 16
  • 18. • Young Adult and Young Family make up a greater proportion of the customer base than the population %. • 18% - Average Target Population in Ireland • 28% - Average Target Population in Customer Database. • Suggest running promotions between 1pm and 6pm. • There is no preferred day for running promotions as everyday is equally important. 18 Outcome 18