1 & 2. Data Analytic Thinking and Data Science in Business - 6bolin9/Data-Science-For-Business-Foster-Provost-and-Tom-Fawcett- GitHub Wiki

Welcome to the Data-Science-For-Business-Foster-Provost-and-Tom-Fawcett- wiki!

Summary and Notes of general principles in data science.

Fundamental concepts are applied to business problems or to think data-analytically. Thinking data-analytically is aided by conceptual frameworks discussed throughout the book.

1. Data-Analytic Thinking

Introduces three types of concepts

  • How data science fits into the organization, how data science leads to competitive advantage and illustrate tactical concepts for improving your projects.

  • think data analytically and introduce high-level data mining tasks

  • provide concepts for extracting knowledge from data

    • Lift: used to judge the weight of evidence for or against one conclusion. How much more prevalent a pattern is than would be expected by chance.

Typical industries

  • Marketing
    • targeted marketing
    • online advertising
    • recommendations for cross-selling
  • Data mining in Finance
    • credit scoring
    • trading
    • fraud detection

What is Data Science? What is Data Mining?

It is a set of fundamental principles that guide the extraction of knowledge from Data.
Data Mining is the extraction of knowledge from data, via knowledge that incorporates these principles.
This book introduces these principles. Data mining techniques embody these principles.

Churn: customers switch from one company to another. Companies like create incentives to attract more customers.

Data Science in Telecommunication industry: it's more expensive to attract new customers than to retain existing customers. Should devise plans, use vast data resources and decide which consumer should be offered special retention deal prior to the expiration of their contracts.

DDD: Data-Driven Decision Making
The major difference from traditional decision making: the decision is based on the analysis of data rather than purely on intuition. 1 SD higher on the DDD scale is associated with a 4~6% increase in productivity (return on assets, return on equity, asset utilization, and market value).
DDD types

  • Find unconventional relationships
  • Increase predictive accuracy

How to invest in data assets very often pays off handsomely?

Key strategic assets: data and the capability to extract useful knowledge from data

The 1980s: credit cards essentially had uniform pricing, for two reasons: (1) the companies did not have adequate information systems to deal with differential pricing at massive scale, and (2) bank management believed customers would not stand for price discrimination. Modeling the probability of default (Data Science) had changed the industry from the personal assessment of the likelihood of default to strategies of massive scale and market share, which brought along concomitant economies of scale. Signet Bank’s management was convinced that modeling profitability, not just default probability, was the right strategy.

Martens and Provost (2011) examined sociodemographic data provide a substantial ability to model the sort of consumers that are more likely to purchase different products, but after a certain volume of sociodemographic data, no additional advantage is generated. But customers’ individual (anonymized) transactions improve performance substantially over just using sociodemographic data. Bigger data assets may have an important strategic advantage for companies.

2. Business Problems and Data Science Solutions

A critical skill in data science is the ability to decompose a data-analytics problem into pieces such that each piece matches a known task for which tools are available. Recognizing familiar problems and their solutions avoids wasting time and resources reinventing the wheel. It also allows people to focus attention on more interesting parts of the process that require human involvement—parts that have not been automated, so human creativity and intelligence must come into play.

Nine Fundamental Problems

  1. Classification and class probability estimation attempt to predict, for each individual in a population, which of a (small) set of classes this individual belongs to.

Usually the classes are mutually exclusive. An example classification question would be: “Among all the customers, which are likely to respond to a given offer?” Two classes could be called will respond and will not respond.
A closely related task is scoring or class probability estimation. A scoring model applied to an individual produces, instead of a class prediction, a score representing the probability (or some other quantification of likelihood) that individual belongs to each class.

  1. Regression or “value estimation” attempts to estimate, for each individual, the numerical value of some variable for that individual.

classification predicts whether something will happen, whereas regression predicts how much something will happen.

  1. Similarity matching attempts to identify similar individuals.

