Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See www.db-book.com for conditions on re-usewww.db-book.com Other Topics 2: Warehousing,

Slides:



Advertisements
Similar presentations
Chapter 18: Data Analysis and Mining Kat Powell. Chapter 18: Data Analysis and Mining ➔ Decision Support Systems ➔ Data Analysis and OLAP ➔ Data Warehousing.
Advertisements

Data Mining Glen Shih CS157B Section 1 Dr. Sin-Min Lee April 4, 2006.
DATA MINING CS157A Swathi Rangan. A Brief History of Data Mining The term “Data Mining” was only introduced in the 1990s. Data Mining roots are traced.
Mastering the Internet, XHTML, and JavaScript Chapter 7 Searching the Internet.
1 Chapter 19: Information Retrieval. ©Silberschatz, Korth and Sudarshan19.2Database System Concepts - 5 th Edition, Sep 2, 2005 Chapter 19: Information.
Recommender systems Ram Akella February 23, 2011 Lecture 6b, i290 & 280I University of California at Berkeley Silicon Valley Center/SC.
Data Mining By Archana Ketkar.
Chapter 19: Information Retrieval
Data Mining Adrian Tuhtan CS157A Section1.
Recommender systems Ram Akella November 26 th 2008.
Data Mining By: Thai Hoa Nguyen Pham. Data Mining  Define Data Mining  Classification  Association  Clustering.
Information Retrieval
Data Mining – Intro.
CS157A Spring 05 Data Mining Professor Sin-Min Lee.
Overview of Web Data Mining and Applications Part I
Overview of Search Engines
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 20: Data Analysis.
Database System Concepts - 6 th Edition20.1 Chapter 20: Data Analysis Decision Support Systems Data Warehousing Data Mining Classification Association.
©Silberschatz, Korth and Sudarshan18.1Database System Concepts - 5 th Edition, Aug 26, 2005 Buzzword List OLTP – OnLine Transaction Processing (normalized,
1 Chapter 21: Information Retrieval. ©Silberschatz, Korth and Sudarshan19.2Database System Concepts - 5 th Edition, Sep 2, 2005 Information Retrieval.
Research paper: Web Mining Research: A survey SIGKDD Explorations, June Volume 2, Issue 1 Author: R. Kosala and H. Blockeel.
Chapter 7 Web Content Mining Xxxxxx. Introduction Web-content mining techniques are used to discover useful information from content on the web – textual.
1 Chapter 19: Information Retrieval Chapter 19: Information Retrieval Relevance Ranking Using Terms Relevance Using Hyperlinks Synonyms., Homonyms,
Computing & Information Sciences Kansas State University Monday, 04 Dec 2006CIS 560: Database System Concepts Lecture 41 of 42 Monday, 04 December 2006.
Copyright: Silberschatz, Korth and Sudarshan 1 Data Mining.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 21: Information.
Data Mining By Fu-Chun (Tracy) Juang. What is Data Mining? ► The process of analyzing LARGE databases to find useful patterns. ► Attempts to discover.
DATA MINING Prof. Sin-Min Lee Surya Bhagvat CS 157B – Spring 2006.
Data Mining Chapter 1 Introduction -- Basic Data Mining Tasks -- Related Concepts -- Data Mining Techniques.
Amer Kanj Data Mining For Business Professionals.
 Fundamentally, data mining is about processing data and identifying patterns and trends in that information so that you can decide or judge.  Data.
Data Mining By Dave Maung.
Computing & Information Sciences Kansas State University Friday. 30 Nov 2007CIS 560: Database System Concepts Lecture 39 of 42 Friday, 30 November 2007.
Data Mining: Association Rule By: Thanh Truong. Association Rules In Association Rules, we look at the associations between different items to draw conclusions.
Data Mining – Intro. Course Overview Spatial Databases Temporal and Spatio-Temporal Databases Multimedia Databases Data Mining.
CS157B Fall 04 Introduction to Data Mining Chapter 22.3 Professor Lee Yu, Jianji (Joseph)
Introduction of Data Mining and Association Rules cs157 Spring 2009 Instructor: Dr. Sin-Min Lee Student: Dongyi Jia.
EXAM REVIEW MIS2502 Data Analytics. Exam What Tool to Use? Evaluating Decision Trees Association Rules Clustering.
Advanced Database Course (ESED5204) Eng. Hanan Alyazji University of Palestine Software Engineering Department.
Chapter 5: Business Intelligence: Data Warehousing, Data Acquisition, Data Mining, Business Analytics, and Visualization DECISION SUPPORT SYSTEMS AND BUSINESS.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 20: Data Analysis.
Chapter 20 Data Analysis and Mining. 2 n Decision Support Systems  Obtain high-level information out of detailed information stored in (DB) transaction-processing.
Data Mining Database Systems Timothy Vu. 2 Mining Mining is the extraction of valuable minerals or other geological materials from the earth, usually.
DATA MINING By Cecilia Parng CS 157B.
Data Mining Brandon Leonardo CS157B (Spring 2006).
Business Intelligence - 2 BUS 782. Topics Data warehousing Data Mining.
Database System Concepts ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com 1 Chapter 19: Information Retrieval.
MIS2502: Data Analytics Advanced Analytics - Introduction.
Academic Year 2014 Spring Academic Year 2014 Spring.
Computing & Information Sciences Kansas State University Friday, 01 Dec 2006CIS 560: Database System Concepts Lecture 40 of 42 Friday, 01 December 2006.
I am Xinyuan Niu I am here because I love to give presentations. Data Warehousing.
Data Warehousing and Data Mining. Data Warehousing Data Mining Classification Association Rules Clustering.
Chapter 20 Data Warehousing and Mining 1 st Semester, 2016 Sanghyun Park.
Lecture-6 Bscshelp.com. Todays Lecture  Which Kinds of Applications Are Targeted?  Business intelligence  Search engines.
Chapter 20 Data Warehousing and Mining 1 st Semester, 2016 Sanghyun Park.
Data Analysis Decision Support Systems Data Analysis and OLAP Data Warehousing.
Database System Concepts, 5th Ed. ©Sang Ho Lee Chapter 19: Information Retrieval.
Data Mining – Intro.
Information Retrieval
Chapter 20: Data Analysis
Web Mining Ref:
Datamining : Refers to extracting or mining knowledge from large amounts of data Applications : Market Analysis Fraud Detection Customer Retention Production.
Adrian Tuhtan CS157A Section1
Text & Web Mining 9/22/2018.
Data Analysis.
Information Retrieval
Supporting End-User Access
Chapter 20: Data Analysis
Chapter 31: Information Retrieval
Chapter 19: Information Retrieval
Presentation transcript:

Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Other Topics 2: Warehousing, Mining and Information Retrieval

©Silberschatz, Korth and Sudarshan2Database System Concepts - 6 th Edition Decision Support Systems Decision-support systems are used to make business decisions, often based on data collected by on-line transaction-processing systems. Examples of business decisions: What items to stock? What insurance premium to change? To whom to send advertisements? Examples of data used for making decisions Retail sales transaction details Customer profiles (income, age, gender, etc.)

©Silberschatz, Korth and Sudarshan3Database System Concepts - 6 th Edition Decision-Support Systems: Overview Data analysis tasks are simplified by specialized tools and SQL extensions Example tasks  For each product category and each region, what were the total sales in the last quarter and how do they compare with the same quarter last year  As above, for each product category and each customer category Statistical analysis packages (e.g., : S++) can be interfaced with databases Statistical analysis is a large field, but not covered here Data mining seeks to discover knowledge automatically in the form of statistical rules and patterns from large databases. A data warehouse archives information gathered from multiple sources, and stores it under a unified schema, at a single site. Important for large businesses that generate data from multiple divisions, possibly at multiple sites Data may also be purchased externally

©Silberschatz, Korth and Sudarshan4Database System Concepts - 6 th Edition Data Warehousing Data sources often store only current data, not historical data Corporate decision making requires a unified view of all organizational data, including historical data A data warehouse is a repository (archive) of information gathered from multiple sources, stored under a unified schema, at a single site Greatly simplifies querying, permits study of historical trends Shifts decision support query load away from transaction processing systems

©Silberschatz, Korth and Sudarshan5Database System Concepts - 6 th Edition Data Warehousing

©Silberschatz, Korth and Sudarshan6Database System Concepts - 6 th Edition Warehouse Schemas Dimension values are usually encoded using small integers and mapped to full values via dimension tables Resultant schema is called a star schema More complicated schema structures  Snowflake schema: multiple levels of dimension tables  Constellation: multiple fact tables

©Silberschatz, Korth and Sudarshan7Database System Concepts - 6 th Edition Data Warehouse Schema

©Silberschatz, Korth and Sudarshan8Database System Concepts - 6 th Edition Data Mining

©Silberschatz, Korth and Sudarshan9Database System Concepts - 6 th Edition Data Mining Data mining is the process of semi-automatically analyzing large databases to find useful patterns Prediction based on past history Predict if a credit card applicant poses a good credit risk, based on some attributes (income, job type, age,..) and past history Predict if a pattern of phone calling card usage is likely to be fraudulent Some examples of prediction mechanisms: Classification  Given a new item whose class is unknown, predict to which class it belongs Regression formulae  Given a set of mappings for an unknown function, predict the function result for a new parameter value

©Silberschatz, Korth and Sudarshan10Database System Concepts - 6 th Edition Data Mining (Cont.) Descriptive Patterns Associations  Find books that are often bought by “similar” customers. If a new such customer buys one such book, suggest the others too. Associations may be used as a first step in detecting causation  E.g. association between exposure to chemical X and cancer, Clusters  E.g. typhoid cases were clustered in an area surrounding a contaminated well  Detection of clusters remains important in detecting epidemics

©Silberschatz, Korth and Sudarshan11Database System Concepts - 6 th Edition Classification Rules Classification rules help assign new objects to classes. E.g., given a new automobile insurance applicant, should he or she be classified as low risk, medium risk or high risk? Classification rules for above example could use a variety of data, such as educational level, salary, age, etc.  person P, P.degree = masters and P.income > 75,000  P.credit = excellent  person P, P.degree = bachelors and (P.income  25,000 and P.income  75,000)  P.credit = good Rules are not necessarily exact: there may be some misclassifications Classification rules can be shown compactly as a decision tree. Several algorithms for constructing decision trees: see book for details

©Silberschatz, Korth and Sudarshan12Database System Concepts - 6 th Edition Decision Tree

©Silberschatz, Korth and Sudarshan13Database System Concepts - 6 th Edition Other Types of Classifiers Neural net classifiers are studied in artificial intelligence and are not covered here Bayesian classifiers (see book for details) Support Vector Machines (see book for details)

©Silberschatz, Korth and Sudarshan14Database System Concepts - 6 th Edition Association Rules Retail shops are often interested in associations between different items that people buy. Someone who buys bread is quite likely also to buy milk A person who bought the book Database System Concepts is quite likely also to buy the book Operating System Concepts. Associations information can be used in several ways. E.g. when a customer buys a particular book, an online shop may suggest associated books. Association rules: bread  milk DB-Concepts, OS-Concepts  Networks Left hand side: antecedent, right hand side: consequent An association rule must have an associated population; the population consists of a set of instances  E.g. each transaction (sale) at a shop is an instance, and the set of all transactions is the population

©Silberschatz, Korth and Sudarshan15Database System Concepts - 6 th Edition Association Rules (Cont.) Rules have an associated support, as well as an associated confidence. Support is a measure of what fraction of the population satisfies both the antecedent and the consequent of the rule. E.g. suppose only percent of all purchases include milk and screwdrivers. The support for the rule is milk  screwdrivers is low. Confidence is a measure of how often the consequent is true when the antecedent is true. E.g. the rule bread  milk has a confidence of 80 percent if 80 percent of the purchases that include bread also include milk.

©Silberschatz, Korth and Sudarshan16Database System Concepts - 6 th Edition Clustering Clustering: Intuitively, finding clusters of points in the given data such that similar points lie in the same cluster Can be formalized using distance metrics in several ways Group points into k sets (for a given k) such that the average distance of points from the centroid of their assigned group is minimized  Centroid: point defined by taking average of coordinates in each dimension. Another metric: minimize average distance between every pair of points in a cluster Has been studied extensively in statistics, but on small data sets Data mining systems aim at clustering techniques that can handle very large data sets E.g. the Birch clustering algorithm (more shortly)

©Silberschatz, Korth and Sudarshan17Database System Concepts - 6 th Edition Hierarchical Clustering Example from biological classification (the word classification here does not mean a prediction mechanism) chordata mammalia reptilia leopards humans snakes crocodiles Other examples: Internet directory systems (e.g. Yahoo, more on this later)

©Silberschatz, Korth and Sudarshan18Database System Concepts - 6 th Edition Other Types of Mining Text mining: application of data mining to textual documents cluster Web pages to find related pages cluster pages a user has visited to organize their visit history classify Web pages automatically into a Web directory

©Silberschatz, Korth and Sudarshan19Database System Concepts - 6 th Edition Information Retrieval

©Silberschatz, Korth and Sudarshan20Database System Concepts - 6 th Edition Information Retrieval Systems Information retrieval (IR) systems use a simpler data model than database systems Information organized as a collection of documents Documents are unstructured, no schema Information retrieval locates relevant documents, on the basis of user input such as keywords or example documents e.g., find documents containing the words “database systems” Can be used even on textual descriptions provided with non-textual data such as images Web search engines are the most familiar example of IR systems

©Silberschatz, Korth and Sudarshan21Database System Concepts - 6 th Edition Information Retrieval Systems (Cont.) Differences from database systems IR systems don’t deal with transactional updates (including concurrency control and recovery) Database systems deal with structured data, with schemas that define the data organization IR systems deal with some querying issues not generally addressed by database systems  Approximate searching by keywords  Ranking of retrieved answers by estimated degree of relevance

©Silberschatz, Korth and Sudarshan22Database System Concepts - 6 th Edition Keyword Search In full text retrieval, all the words in each document are considered to be keywords. We use the word term to refer to the words in a document Ranking of documents on the basis of estimated relevance to a keyword query is critical Relevance ranking is based on factors such as  Term frequency – Frequency of occurrence of query keyword in document  Inverse document frequency – How many documents the query keyword occurs in » Fewer  give more importance to keyword  Hyperlinks to documents – More links to a document  document is more important

©Silberschatz, Korth and Sudarshan23Database System Concepts - 6 th Edition Relevance Using Hyperlinks Use number of hyperlinks to a site as a measure of the popularity or prestige of the site Count only one hyperlink from each site (why? - see previous slide) Popularity measure is for site, not for individual page  But, most hyperlinks are to root of site  Also, concept of “site” difficult to define since a URL prefix like cs.yale.edu contains many unrelated pages of varying popularity Refinements When computing prestige based on links to a site, give more weight to links from sites that themselves have higher prestige  Definition is circular  Set up and solve system of simultaneous linear equations Above idea is basis of the Google PageRank ranking mechanism

©Silberschatz, Korth and Sudarshan24Database System Concepts - 6 th Edition Web Search Engines Web crawlers are programs that locate and gather information on the Web Recursively follow hyperlinks present in known documents, to find other documents  Starting from a seed set of documents Fetched documents  Handed over to an indexing system  Can be discarded after indexing, or store as a cached copy

©Silberschatz, Korth and Sudarshan25Database System Concepts - 6 th Edition Information Retrieval and Structured Data Information retrieval systems originally treated documents as a collection of words Information extraction systems infer structure from documents, e.g.: Extraction of house attributes (size, address, number of bedrooms, etc.) from a text advertisement Extraction of topic and people named from a new article Relations or XML structures used to store extracted data System seeks connections among data to answer queries Keyword querying on structured data