2012.11.06- SLIDE 1IS 257 – Fall 2012 Data Mining and OLAP University of California, Berkeley School of Information IS 257: Database Management.

Slides:



Advertisements
Similar presentations
CRISP-DM (required for cw, useful for any project…)
Advertisements

DAMA-NCR Tuesday, November 13, 2001 Laura Squier Technical Consultant What is Data Mining?
Machine Learning and Data Mining Course Summary. 2 Outline  Data Mining and Society  Discrimination, Privacy, and Security  Hype Curve  Future Directions.
SLIDE 1IS 257 – Fall 2009 Data Mining and the Weka Toolkit University of California, Berkeley School of Information IS 257: Database Management.
Chapter 9 Business Intelligence Systems
SLIDE 1IS 257 – Fall 2006 Data Warehouses, Decision Support and Data Mining University of California, Berkeley School of Information IS 257:
/faculteit technologie management Introduction to Data Mining a.j.m.m. (ton) weijters (slides are partially based on an introduction of Gregory Piatetsky-Shapiro)
Mining the Data Ira M. Schoenberger, FACHCA Senior Administrator 2011 AHCA/NCAL Quality Symposium Friday February 18, 2011.
Business Systems Intelligence: 7. B.I. Methodologies Dr. Brian Mac Namee (
CSE634 Data Mining Prof. Anita Wasilewska Jae Hong Kil ( )
11/1/2001Database Management -- R. Larson Data Warehouses, Decision Support and Data Mining University of California, Berkeley School of Information Management.
SLIDE 1IS 257 – Fall 2011 Data Mining and the Weka Toolkit University of California, Berkeley School of Information IS 257: Database Management.
Data Mining.
CS590D: Data Mining Chris Clifton March 22, 2006 Data Mining Process Thanks to Laura Squier, SPSS for some of the material used.
SLIDE 1IS 257 – Fall 2008 Data Mining and the Weka Toolkit University of California, Berkeley School of Information IS 257: Database Management.
SLIDE 1IS Fall 2002 Data Warehouses, Decision Support and Data Mining University of California, Berkeley School of Information Management.
SLIDE 1IS 257 – Fall 2004 Data Warehouses, Decision Support and Data Mining University of California, Berkeley School of Information Management.
SLIDE 1IS 257 – Spring 2004 Data Warehouses, Decision Support and Data Mining University of California, Berkeley School of Information Management.
Data Mining – Intro.
SLIDE 1IS 257 – Fall 2010 Data Mining and the Weka Toolkit University of California, Berkeley School of Information IS 257: Database Management.
DataMining By Guan Hang Su CS157A section 2 fall 2005.
11/2/2000Database Management -- R. Larson Data Warehouses, Decision Support and Data Mining University of California, Berkeley School of Information Management.
DASHBOARDS Dashboard provides the managers with exactly the information they need in the correct format at the correct time. BI systems are the foundation.
Chapter 5 Data mining : A Closer Look.
Data Warehouses, Decision Support and Data Mining
On-Line Application Processing Warehousing Data Cubes Data Mining 1.
Computer Science Universiteit Maastricht Institute for Knowledge and Agent Technology Data mining and the knowledge discovery process Summer Course 2005.
Data Mining By Andrie Suherman. Agenda Introduction Major Elements Steps/ Processes Tools used for data mining Advantages and Disadvantages.
SLIDE 1IS 257 – Fall 2012 Data Mining and OLAP University of California, Berkeley School of Information IS 257: Database Management.
Dr. Awad Khalil Computer Science Department AUC
Data Mining Techniques
More on Data Mining KDnuggets Datanami ACM SIGKDD
SharePoint 2010 Business Intelligence Module 6: Analysis Services.
CS490D: Introduction to Data Mining Prof. Chris Clifton April 14, 2004 Fraud and Misuse Detection.
DATA MINING Team #1 Kristen Durst Mark Gillespie Banan Mandura University of DaytonMBA APR 09.
Understanding Data Analytics and Data Mining Introduction.
Copyright R. Weber Machine Learning, Data Mining ISYS370 Dr. R. Weber.
3 Objects (Views Synonyms Sequences) 4 PL/SQL blocks 5 Procedures Triggers 6 Enhanced SQL programming 7 SQL &.NET applications 8 OEM DB structure 9 DB.
Inductive learning Simplest form: learn a function from examples
The CRISP-DM Process Model
Introduction to Data Mining Group Members: Karim C. El-Khazen Pascal Suria Lin Gui Philsou Lee Xiaoting Niu.
Data Mining Process A manifestation of best practices A systematic way to conduct DM projects Different groups has different versions Most common standard.
1 Controversial Issues  Data mining (or simple analysis) on people may come with a profile that would raise controversial issues of  Discrimination 
1 On-Line Application Processing Warehousing Data Cubes Data Mining.
Knowledge Discovery and Data Mining Evgueni Smirnov.
Some working definitions…. ‘Data Mining’ and ‘Knowledge Discovery in Databases’ (KDD) are used interchangeably Data mining = –the discovery of interesting,
Data Mining – Intro. Course Overview Spatial Databases Temporal and Spatio-Temporal Databases Multimedia Databases Data Mining.
Advanced Database Course (ESED5204) Eng. Hanan Alyazji University of Palestine Software Engineering Department.
Winter 2006Winter 2002 Keller, Ullman, CushingJudy Cushing 19–1 Warehousing The most common form of information integration: copy sources into a single.
Data Mining BY JEMINI ISLAM. Data Mining Outline: What is data mining? Why use data mining? How does data mining work The process of data mining Tools.
An Investigation of Commercial Data Mining Presented by Emily Davis Supervisor: John Ebden.
Chapter 14 Data Mining Transparencies. 2 Chapter Objectives u The concepts associated with data mining. u The main features of data mining operations,
Data Mining and Decision Support
Becerra-Fernandez, et al. -- Knowledge Management 1/e -- © 2004 Prentice Hall Week 11 Knowledge Discovery Systems: Systems That Create Knowledge.
Data Mining Copyright KEYSOFT Solutions.
CRISP-DM Tommy Wei Cory Hutchinson ISDS Overview What is CRISP-DM (CRoss Industry Standard Process for Data Mining) Blueprint Phases and Tasks Summary.
Databases 2 On-Line Application Processing: Warehousing, Data Cubes, Data Mining.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 28 Data Mining Concepts.
Chapter 3 Building Business Intelligence Chapter 3 DATABASES AND DATA WAREHOUSES Building Business Intelligence 6/22/2016 1Management Information Systems.
Data Resource Management – MGMT An overview of where we are right now SQL Developer OLAP CUBE 1 Sales Cube Data Warehouse Denormalized Historical.
On-Line Application Processing
Knowledge Discovery Systems: Systems That Create Knowledge
CSE634 Data Mining Prof. Anita Wasilewska Jae Hong Kil ( )
Week 11 Knowledge Discovery Systems & Data Mining :
Supporting End-User Access
What is Data Mining? DAMA-NCR Tuesday, November 13, 2001 Laura Squier
On-Line Application Processing
Data Warehouses, Decision Support and Data Mining
Presentation transcript:

SLIDE 1IS 257 – Fall 2012 Data Mining and OLAP University of California, Berkeley School of Information IS 257: Database Management

SLIDE 2IS 257 – Fall 2012 Lecture Outline Review –Applications for Data Warehouses Decision Support Systems (DSS) OLAP (ROLAP, MOLAP) Data Mining Thanks again to lecture notes from Joachim Hammer of the University of Florida More on OLAP and Data Mining Approaches

SLIDE 3IS 257 – Fall 2012 Knowledge Discovery in Data (KDD) Knowledge Discovery in Data is the non- trivial process of identifying –valid –novel –potentially useful –and ultimately understandable patterns in data. from Advances in Knowledge Discovery and Data Mining, Fayyad, Piatetsky-Shapiro, Smyth, and Uthurusamy, (Chapter 1), AAAI/MIT Press 1996 Source: Gregory Piatetsky-Shapiro

SLIDE 4IS 257 – Fall 2012 Related Fields Statistics Machine Learning Databases Visualization Data Mining and Knowledge Discovery Source: Gregory Piatetsky-Shapiro

SLIDE 5IS 257 – Fall 2012 ____ __ __ Transformed Data Patterns and Rules Target Data Raw Dat a Knowledge Data Mining Transformation Interpretation & Evaluation Selection & Cleaning Integration Understanding Knowledge Discovery Process DATA Ware house Knowledge Source: Gregory Piatetsky-Shapiro

SLIDE 6IS 257 – Fall 2012 OLAP Online Line Analytical Processing –Intended to provide multidimensional views of the data –I.e., the “Data Cube” –The PivotTables in MS Excel are examples of OLAP tools

SLIDE 7IS 257 – Fall 2012 Data Cube

SLIDE 8IS 257 – Fall 2013 Data + Text Mining Process Source: Languistics via Google Images

SLIDE 9IS 257 – Fall 2013 How Can We Do Data Mining? By Utilizing the CRISP-DM Methodology –a standard process –existing data –software technologies –situational expertise Source: Laura Squier

SLIDE 10IS 257 – Fall 2013 Why Should There be a Standard Process? Framework for recording experience –Allows projects to be replicated Aid to project planning and management “Comfort factor” for new adopters –Demonstrates maturity of Data Mining –Reduces dependency on “ stars ” The data mining process must be reliable and repeatable by people with little data mining background. Source: Laura Squier

SLIDE 11IS 257 – Fall 2013 Process Standardization CRISP-DM: CRoss Industry Standard Process for Data Mining Initiative launched Sept.1996 SPSS/ISL, NCR, Daimler-Benz, OHRA Funding from European commission Over 200 members of the CRISP-DM SIG worldwide –DM Vendors - SPSS, NCR, IBM, SAS, SGI, Data Distilleries, Syllogic, Magnify,.. –System Suppliers / consultants - Cap Gemini, ICL Retail, Deloitte & Touche, … –End Users - BT, ABB, Lloyds Bank, AirTouch, Experian,... Source: Laura Squier

SLIDE 12IS 257 – Fall 2013 CRISP-DM Non-proprietaryNon-proprietary Application/Industry neutralApplication/Industry neutral Tool neutralTool neutral Focus on business issuesFocus on business issues –As well as technical analysis Framework for guidanceFramework for guidance Experience baseExperience base –Templates for Analysis Source: Laura Squier

SLIDE 13IS 257 – Fall 2012 The CRISP-DM Process Model Source: Laura Squier

SLIDE 14IS 257 – Fall 2012 Why CRISP-DM? The data mining process must be reliable and repeatable by people with little data mining skills CRISP-DM provides a uniform framework for –guidelines –experience documentation CRISP-DM is flexible to account for differences –Different business/agency problems –Different data Source: Laura Squier

SLIDE 15IS 257 – Fall 2012 Business Understanding Data Understanding Evaluation Data Preparation Modeling Determine Business Objectives Background Business Objectives Business Success Criteria Situation Assessment Inventory of Resources Requirements, Assumptions, and Constraints Risks and Contingencies Terminology Costs and Benefits Determine Data Mining Goal Data Mining Goals Data Mining Success Criteria Produce Project Plan Project Plan Initial Asessment of Tools and Techniques Collect Initial Data Initial Data Collection Report Describe Data Data Description Report Explore Data Data Exploration Report Verify Data Quality Data Quality Report Data Set Data Set Description Select Data Rationale for Inclusion / Exclusion Clean Data Data Cleaning Report Construct Data Derived Attributes Generated Records Integrate Data Merged Data Format Data Reformatted Data Select Modeling Technique Modeling Technique Modeling Assumptions Generate Test Design Test Design Build Model Parameter Settings Models Model Description Assess Model Model Assessment Revised Parameter Settings Evaluate Results Assessment of Data Mining Results w.r.t. Business Success Criteria Approved Models Review Process Review of Process Determine Next Steps List of Possible Actions Decision Plan Deployment Deployment Plan Plan Monitoring and Maintenance Monitoring and Maintenance Plan Produce Final Report Final Report Final Presentation Review Project Experience Documentation Deployment Phases and Tasks Source: Laura Squier

SLIDE 16IS 257 – Fall 2012 Phases in CRISP Business Understanding –This initial phase focuses on understanding the project objectives and requirements from a business perspective, and then converting this knowledge into a data mining problem definition, and a preliminary plan designed to achieve the objectives. Data Understanding –The data understanding phase starts with an initial data collection and proceeds with activities in order to get familiar with the data, to identify data quality problems, to discover first insights into the data, or to detect interesting subsets to form hypotheses for hidden information. Data Preparation –The data preparation phase covers all activities to construct the final dataset (data that will be fed into the modeling tool(s)) from the initial raw data. Data preparation tasks are likely to be performed multiple times, and not in any prescribed order. Tasks include table, record, and attribute selection as well as transformation and cleaning of data for modeling tools. Modeling –In this phase, various modeling techniques are selected and applied, and their parameters are calibrated to optimal values. Typically, there are several techniques for the same data mining problem type. Some techniques have specific requirements on the form of data. Therefore, stepping back to the data preparation phase is often needed. Evaluation –At this stage in the project you have built a model (or models) that appears to have high quality, from a data analysis perspective. Before proceeding to final deployment of the model, it is important to more thoroughly evaluate the model, and review the steps executed to construct the model, to be certain it properly achieves the business objectives. A key objective is to determine if there is some important business issue that has not been sufficiently considered. At the end of this phase, a decision on the use of the data mining results should be reached. Deployment –Creation of the model is generally not the end of the project. Even if the purpose of the model is to increase knowledge of the data, the knowledge gained will need to be organized and presented in a way that the customer can use it. Depending on the requirements, the deployment phase can be as simple as generating a report or as complex as implementing a repeatable data mining process. In many cases it will be the customer, not the data analyst, who will carry out the deployment steps. However, even if the analyst will not carry out the deployment effort it is important for the customer to understand up front what actions will need to be carried out in order to actually make use of the created models.

SLIDE 17IS 257 – Fall 2012 Phases in the DM Process: CRISP-DM Source: Laura Squier

SLIDE 18IS 257 – Fall 2012 Phases in the DM Process (1 & 2) Business Understanding: –Statement of Business Objective –Statement of Data Mining objective –Statement of Success Criteria Data Understanding –Explore the data and verify the quality –Find outliers Source: Laura Squier

SLIDE 19IS 257 – Fall 2012 Phases in the DM Process (3) Data preparation: –Takes usually over 90% of our time Collection Assessment Consolidation and Cleaning –table links, aggregation level, missing values, etc Data selection –active role in ignoring non-contributory data? –outliers? –Use of samples –visualization tools Transformations - create new variables Source: Laura Squier

SLIDE 20IS 257 – Fall 2012 Phases in the DM Process (4) Model building –Selection of the modeling techniques is based upon the data mining objective –Modeling is an iterative process - different for supervised and unsupervised learning May model for either description or prediction Source: Laura Squier

SLIDE 21IS 257 – Fall 2012 Types of Models Prediction Models for Predicting and Classifying –Regression algorithms (predict numeric outcome): neural networks, rule induction, CART (OLS regression, GLM) –Classification algorithm predict symbolic outcome): CHAID (CHi-squared Automatic Interaction Detection), C5.0 (discriminant analysis, logistic regression) Descriptive Models for Grouping and Finding Associations –Clustering/Grouping algorithms: K-means, Kohonen –Association algorithms: apriori, GRI Source: Laura Squier

