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 four shifts as the slides print them. Keep the wording: a closed question can quote any of these lines.
#The shift (sub-title)Traditional approachInnovative approachPages
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".

All available information 6 of 40

TRADITIONAL APPROACH · "Analyze small subset of information"

40 of 40

INNOVATIVE APPROACH · "Analyze all available information"

Fig. 1. "Leverage more of the data being captured" (p. 21), redrawn. Grey dots are captured but never looked at, blue dots are analysed, and the dashed box is the subset the analysis reads: 6 of 40 on the left, all 40 on the right.

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.

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.

Shift 1 in one sentence: a sample is good at what is common and blind to what is rare. The widget measures how blind.

Sample or census: does the box see the defect?

The slide's grid of 40 dots. Somewhere among them, \(m\) dots are defective, and you cannot see which. The dashed box is your sample: set its width and height, and move it by dragging its ringed top-left corner (or focus the grid and use the arrow keys). "Analyse the box" scatters the defective dots at random, looks only inside the box and then reveals the truth: a cross marks a defective dot the analysis saw, a red ring one it missed. The lower plot shows the exact miss probability for every box size and, as diamonds, the miss rates you measured.

  1. Keep the slide's box, 2 × 3 = 6 dots, with \(m = 3\). Before pressing anything, predict: out of 100 analyses, how many will see none of the three defects? Then press "Analyse 100 times" two or three times. Then drag the box to a corner and repeat.
    What you should see

    Around 60 in every 100. A single hundred can land anywhere between about 50 and 70, but after two or three hundred the measured rate settles near the exact value 0.61 printed in the readout. The careful sample reports "nothing wrong" more often than not. In the corner the rate is the same, because the defects are scattered at random: no place for the box is better than another. That is the insight the widget exists for: a subset misses rare patterns, and only a bigger subset, not a cleverer one, helps.

  2. How big must the box be to miss the three defects less than one time in ten? Predict a number of dots, then try sizes and read the lower plot, where the dashed line "1 in 10" helps.
    What you should see

    21 dots: a box 7 × 3 misses with probability 0.098. Half the data, a box 5 × 4 = 20, still misses 0.115 of the time, more than one time in nine. Only a box of 38 or more dots is certain to catch a defect, and the only such box on this grid is 8 × 5: all available information.

  3. Keep the slide's 6-dot box. Set \(m = 1\) (a single bad wheel), then \(m = 5\). Predict which one the sample misses more often.
    What you should see

    With one defective dot the miss probability is 0.85; with five it is 0.42. The rarer the pattern, the more surely a sample misses it, and the problems big data is used for are often about rare things: a failing bearing, a fraud, an unusual customer.

The readout's number comes from a counting argument, not on the slide but elementary:

  1. 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.

  2. Count the samples that see no defect. All \(k\) items must come from the \(N - m\) good ones: \(\binom{N-m}{k}\) ways.

  3. Divide the favourable cases by all cases: \[ P(\text{miss}) = \frac{\binom{N-m}{k}}{\binom{N}{k}} . \]

  4. 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 . \]

  5. 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".

Hypothesis Question Data Answer start end

TRADITIONAL APPROACH · "Start with hypothesis and test against selected data"

Data Exploration Correlation Insight start end

INNOVATIVE APPROACH · "Explore all data and identify correlations"

Fig. 2. "Data-driven exploration looking for correlation" (p. 25), redrawn. Each panel is a path of three arrows, not a closed loop: the traditional one starts from an idea and ends in the answer to the question you asked; the innovative one starts from the data and ends in an insight.

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.

y = β₀ + β₁·x + ε x y response variable independent variable then test H₀: β₁ = 0 you write it

Hypothesis first: open the box, assume a model, test it

nature x y response variable independent variable correlation the box stays shut

Data first, the slide's call-out: nature stays closed, you look for the x–y relation in the data

Fig. 3. The call-out of p. 25 (right panel: the box, the two arrows and the two labels as printed) and the two ways of reading it, from Breiman's "two cultures", which are background, not on the slide. Left: you assume what happens inside nature and test it. Right: you leave nature closed and look for the relation between x and y.

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".

Small amount of Carefully organized information

TRADITIONAL APPROACH · "Carefully cleanse information Before any analysis"

Large amount of messy information

