Tuesday, 23 December 2014

ASSOCIATION RULES

Association Rules
Association rules are if-then statements that help uncover relationships between seemingly unrelated data in a relational database or other information repository. An example of an association rule would be "If a customer buys a dozen eggs, he is 80% likely to also purchase milk."
Association rule learning is a popular and well researched method for discovering interesting relations between variables in large databases. It is intended to identify strong rules discovered in databases using different measures of interestingness.

An association rule has two parts:
1.    Antecedent (if)
2.    Consequent (then).

An antecedent is an item found in the data. A consequent is an item that is found in combination with the antecedent.
Association rules are created by analyzing data for frequent if/then patterns and using the criteria support and confidence to identify the most important relationships. Support is an indication of how frequently the items appear in the database. Confidence indicates the number of times the if/then statements have been found to be true.

Importance of Association Rules in Data Mining
1.    In data mining, association rules are useful for analyzing and predicting customer behavior. They play an important part in shopping basket data analysis, product clustering, catalog design and store layout.
2.    Programmers use association rules to build programs capable of machine learning.  Machine learning is a type of artificial intelligence (AI) that seeks to build programs with the ability to become more efficient without being explicitly programmed. 

K-NEAREST NEIGHBORS ALGORITHM

k-Nearest Neighbors Algorithm
In pattern recognition, the k-Nearest Neighbors algorithm (or k-NN for short) is a non-parametric Machine Learning method used for classification and regression. In both cases, the input consists of the k closest training examples in the feature space. The output depends on whether k-NN is used for classification or regression:
·         In k-NN classification, the output is a class membership. An object is classified by a majority vote of its neighbors, with the object being assigned to the class most common among its k nearest neighbors (k is a positive integer, typically small). If k = 1, then the object is simply assigned to the class of that single nearest neighbor.
·         In k-NN regression, the output is the property value for the object. This value is the average of the values of its k nearest neighbors.

Given N training Vectors, the k-Nearest neighbor algorithm identifies the k nearest neighbors of new element ‘c’ regardless of labels.
When k=1, each training vector defines a region in space, defining a voronoi partition of the space.
Remarks:
1.    Choose an odd value of k for a 2 class problem.
2.    K must not be multiple of number of classes.
k-NN is a type of instance-based learning, or lazy learning, where the function is only approximated locally and all computation is deferred until classification. The k-NN algorithm is among the simplest of all machine learning algorithms.
Both for classification and regression, it can be useful to weight the contributions of the neighbors, so that the nearer neighbors contribute more to the average than the more distant ones. For example, a common weighting scheme consists in giving each neighbor a weight of 1/d, where d is the distance to the neighbor.
The neighbors are taken from a set of objects for which the class (for k-NN classification) or the object property value (for k-NN regression) is known. This can be thought of as the training set for the algorithm, though no explicit training step is required.
Disadvantage of k Nearest Neighbor Algorithm
1.    A shortcoming of the k-NN algorithm is that it is sensitive to the local structure of the data.
2.    The main drawback of k-NN is the complexity in searching the nearest neighbors for each sample.

DATA VISUALIZATION

Data visualization
Data visualization refers to the techniques used to communicate data or information by encoding it as visual objects (e.g., points, lines or bars) contained in graphics.
A primary goal of data visualization is to communicate information clearly and efficiently to users via the information graphics selected, such as tables and charts. Effective visualization helps users in analyzing and reasoning about data and evidence. It makes complex data more accessible, understandable and usable. Users may have particular analytical tasks, such as making comparisons or understanding causality, and the design principle of the graphic (i.e., showing comparisons or showing causality) follows the task. Tables are generally used where users will look-up a specific measure of a variable, while charts of various types are used to show patterns or relationships in the data for one or more variables.
Data Visualization Techniques should:
·         show the data
·         induce the viewer to think about the substance rather than about methodology, graphic design, the technology of graphic production or something else
·         avoid distorting what the data have to say
·         present many numbers in a small space
·         make large data sets coherent
·         encourage the eye to compare different pieces of data
·         reveal the data at several levels of detail, from a broad overview to the fine structure.
·         serve a reasonably clear purpose: description, exploration, tabulation or decoration.
·         be closely integrated with the statistical and verbal descriptions of a data set.

Two primary types of information displays are tables and graphs.
·         A table contains quantitative data organized into rows and columns with categorical labels. It is primarily used to lookup specific values. In the example above, the table might have categorical column labels representing the name (a qualitative variable) and age (a quantitative variable), with each row of data representing one person (the sampled experimental unit or category subdivision).
·         A graph is primarily used to show relationships among data and portrays values encoded as visual objects (e.g., lines, bars, or points). Numerical values are displayed within an area delineated by one or more axes. These axes provide scales (quantitative and categorical) used to label and assign values to the visual objects. Many graphs are also referred to as charts.


MULTI DIMENSIONAL DATABASE