SLIDE 22IS 257 – Fall 2012 Data Mining Algorithms Market Basket Analysis Memory-based reasoning Cluster detection Link analysis Decision trees and rule induction algorithms Neural Networks Genetic algorithms

SLIDE 23IS 257 – Fall 2012 Market Basket Analysis A type of clustering used to predict purchase patterns. Identify the products likely to be purchased in conjunction with other products –E.g., the famous (and apocryphal) story that men who buy diapers on Friday nights also buy beer.

SLIDE 24IS 257 – Fall 2012 Memory-based reasoning Use known instances of a model to make predictions about unknown instances. Could be used for sales forecasting or fraud detection by working from known cases to predict new cases

SLIDE 25IS 257 – Fall 2012 Cluster detection Finds data records that are similar to each other. K-nearest neighbors (where K represents the mathematical distance to the nearest similar record) is an example of one clustering algorithm

SLIDE 26IS 257 – Fall 2012 Kohonen Network Description unsupervised seeks to describe dataset in terms of natural clusters of cases Source: Laura Squier

SLIDE 27IS 257 – Fall 2012 Link analysis Follows relationships between records to discover patterns Link analysis can provide the basis for various affinity marketing programs Similar to Markov transition analysis methods where probabilities are calculated for each observed transition.

SLIDE 28IS 257 – Fall 2012 Decision trees and rule induction algorithms Pulls rules out of a mass of data using classification and regression trees (CART) or Chi-Square automatic interaction detectors (CHAID) These algorithms produce explicit rules, which make understanding the results simpler