INNOVATIVE APPROACH · "Analyze information as is, Cleanse as needed"

Fig. 4. "Reduce effort required to leverage data" (p. 27), redrawn. Filled blue dots are clean records; hollow and grey ones are messy (a missing or an odd value). Left: two raw piles are cleansed into a small, uniform set before any analysis. Right: the large set keeps its messy records and is analysed as it is.

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".

Data Repository Analysis Insight

TRADITIONAL APPROACH · "Analyze data after it's been processed And landed in a warehouse or mart"

Data Analysis Insight no waiting room

INNOVATIVE APPROACH · "Analyze data in motion as it's Generated, in real-time"

Fig. 5. "Leverage data as it is captured" (p. 30), redrawn. The innovative chain is the traditional one with the repository taken out: data are analysed while they move instead of after they land.

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:

Batch or stream: what the repository costs

Events (blue dots) are generated at a steady rate and must each turn into an insight (the bulb). In the traditional approach they land in the repository and wait; every \(T\) seconds a batch analyses everything waiting. In the innovative approach there is no repository and each event is analysed as it arrives. Analysis takes \(p = 0.5\ \text{s}\) in both, whatever the size of the batch. Time runs at the speed of the animation. The lower plot shows, for every analysed event, its time to insight against the moment it was captured. Changing a slider starts the run again; switching the approach does not.

  1. Keep the traditional approach, \(T = 6\ \text{s}\) and 2 events per second. Before pressing Run, predict the average time to insight. Then run for at least two batches.
    What you should see

    3.50 s, which is \(T/2 + p\). An event captured just after a batch waits almost the whole window, the longest readout is 6.25 s; one captured just before a batch hardly waits at all. On average the wait is half a window, plus the half second of the batch. In the lower plot every window is one tooth of a saw.

  2. Now switch to the innovative approach without resetting. Predict where the new marks will appear in the lower plot, and what the bulb will do.
    What you should see

    A flat row at 0.5 s: every event reaches its insight after exactly the processing time, and the bulb flickers with each event instead of flashing once per window. The whole difference, three seconds on average here, was the waiting in the repository. That is the insight of the widget: the repository is the delay.

  3. Go back to the traditional approach and set 5 events per second. Will the average time to insight grow, shrink or stay the same?
    What you should see

    It stays at 3.50 s. The repository fills faster and each batch carries more events, but every event still waits half a window on average. The delay is set by the schedule, not by the volume: the "decision within fractions of a second" of the Velocity slide (p. 7) depends on when you look, not on how much arrives. (In this model a batch takes 0.5 s whatever its size; a real batch grows with its volume, which only makes things worse.)

  4. Set \(T = 2\ \text{s}\), the smallest window. Is the traditional approach now "real-time"?
    What you should see

    The average drops to 1.5 s: better, but every event still waits for its batch. Shrinking the window is the idea behind the "micro-batches" of the Spark exercise session (p. 1719), which group incoming events into very small batches to get "low latency". The waiting room is still there, only smaller.

The widget's averages follow from one line of reasoning:

  1. 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.

  2. 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\).

  3. 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 . \]

  4. 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.