IBM is interested in finding companies similar to their best business customers, in order to focus their sales force on the best opportunities. They use similarity matching based on “firmographic” data describing characteristics of the companies.

Similarity matching is the basis for one of the most popular methods for making product recommendations. Similarity measures underlie certain solutions to other data mining tasks, such as classification, regression, and clustering. Will Discuss in Chapter 6.

  1. Clustering analysis attempts to group individuals in a population together by their similarity, but not driven by any specific purpose.

(1)Clustering is useful in preliminary domain exploration to see which natural groups exist. (2)Clustering also is used as input to decision-making processes focusing on questions such as: What products should we offer or develop? How should our customer care teams (or sales teams) be structured? Discuss clustering in depth in Chapter

  1. Co-occurrence grouping (also known as frequent itemset mining, association rule discovery, and market-basket analysis) attempts to find associations between entities based on transactions involving them. What items are commonly purchased together? While clustering looks at the similarity between objects based on the objects’ attributes, co-occurrence grouping considers the similarity of objects based on their appearing together in transactions.

Analyzing purchase records from a supermarket may uncover that ground meat is purchased together with hot sauce much more frequently than we might expect. It could suggest a special promotion, product display, or combination offer.

Co-occurrence of products in purchases is a common type of grouping known as market-basket analysis. Recommendation systems also perform a type of affinity grouping by finding, for example, people who bought X also bought Y. The result of co-occurrence grouping is a description of items that occur together. These descriptions usually include statistics on the frequency of the co-occurrence and an estimate of how surprising it is.

  1. Profiling or behavior description characterizes the typical behavior of an individual, group, or population.

What is the typical cell phone usage of this customer segment? Behavior may not have a simple description; profiling cell phone usage might require a complex description of night and weekend airtime averages, international usage, roaming charges, text minutes, and so on. Behavior can be described generally over an entire population, or down to the level of small groups or even individuals.

Profiling is often used to establish behavioral norms for anomaly detection applications such as fraud detection and monitoring for intrusions to computer systems (such as someone breaking into your iTunes account). For example, if we know what kind of purchases a person typically makes on a credit card, we can determine whether a new charge on the card fits that profile or not. We can use the degree of the mismatch as a suspicion score and issue an alarm if it is too high.

  1. Link prediction attempts to predict connections between data items, usually by suggesting that a link should exist and possibly also estimating the strength of the link. Link prediction is common in social networking systems(friends recommendations), and prediction can also estimate the strength of a link.

For recommending movies to customers, one can think of a graph between customers and the movies they’ve watched or rated. Within the graph, we search for links that do not exist between customers and movies, but that we predict should exist and should be strong. These links form the basis for recommendations.

  1. Data reduction: take a large set of data and replace it with a smaller set of data that contains much of the important information in the larger set. The smaller dataset may be easier to deal with or to process and may better reveal the information.

A massive dataset on consumer movie-viewing preferences may be reduced to a much smaller dataset revealing the consumer taste preferences that are latent in the viewing data (for example, viewer genre preferences).What is important is the trade-off for improved insight.

  1. Causal modeling attempts to help us understand what events or actions actually influence others.

For example, consider that we use predictive modeling to target advertisements to consumers, and we observe that indeed the targeted consumers purchase at a higher rate subsequent to having been targeted. Was this because the advertisements influenced the consumers to purchase? Or did the predictive models simply do a good job of identifying those consumers who would have purchased anyway?

Techniques for causal modeling: randomized controlled experiments (e.g., so-called “A/B tests”), as well as sophisticated methods for drawing causal conclusions from observational data.

Both experimental and observational methods for causal modeling generally can be viewed as “counterfactual” analysis: try to understand what would be the difference between the situations—which cannot both happen—where the “treatment” event (e.g., showing an advertisement to a particular individual) were to happen, and were not to happen.

It's very important to weigh the trade-off of increasing investment to reduce the assumptions made, versus deciding that the conclusions are good enough given the assumptions.