SLIDE 29IS 257 – Fall 2012 Rule Induction Description –Produces decision trees: income < $40K –job > 5 yrs then good risk –job < 5 yrs then bad risk income > $40K –high debt then bad risk –low debt then good risk –Or Rule Sets: Rule #1 for good risk: –if income > $40K –if low debt Rule #2 for good risk: –if income < $40K –if job > 5 years Source: Laura Squier

SLIDE 30IS 257 – Fall 2012 Rule Induction Description Intuitive output Handles all forms of numeric data, as well as non-numeric (symbolic) data C5 Algorithm a special case of rule induction Target variable must be symbolic Source: Laura Squier

SLIDE 31IS 257 – Fall 2012 Apriori Description Seeks association rules in dataset ‘Market basket’ analysis Sequence discovery Source: Laura Squier

SLIDE 32IS 257 – Fall 2012 Neural Networks Attempt to model neurons in the brain Learn from a training set and then can be used to detect patterns inherent in that training set Neural nets are effective when the data is shapeless and lacking any apparent patterns May be hard to understand results

SLIDE 33IS 257 – Fall 2012 Neural Network Output Hidden layer Input layer Source: Laura Squier

SLIDE 34IS 257 – Fall 2012 Neural Networks Description –Difficult interpretation –Tends to ‘overfit’ the data –Extensive amount of training time –A lot of data preparation –Works with all data types Source: Laura Squier

