marketing analytics technology: statistical analysis software & r conjoint analysis using r...

34
Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger www.stephansorger.co m phan Sorger 2015: www.stephansorger.com ; Marketing Analytics; Tech: R Conjoin Disclaimer: • All images such as logos, photos, etc. used in this presentation are the property of their respective copyright owners and are used here for educational purposes only • Some material adapted from: Sorger, “Marketing Analytics: Strategic Models and Metrics” PREREQUISITE: R BASICS

Upload: christal-whitehead

Post on 20-Jan-2016

249 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Marketing Analytics Technology: Statistical Analysis Software & R

Conjoint Analysis Using R

Stephan Sorgerwww.stephansorger.com

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 1

Disclaimer:• All images such as logos, photos, etc. used in this presentation are the property of their respective copyright owners and are used here for educational purposes only• Some material adapted from: Sorger, “Marketing Analytics: Strategic Models and Metrics”

PREREQUISITE: R BASICS

Page 2: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Outline: 10 Steps to Conjoint Analysis

Topic Discussion

1. Attribute Selection Select relevant product characteristics2. Attribute Level Selection Identify levels of characteristics 3. Product Bundle Formation Create sample products by bundling4. Data Collection Method Selection Decide how to collect data5. Data Collection Ask responders to rate products6. Data Preparation Get data ready for conjoint7. Importance Weights Calculation Assess importance of each attribute8. Part-Worth Calculation Assess importance of each level9. Market Share Estimation Predict preferences of products10. Data Interpretation Compare against industry averages

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 2

Page 3: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Conjoint Analysis Example

Topic Discussion

Acme Espresso You are the marketing manager for Acme Espresso MachineSmall manufacturer of premium coffee makersCompetitors: Breville, DeLonghi, Gaggia, Rancilio

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 3

Page 4: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Conjoint Analysis Example

Topic Discussion

Objectives Understand how consumers assess different productsIdentify specific features desired by consumersPredict market share for different product variants

Conjoint Conduct conjoint analysis to address objectivesUse 10-step process

Steps 1 - 5

Steps 6 - 10

Review

Execute using R

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 4

Page 5: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 1: Attribute Selection

Topic Discussion

Attributes Characteristics that consumers find relevant when evaluating

Research Secondary: Product reviews, etc.Primary: Customer surveys

Capacity

Price

Number of cups machine can brew

Retail price of espresso machine

Speed Brewing time, in minutes

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 5

Page 6: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 2: Attribute Level Selection

Topic Discussion

Levels Identify levels of attributes where consumers see differences

Two Levels In this exercise, we will identify two levels for each attributes

Capacity

Price

C1: “Single-Cup”: 1 cup at a timeC2: “Multi-Cup”: Multiple cups at a time

P1: “Budget”: Price under $300P2: “Premium”: $300 or more

Speed S1: “Fast”: Under 1 minuteS2: “Slow”: 1 minute of more

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 6

Page 7: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 3: Product Bundle Formation

Topic Discussion

Bundles Create candidate products by bundling together attributesVary the levels of the attributesBundles often called cards

Quantity (Levels) ^ (Attributes); 2^3 = 8

Card/Bundle Speed (S)Capacity (C) Price (P)1 1 1 12 1 1 23 1 2 14 1 2 25 2 1 16 2 1 27 2 2 18 2 2 2

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 7

Page 8: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 4: Data Collection Method Selection

Topic Discussion

Pairwise Comparison Respondents compare pairs of options

Rank Ordering Respondents place options in rank order: 1 – 100

Rating Scale* Respondents rate each option independently

RankOrdering

Rating Scale

PairwiseComparison

Data Collection Techniques

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 8

Page 9: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 5: Data Collection

Topic Discussion

Rating Scale Ask respondents to rate each card on a scale from 1 to 51 = poor; 5 = outstanding