Nine Typical Problems and Supervised & Unsupervised methods

Classification, regression, and causal modeling generally are solved with supervised methods. Similarity matching, link prediction, and data reduction could be either. Clustering, co-occurrence grouping, and profiling generally are unsupervised. Two main subclasses of supervised data mining, classification and regression, are distinguished by the type of target. For business applications, we often want a numerical prediction over a categorical target.

In the churn example, a basic yes/no prediction of whether a customer is likely to continue to subscribe to the service may not be sufficient; we want to model the probability that the customer will continue. This is still considered classification modeling rather than regression because the underlying target is categorical. Where necessary for clarity, this is called “class probability estimation.”

Data Mining VS Its Results

In the churn example, consider the deployment scenario in which the results will be used. We want to use the model to predict which of our customers will leave. Assume that data mining has created a class probability estimation model M.

  • Use of Data mining results: the model is applied to a new, unseen case and it generates a probability estimate for it.

  • Data Mining: The data mining produces the model M from some other, often historical, data.
    Cross Industry Standard Process for Data Mining (CRISP-DM; Shearer, 2000) Going through the process once without having solved the problem is, generally speaking, not a failure. Often the entire process is an exploration of the data, and after the first iteration, the data science team knows much more. The next iteration can be much more well-informed.

  • (1)BUSINESS UNDERSTANDING:
    this stage represents a part of the craft where the analysts’ creativity plays a large role.
    How to cast the business problem as one or more data science problems is important. High-level knowledge of the fundamentals helps creative business analysts see novel formulations.
    Think carefully about the use scenario. What exactly do we want to do? How exactly would we do it? What parts of this use scenario constitute possible data mining models? We will begin with a simplified view of the use scenario, but as we go forward we will loop back and realize that often the use scenario must be adjusted to better reflect the actual business need.

  • (2)DATA UNDERSTANDING:
    Historical data often are collected for purposes unrelated to the current business problem, or for no explicit purpose at all. A customer database, a transaction database, and a marketing response database contain different information, may cover different intersecting populations, and may have varying degrees of reliability. A crucial part is estimating the costs and benefits of each data source and deciding whether further investment is merited.

Customer records and product identifiers are notoriously variable and noisy. Cleaning and matching customer records to ensure only one record per customer is itself a complicated analytics problem (Hernández & Stolfo, 1995; Elmagarmid, Ipeirotis, & Verykios, 2007).
we need to dig beneath the surface to uncover the structure of the business problem and the data that are available, and then match them to one or more data mining tasks for which we may have substantial science and technology to apply.

  • (3) DATA PREPARATION:
    Typical examples of data preparation are converting data to tabular format, removing or inferring missing values, and converting data to different types. Numerical values must often be normalized or scaled so that they are comparable. (chapter 3).
    One very general and important concern during data preparation is to beware of “leaks” (Kaufman et al. 2012). A leak is a situation where a variable collected in historical data gives information on the target variable—information that appears in historical data but is not actually available when the decision has to be made.

As another illustrative example, consider predicting whether a customer will be a “big spender”; knowing the categories of the items purchased (or worse, the amount of tax paid) are very predictive but are not known at decision-making time (Kohavi & Parekh, 2003).
Leakage must be considered carefully during data preparation because data preparation typically is performed after the fact—from historical data.(chapter 14).

  • (4) Modeling: the primary place where data mining techniques are applied to the data. This is the part of the craft where the most science and technology can be brought to bear.
  • (5) EVALUATION: If we look hard enough at any dataset we will find patterns, but they may not survive careful scrutiny.
    It is possible to deploy results immediately after data mining but this is inadvisable; it is usually far easier, cheaper, quicker, and safer to test a model first in a controlled laboratory setting.. Quantitative assessment: Whether the model is going to do more good than harm, and especially that the model is unlikely to make catastrophic mistakes. Qualitative assessment: think about the comprehensibility of the model to stakeholders. Often there is only limited access to the deployment environment so making a comprehensive evaluation “in production” is difficult.
    Additionally, the output of the model is critically dependent on the input data; input data can change in format and in substance, often without any alerting of the data science team.
  • (6) DEPLOYMENT