SLIDE 35IS 257 – Fall 2012 Genetic algorithms Imitate natural selection processes to evolve models using –Selection –Crossover –Mutation Each new generation inherits traits from the previous ones until only the most predictive survive.

SLIDE 36IS 257 – Fall 2012 Phases in the DM Process (5) Model Evaluation –Evaluation of model: how well it performed on test data –Methods and criteria depend on model type: e.g., coincidence matrix with classification models, mean error rate with regression models –Interpretation of model: important or not, easy or hard depends on algorithm Source: Laura Squier

SLIDE 37IS 257 – Fall 2012 Phases in the DM Process (6) Deployment –Determine how the results need to be utilized –Who needs to use them? –How often do they need to be used Deploy Data Mining results by: –Scoring a database –Utilizing results as business rules –interactive scoring on-line Source: Laura Squier

SLIDE 38IS 257 – Fall 2012 Specific Data Mining Applications: Source: Laura Squier

SLIDE 39IS 257 – Fall 2012 What data mining has done for... Scheduled its workforce to provide faster, more accurate answers to questions. The US Internal Revenue Service needed to improve customer service and... Source: Laura Squier

SLIDE 40IS 257 – Fall 2012 What data mining has done for... analyzed suspects’ cell phone usage to focus investigations. The US Drug Enforcement Agency needed to be more effective in their drug “busts” and Source: Laura Squier

