1 / 40

Data Mining and Association Rules for Decision Support

Learn about data mining and association rules to discover hidden correlations and make crucial business decisions using large databases.

Download Presentation

Data Mining and Association Rules for Decision Support

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lecture 4 Themes in this session Data mining Decision support models Reading Requirements [EN] chapter 26 (second half) G.p.Huber, The Nature of Organizational Decision Making and Design of Decision Support Systems

  2. What is data mining? “Data Mining is data analysis in order to discover hidden correlations (pattern, rules) in huge data sets” “Data Mining is the process of extracting valid, previouslyunknown, comprehensible, and actionable information from large databases and using it to make crucial business decisions.”

  3. What is KDD? • Knowledge Discovery in Databases involves the extraction of implicit, previously unknown and potentially useful information from data.

  4. The KDD Process Knowledge reporting and display of the discovered information Patterns Interpretation/ Evaluation Transformed data Data Mining Preprocessed Data Target Data Transformation Data Preprocessing (- data cleansing) - enrichment Selection

  5. Enabling factors for data mining Data availability • Increased amount of electronically stored data • Increased processing power • Increased data storage ability • Increased data gathering ability (networks, extraction tools) • Increased number of data warehouses Business conditions • Increased need to compete effectively • Increased awareness of need to know customers

  6. Data mining uses in enterprises • Predict customer pattern of behaviour, e.g buying pattern • Discover market developments driven by demographic changes • Discover shifts in consumption • Identification of new customers • Anticipation of demands on inventory

  7. Goals of data mining and KD • Prediction data mining can show how certain attributes within the data may behave in the future • Identification data patterns can be used to identify the existence of an item, an event, or an activity • Classification data mining can partition the data so that different classes or categories can be identified based on a combination of parameters • Optimisation

  8. Types of KD during data mining • Association rules: the presence of a set of items correlate with another range of values for another set of variables • Classification hierarchies: divide an existing set of events or transaction into a hierarchy of classes • Sequential patterns: detecting association among events with certain temporal relationship • Patterns with time series: similarities detected within the position of time series • Categorisation and segmentation: a given population of events or items can be partitioned (segmented) info sets of “similar” elements

  9. Association Rules nr. of trans. cont. X  Y nr of trans cont. X  Y nr. of trans. nr of trans. cont. X Ex. If a customer buys X, (s)he is also likely to buy Y X  Y nr of trans = 4 where X = {x1, x2,…,xn} and Y = {y1, y2,…,ym} are sets of items, with xi yj for each i and j Support (prevalence) Confidence (strength) Milk  Juice 2/4 = 50% Bred  Juice 1/4 = 25% Milk  Juice 2/3 = 66,7% Bred  Juice 1/2 = 50%

  10. Mining Association Rules 1. Generate all item sets that have a support that exceeds a threshold defined by the user 2. For each such item set generate all the rules that have confidence above a threshold defined by the user 2. conf (milk, bread  eggs) = 3/3 = 100% conf (milk, eggs  bread ) = 3/5 = 60% conf (eggs, bread  milk ) = 3/3 = 100% conf (milk  bread, eggs) = 3/8 = 38% conf (bread  milk, eggs) = 3/4 = 75% conf (eggs  bread, milk) = 3/5 = 60% Example: support  30% conf  70% 1. support {milk, bread, eggs} = 30% support {cookies, juice} = 0% support {cookies, coffee} = 20% support {milk, eggs} = 50 % … nr. of sets to be checked is 27 (in general 2nrof items) conf (milk  eggs) = 5/8 = 63%conf (eggs  milk) = 5/5 = 100%

  11. Association Rules - Basic Algorithm • Test the support for itemsets of length 1 (1-item-sets) by scanning the database. Discard those that do not meet the minimum required support • Extend the large 1-itemsets into 2-itemsets by appending one item each time, to generate all candidate itemsets of length two. Test the support for all candidate itemsets and eliminate those that do not meet the minimum support • Repeat the above steps; at step k, the previously found (k-1) itemsets are extended into k-itemsets

  12. Association Rules among Hierarchies Beverages Carbonated Non-Carbonated Colas Clear drinks Mixed drinks Bottled juices Bottled water Wine coolers Desserts Regular Orange Apple Low fat Ice Cream Baked Frozen Yoghurt Beverage  Desserts Desserts  Beverage Ice cream  Wine coolers Low fat frozen yoghurt  Bottled water

  13. Association Rules - Negative Associations Soft Drinks Chips Joke Wakeup Topsy Days Nightos Partyos x x “60% of customers who buy potato chips do not buy bottled water” The problem: In a DB with 10000 items there are 210000 possible combination of items, a majority of which do not appear even once in the DB. How to find only the interesting negative associations?

  14. Types of KD during Data Mining • Association rules: the presence of a set of items correlate with another range of values for another set of variables • Classification hierarchies: divide an existing set of events or transaction into a hierarchy of classes • Sequential patterns:detecting association among events with certain temporal relationship • Patterns with time series:similarities detected within the position of time series • Categorisation and segmentation: a given population of events or items can be partitioned (segmented) info sets of “similar” elements

  15. Sequential patterns: A sequence S of itemsets support(S): the frequency in which the sequence S = S1, S2, ... appeared in the past S1 {milk, bread, juice} S2 {bread, eggs} S3 {cookies, milk, coffee} Patterns in time series: Time series are sequences of events; each event may be a given fixed type of a transaction. Alt.Time bounded sequential patterns Ex. The closing price of a stock is an amount that occurs every weekday for each stock. The sequence of these values per stock constitutes a time series. In order to compare two time series, a measure of similarity is necessary to be defined.

  16. Types of KD during data mining • Association rules: the presence of a set of items correlate with another range of values for another set of variables • Classification hierarchies:divide an existing set of events or transaction into a hierarchy of classes • Sequential patterns: detecting association among events with certain temporal relationship • Patterns with time series: similarities detected within the position of time series • Categorisation and segmentation:a given population of events or items can be partitioned (segmented) info sets of “similar” elements

  17. Classification Customer renting property >2 years? No Yes Customer age > 25years? No Yes Rent property Rent property Buy property • Classify data items into one of several predefined classes • For example, to predict if a person is going to buy the property (s)he is currently renting

  18. Clustering • Clustering identifies undiscovered grouping • A cluster is a group of objects grouped together because of their similarity of proximity, for example similar behaviour Dept X X X X X X X Profitable customers! X X XX X X X X XX Income

  19. Discovery of Classification/Categorisation Rules Classification: the process of learning a function that maps (classifies) a given object of interest into one or many possible classes. The classes may be predefined or may bedetermined during the task of classification Ex. Classify loan applicants into those that are loanworthy and those that are not. Rule:If the current monthly dept obligation exceeds 25% of monthly net income then the applicant belongs to non-loanworthy class. Otherwise the applicants belongs to loanworthy class. general form (var1 in range1) & (var2 in range2) & … & (varn in rangen)  Object O belongs to class C1

  20. Data Mining Choosing the function of data mining • includes deciding the purpose of the model derived by the data mining algorithm (e.g. prediction, identification, classification, or optimisation) Choosing the data mining algorithm(s) • includes selecting method(s) to be used for searching for searching for patterns in the data, such as deciding which models and parameters may be appropriate and matching a particular data mining method with the overall criteria of the KDD process

  21. Applications of Data Mining Marketing • analysis of customers behaviour based on buying patterns • determination of marketing strategies including advertising, store location, and targeted mailing • segmentation of customers, stores, or products • design of catalogs, store layouts, and advertising campaigns Finance • analysis of creditworthiness of clients • segmentation of accounts receivables • performance analysis of finance investments like stocks, bonds and mutual funds • evaluation of financing options • fraud detection

  22. Applications of Data Mining 2 Manufacturing • optimisation of resources like machines, manpower and materials • optimal design of manufacturing processes, shop-floor layouts and product design, such as for products tailored according to customers requirements Health Care • analysis of effectiveness of certain treatments • analysis of side effects

  23. Decision support models Future Now Parking place Decision New Branch Problem solving Best information Best decision tools Parking space New Branch New customers New customers Material in stock

  24. Decision State of nature (Naturtillstånd) Security Risk Uncertainty Describes reality in some perspective You know the states of nature You know the states of nature and their probabilities You do not know for certain the states of nature and their probabilities

  25. Probability • A probability is a number between 0 and 1 which express an relative likelihood for a state of nature to occur • Example: 50 students • marks VG for 15 students, G for 20 students and U for 15 students (or U, 3, 4 and 5) • Probability for VG 15/50=0.3 • Probability for G 20/50=0.4 • Probability for U 15/50=0.3

  26. Expected values Example: Stock portfolios The investor has a choice between three different stock portfolios: I, R, and D and each portfolio gives a different properly discounted, prospective return each year. The yearly return depends upon whether the future brings inflation, recession (lågkonjunktur) or depression

  27. Payoff table (Beslutsmatriss) Outcome/return Portfolio

  28. Decision tree? (Beslutsträd) High demand 250 Advertisement -50 Low demand 120 No advertisement Successful project High demand 150 Low demand 100 Start project -40 High demand 100 Low demand 50 High demand100 No start Low demand50 Should we start the project or not?

  29. Decision under risk • Know: The status of nature and their probabilities

  30. Calculations of expected value (E.V.) Alt: E.V.(I) = 0.6 * 100 + 0.3* 50 + 0.1 * (-50) = 70.0

  31. Expected monetary value (EMV) Should we start the project start or not? Probability:successful = 0.4high demand = 0.7 High demand 250 Advertisement-50 Low demand 120 Noadvertisement Successful High demand 150 Low demand 100 Unsuccessful Start project-40 High demand 100 Low demand 50 High demand 100 No start Low demand 50

  32. Decision under uncertainty We do not know the status of nature and their probability Approach 1: The same probability for all alternatives Approach 2: The Hurwicz criterion etc

  33. The Hurwicz criterion Assign predetermined relative weights: relative pessimism =  andrelative optimism = 1-  Hurwicz criterion determinesH = (min) + (1- )(max) H(C1) =  * (-50) + (1 - ) * 100 = 100 - 150H(C2) =  * (-25) + (1 - ) * 100 = 100 - 125 H(C3) =  * (-50) + (1 - ) * 80 = 100 - 130 Continue by determine Optimistic = 0 Pessimistic =1

  34. Linear programming • Narrow down the set of possible alternatives to a set of manageable alternatives • This method can be use to solve problem concerning linear allocation-problems i.g. 6X + 7Y = 510 • Optimising • It can be used for choice of • products (product combination with max. profit) • machinery (min. cost of production) • transportation ( min. cost for transportation ) • investment (investment combination, with max return)

  35. Linear programming • Example • A company produces two products A and B. Your job is to decide how how many of each product should be produced each week, if the company wants to maximise it’s profit? Product A Product B capacityDepartment 10 15 1 500Material 3 2 300Cover cost 300 300(täckningsbidrag)

  36. Mathematical solution 10A + 15B = 1 500 3A + 2B = 300A = (1500 - 15B)/103(1500 - 15B)/10 + 2B = 300A = 60B = 60 • Profit: 60 * 300 + 60 *300 =36 000

  37. Graphical solution B no 3A + 2B = 300 10A + 15B = 1500 150 (60, 60) 50 A no 200 50 100 150

  38. Best information Stock Business cycle(Konjunktur) Dividend (utdelning) trend

  39. Organisational Decision making • The Rational Model • Relevant alternatives • Relevant consequence • The Political/Competitive Model • Decisions are made in such a manner that they also are favourable for the decision maker himself

  40. Organisational Decision making • The Garbage Can model • Problem looking for solutions • Solutions looking for problems • The program Model • Decisions are influenced by group norms, budget limitations, etc • Programming

More Related