Background, not on the slide. In 2012 InformationWeek described how Union Pacific watches the wheels of its trains: infrared sensors along the track take their temperature, trackside microphones listen to their bearings, and software matches the readings against the pattern of a failing bearing, so that a train can be stopped or slowed before it derails. Failing bearings are rare among all the wheels that pass: a crew that inspects now and then will rarely be there when one shows, while a sensor that sees every wheel will not miss it.
Four ways of solving problems differently
After this lesson you will state the four paradigm shifts of big data in the slides' own words, draw the traditional and the innovative picture of each, and explain what each change buys and what it costs.
The slides' answer to "Big Data. How?" opens with a picture: forty dots, eight by five, and a dashed box around six of them. The caption reads "Analyze small subset of information" (p. 21).
Suppose three of the forty dots are the ones that matter — three wheels of a train whose bearings are about to fail — and you do not know which. Put the six-dot box wherever you like. How often will it contain none of the three? One time in ten? One in four? Write your guess down.
Keep it. Section 2 tests it on the slide's own grid, and the end of the lesson shows why no clever placement of the box saves you — and why the slides' answer is a box around everything, the first of four changes in the way of working.
Big Data. How? Two panels, four times
Lesson 1 asked what big data is and why it happened when it did. The next divider of the deck asks "Big Data. How?" (p. 19), and the answer fills twelve pages under one title, "Solving problems in new ways" (pp. 20–31). Every shift is built the same way. A sub-title names the change. On the left, a grey arrow-shaped panel is labelled "TRADITIONAL APPROACH"; the next build adds a panel labelled "INNOVATIVE APPROACH" on the right; a short caption under each panel states the approach. For three of the four changes, one more slide repeats the captions under two photographs: an everyday version of the same contrast, something done by hand, a little at a time, against something that runs on everything, all the time.
The four sub-titles are the four paradigm shifts. The deck's agenda calls them "Paradigm shifts enabled" (p. 2), and the exam-guideline deck lists "4 paradigmatic shifts" among the theory questions on the foundations. This deck is the only place in the course that lists exactly four, so learn them as the sub-titles print them, each with its two captions.
| # | The shift (sub-title) | Traditional approach | Innovative approach | Pages |
|---|---|---|---|---|
| 1 | "Leverage more of the data being captured" | "Analyze small subset of information" | "Analyze all available information" | 20–22 |
| 2 | "Data-driven exploration looking for correlation" | "Start with hypothesis and test against selected data" | "Explore all data and identify correlations" | 23–25 |
| 3 | "Reduce effort required to leverage data" | "Carefully cleanse information Before any analysis" | "Analyze information as is, Cleanse as needed" | 26–28 |
| 4 | "Leverage data as it is captured" | "Analyze data after it's been processed And landed in a warehouse or mart" | "Analyze data in motion as it's Generated, in real-time" | 29–31 |
The capitals inside the captions ("Before", "And", "Generated") mark the slide's line breaks; in an answer, write ordinary sentences.
Four shifts: leverage more of the data being captured; data-driven exploration looking for correlation; reduce effort required to leverage data; leverage data as it is captured.
Shift 1 · Leverage more of the data being captured
The first pair is the picture of the hook (Fig. 1). Both panels hold the same forty dots, "All available information", as the label over the traditional grid says. The traditional approach puts a dashed box around six of them and analyses only those: "Analyze small subset of information". The innovative panel draws the box around all forty: "Analyze all available information".
TRADITIONAL APPROACH · "Analyze small subset of information"
INNOVATIVE APPROACH · "Analyze all available information"
Why did anyone analyse six dots out of forty? Because keeping and processing everything used to be expensive, and statistics offers a sound shortcut: a well-chosen sample estimates the properties of the whole. Lesson 1 showed what removed the reason for it: storage fell from $569 per gigabyte in 1992 to $0.02 in 2013 (p. 12). Once keeping everything costs almost nothing, the question becomes what the shortcut was losing.
The photo slide (p. 22) gives the answer a face. On the left, a yellow measuring gauge lies across the rails in front of a maintenance train: a crew measures a stretch of track on the day it visits. On the right, a black sensor unit is fixed to the rail and shines red beams across it: it measures whatever passes, every time. Between the two photos sits the shield of the American railway Union Pacific, and no other word.
Shift 1 in one sentence: a sample is good at what is common and blind to what is rare. The widget measures how blind.
The readout's number comes from a counting argument, not on the slide but elementary:
Swap the roles. Scattering the defects at random under a fixed box gives the same chance of a miss as fixing the defects and drawing the \(k\) items of the sample at random. Choosing \(k\) items out of \(N\), without order, can be done in \(\binom{N}{k}\) ways, all equally likely.
Count the samples that see no defect. All \(k\) items must come from the \(N - m\) good ones: \(\binom{N-m}{k}\) ways.
Divide the favourable cases by all cases: \[ P(\text{miss}) = \frac{\binom{N-m}{k}}{\binom{N}{k}} . \]
Put in the slide's numbers, \(N = 40\), \(k = 6\), and three defects: \[ \frac{\binom{37}{6}}{\binom{40}{6}} = \frac{2\,324\,784}{3\,838\,380} \approx 0.61 . \]
Put in the innovative panel, \(k = 40\): you cannot choose 40 good items out of 37, so \(\binom{37}{40} = 0\) and \(P(\text{miss}) = 0\). In fact any \(k \ge 38\) leaves room for at most two defects outside the box: the census cannot miss.
So the miss probability falls slowly (a box holding half the data still misses all three defects 11.5 % of the time), and the position of the box does not matter when the defects could be anywhere. There is no clever sample, only a bigger one, and the biggest is "all available information".
"Analysing all the data removes every bias." It removes the sampling error, the luck of which items happened to be picked. It does not remove selection bias: "all available information" is all that was captured, not all that exists. The sensors hear every wheel that passes them, and nothing of a line without sensors.
Leverage more of the data being captured: analyse all available information instead of a small subset, because a subset misses what is rare.
Shift 2 · Data-driven exploration looking for correlation
With all the data at hand, the order of the work can be turned around. The second pair (p. 25, Fig. 2) draws each approach as four steps joined by three arrows. Traditionally you start from a hypothesis, turn it into a question, select the data that can answer it and get an answer: "Start with hypothesis and test against selected data". The innovative path starts from the data, explores it, identifies correlations and ends in an insight: "Explore all data and identify correlations".
TRADITIONAL APPROACH · "Start with hypothesis and test against selected data"
INNOVATIVE APPROACH · "Explore all data and identify correlations"
The traditional path is the one a statistics course teaches: state the hypothesis, collect data designed to test it, run the test, reject or not. Its strength is that the answer means something, because the data were chosen to answer that question. Its limit is that you only get answers to the questions you thought of asking. The innovative path looks for structure nobody expected; its output is not "yes" or "no" but an insight, a relation that someone must then interpret.
This shift needs the first one: a pattern found by searching a small sample is easily a fluke of that sample, while the same pattern across all the captured data is worth a closer look.
The third build of the slide pastes a green call-out onto the innovative path: a grey box labelled "nature", an arrow into it from "x", the "independent variable", and an arrow out of it to "y", the "response variable", drawn right to left. The slide does not explain it. The picture comes from Leo Breiman's 2001 paper "Statistical Modeling: The Two Cultures" (background, not on the slide), where it frames two cultures of statistics that match the two paths of Fig. 2, as Fig. 3 shows.
Hypothesis first: open the box, assume a model, test it
Data first, the slide's call-out: nature stays closed, you look for the x–y relation in the data
In the first culture you open the box: you assume a mechanism, say a linear model, and test its parameters. That is the traditional path. In the second you leave nature closed and look for whatever relation predicts y from x. That is the innovative one, and neural networks belong to it: they predict y from x without stating why.
"The call-out means that the innovative approach models nature." It is the other way round. The innovative approach relates x and y without opening the box, which is both its power and its risk.
The risk has a name you know: correlation is not causation. Two stories from outside the slides: in 2008 Chris Anderson wrote in Wired, in an essay called "The End of Theory", that "with enough data, the numbers speak for themselves"; a few years later Google Flu Trends, which estimated flu activity from search data, overestimated it by about a factor of two in 2012–13 (Lazer and colleagues, Science, 2014). Searching many variables for correlations is bound to turn up some that mean nothing. The remedy is to send an insight back through the traditional path: treat it as a hypothesis and test it on new data or with an experiment. The two paths complement each other.
Data-driven exploration: start from all the data and look for correlations, instead of testing one hypothesis against selected data. Then treat what you find as a hypothesis, not as a cause.
Shift 3 · Reduce effort required to leverage data
The third pair (p. 27, Fig. 4) is about the work that comes before any analysis. In the traditional panel two small piles of mixed dots go up two arrows into a dashed box holding nine identical dots: "Small amount of Carefully organized information", with the caption "Carefully cleanse information Before any analysis". The innovative panel holds forty dots, clean and odd ones mixed: "Large amount of messy information", and the caption "Analyze information as is, Cleanse as needed".
TRADITIONAL APPROACH · "Carefully cleanse information Before any analysis"
INNOVATIVE APPROACH · "Analyze information as is, Cleanse as needed"
The photo slide (p. 28) puts a scientist in a white coat and blue gloves, pouring a blue liquid from one flask into another, on the left, and an industrial chemical plant of towers and pipes on the right: purification by hand, a little at a time, against raw material processed in bulk.
Why give up cleaning first? It is the price of shift 1. Cleansing is expensive work: fixing formats, removing duplicates, filling gaps, reconciling sources. When you keep everything, cleansing everything up front costs more than most of it will ever be worth. Worse, you do not yet know which analyses will come, so you cannot know what "clean" means for them; as p. 169 puts it, "Some analysis can no longer be performed because the data were lost at writing time". "Cleanse as needed" moves the work to the moment an analysis runs, and limits it to the data that analysis reads.
The same idea returns in lesson 4 as a property of the data model, schema-on-read, which pp. 169–170 call a "Paradigmatic shift introduce by Big Data" and sum up as "Load data first, ask question later": shift 3 is the method, schema-on-read the mechanism that lets a database store data before anyone has decided their final shape.
"Cleanse as needed means you never clean." No: the cleaning still happens, later and selectively. Skipping it starts what the data-wrangling lecture calls "The Vicious Cycle of Bad Data": Bad Data, Incorrect Analysis, Invalid Insights, Wrong Decisions, Poor Outcomes (p. 1077, lesson 35).
Reduce effort required to leverage data: analyse information as is and cleanse it as needed, instead of carefully cleansing a small amount of it before any analysis.
Shift 4 · Leverage data as it is captured
The last pair (p. 30, Fig. 5) is the simplest picture of the four. The traditional panel is a chain of four circles climbing to the right, Data, Repository, Analysis, Insight, with the caption "Analyze data after it's been processed And landed in a warehouse or mart". The innovative panel has three circles: Data, Analysis, Insight. The repository, drawn as a database cylinder, is simply gone, and the caption reads "Analyze data in motion as it's Generated, in real-time".
TRADITIONAL APPROACH · "Analyze data after it's been processed And landed in a warehouse or mart"
INNOVATIVE APPROACH · "Analyze data in motion as it's Generated, in real-time"
A warehouse or a data mart is a store built for analysis; lesson 23 opens one. Data reach it through scheduled loads, processed and landed, and the analyses run after the load. The photo slide (p. 31) shows the difference in time: a seismograph pen tracing a wave on paper, a record made now and read later, against a phone running a trading app: a live price chart and two buttons, CALL and PUT, for a decision taken on the price of the moment.
What does the cylinder cost? Watch it fill up:
The widget's averages follow from one line of reasoning:
Batches run every \(T\) seconds. An event that arrives at a random moment of a window waits until the window closes: its wait \(W\) lies anywhere between \(0\) and \(T\), all values equally likely.
So the average wait is half a window, \(\E[W] = T/2\); the worst case, an event that arrives just after a batch, waits almost \(T\).
The batch then takes the processing time \(p\), so the average time to insight of the traditional chain is \[ \bar{L}_{\text{batch}} = \frac{T}{2} + p . \]
In motion there is no window to wait for: \(L_{\text{stream}} = p\). The difference, \(T/2\), is the price of landing first.
The delay of the traditional chain is therefore set by the schedule, not by the volume. This is the method behind Velocity in lesson 1, "Data in motion": "Analysis of streaming data to enable decision within fractions of a second" (p. 7). The same two panels return as "Batch data" and "Real-time streaming" in the Spark exercise session (p. 1719, lesson 39), and the streaming tools of the Hadoop world, Storm and Flume, in lesson 33.
"Data in motion means data being transferred between systems." No: it means data analysed while they are being generated, before landing in a repository or instead of it. The network is not the point; the missing waiting room is.
Leverage data as it is captured: analyse data in motion, as they are generated, instead of after they have been processed and landed in a warehouse or mart. The repository is the delay.
One answer in four parts
Read in order, the four shifts form a chain. Cheap storage made it possible to keep everything, so you analyse all of it (shift 1). With all of it, you can explore instead of only confirming (shift 2). Keeping everything means you cannot afford to clean everything first, so you analyse it as it is and cleanse as needed (shift 3). And when a decision cannot wait for the next scheduled load, you analyse the data as they arrive (shift 4).
Each shift also answers one V of lesson 1. The pairing is a memory aid of this notebook, not a slide: it helps you recall the two lists together and keep them apart.
| Shift | The V it answers | Why |
|---|---|---|
| 1 · Leverage more of the data being captured | Volume, "Data at scale" | keeping and reading everything is what scale asks for |
| 2 · Data-driven exploration looking for correlation | Variety, "Data in many forms" | many kinds of data from many sources hold relations that no single hypothesis anticipated |
| 3 · Reduce effort required to leverage data | Veracity, "Data Uncertainty" | messy data are analysed as they are, and their uncertainty managed rather than cleaned away first |
| 4 · Leverage data as it is captured | Velocity, "Data in motion" | the same two words: analyse data while they move |
"The four paradigmatic shifts are the four V's." No: the V's characterise the data (pp. 5–9); the shifts change how problems are solved, and the deck files them under "How?", not "What?". In an answer, give each list as the slides print it.
Nothing on the slides says the left panels are obsolete, and they are not. A bank can analyse every card payment as it happens to block fraud, and still load the same payments every night into a warehouse for the monthly report: both chains of shift 4, each for its own question. A correlation found in all the data still gets tested on a sample or in an experiment, the traditional path of shift 2. The innovative approach complements the traditional one: it adds options where the traditional one was too slow, too narrow or too expensive.
Two related statements appear elsewhere. Schema-on-read is called a "Paradigmatic shift" on p. 169, the data-model face of shift 3 (lesson 4); the course notes (section 3.1.1) describe the hardware behind keeping everything, "going from the typical vertically scalable, on premise mainframes to cloud based, horizontally scalable commodity machines" (lesson 3). The guideline's "4 paradigmatic shifts" are the four sub-titles of this lesson, the only place that lists four; the other two make a good closing sentence, not a replacement.
To recall the four in order, picture the four slides: a box around a few dots, two paths of four steps, two small piles against one big messy grid, a chain with a cylinder in it.
The puzzle, resolved
The hook asked how often a six-dot box misses three defective dots among forty. The answer is 61 %, three times in five, wherever the box stands, because the defects could be anywhere: \(\binom{37}{6}/\binom{40}{6} \approx 0.61\). That is why the slides' answer is not "sample better" but "Analyze all available information". Once you do, the other three shifts follow: you explore what all the data say, you stop cleaning everything first, and you stop waiting for the data to land. The Union Pacific story can be read through all four: every wheel is measured; the software looks for the patterns that come before a failure; the readings of microphones and infrared sensors are messy data used as they come; and the warning is worth something only if it arrives before the derailment.
Exam-style questions
Theory questions in the form of the written exam: open answers of a few sentences, and closed questions, multiple choice or true/false, where a wrong answer may carry a penalty. The model answers use the slides' wording.
Big data enabled four paradigm shifts in the way problems are solved. List them and, for each, describe the traditional and the innovative approach.
Show model answer
1. Leverage more of the data being captured: traditionally a small subset of the information is analysed; the innovative approach analyses all available information.
2. Data-driven exploration looking for correlation: traditionally you start with a hypothesis and test it against selected data (hypothesis, question, data, answer); the innovative approach explores all data and identifies correlations (data, exploration, correlation, insight).
3. Reduce effort required to leverage data: traditionally information is carefully cleansed before any analysis, giving a small amount of carefully organised information; the innovative approach analyses a large amount of messy information as is and cleanses it as needed.
4. Leverage data as it is captured: traditionally data are analysed after they have been processed and landed in a warehouse or data mart (data, repository, analysis, insight); the innovative approach analyses data in motion, as they are generated, in real time (data, analysis, insight).
A complete answer gives the four names in the slides' wording and the traditional and the innovative approach of each. A closing sentence that the innovative approaches complement the traditional ones, and that schema-on-read is the data-model face of shift 3, shows that you understood rather than memorised.
Which of the following is NOT one of the four paradigm shifts ("solving problems in new ways") presented in the course?
Show model answer
"Normalise all data before storing it." The four shifts are: leverage more of the data being captured; data-driven exploration looking for correlation; reduce effort required to leverage data; leverage data as it is captured.
The distractor sounds like good practice, which is the trap: it echoes the traditional side of shift 3. Knowing the four sub-titles word for word makes this question free.
True or false: in the paradigm shift "Leverage data as it is captured", the innovative approach adds a repository between data and analysis so that data can be analysed in real time.
Show model answer
False. The innovative approach removes the repository (data, analysis, insight) and analyses data in motion as they are generated, in real time; the repository belongs to the traditional approach, which analyses data after they have been processed and landed in a warehouse or mart.
A true/false with a possible penalty: answer only if you can picture the two chains. The missing cylinder is the whole point of the slide.
Describe the paradigm shift "Reduce effort required to leverage data". What is the traditional approach, what is the innovative one, and which data-management idea presented in the course corresponds to it?
Show model answer
In the traditional approach information is carefully cleansed before any analysis; the result is a small amount of carefully organised information, and only that is analysed. In the innovative approach a large amount of messy information is kept and analysed as is, and it is cleansed as needed: only the parts a given analysis requires, when that analysis runs. This saves the up-front effort, which would be unaffordable when all data are kept, and preserves data that an early cleaning would have thrown away. The corresponding idea is schema-on-read, as opposed to schema-on-write: load data first and ask questions later; all data are kept, and the minimal schema needed for an analysis is applied when needed.
Three things to get right: both captions, the fact that "as needed" does not mean "never", and the link to schema-on-read (pp. 169–170, lesson 4).
Explain the paradigm shift "Data-driven exploration looking for correlation". What risk does the innovative approach carry, and how can it be controlled?
Show model answer
Traditionally the analysis starts from a hypothesis, turns it into a question, selects the data needed to test it and obtains an answer: hypothesis, question, data, answer. In the innovative approach it starts from all the data, explores them, identifies correlations and derives insights: data, exploration, correlation, insight. The slide's scheme, x, nature, y, shows the idea: the relation between the independent variables x and the response variables y is found in the data, without first modelling the mechanism inside nature. The risk is that correlation is not causation: when many variables are explored, some correlations are spurious, and an insight may reflect chance or a bias of the data. It is controlled by treating each correlation as a new hypothesis and testing it with the traditional approach, on new data or with an experiment.
The two paths are printed on p. 25. The risk is standard statistics rather than slide text; one sentence on it shows that you know what a correlation can and cannot give.
Which of the following statements about the paradigm shift "Leverage more of the data being captured" are correct? Select all that apply.
Show model answer
Correct: the traditional approach analyses a small subset; the innovative approach analyses all available information; analysing everything reveals rare patterns that a sample is likely to miss. Wrong: analysing all captured data does not remove selection bias.
A "select all" with a possible penalty rewards knowing exactly what the shift claims. The bias option is the classic overstatement.
Why does analysing data "in motion" shorten the time between the generation of the data and the insight, compared with the traditional approach?
Show model answer
In the traditional approach data are analysed after they have been processed and landed in a warehouse or data mart: data, repository, analysis, insight. Loading and analysis run in batches, so each record waits in the repository until the next batch runs, on average half the batch interval, and is then processed. In the innovative approach data are analysed in motion, as they are generated, in real time: data, analysis, insight. Without the repository step the only delay left is the processing time, so decisions can be taken within fractions of a second, as the Velocity dimension requires. The repository can still keep the data for later, historical analyses.
The key word is the repository: removing it removes the waiting. The "half a batch interval" comes from this notebook's model, not from the slides; it is worth one clause because it shows the mechanism behind the two chains.
Check yourself
A supermarket chain changes its shelf prices every Monday, using a report computed over the weekend on the previous week's sales, which were loaded into its data mart. Which shift would change this practice, and how?
Which of these practices follow the innovative approach of "Reduce effort required to leverage data"? Select all that apply.
Three defective items are hidden at random among 40. Your six-item sample is a compact 2 × 3 block; a colleague spreads her six items across the whole grid. Whose sample misses all three defects more often?
Exploring all its loyalty-card data, a chain finds that customers who buy sunscreen also buy more ice cream. In the terms of shift 2, what is this finding?
In the batch-or-stream widget, with the traditional approach, a window \(T = 6\ \text{s}\) and processing \(p = 0.5\ \text{s}\), you double the number of events per second. What happens to the average time to insight?
Which statement about the four paradigm shifts and the four V's is correct?
A bank analyses every card payment as it happens to block fraud, and every night loads the same payments into its data warehouse for monthly reports. Which statement is right?
Key take-aways
- The deck's answer to "Big Data. How?" is four paradigm shifts, each drawn as a traditional approach against an innovative one; they are the "4 paradigmatic shifts" of the exam guideline.
- Shift 1, "Leverage more of the data being captured": analyse all available information instead of a small subset. A sample misses rare patterns: 6 dots out of 40 miss 3 defective ones 61 % of the time, wherever the box stands, while the census cannot miss.
- Shift 2, "Data-driven exploration looking for correlation": hypothesis, question, data, answer becomes data, exploration, correlation, insight. Nature stays a closed box between x and y, and a correlation is a hypothesis, not a cause.
- Shift 3, "Reduce effort required to leverage data": carefully cleansing a small amount before any analysis becomes analysing a large amount of messy information as is and cleansing as needed; schema-on-read is its data-model twin.
- Shift 4, "Leverage data as it is captured": data, repository, analysis, insight becomes data, analysis, insight. The repository is the delay, on average half a batch window, so analysing data in motion leaves only the processing time.
- The shifts describe the method and the V's describe the data; the innovative approaches complement the traditional ones, which keep their warehouses, samples and tests.
What to watch and read
-
Pentaho, Hadoop, and Data Lakes
James Dixon, 20105 min
The post that coined "data lake". Read it with shift 3: a data mart is "a store of bottled water, cleansed and packaged", a lake is the water "in a more natural state", kept so that questions nobody has asked yet can still be answered.
-
Big data architectures
Microsoft Learn, Azure Architecture Center
Shift 4 drawn as an architecture. The lambda diagram runs both panels at once, a batch path for the full history and a real-time path for what just arrived, which is why the two approaches complement each other. Not slide material.
-
What makes Big Data, Big Data? Exploring the ontological characteristics of 26 datasets
Rob Kitchin and Gavin McArdle, Big Data & Society, 2016
Tested against 26 real datasets, the traits that reliably separate big from small data turn out to be velocity and exhaustivity, "n = all": the traits behind shifts 4 and 1.
-
Questioning the Lambda Architecture
Jay Kreps, O'Reilly Radar, 2014
The co-creator of Kafka argues for one stream processor and a replayable log instead of two parallel paths: shift 4 taken to its end, with the history rebuilt from the stream.