SLIDE 41IS 257 – Fall 2012 What data mining has done for... Reduced direct mail costs by 30% while garnering 95% of the campaign’s revenue. HSBC need to cross-sell more effectively by identifying profiles that would be interested in higher yielding investments and... Source: Laura Squier

SLIDE 42IS 257 – Fall 2012 Analytic technology can be effective Combining multiple models and link analysis can reduce false positives Today there are millions of false positives with manual analysis Data Mining is just one additional tool to help analysts Analytic Technology has the potential to reduce the current high rate of false positives Source: Gregory Piatetsky-Shapiro

SLIDE 43IS 257 – Fall 2012 Data Mining with Privacy Data Mining looks for patterns, not people! Technical solutions can limit privacy invasion –Replacing sensitive personal data with anon. ID –Give randomized outputs –Multi-party computation – distributed data –… Bayardo & Srikant, Technological Solutions for Protecting Privacy, IEEE Computer, Sep 2003 Source: Gregory Piatetsky-Shapiro

SLIDE 44IS 257 – Fall 2012 The Hype Curve for Data Mining and Knowledge Discovery Over-inflated expectations Disappointment Growing acceptance and mainstreaming rising expectations Source: Gregory Piatetsky-Shapiro

SLIDE 45IS 257 – Fall 2012 More on OLAP and Data Mining Nice set of slides with practical examples using SQL (by Jeff Ullman, Stanford – found via Google with no attribution)