SOFTWARE SKILLS VERSUS ANALYTICS SKILLS

In software engineering, the ability to write efficient, high-quality code from requirements may be paramount. Team members may be evaluated using software metrics such as the amount of code written or number of bug tickets closed. it’s more important for individuals to be able to formulate problems well, to prototype solutions quickly, to make reasonable assumptions in the face of ill-structured problems, to design experiments that represent good investments, and to analyze results.

Analytic techniques VS Data Mining

The main difference is that data mining focuses on the automated search for knowledge, patterns, or regularities from data. Recognize what sort of analytic technique is appropriate for addressing a particular problem.

  • STATISTICS:

    • To dig deeper, calculate summary statistics, the basic building blocks of much data science theory and practice, conditionally on one or more subsets of the population.
      (“Does the churn rate differ between male and female customers?” and “What about high-income customers in the Northeast”). Summary statistics should be chosen with close attention to the business problem to be solved, and also with attention to the distribution of the data they are summarizing.(mean is not as appropriate as median since data is highly skewed).
    • The field of Statistics: provides us with a huge amount of knowledge that underlies analytics, and can be thought of as a component of the larger field of Data Science. Many of the techniques for extracting models or patterns from data have their roots in Statistics.
  • DATABASE QUERYING:

    • “Who are the most profitable customers in the Northeast?” The analyst may then run the query to retrieve a list of the most profitable customers, possibly ranked by profitability. This activity differs fundamentally from data mining in that there is no discovery of patterns or models. OLAP provides an easy-to-use GUI to query large data collections, for the purpose of facilitating data exploration. The idea of “on-line” processing is that it is done in real-time, so analysts and decision makers can find answers to their queries quickly and efficiently. Unlike the “ad hoc” querying enabled by tools like SQL, for OLAP the dimensions of analysis must be pre-programmed into the OLAP system.
  • DATA WAREHOUSING:

    • Data warehouses collect and coalesce data from across an enterprise, often from multiple transaction-processing systems, each with its own database. It is not always necessary, as most data mining does not access a data warehouse, but firms that decide to invest in data warehouses often can apply data mining more broadly and more deeply in the organization.

For example, if a data warehouse integrates records from sales and billing as well as from human resources, it can be used to find characteristic patterns of effective salespeople.

  • Regression Analysis: is widely applied in the field of statistics and also in other fields founded on econometric analysis

    • Explanatory modeling versus predictive modeling: realize that there is considerable overlap in the techniques used, but that the lessons learned from explanatory modeling do not all apply to predictive modeling. So a reader with some background in regression analysis may encounter new and even seemingly contradictory lessons.
  • MACHINE LEARNING AND DATA MINING:
    **The collection of methods for extracting (predictive) models from data, now known as machine learning methods, were developed in several fields contemporaneously, most notably Machine Learning, Applied Statistics, and Pattern Recognition **.

As machine learning methods were deployed broadly, the scientific disciplines of Machine Learning, Applied Statistics, and Pattern Recognition developed close ties, and the separation between the fields has blurred.

  • Data Mining (or KDD: Knowledge Discovery and Data Mining) and Machine Learning: Machine Learning is concerned with many types of performance improvement, it includes subfields such as robotics and computer vision that are not part of KDD. It also is concerned with issues of agency and cognition which are not concerns of Data Mining. KDD focused on concerns raised by examining real-world applications, and a decade and a half later the KDD community remains more concerned with applications than Machine Learning is. KDD also tends to be more concerned with the entire process of data analytics: data preparation, model learning, evaluation, and so on.

Data mining differs from and is complementary to, important supporting technologies such as statistical hypothesis testing and database querying.