JosephYu_DataMining.ppt

418 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
418
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

JosephYu_DataMining.ppt

  1. 1. CS157B Fall 04 Introduction to Data Mining Chapter 22.3 Professor Lee Yu, Jianji (Joseph)
  2. 2. Today's Presentation covers: <ul><li>What is Data Mining? </li></ul><ul><li>Data Mining Objectives </li></ul><ul><li>Data Mining Operations </li></ul><ul><li>Knowledge Discovery </li></ul><ul><li>Application of Data Mining </li></ul><ul><li>Summary </li></ul><ul><li>References </li></ul>
  3. 3. Statistics Databases Artificial Intelligence Visualization Data Mining Overview of Data Mining
  4. 4. 1. What is Data Mining? <ul><li>We usually use Data Mining to: </li></ul><ul><ul><li>Discovering useful, previously unknown knowledge by analyzing large and complex databases. </li></ul></ul><ul><ul><li>Knowledge discovery, exploratory data analysis, applied statistics, machine learning </li></ul></ul><ul><ul><li>Search for valuable Information in Large Databases </li></ul></ul>
  5. 5. 2. Data Mining Objectives <ul><li>Find rules and patterns in large volumn databases </li></ul><ul><li>Discovery </li></ul><ul><ul><li>Finding human understandable patterns describing the data </li></ul></ul><ul><li>Prediction </li></ul><ul><ul><li>Using some variables or fields in database to predict unknown or future values or other variables of interest </li></ul></ul>
  6. 6. Data Mining Objectives <ul><li>Knowledge Discovery </li></ul><ul><ul><li>Stage somewhat prior to prediction where information is insufficient </li></ul></ul><ul><ul><li>It's close to decision support </li></ul></ul>
  7. 7. 3. Data Mining Operations <ul><li>Associations </li></ul><ul><li>Sequential Patterns </li></ul><ul><li>Time-Series Clustering </li></ul><ul><li>Classification </li></ul><ul><li>Segmentation </li></ul><ul><li>And many more! </li></ul>
  8. 8. Association <ul><li>Used to find all rules in a basket data </li></ul><ul><li>Basket data also called transaction data </li></ul><ul><li>Analyze how items purchased by customers in a shop </li></ul>
  9. 9. Association... <ul><li>A formal definition: </li></ul><ul><li>Let I = {i 1 , i 2 , …i m } be a total set of items </li></ul><ul><li>D a set of transactions </li></ul><ul><li>d is one transaction consists of a set of items </li></ul><ul><li>d  I </li></ul><ul><li>Association rule:- </li></ul><ul><li>X  Y where X  I ,Y  I and X  Y =  </li></ul><ul><li> S upport = (#of transactions contain X  Y ) / D </li></ul><ul><li>Support: number of instances predicted correctly </li></ul><ul><li>Confidence: number of correct predictions, as proportion of all instances </li></ul><ul><li>Confidence = (#of transactions contain X  Y) / </li></ul><ul><ul><li> #of transactions contain X </li></ul></ul>
  10. 10. Association... <ul><li>Example of transaction data: </li></ul><ul><ul><li>Transaction 1: CD player, music's CD, music's book </li></ul></ul><ul><ul><li>Transaction 2: CD player, music's CD </li></ul></ul><ul><ul><li>Transaction 3: Music's CD, music's book </li></ul></ul><ul><ul><li>Transaction 4: CD player </li></ul></ul><ul><li>I = {CD player, music's CD, music's book} </li></ul><ul><li>D = 4 </li></ul><ul><li># of transactions contain both CD player, music's CD = 2 </li></ul><ul><li># of transactions contain CD player = 3 </li></ul><ul><li>Support = 2 /4, Confidence: 2 /3 </li></ul>
  11. 11. Applying Association Rule... <ul><li>Example: Books that tend to be bought together. If a customer buys a book, an online bookstore may suggest other associated books. (ie. Amazon.com) </li></ul><ul><li>Example: If a person buys a laptop, the salesperson may suggest accessories that tend to be bought along with laptop. </li></ul>
  12. 12. Time Series Clustering <ul><li>Given: </li></ul><ul><ul><li>A database of time series </li></ul></ul><ul><li>Find: </li></ul><ul><ul><li>Groups of similar time series </li></ul></ul><ul><li>Sample Applications: </li></ul><ul><ul><li>Determine products with similar selling patterns </li></ul></ul><ul><ul><li>Identify companies with similar pattern of grown </li></ul></ul><ul><ul><li>Find stocks with similar price movements </li></ul></ul>
  13. 13. Classification <ul><li>Classification </li></ul><ul><ul><li>Problem: Given that items belong to one of several classes, and given past instances (aka training instances) of items along with the classes to which they belong, the problem is to PREDICT the class to which a new item belongs </li></ul></ul><ul><ul><li>The class of the new instance is not known, so other attributes of the instance must be used to predict the class. </li></ul></ul><ul><ul><li>It can be done by finding rules that partition the given data into disjoint groups </li></ul></ul>
  14. 14. Classification... <ul><li>Dataset is usually in the form of a relation table. </li></ul><ul><li>Data has a set of distinct attributes. </li></ul><ul><li>Each data record is also labeled with a class. </li></ul><ul><li>Goal : To build a model or learn rules that can be used to predict the classes of new cases. </li></ul><ul><li>Training Data are used to build this model. </li></ul>
  15. 15. Classification... <ul><li>For example </li></ul><ul><ul><li>Suppose that a credit card company wants to decide whether or not to give a credit card to an applicant </li></ul></ul><ul><li>The company has a variety of information about the person, such as their age, education background, income, etc.. </li></ul><ul><li>Then they will rank the applicants (catogorized them into classes) </li></ul><ul><li>Forall person P, P.degree=masters AND P.income > 75,000 ==> P.credit = excellent </li></ul><ul><li>Forall person P, P.degree=bachelors OR (P.income >= 25,000 AND P.income <= 75,000) ==> P.credit = good </li></ul>
  16. 16. Classification... <ul><li>Table: Age Smoke Risk ---------------------------------------------- 20 No Low 25 Yes High 44 Yes High 18 No Low 55 No High 35 No Low </li></ul><ul><li>To identify the risk (we have two groups): </li></ul><ul><ul><li>Risk = Low and Risk = High </li></ul></ul>
  17. 17. Classification... <ul><li>The following techniques could be used to analyze the classification: </li></ul><ul><ul><li>Decision Tree </li></ul></ul><ul><ul><li>Predictive Modeling </li></ul></ul><ul><ul><li>Using association rule </li></ul></ul><ul><ul><li>Neural networks </li></ul></ul><ul><ul><li>etc... </li></ul></ul>
  18. 18. Decision Trees <ul><li>“ Divide-and-conquer” approach produce tree </li></ul><ul><li>Nodes involve testing a particular attribute </li></ul><ul><li>Usually, attribute value is compared to constant </li></ul><ul><li>Other possibilities: </li></ul><ul><ul><li>Comparing values of two attributes </li></ul></ul><ul><ul><li>Using a function of one or more attributes </li></ul></ul><ul><li>Leaves assign classification, set of classifications, or probability distrbution to instances </li></ul><ul><li>Unknown instance is routed down the tree </li></ul>
  19. 19. Decision Tree <ul><li>In short, Decision tree is just a series of nested if/then rules. </li></ul>Yes No 0-35 High Low 36-100 High Our previous example Smoke Age
  20. 20. Predictive Modeling <ul><li>Predict values based on similar groups of data </li></ul><ul><li>Pattern Recognition </li></ul><ul><ul><li>Association of an observation to past experience or knowledge </li></ul></ul><ul><ul><li>Interchangeable with classification </li></ul></ul><ul><li>Estimation </li></ul><ul><ul><li>Assign infinite number of numeric labels to an observation </li></ul></ul>
  21. 21. 4. Knowledge Discovery <ul><li>Find Patterns in database </li></ul><ul><ul><li>For example, if someone buys one thing, what else will he buy next </li></ul></ul><ul><li>Interesting + Certain = Knowledge </li></ul><ul><ul><li>Usually the output called “Discovered Knowledge” </li></ul></ul><ul><li>KDD – Knowledge Discovery in Database </li></ul><ul><ul><ul><ul><ul><li>A non-trivial process of identifying valid, potentially useful, and understandable patterns in data </li></ul></ul></ul></ul></ul>
  22. 22. KDD – Knowledge Discovery in Database... <ul><li>Advances in traditional tasks in data analysis </li></ul><ul><ul><li>Classification, Clustering </li></ul></ul><ul><ul><li>New Data Mining operations </li></ul></ul><ul><ul><ul><li>Association rules </li></ul></ul></ul><ul><ul><ul><li>Sequential patterns </li></ul></ul></ul><ul><ul><ul><li>Deviation /Exceptions </li></ul></ul></ul><ul><li>New Application areas </li></ul><ul><ul><li>Spatial, Text, Web, Image, .... </li></ul></ul>
  23. 23. KDD – Knowledge Discovery in Database <ul><li>Applications </li></ul><ul><ul><li>Most large companies have data warehouses: platforms for Data Mining Projects </li></ul></ul><ul><ul><li>Trend towards integrated vertical solutions such as financial and telecom areas </li></ul></ul><ul><ul><ul><li>Back-end: integration with databases </li></ul></ul></ul><ul><ul><ul><li>Front-end: Campaign Management or CRM (Customer Relationship Management) </li></ul></ul></ul>
  24. 24. KDD – Knowledge Discovery in Database <ul><li>Next Generation Knowledge Discovery Systems: </li></ul><ul><ul><li>Have integrated front-end access to knowledge delivery tools </li></ul></ul><ul><ul><li>Have integrated back-end access to enterprise and external databases </li></ul></ul><ul><ul><li>Have knowledge discovery engine as embedded part of the overall solution </li></ul></ul><ul><ul><li>Be oriented to solving a business problem, not a data analysis problem </li></ul></ul>
  25. 25. 5. Application of Data Mining <ul><li>Medical </li></ul><ul><li>Control Theory </li></ul><ul><li>Engineering </li></ul><ul><li>Marketing and Finance </li></ul><ul><li>Data Mining on the web </li></ul><ul><li>Scientific Data Base </li></ul><ul><li>Fraud Dectection </li></ul><ul><li>And many more! </li></ul>
  26. 26. 6. Summary <ul><li>Data Mining IS .... </li></ul><ul><ul><li>Decision Trees, Nearest Neighbor Classification, Neural networks, Rule Induction, K-means Clustering </li></ul></ul><ul><ul><li>Decision support process in which we search patterns of information in data </li></ul></ul><ul><li>Data Mining is NOT ... </li></ul><ul><ul><li>Retrieving data (ie. Google) </li></ul></ul><ul><ul><ul><li>“ Information retrieval” or “Database querying” </li></ul></ul></ul><ul><ul><ul><li>Data Mining infers “the right query” from data </li></ul></ul></ul><ul><ul><li>Merging many small databases into a large one </li></ul></ul>
  27. 27. Summary <ul><li>Data Mining is not ... </li></ul><ul><ul><li>Data warehousing </li></ul></ul><ul><ul><li>SQL / Ad Hoc Queries / Reporting </li></ul></ul><ul><ul><li>Software Agents </li></ul></ul><ul><ul><li>Online Analytical Processing (OLAP) </li></ul></ul><ul><ul><li>Data Visualization </li></ul></ul>
  28. 28. Referneces <ul><li>Dr. Lee's Presentation </li></ul><ul><ul><li>http://www.cs.sjsu.edu/~lee/cs157b/cs157b.html </li></ul></ul><ul><ul><ul><li>Data Mining Section </li></ul></ul></ul><ul><li>Dr. Kurt Thearling's website </li></ul><ul><ul><li>http://www.thearling.com/dmintro/dmintro_frame.htm </li></ul></ul><ul><ul><ul><li>An Introduction to Data Mining </li></ul></ul></ul>

×