1 / 44

IS322D DATA WAREHOUSING & Data Mining

IS322D DATA WAREHOUSING & Data Mining. INTRODUCTION TO DATA MINING. INTRODUCTION TO DATA MINING. OBJECTIVES. L earn why data mining is in high demand and how it is part of the natural evolution of information technology. Define data mining with respect to the knowledge discovery process .

beveridge
Download Presentation

IS322D DATA WAREHOUSING & Data Mining

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. IS322DDATA WAREHOUSING & Data Mining INTRODUCTION TO DATA MINING LECTURE 7

  2. INTRODUCTION TO DATA MINING OBJECTIVES • Learn why data mining is in high demand and how it is part of the natural evolution of information technology. • Define data mining with respect to the knowledge discovery process. • Learn about data mining from many aspects, such as: • kinds of data that can be mined • kinds of knowledge to be mined • kinds of technologies to be used • targeted applications Information Systems Department

  3. Why Data Mining? Information Systems Department

  4. Why Data Mining?Moving toward the Information Age • Data versus Information • The Explosive Growth of Data: from terabytes to petabytes • Society produces huge amounts of data Sources • Business: Web, e-commerce, transactions, stocks, … • Science: Remote sensing, bioinformatics, scientific simulation,… • Society and everyone: news, digital cameras, YouTube • medicine, economics, geography, environment, sports, … • Potentially valuable resource • Raw data is useless: need techniques to automatically extract information from it • Data: recorded facts • Information: patterns underlying the data Information Systems Department

  5. Why Data Mining?Moving toward the Information Age Example 1.1 Data mining turns a large collection of data into knowledge. • A search engine (e.g., Google) receives hundreds of millions of queries every day. • Each query can be viewed as a transaction where the user describes her or his information need. • What novel and useful knowledge can a search engine learn from such a huge collection of queries collected from users over time? • Interestingly, some patterns found in user search queries can disclose invaluable knowledge that cannot be obtained by reading individual data items alone. • For example, Google’s Flu Trends uses specific search terms as indicators of flu activity. It found a close relationship between the number of people who search for flu-related information and the number of people who actually have flu symptoms. A pattern emerges when all of the search queries related to flu are aggregated. Using aggregated Google search data, Flu Trends can estimate flu activity up to two weeks faster than traditional systems can. This example shows how data mining can turn a large collection of data into knowledge that can help meet a current global challenge. Information Systems Department

  6. What Is Data Mining?

  7. What Is Data Mining? • Data mining (knowledge discovery from data) • Extraction of interesting (non-trivial,implicit, previously unknown and potentially useful)patterns or knowledge from huge amount of data • Data mining: a misnomer? • Needed: programs that can automatically detect patterns and regularities in the data • Alternative names • Knowledge discovery (mining) in databases (KDD), knowledge extraction, data/pattern analysis, data archeology, data dredging, information harvesting, business intelligence, etc. Information Systems Department

  8. What Is Data Mining?Knowledge Discovery (KDD) Process Knowledge • Data Mining is the central part of a bigger process called Knowledge Discovery • Data mining plays an essential role in the knowledge discovery process Pattern Evaluation Data Mining Task-relevant Data Selection Data Warehouse Data Cleaning Data Integration Databases Information Systems Department

  9. Knowledge Discovery (KDD) Process 1. Data cleaning (to remove noise and inconsistent data) 2. Data integration (where multiple data sources may be combined) 3. Data selection (where data relevant to the analysis task are retrieved from the database) 4. Data transformation (where data are transformed and consolidated into forms appropriate for mining by performing summary or aggregation operations) 5. Data mining (an essential process where intelligent methods are applied to extract data patterns) 6. Pattern evaluation (to identify the truly interesting patterns representing knowledge based on interestingness measures) 7. Knowledge presentation (where visualization and knowledge representation techniques are used to present mined knowledge to users) Information Systems Department

  10. Data Preparation Information Systems Department

  11. 1. Data Cleaning • Data Cleaning • In real-world datasets erroneous values can be recorded for a variety of reasons, including measurement errors, subjective judgments and malfunctioning or misuse of automatic recording equipment • Erroneous values can be divided into two categories: • 1.Those which are possible values • 2. Those which are not normally found (outliers) Information Systems Department

  12. Data Cleaning • Data Cleaning • Examples: • Erroneous possible values • 69.72 is recorded instead of the correct value 6.972 • Brown is recorded instead of the correct value “blue” • Erroneous impossible values • Age of a person recorded as 250 years Information Systems Department

  13. Data Cleaning • Data Cleaning • Erroneous possible values • Erroneous possible values are valid values and are difficult to detect, if they occur occasionally. • However, sometimes it is possible to detect them if they give rise to curious phenomenon, such a value occurring an abnormally large number of times • Example: For example, 10% of a website’s registered users are from a small country like Afghanistan, whereas 25% are from a big, developed country like Germany Information Systems Department

  14. Data Cleaning • Data Cleaning • Erroneous impossible values • Erroneous impossible values are invalid values. They can be easily detected and either corrected or rejected. • Example: Data sample with age of a person recorded as 250 years can either be completely removed or the age may be replaced by an appropriate value • However, we need to investigate them carefully after detecting them. Because they may not be errors. Information Systems Department

  15. Data Cleaning • Data Cleaning • Erroneous impossible values • Not all outliers are errors. If they are not errors, they would be part of very exciting, new discovery. For example, if a person’s age is really 250 years, that would be a very significant piece of information. Information Systems Department

  16. What Is Data Mining?Example: A Web Mining Framework • Web mining usually involves • Data cleaning • Data integration from multiple sources • Warehousing the data • Data cube construction • Data selection for data mining • Data mining • Presentation of the mining results • Patterns and knowledge to be used or stored into knowledge-base Information Systems Department

  17. What Is Data Mining?Data Mining in Business Intelligence Increasing potential to support business decisions End User DecisionMaking Business Analyst Data Presentation Visualization Techniques Data Mining Data Analyst Information Discovery Data Exploration Statistical Summary, Querying, and Reporting Data Preprocessing/Integration, Data Warehouses DBA Data Sources Paper, Files, Web documents, Scientific experiments, Database Systems

  18. DATA AND DATA MINING • Attributes • Each object is described by a number of variables that corresponds to its properties. These variables are called attributes. • Data is described by a fixed predefined set of features, called “attributes” Information Systems Department

  19. DATA AND DATA MINING • Instances and datasets • The set of variable values corresponding to each of the objects is called a record or an instance. • The complete set of data available to us for an application is called a dataset. A dataset is often depicted as a table, with each row representing an instance. Each column contains the value of one of the variables (attributes) for each of the instances Information Systems Department

  20. Labelled and Unlabelled Data • This dataset is an example of labeled data, where one attribute is given special significance and the aim is to predict its value. • The standard name of this special attribute is “class”. • When there is no such special significant attribute we call the data unlabeled. Information Systems Department

  21. Supervised and Unsupervised Learning • For labeled data there is a specially designated attribute. The aim is to use the given data to predict the value of the attribute for instances that have not yet been seen. Data mining using labeled data is called supervised learning. • Data that does not have any specially designated attribute is called unlabeled. Data mining of unlabeled data is called unsupervised learning. Here the aim is simply to extract the most information we can from the data available. Information Systems Department

  22. What Kind of Data Can Be Mined?1. Database Data • A database system, also called a database management system (DBMS), consists of a collection of interrelated data, known as a database, and a set of software programs to manage and access the data. • A relational database is a collection of tables, each of which is assigned a unique name. Each table consists of a set of attributes (columns or fields) and usually stores a large set of tuples (records or rows). Each tuple in a relational table represents an object identified by a unique key and described by a set of attribute values. • Entity-relationship (ER) data model represents the database as a set of entities and their relationships. Information Systems Department

  23. What Kind of Data Can Be Mined?1. Database Data Example 1.2 A relational database for AllElectronics. Information Systems Department

  24. What Kind of Data Can Be Mined?2. Data Warehouses • A data warehouse is a repository of information collected from multiple sources, stored under a unified schema, and usually residing at a single site. • A data warehouse is usually modeled by a multidimensional data structure, called a data cube, in which each dimension corresponds to an attribute or a set of attributes in the schema, and each cell stores the value of some aggregate measure such as count or sum(sales_amount) • See example 1.3 A data cube for AllElectronics. Information Systems Department

  25. What Kind of Data Can Be Mined?3. Transactional Data • In general, each record in a transactional database captures a transaction, such as a customer’s purchase, a flight booking, or a user’s clicks on a web page. • A transaction typically includes a unique transaction identity number (trans ID) and a list of the items making up the transaction, such as the items purchased in the transaction. • A transactional database may have additional tables, which contain other information related to the transactions, such as item description, information about the salesperson or the branch, and so on. Information Systems Department

  26. What Kind of Data Can Be Mined?3. Transactional Data Example 1.4 A transactional database for AllElectronics. • As an analyst of AllElectronics, you may ask,“Which items sold well together?” This kind of market basket data analysis would enable you to bundle groups of items together as a strategy for boosting sales. Information Systems Department

  27. What Kind of Data Can Be Mined?3. Transactional Data Example 1.4 A transactional database for AllElectronics. • For example, given the knowledge that printers are commonly purchased together with computers, you could offer certain printers at a steep discount (or even for free) to customers buying selected computers, in the hopes of selling more computers (which are often more expensive than printers). • A traditional database system is not able to perform market basket data analysis. Fortunately, data mining on transactional data can do so by mining frequent itemsets, that is, setsof items that are frequently sold together. Information Systems Department

  28. What Kinds of Patterns Can Be Mined? Data mining functionalities • Mining of frequent patterns, associations, correlations • Classification and regression • Clustering analysis • Outlier analysis • Data mining functionalities are used to specify the kinds of patterns to be found in data mining tasks. • In general, such tasks can be classified into two categories: descriptive and predictive. • Descriptive mining tasks characterize properties of the data in a target data set. • Predictive mining tasks perform induction on the current data in order to make predictions. Information Systems Department

  29. What Kinds of Patterns Can Be Mined?1. Mining Frequent Patterns, Associations, and Correlations • Frequent patternsare patterns that occur frequently in data. • There are many kinds of frequent patterns, including frequent itemsets, frequent subsequences and frequent substructures. • A frequent itemsettypically refers to a set of items that often appear together in a transactional data set for example, milk and bread, which are frequently bought together in grocery stores by many customers. • A frequent subsequence, such as the pattern that customers, tend to purchase first a laptop, followed by a digital camera, and then a memory card, is a (frequent) sequential pattern. • A substructure can refer to different structural forms (e.g., graphs, trees, or lattices) that may be combined with itemsets or subsequences. Information Systems Department

  30. What Kinds of Patterns Can Be Mined?1. Mining Frequent Patterns, Associations, and Correlations Example 1.7 Association analysis. Suppose that, as a marketing manager at AllElectronics, you want to know which items are frequently purchased together (i.e., within the same transaction). An example of such a rule, mined from the AllElectronicstransactional database, is buys(X, “computer”)  buys(X, “software”) [support D 1%, confidence D 50%] where X is a variable representing a customer. A confidence, or certainty, of 50% means that if a customer buys a computer, there is a 50% chance that she will buy software as well. A 1% support means that 1% of all the transactions under analysis show that computer and software are purchased together. Information Systems Department

  31. What Kinds of Patterns Can Be Mined?1. Mining Frequent Patterns, Associations, and Correlations • Mining frequent patterns leads to the discovery of interesting associations and correlations within data. • Typically, association rules are discarded as uninteresting if they do not satisfy both a minimum support threshold and a minimum confidence threshold. Information Systems Department

  32. What Kinds of Patterns Can Be Mined?2. Classification and Regression for Predictive Analysis • Classification is the process of finding a model (or function) that describes and distinguishes data classes or concepts. • The model are derived based on the analysis of a set of training data (i.e., data objects for which the class labels are known). • The model is used to predict the class label of objects for which the class label is unknown. • Classification learning is supervised • “How is the derived model presented?” • classification rules (i.e., IF-THEN rules) • decision trees • mathematical formulae • neural networks Information Systems Department

  33. What Kinds of Patterns Can Be Mined?2. Classification and Regression for Predictive Analysis

  34. What Kinds of Patterns Can Be Mined?2. Classification and Regression for Predictive Analysis • Whereas classification predicts categorical (discrete, unordered) labels, regression models continuous-valued functions. • That is, regression is used to predict missing or unavailable numerical data values rather than (discrete) class labels. • The term prediction refers to both numeric prediction and class label prediction. • Regression analysis is a statistical methodology that is most often used for numeric prediction, although other methods exist as well. • Regression also encompasses the identification of distribution trends based on the available data. Information Systems Department

  35. What Kinds of Patterns Can Be Mined?2. Classification and Regression for Predictive Analysis Example 1.8 Classification and regression. Classification: Suppose as a sales manager of AllElectronicsyou want to classify a large set of items in the store, based on three kinds of responses to a sales campaign: good response, mild response and no response. Regression: Suppose instead, that rather than predicting categorical response labels for each store item, you would like to predict the amount of revenue that each item will generate during an upcoming sale at AllElectronics, based on the previous sales data. This is an example of regression analysis because the regression model constructed will predict a continuous function (or ordered value.) Information Systems Department

  36. What Kinds of Patterns Can Be Mined?3. Cluster Analysis • Unlike classification and regression, which analyze class-labeled (training) data sets, clustering analyzes data objects without consulting class labels. • In many cases, class-labeled data may simply not exist at the beginning. • Clustering can be used to generate class labels for a group of data. • The objects are clustered or grouped based on the principle of maximizing the intra class similarity and minimizing the interclass similarity. • That is, clusters of objects are formed so that objects within a cluster have high similarity in comparison to one another, but are rather dissimilar to objects in other clusters. • Each cluster so formed can be viewed as a class of objects, from which rules can be derived. Information Systems Department

  37. What Kinds of Patterns Can Be Mined?3. Cluster Analysis Example 1.9 Cluster analysis. Cluster analysis can be performed on AllElectronicscustomer data to identify homogeneous subpopulations of customers. These clusters may represent individual target groups for marketing. Thefigure shows a 2-D plot of customers with respect to customer locations in a city. Three clusters of data points are evident. Information Systems Department

  38. What Kinds of Patterns Can Be Mined?4. Outlier Analysis • A data set may contain objects that do not comply with the general behavior or model of the data. These data objects are outliers. • Many data mining methods discard outliers as noise or exceptions. However, in some applications (e.g., fraud detection) the rare events can be more interesting than the more regularly occurring ones. • The analysis of outlier data is referred to as outlier analysis or anomaly mining. • Outliers may be detected using: • statistical tests that assume a distribution or probability model for the data • distance measures where objects that are remote from any other cluster are considered outliers. Information Systems Department

  39. What Kinds of Patterns Can Be Mined?4. Outlier Analysis Example 1.10 Outlier analysis. Outlier analysis may uncover fraudulent usage of credit cards by detecting purchases of unusually large amounts for a given account number in comparison to regular charges incurred by the same account. Outlier values may also be detected with respect to the locations and types of purchase, or the purchase frequency. Information Systems Department

  40. What Kinds of Patterns Can Be Mined?Are All Patterns Interesting? • A data mining system has the potential to generate thousands or even millions of patterns, or rules. • “Are all of the patterns interesting?” • No, only a small fraction of the patterns potentially generated would actually be of interest to a given user. • “What makes a pattern interesting? • (1) easily understood by humans • (2) valid on new or test data with some degree of certainty • (3) Potentially useful • (4) novel. • An interesting pattern represents knowledge. Information Systems Department

  41. What Kinds of Patterns Can Be Mined?Are All Patterns Interesting? Objective measures of pattern interestingness Support Measure • An objective measure for association rules of the form XY is rule support, representing the percentage of transactions from a transaction database that the given rule satisfies. • This is taken to be the probability P(X U Y), where X U Y indicates that a transaction contains both X and Y, that is, the union of itemsetsX and Y. Confidence Measure • Another objective measure for association rules is confidence, which assesses the degree of certainty of the detected association. • This is taken to be the conditional probability P(Y|X), that is, the probability that a transaction containing X also contains Y. Information Systems Department

  42. Which Technologies Are Used? Machine Learning Pattern Recognition Statistics Data Mining Visualization Applications Algorithm Database Technology High-Performance Computing

  43. Applications of Data Mining • Web page analysis: from web page classification, clustering to PageRank & HITS algorithms • Collaborative analysis & recommender systems • Basket data analysis to targeted marketing • Biological and medical data analysis: classification, cluster analysis (microarray data analysis), biological sequence analysis, biological network analysis • Data mining and software engineering (e.g., IEEE Computer, Aug. 2009 issue) • From major dedicated data mining systems/tools (e.g., SAS, MS SQL-Server Analysis Manager, Oracle Data Mining Tools) to invisible data mining

  44. References • “Data Mining Concepts and Techniques”, Third Edition, Jiawei Han, MichelineKamber, Jian Pei Information Systems Department

More Related