Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lecture 7 MARK2039 Summer 2006 George Brown College Wednesday 9-12.

Similar presentations


Presentation on theme: "Lecture 7 MARK2039 Summer 2006 George Brown College Wednesday 9-12."— Presentation transcript:

1 Lecture 7 MARK2039 Summer 2006 George Brown College Wednesday 9-12

2 2 Exam a)Acct ID, Date of Promotion, credit score, postal code b)Index account ID and make the DB relational

3 3 Exam 1)Col A: mean=8086, median=120 COL. B: mean=15,median=15 Col. C: mean= 16840 median=20000 2)Normal dist. Is B because mean and median are same. 3)Median as it is not skewed by otliers

4 4 Exam Str. A: std.dev=.00189 – CI:.0361<=.0380<=.03989 Str.B: std.dev=.003 -CI:.014<=.02<=.026 Do not use either strategy and continue with existing strategy

5 5 Exam

6 6 a)Cube b)dimensions:product type,1 st digit of postal code,payment type Measure: acct Id c)Give me count of all customers who bought prod. A with cash Determine number of customers in postal code, determine number of persons in postal code from Stats Can data. Create penetration index: Number of customers/ number of persons at postal code. Rank postal codes by penetration index and use ranked postal codes to target prospects.

7 7 Exam Stats Can Census is richer as it has more records(50000 vs. 28000 for taxfiler Advantage of using Taxfiler data is that data is more recent a)Implementation b)Reducing costs c)Must be one to one in analytical file d)Standard deviation or variation

8 8 Exam Sample A, although std. dev. is larger, if we look at std. dev. on a relative basis when comparing to the range or magnitude of values in the sample, we will observe that we are getting a much tighter bound around A rather than B Legacy: billing or call detail files,external data such as Stats Can Advantage to building data mart is the following: -data aggregated and summarized-easier to use for analysis -Quicker processing -Easier intrpretation as data deals solely with functional area

9 9 Exam i)No,ii)yes,iii)No,iv)No,v)yes Prom.Date-interval,not useful,only one value Prom.codes-nominal-not useful-too granular Income-interval-not useful too many missing values Number of children: interval-useful-few missing values Credit decile rank: ordinal-useful-0 missing values

10 10 Creating the Analytical File-Reviewing Data Dumps Initial dump of 1 st few records

11 11 Creating the Analytical File-Reviewing Data Dumps Initial dump of 1 st few records

12 12 Creating the Analytical File-Reviewing Data Dumps View of the Transaction File

13 13 Creating the Analytical File-Reviewing Data Dumps View of the Promo History File

14 14 Creating the Analytical File-Reviewing Data Dumps Using your marketing knowledge, give me examples of variables that we might create from the last three slides –Slide 11 –Slide 12 –Slide 13 Slide 11: Age, region of country, tenure Slide 12: Total Amount, Total amount for a given product, and recency of purchase. Slide 13: Total promotions, Total Promotions by Type and recency of last promotion

15 15 Creating the Analytical File-Data Hygiene and Cleansing Once the data has been dumped in order to view records, typically data hygiene and cleansing have to take place Two key deliverables –Clean name and address information –Standard rules for coding of data values

16 16 Creating the Analytical File-Data Hygiene and Cleansing Clean Name and Address Information –Market to right Individual –Create Match keys

17 17 Clean Name and Address Information –Market to right Individual –Create Match keys –Name and Address Standardization BankID 987654321 Name JONH SMITH JR. Address1 123 WILLIAMS STRET Address2 2ND FLOOR Address3 TRT., O.N. M5G-1F3 Country CDN UnIndivID 123456789 BankID 987654321 PreName FirstName Surname JONH SMITH JR. PostName Street1 123 WILLIAMS STRET Street2 2ND FLOOR City TRT Province O.N. Postal Code M5G-1F3 Country CANADA UnIndivID 123456789 Origin Bank Creating the Analytical File Name and Address Standardization

18 18 DATA CLEANING Address correction Name parsing Genderizing Casing BankID 987654321 PreName Mr. FirstName John Surname Smith PostName Jr. Street1 200-123 Williams Street Street2 City Toronto Province ON Postal Code M5G 1F3 Country Canada UnIndivID 123456789 Origin Bank BankID 987654321 PreName FirstName Surname JONH SMITH JR. PostName Street1 123 WILLIAMS STRET Street2 2ND FLOOR City TRT Province O.N. Postal Code M5G-1F3 Country CANADA UnIndivID 123456789 Origin Bank Creating the Analytical File- Creating the Analytical File-Name and Address Standardization

19 19 Creating the Analytical File-Merge Purge of Names What are the reasons for creating unique match customer keys –Generating a marketing list –Conducting analysis Should the match keys be the same for both above scenarios? No, tighter matchkeys in generating lists and looser matchkeys when conducting analysis What are the situations when match keys that are numeric? When dealing with existing customer data where you are matching Files involving only existing customer data.

20 20 Creating the Analytical File-Merge Purge of Names Common fields to use in creating Match keys First Name; Surname; Unique Individual ID; Postal Code Credit Card Number Duns Number for Businesses Phone Number Unique I.D’s or number type I.D’s are the preferred choice when creating match keys Let’s take a closer look at creating match keys using name and address

21 21 Creating the Analytical File-Merge Purge of Names Let’s take a look at 6 records and see what this means.

22 22 Creating the Analytical File-Merge Purge of Names Example: You have one record here: –Richard Boire-4628 Mayfair Ave. H4B2E5 –How would you use the above information for a backend analysis if I were a responder to an acquisition campaign? BOIREH4B2E5 –What about if you were conducting analysis on me as an existing customer who responded to a cross-sell campaign. –Need only customer id –How about if you wanted to send me a direct mail piece –BOIRERICHARDH4B2E54628MAYFAIR