MULTI DIMENSIONAL DATABASE
A multidimensional database is a computer software system designed to allow for the efficient and convenient storage and retrieval of large volumes of data that is
·         intimately related and
·         stored, viewed and analyzed from different perspectives.
These perspectives are called dimensions.
A multidimensional database (MDB) is a type of database that is optimized for data warehouse and online analytical processing (OLAP) applications. Multidimensional data-base technology is a key factor in the interactive analysis of large amounts of data for decision-making purposes.
Multi dimensional database technology:
1.    A multidimensional database (MDB) is a type of database that is optimized for data warehouse and online analytical processing (OLAP) applications.
2.    Multidimensional databases are frequently created using input from existing relational databases.
3.    Whereas a relational database is typically accessed using a Structured Query Language (SQL) query, a multidimensional database allows a user to ask questions related to summarizing business operations and trends.
4.    An OLAP application that accesses data from a multidimensional database is known as a MOLAP (multidimensional OLAP) application.
5.    A multidimensional database - or a multidimensional database management system (MDDBMS) - implies the ability to rapidly process the data in the database so that answers can be generated quickly.
6.    Conceptually, a multidimensional database uses the idea of a data cube to represent the dimensions of data available to a user. Additionally, a database creator can define hierarchies and levels within a dimension.

 ADVANTAGES OF MULTI DIMENSIONAL DATABASE
·         Fast query performance due to optimized storage, multidimensional indexing and caching.
·         Smaller on-disk size of data compared to data stored in relational database due to compression techniques.
·         Automated computation of higher level aggregates of the data.
·         It is very compact for low dimension data sets.
·         Array models provide natural indexing.
·         Effective data extraction achieved through the pre-structuring of aggregated data.

DISADVANTAGES OF MULTI DIMENSIONAL DATABASE
·         Within some MOLAP solutions the processing step (data load) can be quite lengthy, especially on large data volumes.
·         Some methodologies of multi-dimensional database introduce data redundancy.


KNOWLEDGE DISCOVERY IN DATABASE

Knowledge discovery in databases:
Knowledge discovery is defined as ``the non-trivial extraction of implicit, unknown, and potentially useful information from data''.
The term Knowledge Discovery in Databases, or KDD for short, refers to the broad process of finding knowledge in data, and emphasizes the "high-level" application of particular data mining methods.
It is of interest to researchers in machine learning, pattern recognition, databases, statistics, artificial intelligence, knowledge acquisition for expert systems, and data visualization.
The unifying goal of the KDD process is to extract knowledge from data in the context of large databases.


Steps involved in knowledge discovery process:

  1. Data Cleaning/Preprocessing - In this step the noise and inconsistent data is removed.
  2. Data Integration - In this step multiple data sources are combined.
  3. Data Selection - In this step data relevant to the analysis task are retrieved from the database (in this step, significant data gets created or selected.)
  4. Data Transformation - In this step data are transformed or consolidated into forms appropriate for mining by performing summary or aggregation operations.
  5. Data Mining - In this step intelligent methods are applied in order to extract data patterns.
  6. Pattern Evaluation - In this step, data patterns are evaluated.
  7. Knowledge Presentation - In this step, knowledge is represented.

DECISION SUPPORT SYSTEM

Decision Support System
A Decision Support System (DSS) is a computer-based information system that supports business or organizational decision-making activities.
DSSs serve the management, operations, and planning levels of an organization and help to make decisions, which may be rapidly changing and not easily specified in advance.
Decision support systems can be either fully computerized, human or a combination of both.
DSSs include knowledge-based systems. A properly designed DSS is an interactive software-based system intended to help decision makers compile useful information from a combination of raw data, documents, and personal knowledge, or business models to identify and solve problems and make decisions.
Components
Typical Decision support systems have four components:
1.    Data management,
2.    Model management,
3.    Knowledge management and
4.    User interface management.

·         Data Management Component
o   The data management component performs the function of storing and maintaining the information that you want your Decision Support System to use. The data management component, therefore, consists of both the Decision Support System information and the Decision Support System database management system.
·         The model management component
o   The model management component consists of both the Decision Support System models and the Decision Support System model management system. A model is a representation of some event, fact, or situation. Decision Support Systems help in various decision-making situations by utilizing models that allow you to analyze information in many different ways. The models you use in a Decision Support System depend on the decision you are making and, consequently, the kind of analysis you require. The model management system stores and maintains the Decision Support Systems models. The model management component cannot select the best model for you to use for a particular problem that requires your expertise but it can help you create and manipulate models quickly and easily.
·         The user interface management component
o   The user interface management component allows you to communicate with the Decision Support System. It consists of the user interface management system. This is the component that allows you to combine your know-how with the storage and processing capabilities of the computer.
·         The knowledge management component
o   The knowledge management component, like that in an expert system, provides information about the relationship among data that is too complex for a database to represent. It consists of rules that can constrain possible solution as well as alternative solutions and methods for evaluating them.

Data mining importance in Decision Support System:
1.    Data mining can help identify relations and rules that can be incorporated in Knowledge-driven DSS.
2.    Case-based reasoning can be used to create a specific Knowledge-driven DSS that can be used by a manager or a knowledge worker who is trying to diagnosis problems in that "case" environment.
3.    Data visualization tools can be incorporated with a structured data set to assist managers in making a recurring decision where the data set is routinely updated.
4.    Other tools like neural networks may also have a place in creating capabilities in specific DSS.
5.    One can also identify DSS applications that use data mining tools in fraud detection, category management and direct marketing.