SLIDE 46IS 257 – Fall 2012 OLAP Online Line Analytical Processing –Intended to provide multidimensional views of the data –I.e., the “Data Cube” –The PivotTables in MS Excel are examples of OLAP tools

SLIDE 47IS 257 – Fall 2012 Data Cube

SLIDE 48IS 257 – Fall 2012 Visualization – Star Schema Dimension Table (Beers)Dimension Table (etc.) Dimension Table (Drinkers)Dimension Table (Bars) Fact Table - Sales Dimension Attrs.Dependent Attrs. From anonymous “olap.ppt” found on Google

SLIDE 49IS 257 – Fall 2012 Typical OLAP Queries Often, OLAP queries begin with a “star join”: the natural join of the fact table with all or most of the dimension tables. Example: SELECT * FROM Sales, Bars, Beers, Drinkers WHERE Sales.bar = Bars.bar AND Sales.beer = Beers.beer AND Sales.drinker = Drinkers.drinker; From anonymous “olap.ppt” found on Google

SLIDE 50IS 257 – Fall 2012 Example: In SQL SELECT bar, beer, SUM(price) FROM Sales NATURAL JOIN Bars NATURAL JOIN Beers WHERE addr = ’ Palo Alto ’ AND manf = ’ Anheuser-Busch ’ GROUP BY bar, beer; From anonymous “olap.ppt” found on Google

SLIDE 51IS 257 – Fall 2012 Example: Materialized View Which views could help with our query? Key issues: 1.It must join Sales, Bars, and Beers, at least. 2.It must group by at least bar and beer. 3.It must not select out Palo-Alto bars or Anheuser-Busch beers. 4.It must not project out addr or manf. From anonymous “olap.ppt” found on Google

SLIDE 52IS 257 – Fall 2012 Example --- Continued Here is a materialized view that could help: CREATE VIEW BABMS(bar, addr, beer, manf, sales) AS SELECT bar, addr, beer, manf, SUM(price) sales FROM Sales NATURAL JOIN Bars NATURAL JOIN Beers GROUP BY bar, addr, beer, manf; Since bar -> addr and beer -> manf, there is no real grouping. We need addr and manf in the SELECT. From anonymous “olap.ppt” found on Google

SLIDE 53IS 257 – Fall 2012 Example --- Concluded Here’s our query using the materialized view BABMS: SELECT bar, beer, sales FROM BABMS WHERE addr = ’ Palo Alto ’ AND manf = ’ Anheuser-Busch ’ ; From anonymous “olap.ppt” found on Google

SLIDE 54IS 257 – Fall 2012 Example: Market Baskets If people often buy hamburger and ketchup together, the store can: 1.Put hamburger and ketchup near each other and put potato chips between. 2.Run a sale on hamburger and raise the price of ketchup. From anonymous “olap.ppt” found on Google

SLIDE 55IS 257 – Fall 2012 Finding Frequent Pairs The simplest case is when we only want to find “frequent pairs” of items. Assume data is in a relation Baskets(basket, item). The support threshold s is the minimum number of baskets in which a pair appears before we are interested. From anonymous “olap.ppt” found on Google

SLIDE 56IS 257 – Fall 2012 Frequent Pairs in SQL SELECT b1.item, b2.item FROM Baskets b1, Baskets b2 WHERE b1.basket = b2.basket AND b1.item < b2.item GROUP BY b1.item, b2.item HAVING COUNT(*) >= s; Look for two Basket tuples with the same basket and different items. First item must precede second, so we don ’ t count the same pair twice. Create a group for each pair of items that appears in at least one basket. Throw away pairs of items that do not appear at least s times. From anonymous “olap.ppt” found on Google

SLIDE 57IS 257 – Fall 2012 Lecture Outline Announcements –Final Project Reports Review –OLAP (ROLAP, MOLAP) Data Mining with the WEKA toolkit Big Data (introduction)

SLIDE 58IS 257 – Fall 2012 More on Data Mining using Weka Slides from Eibe Frank, Waikato Univ. NZ