Card/Bundle Speed (S)Capacity (C) Price (P) Preference1 1 1 1 42 1 1 2 33 1 2 1 54 1 2 2 45 2 1 1 36 2 1 2 17 2 2 1 38 2 2 2 2

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 9

Page 10: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 6: Data Preparation

Topic Discussion

Data Prepare the data for use with RSame data we used for Microsoft Excel approach

Step Data PreparationA Download RB Launch RC Install the R conjoint packageD Load the conjoint libraryE Convert data set from Excel-friendly format to R-friendly formatF Load the data into R

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 10

Page 11: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 6: Data Preparation; A: Download R

Platform Link

Windows http://cran.r-project.org/bin/windows/base/

Mac http://cran.r-project.org/bin/macosx/

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 11

Page 12: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 6: Data Preparation; B: Launch R

Topic Discussion

Prompt You will see a “>” prompt in the “R Console”

You will be typingcommands at theprompt: “ > “

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 12

Page 13: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 6: Data Preparation; C: Install R Conjoint Package

Topic Discussion

Packages Need special functionality to execute our conjoint analysisR extends it functionality through functions called packages (1)

Conjoint Package called “conjoint” for conjoint analysis (2)

(1) R Documentation, “Install Packages from Repositories http://stat.ethz.ch/R-manual/R-devel/library/utils/html/install.packages.html(2) R Documentation, Package “Conjoint”. August 29, 2013. Bak, Andrej and Bartlomowiczhttp://cran.r-project.org/web/packages/conjoint/conjoint.pdf

Syntax: install.packages(“packagename”)

Our case: install.packages(“conjoint”)

(See next few slides for screenshots)

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 13

Page 14: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 6: Data Preparation; C: Install R Conjoint Package

Topic Discussion

Screenshot install.packages(“conjoint”)

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 14

Page 15: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 6: Data Preparation; C: Install R Conjoint Package

Topic Discussion

Screenshot Downloading multiple files in package

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 15

Page 16: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 6: Data Preparation; C: Install R Conjoint Package

Topic Discussion

Screenshot Package elements unpacked successfully

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 16

Page 17: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 6: Data Preparation; D: Load Conjoint Library

Topic Discussion

Load files library(conjoint)

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 17

Page 18: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 6: Data Preparation; E: Convert Data Set to R Format

Topic Discussion

Preferences Matrix dedicated to preferences stated by respondents

Card/Bundle Speed (S)Capacity (C) Price (P) Preference1 1 1 1 42 1 1 2 33 1 2 1 54 1 2 2 45 2 1 1 36 2 1 2 17 2 2 1 38 2 2 2 2

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 18

Page 19: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 6: Data Preparation; E: Convert Data Set to R Format

Topic Discussion

Profiles Matrix dedicated to description of data structure

Card/Bundle Speed (S)Capacity (C) Price (P)1 1 1 12 1 1 23 1 2 14 1 2 25 2 1 16 2 1 27 2 2 18 2 2 2

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 19

Page 20: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 6: Data Preparation; E: Convert Data Set to R Format

Topic Discussion

Profiles Matrix dedicated to description of data structure

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 20

Page 21: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 6: Data Preparation; E: Convert Data Set to R Format

Topic Discussion

Profiles Save As CSV

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 21

Page 22: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 6: Data Preparation; F: Load Datasets Into R

Topic Discussion

Preferences preferences<-read.csv(“C:\\Users\\user\\Desktop\\preferences.csv”, header=T)Profiles profiles<-read.csv(“C:\\Users\\user\\Desktop\\profiles.csv”, header=T)

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 22

Page 23: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 7: Importance Weights Calculation

Topic Discussion

Importance Calculate importance weights in conjointRefers to importance of each attribute, such as speed

caImportance R command built into the conjoint analysis (ca) package

Syntax caImportance(preferences, profiles)caImportance = conjoint analysis function for importancepreferences = matrix with preferences for each cardprofiles = matrix describing each profile or card

Command importance <- caImportance (preferences, profiles)

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 23

