
Explore data mining techniques in R, including association analysis and social network visualization with the graph package, plus text processing and time series mining for business analytics.
Generally, data mining (sometimes called data or knowledge discovery) is the process of analyzing data from different perspectives and summarizing it into useful information - information that can be used to increase revenue, cuts costs, or both. Data mining software is one of a number of analytical tools for analyzing data. It allows users to analyze data from many different dimensions or angles, categorize it, and summarize the relationships identified. Technically, data mining is the process of finding correlations or patterns among dozens of fields in large relational databases.
Learn how to read csv in R, use foreign for SPSS files, convert to data frames, and explore vectors, matrices, and lists with indexing, naming, and viewing commands.
Data visualization or data visualisation is viewed by many disciplines as a modern equivalent of visual communication. It is not owned by any one field, but rather finds interpretation across many (e.g. it is viewed as a modern branch of descriptive statistics by some, but also as a grounded theory development tool by others). It involves the creation and study of the visual representation of data, meaning "information that has been abstracted in some schematic form, including attributes or variables for the units of information".
A primary goal of data visualization is to communicate information clearly and efficiently to users via the statistical graphics, plots, information graphics, tables, and charts selected. 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 understandingcausality, 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.
Create mosaic plots in R with color, legends, and labels, 2d and 3d visuals with animation and export options. Explore covariance and correlation, standardization, and scatterplot matrices with g-g plot.
Explore how scan reads from keyboard or files, compare with read.table or read.csv for loading data, and learn to manage lists and vectors, including pathnames and column selection.
Master input and output in R: readLine prompts, loading and accessing datasets from packages, attaching data, and referencing variables with package$dataset for plotting and analysis.
Affinity analysis, a form of association analysis, is a data analysis and data mining technique that discovers co-occurrence relationships among activities performed by (or recorded about) specific individuals or groups. In general, this can be applied to any process where agents can be uniquely identified and information about their activities can be recorded. In retail, affinity analysis is used to perform market basket analysis, in which retailers seek to understand the purchase behavior of customers. This information can then be used for purposes of cross-selling and up-selling, in addition to influencing sales promotions, loyalty programs, store design, and discount plans.
Explore association analysis in data mining with R, focusing on discovering rules about item co-occurrence in transactions using support, confidence, and lift, including frequent item sets and practical three-item examples.
The sinking of the Titanic is a famous event, and new books are still being published about it. Many well-known facts—from the proportions of first-class passengers to the 'women and children first' policy, and the fact that that policy was not entirely successful in saving the women and children in the third class—are reflected in the survival rates for various classes of passenger.
These data were originally collected by the British Board of Trade in their investigation of the sinking. Note that there is not complete agreement among primary sources as to the exact numbers on board, rescued, or lost.
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. Based on the concept of strong rules, Rakesh Agrawal et al.[2] introduced association rules for discovering regularities between products in large-scale transaction data recorded by point-of-sale (POS) systems in supermarkets. For example, the rule found in the sales data of a supermarket would indicate that if a customer buys onions and potatoes together, they are likely to also buy hamburger meat. Such information can be used as the basis for decisions about marketing activities such as, e.g., promotional pricing or product placements. In addition to the above example frommarket basket analysis association rules are employed today in many application areas including Web usage mining, intrusion detection, Continuous production, and bioinformatics. In contrast with sequence mining, association rule learning typically does not consider the order of items either within a transaction or across transactions.
Interpret rules using support, confidence, and lift to report high-confidence associations, and compare survival rates across first, second, and third class and child versus adult groups.
Association rule mining is one of the most popular data mining methods. However, mining association rules often results in a very large number of found rules, leaving the analyst with the task to go through all the rules and discover interesting ones. Sifting manually through large sets of rules is time consuming and strenuous. Visualization has a long history of making large amounts of data better accessible using techniques like selecting and zooming. However, most association rule visualization techniques are still falling short when it comes to a large number of rules. In this paper we present a new interactive visualization technique which lets the user navigate through a hierarchy of groups of association rules. We demonstrate how this new visualization techniques can be used to analyze a large sets of association rules with examples from our implementation in the R-package arulesViz.
Explore interactive visualizations of association rules, inspecting individual or grouped rules with lasso, zoom, and filters while interpreting support, confidence, and lift in plots.
In data mining and association rule learning, lift is a measure of the performance of a targeting model (association rule) at predicting or classifying cases as having an enhanced response (with respect to the population as a whole), measured against a random choice targeting model. A targeting model is doing a good job if the response within the target is much better than the average for the population as a whole. Lift is simply the ratio of these values: target response divided by average response.
For example, suppose a population has an average response rate of 5%, but a certain model (or rule) has identified a segment with a response rate of 20%. Then that segment would have a lift of 4.0 (20%/5%).
Typically, the modeller seeks to divide the population into quantiles, and rank the quantiles by lift. Organizations can then consider each quantile, and by weighing the predicted response rate (and associated financial benefit) against the cost, they can decide whether to market to that quantile or not.
Lift is analogous to information retrieval's average precision metric, if one treats the precision (fraction of the positives that are true positives) as the target response probability.
The lift curve can also be considered a variation on the receiver operating characteristic (ROC) curve, and is also known in econometrics as the Lorenz or power curve.
The difference between the lifts observed on two different subgroups is called the uplift. The subtraction of two lift curves forms the uplift curve, which is a metric used in uplift modelling.
It is important to note that in general marketing practice the term Lift is also defined as the difference in response rate between the treatment and control groups, indicating the causal impact of a marketing program (versus not having it as in the control group). As a result, "no lift" often means there is no statistically significant effect of the program. On top of this, uplift modelling is a predictive modeling technique to improve (up) lift over control.
Explore generating and pruning association rules for income prediction using item frequency plots, min support, and 60 percent confidence to reveal patterns like part-time hours and capital gains.
igraph is a library collection for creating and manipulating graphs and analyzing networks. It is written in C/C++ and also exists as Python and R packages. The software is widely used in academic research in network science and related fields.
Create and visualize graphs with iGraph, color nodes and edges, adjust layouts, load graphs with read_graph, and explore Pagett graphs and classic models like Barabasi-Albert and Watts-Strogatz.
Explore iGraph visualizations by creating a 10 by 10 lattice graph, assigning random edge weights from a uniform distribution, coloring edges red when weights exceed 0.9 on gray.
Explore iGraph measurement examples, examining diameter, average path length, transitivity (clustering coefficient), degree and degree distribution in lattice and small-world networks, including rewiring effects.
Explore iGraph visualization using Trueman's Reingold layout, labeled networks, and interactive plots; then build a term-document matrix, convert to boolean, and derive a term-term adjacency network.
Visualize iGraph networks by coloring vertices by tweet associations, labeling perimeter and isolated nodes with tweet IDs and first 20 characters, and weighting edges to reveal clusters.
The term 'social network' is increasingly used in the mainstream where it is inextricably tied to notions of influence. Mark Granovetter's articles on "The Strength of Weak Ties" (Granovetter 1973) and "Threshold Models of Collective Behavior" (Granovetter 1978) were probably the first to ignite public fascination with social networks and the spread of ideas, but Malcom Gladwell's (2000) best selling The Tipping Point is surely responsible for the most recent public fascination with social networks and the spread of social phenomena. Gladwell writes that change occurs when sociological phenomena (ideas, products, behaviors) reach critical mass; in other words, these phenomena spread through society like diseases. This idea has proven so attractive to that people now use the expression "that video went viral" to describe popular YouTube clips. In Gladwell's "framework," the success or failure of any social epidemic depends on the configuration of the network of social ties, which are analogous to disease vectors. He argues that a relatively few number of people, known as "connectors, mavens, and salesmen" hold the keys to spreading a good idea to a large enough number of people so it 'sticks.' The implication is that with the right combination of these few people on your side, you wield major social influence.
Explore degree and betweenness centrality in a network of 16 powerful Florentine families, showing how marriage shaped power, using an adjacency matrix and network plots in data mining with R.
Analyze a high school friendship network with exponential family random graph models, examining degree, betweenness, density, and isolates from the adjacency matrix.
Analyze a friendship network in R to explore degree, singletons, and dispersion via box plots, and reveal gender and grade differences in social interactions.
Analyze density of student interactions by grade and gender, compute cross-grade and same-grade frequencies, and compare visualizations like Fruchterman-Reingold, Kamada-Kawai, and circle layouts.
The data to analyze is Twitter text data of @RDataMining used in the example of Text Mining, and it can be downloaded as file “termDocMatrix.rdata” at the Data webpage. Putting it in a general scenario of social networks, the terms can be taken as people and the tweets as groups on LinkedIn, and the term-document matrix can then be taken as the group membership of people. We will build a network of terms based on their co-occurrence in the same tweets, which is similar with a network of people based on their group memberships.
Construct and analyze a term-document matrix from tweets, with terms as rows and documents as columns. Learn about sparse objects, term counts, and sparsity.
Build your own text processing functions in R to lowercase, strip non-alpha characters, and extract unique words with positions, then convert to a named vector via unlist.
Explore how lists coerce types from integers to complex and characters, and learn to manipulate names, apply functions, and sort by frequency for text processing in R.
A 'regular expression' is a pattern that describes a set of strings. Two types of regular expressions are used in R, extended regular expressions (the default) and Perl-like regular expressions used by perl = TRUE. There is a also fixed = TRUE which can be considered to use a literal regular expression.
Time series decomposition is to decompose a time series into trend, seasonal, cyclical and irregular components.
Examine multiple time series in R by intersecting Australia’s electricity consumption with US air passengers over overlapping years, plot both, compare trends, and illustrate potential spurious correlations.
Extract features from time series data and classify with a decision tree using discrete wavelet transform and wavelet features, comparing to original data with SVD.
Explore how to analyze monthly house price changes using R: visualize increases and decreases with colored plots, build rate matrices, and compare yearly and monthly trends with box plots.
Learn to decompose a house price index into trend and seasonal components using time series methods, then forecast future values with an ARIMA model and interpret confidence intervals.
More Data Mining with R presents a comprehensive overview of a myriad of contemporary data mining techniques. More Data Mining with R is the logical follow-on course to the preceding Udemy course Data Mining with R: Go from Beginner to Advanced although it is not necessary to take these courses in sequential order. Both courses examine and explain a number of data mining methods and techniques, using concrete data mining modeling examples, extended case studies, and real data sets. Whereas the preceding Data Mining with R: Go from Beginner to Advanced course focuses on: (1) linear, logistic and local polynomial regression; (2) decision, classification and regression trees (CART); (3) random forests; and (4) cluster analysis techniques, this course, More Data Mining with R presents detailed instruction and plentiful "hands-on" examples about: (1) association analysis (or market basket analysis) and creating, mining and interpreting association rules using several case examples; (2) network analysis, including the versatile iGraph visualization capabilities, as well as social network data mining analysis cases (marriage and power; friendship links); (3) text mining using Twitter data and word clouds; (4) text and string manipulation, including the use of 'regular expressions'; (5) time series data mining and analysis, including an extended case study forecasting house price indices in Canberra, Australia.