23 23 Creating the Analytical File- Data standardization Refers to a process where values from a common variable from different files are mapped to the same value. Some common examples: SIC Code Industry Classification Table –Industry categories have common set of codes Postal Code Variable –Postal code has to have 6 digits comprised of alpha,numeric,alpha,numeric,alpha,numeric which exclude the following alphas: D,F,O,Q,U, and Z. Give me examples of bad postal codes vs. good postal codes. –D4B2E5, H442E6,etc. are bad postal codes. –M5J1A1, A1A1A3,etc. are good postal codes

24 24 Creating the Analytical File- Data Standardization Here is an example of how disposition codes for telemarketing outcomes might be handled

25 25 Creating the Analytical File- Data Standardization Postal Code Standardization –Six digit code comprising Alpha,numeric,alpha,numeric,alpha,numeric –1 st letters: A,B,C,E,G,H,J,K,L,M,N,P,R,S,T,V,X,Y SIC(Standard Industry Code Classification –4 digit code used to classify all companies into standard set of industries

26 26 Creating the Analytical File- Data standardization Example: –You have been asked to build retention model You have two years worth of transaction data. Changes in the product category codes occurred six months ago. Key information that you would look at would be as follows: Income category Product Category Transaction Codes Transaction Amount Postal Code Transaction Date Gender What would you need to do Need to map the old product category code definitions from prior to six months ago to the new product category code definitions

27 27 Geocoding is the process that assigns a latitude-longitude coordinate to an address. Once a latitude-longitude coordinate is assigned, the address can be displayed on a map or used in a spatial search. Data miners often use these coordinates to calculate such things as “distance to the nearest store” Creating the Analytical File- Geo-Codingn

28 28 Demographic AnalysisPopulationCountPopulationCount AgeDistributionAgeDistribution Average Age StoreLocationStoreLocation GeoProfile

29 29 Creating the Analytical File-What is Geocoding? Let’s look at a sample of what some data might look like? How do we use this data to create meaningful variables? -using the pythagorean theorem where distance**2=lat**2+ longitude**2. This is extremely useful in calculating distance type variables between a customer and a given location

30 30 Creating the Analytical File-What is Geocoding Example: –A retailer has the following information: Name and address of its customers Address of its stores Stats Can Information –As a marketer, how would you intelligently use this information –Find the distance between the nearest store and a given customer. –Create a trading area around a given store. Find out which stores have the best penetration. At the same time, analyze these best penetration stores and determine some key stats can attributes around these best penetration stores

31 Region# of Customers% of Total Prairie Provinces25 M2.5% Quebec100 M10% Ontario350 M35% West25 M2.5% Missing Values500 M50% Total1 MM100% Frequency Distribution The report below uses first digit of postal code to assign customers to region. For example, postal codes beginning with ‘G’, ‘H’, or ’J’ represent the Quebec region. Customer Profiling

32 32 Frequency Distribution

33 33 Frequency Distribution

34 34 Creating Variables Source/ Raw File Variables  # in Household  Income  Credit score  Total lifetime spend  Total number of promotions Derived Variables  Region of country  Total spend within certain period  Age  Tenure  Number of promotions in last year by campaign category Example of source variables Example of source variables Example of derived variables Example of derived variables

35 35 Other variables –Total spend in certain time periods –Total spend by product category in certain time periods –Decline in spend-total & by product type –Trend variables related to spending and product category: Median Mean Variation –Index Variables Grouping of variable into meaningful categories where category values are index values Binary Variables-yes/no type variables such as gender More Creations

36 36 Creating the Analytical File-Reviewing Data Dumps View of the Transaction File What kind of variables can be derived. What kind of variables can be derived.

37 37 Creating Binary Groups

38 38 Creating Indices # of Months% ofResponse Months Since LastCustomersRateIndexSince Last Promotion 116%2.50%0.71 216%1.50%0.43 316%3.75%1.07 416%3.25%0.93 516%6.00%1.71 616%4.00%1.14 Average100%3.50%1.00 0.62 0.57 1.00 1.43

39 39 More Variable Creation What would you do here What would you do here Is there any trend? Given that there seems to be no trend or impact between spend and response, it is highly unlikely that further information would be derived from this field. Is there any trend? Given that there seems to be no trend or impact between spend and response, it is highly unlikely that further information would be derived from this field.

40 40 More Variable Creation What would you do here? What would you do here? Here, this variable in all likelihood would be useful given its trend with response rate. Here, this variable in all likelihood would be useful given its trend with response rate.

41 41 Stage 3 of Data Mining What stage are we at: –Application of data mining tools Give me some examples of what data miners would be doing in stage 3 –Data discovery Data Audit/Frequency Distribution Analysis, Value Segmentation –Models,profiles,etc. –Post Campaign Analysis –Reporting i.e such as standard KBM-Key Business Measure Reports –AdHoc Reports Modelling and profiling represent some examples of what we might be doing in this stage.

42 42 Types of Predictive Models Examples:Discrete Models –Response Models Cross Sell Upsell Acquisition –Attrition Models –Product Affinity Models –Risk Models

43 43 Types of Predictive Models Examples-Continuous Models –Profitability/Value Models –Spending Models What is the concept of the objective function or dependant variable? –This the variable that we trying to predict Response,bad credit,defection,spend,etc. –What are we trying to optimize essentially becomes our objective function. –This is the variable we are trying to predict


Download ppt "Lecture 7 MARK2039 Summer 2006 George Brown College Wednesday 9-12."

Similar presentations


Ads by Google