Let's say your boss has asked you to count the blades of grass on a football field (you know better than to ask why). There are two ways you could go about it.
- Hire an army of 100 interns, assign each of them a patch and ask them to count each blade of grass.
- Pick a couple of small patches of grass, count the blades, then scale that number up to the entire field.
Which method would you pick?
The answer seems obvious, yet when it comes to big data and analytics, there have been a rash of articles like this one predicting the end of sampling as we know it. The argument seems to run along the following lines.
- Big data technologies are now cheap enough to store everything.
- Big data technologies are powerful enough to analyze anything.
- Why sacrifice accuracy by sampling?
- Sampling may miss the outliers.
Let's look at each of these arguments in more detail. Btw, asking a Big data vendor if you should sample, or store everything is like asking a barber if you need a haircut.
1. Big data technologies are now cheap enough to store everything.
Proponents of this show charts of cost of storage dropping precipitously over time. It is true that storage is becoming cheap. At somewhere around 25-40% CAGR (Compound Annual Growth Rate). But, data is growing quicker - at a CAGR north of 60%. So, storage is and will always be playing catch up. Contrary to what you may hear, the cost of big data is not trivial. Especially once you throw in the costs of the experts needed.
2. Big Data technologies are now powerful enough to analyze anything.
The argument goes like this. Big data technologies are massively parallel (MPP). Just throw more nodes at the problem. Plus with Moore's law, chips are getting faster too. But, here is the fallacy. All you fans of complexity theory will appreciate this.
Adding nodes to an MPP system increases capacity linearly. Double the nodes, you have doubled the processing power. But analytic problems don't typically scale linearly. Some scale as a polynomial function of n (n is the number of data points), and some are even NP - you can't even determine if you will ever find a solution. (The travelling salesman problem for example)
3. Why sacrifice accuracy by sampling?
Aren't you sacrificing accuracy by sampling just a subset of the data? The fact is that the larger your data set, the more accurate sampling is! There is a whole beautiful branch of physics called statistical mechanics that uses statistics and probability to get astoundingly accurate results. No physicist is trying to add up the energy of each molecule in a jar of gas to get the temperature. Yet, this is just what many of us are trying to do with big data. These problems have been solved before by very smart people. Let's put the science back in Data science.
4. Sampling may miss the outliers.
I will grant the validity of this. If you truly have data or an app where missing a few points would significantly alter your results, you will need to scan everything. But data that doesn't smoothly vary is not very common. Also, in many cases you will find that you are looking at the problem wrong if outliers affect your data. For example: If you were calculating average wealth in the Seattle area, and miss Bill Gates in your sample, you would be way off. But if you are calculating median wealth, you would be fine.
Do you have any big data applications where sampling won't work? I would be very interested in seeing some real world examples.