Page 24: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 7: Importance Weights Calculation

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 24

Page 25: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 7: Importance Weights Calculation

Topic Discussion

Comparison We compare the Excel results with the R results

Variable Excel Coefficient % of Total R ResultsSpeed 1.75 1.75/3.75=46.67% 46.67%Capacity 0.75: absolute value0.75/3.75=20.00% 20.00%Price 1.25 1.25/3.75=33.33% 33.33%Total 3.75 3.75/3.75=100% 100%

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 25

Page 26: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 8: Part-Worth Calculation: Levelnames Matrix

Topic Discussion

Levelnames Matrix to capture names of levels for each attribute

Speed: fast, slowCapacity: onecup, twocupsPrice: cheap, expensive

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 26

Page 27: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 8: Part-Worth Calculation: Calculate Part Worths

Topic Discussion

Read data levelnames<-read.csv(“C:\\Users\\user\\Desktop\\levelnames.csv”, header=T)Command partutil <- caPartUtilities (preferences, profiles, levelnames)

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 27

Page 28: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 8: Part-Worth Calculation: Examine Part Worths

Topic Discussion

Part Worths intercept fast slow onecup twocups cheap expensive3.125 0.875 -0.875 -0.375 0.375 0.625 -0.625

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 28

Page 29: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Topic Discussion

Part Worths intercept fast slow onecup twocups cheap expensive3.125 0.875 -0.875 -0.375 0.375 0.625 -0.625

Step 8: Part-Worth Calculation: Interpret Part Worths

Preference = Intercept + (PW_fast) + (PW_slow) + (PW_onecup) + (PW_twocups) + (PW_cheap) + (PW_expensive)

Preference = 3.125 + 0.875 * fast - 0.875 * slow - 0.375 * onecup + 0.375 * twocups + 0.625 * cheap - 0.625 * expensive

Test machine 1: fast, twocup, cheap: Preference = 3.125 + 0.875 * 1 - 0.875 * 0 - 0.375 * 0 + 0.375 * 1 + 0.625 * 1 - 0.625 * 0 = 5.00 (perfect!)

Test machine 2: fast, twocup, expensive: Preference = 3.125 + 0.875 * 1 - 0.875 * 0 - 0.375 * 0 + 0.375 * 1 + 0.625 * 0 - 0.625 * 1 = 4.375 (good)

Test machine 3: slow, twocup, expensive: Preference = 3.125 + 0.875 * 0 - 0.875 * 1 - 0.375 * 0 + 0.375 * 1 + 0.625 * 0 - 0.625 * 1 = 2 (fair)

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 29

Page 30: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 9: Market Share Estimation: Maximum Utility

Topic Discussion

caMaxUtility maxutil <- caMaxUtility (simulations, preferences, profiles)

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 30

Page 31: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 9: Market Share Estimation: Maximum Utility

Topic Discussion

caMaxUtility maxutil <- caMaxUtility (simul, preferences, profiles)

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 31

Page 32: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 9: Market Share Estimation: Bradley-Terry-Luce (BTL)

Topic Discussion

caBTL btl <- caBTL (simul, preferences, profiles)

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 32

Page 33: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 9: Market Share Estimation: Bradley-Terry-Luce (BTL)

Topic Discussion

caBTL btl <- caBTL (simul, preferences, profiles)

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 33

Page 34: Marketing Analytics Technology: Statistical Analysis Software & R Conjoint Analysis Using R Stephan Sorger  © Stephan Sorger 2015:

Step 10: Data Interpretation

Topic Discussion

Comparison Compare R results with actual market behavior

R Results Most important attribute: Speed

Article Smithsonian article: “The Long History of Espresso Machine”First espresso machines: 1000 cups/ hour

Reviews Online product reviews, such as those on home-barista.comMany evaluation criteria: - Aesthetic design - Quality of grinder - Degree of automation

© Stephan Sorger 2015: www.stephansorger.com; Marketing Analytics; Tech: R Conjoint: 34