The shift and the V it answers: a memory aid of this notebook, not a table of the slides.
ShiftThe V it answersWhy
1 · Leverage more of the data being capturedVolume, "Data at scale"keeping and reading everything is what scale asks for
2 · Data-driven exploration looking for correlationVariety, "Data in many forms"many kinds of data from many sources hold relations that no single hypothesis anticipated
3 · Reduce effort required to leverage dataVeracity, "Data Uncertainty"messy data are analysed as they are, and their uncertainty managed rather than cleaned away first
4 · Leverage data as it is capturedVelocity, "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?

  • Leverage more of the data being captured It is shift 1 (pp. 20–22): analyse all available information instead of a small subset.
  • Data-driven exploration looking for correlation It is shift 2 (pp. 23–25).
  • Normalise all data before storing it Not a shift: no slide of pp. 20–31 says it. If anything it points the other way: preparing all the data before any analysis is the traditional side of shift 3, "Carefully cleanse information Before any analysis", which the innovative approach replaces with "Analyze information as is, Cleanse as needed".
  • Leverage data as it is captured It is shift 4 (pp. 29–31).
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.

  • True It is the opposite: the repository belongs to the traditional chain, and the innovative chain removes it.
  • False The innovative chain is data, analysis, insight: data are analysed in motion, as they are generated. The traditional chain, data, repository, analysis, insight, analyses data after they have been processed and landed in a warehouse or mart.
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.

  • The traditional approach analyses a small subset of the available information. The caption of the traditional panel (p. 21): "Analyze small subset of information".
  • The innovative approach analyses all the available information. The caption of the innovative panel: "Analyze all available information".
  • Analysing all the captured data removes every bias from the results. It removes sampling error, not selection bias: what was captured need not represent everything that exists.
  • Analysing everything makes rare patterns visible that a small sample is likely to miss. With 3 defective items among 40, a 6-item sample misses all of them with probability about 0.61; the census cannot miss.
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?

  • Leverage more of the data being captured: use all stores instead of a sample Nothing says the report uses a sample; the problem described is the delay, not the coverage.
  • Leverage data as it is captured: analyse the checkout stream as it is generated and act within seconds The weekly report is the traditional chain, data, repository, analysis, insight; the delay is the week of waiting in the mart.
  • Reduce effort required to leverage data: stop cleaning the sales data Cleaning is not the issue here, and "cleanse as needed" does not mean "stop cleaning".

Which of these practices follow the innovative approach of "Reduce effort required to leverage data"? Select all that apply.

  • Load raw click logs as they are, and clean only the fields a given analysis reads, when it runs Analyse as is, cleanse as needed: the cleaning is late and limited to what the analysis uses.
  • Spend a month cleaning every questionnaire before computing any statistic That is the traditional panel: carefully cleanse information before any analysis.
  • Analyse tweets with their typos, and remove bots only for the sentiment study that bots would distort Messy data analysed as is; the cleaning that one analysis needs is done for that analysis.
  • Never clean anything, since the analysis works on the data as is "Cleanse as needed" still cleans. Never cleaning leads straight into the vicious cycle of bad data.

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?

  • Yours, because a compact block covers less of the grid With defects placed at random, any six positions have the same chance of missing them all: about 0.61.
  • Hers, because spread-out items fall between the defects Same answer: the position of the items does not change the probability.
  • Neither: both miss with probability about 0.61 The probability depends only on how many items you look at, \(\binom{37}{6}/\binom{40}{6}\), not on where they are. With the defects placed at random there is no clever sample, only a bigger one.

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?

  • The answer to a hypothesis tested against selected data Nobody stated a hypothesis: the data came first.
  • Proof that sunscreen makes people buy ice cream Correlation is not causation; a third factor, the weather, can explain both.
  • A correlation found by exploration: an insight to be tested before treating it as a cause Data, exploration, correlation, insight. Hot weather may drive both purchases; send the insight back through the hypothesis path.

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?

  • It stays at \(T/2 + p = 3.5\ \text{s}\) Every event still waits half a window on average. The delay is set by the schedule, not by the volume.
  • It doubles, because there is twice as much to analyse In the widget a batch takes 0.5 s whatever its size, and the wait does not depend on the rate.
  • It halves, because the repository fills twice as fast A fuller repository does not make the batch come sooner: the schedule is fixed.

Which statement about the four paradigm shifts and the four V's is correct?

  • They are the same list under two names No: Volume, Variety, Velocity and Veracity describe the data; the shifts describe how problems are solved.
  • The V's characterise the data; the shifts are changes in the way problems are solved The deck answers "What?" with the V's (pp. 5–9) and "How?" with the shifts (pp. 20–31). Pairing each shift with a V is a memory aid, not a definition.
  • The shifts replaced the V's in a later part of the course Both are in the same first lecture, and the exam guideline names both "Big Data" and the "4 paradigmatic shifts".

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?

  • It is inconsistent: having adopted the innovative approach, it should drop the warehouse The slides contrast the two approaches; they do not abolish the first. Warehouses have a lesson of their own.
  • The nightly load is the innovative approach, because it handles more data The nightly load lands data in a repository before analysis: that is the traditional chain, whatever the volume.
  • It uses both approaches of shift 4, each for its own purpose: they complement each other Fraud needs the stream; monthly reports are fine after landing. Nothing on the slides says the traditional chain is obsolete.

Key take-aways

What to watch and read