Resources / Blog

Funnel step: Analyze

Statistics Cheat Sheet: 3 Concepts in Data Science

Data has been called the new oil, and the comparison holds in one way: crude data is worth little until it is refined into something you can act on. That refining is what data science does, and statistics is the machinery underneath it.

You don’t need to master the details to lead a team that uses data, but you should know the basics, so you can ask good questions and recognize a weak answer. This statistics cheat sheet covers three concepts: algorithms, types of variables, and the most common statistical distributions.

Statistics Cheat Sheet, Concept 1: What’s an Algorithm?

An algorithm is a set of step-by-step instructions that tells a computer how to get from an input to a result. Think of a recipe: follow the steps with the same ingredients and you get the same cake. Most algorithms work that way, although some machine learning methods deliberately include randomness, so two runs can give slightly different answers.

Machine learning algorithms learn their instructions from data rather than having every step written by hand. Some are simple enough to explain on a whiteboard; others are so complex that even the people who build them struggle to say exactly why a given prediction came out the way it did.

One of the easiest to understand is k-nearest neighbors (k-NN). To classify something new, it finds the k most similar examples it already knows (its “nearest neighbors”) and goes with the majority. Similarity is measured as distance across the features you give it, which can be two (easy to draw on a chart) or dozens. Example: higher education. To estimate whether a new inquiry is likely to enroll, k-NN finds the past inquiries most like it (program, distance from campus, how they first engaged) and looks at how many of those enrolled.

k-NN is often confused with clustering methods such as k-means, which group records into segments without any known outcome. Both rely on “nearness,” but k-NN predicts a known label, and clustering discovers groups.

Statistics Cheat Sheet, Concept 2: Discrete and Continuous Variables

A discrete variable takes countable, separate values: the number of inquiries today, the number of tours scheduled, the number of children in a household. You can’t have 2.5 tours.

A continuous variable can take any value in a range: time, weight, temperature, distance. Age is a good example: we say someone is 28, but they are really 28 years and some fraction of a year, and you could keep measuring more precisely forever. Continuous variables are usually described by ranges and by a probability curve rather than by a list of possible values.

The distinction matters because it decides which statistical tools fit. Counts call for one family of distributions; measurements call for another.

Statistics Cheat Sheet, Concept 3: The Most Common Statistical Distributions

A distribution describes how likely each possible outcome is. The normal distribution is the most famous, but the Bernoulli distribution is the easiest place to start.

Bernoulli distribution

A Bernoulli distribution has exactly two outcomes, usually coded 1 (success) and 0 (failure), like a coin flip. With a fair coin, each outcome has a probability of 0.5, but the two don’t have to be equal. A boxer who has won his last ten fights is not facing even odds against one who has lost his last ten. Example: any long funnel. Whether a single lead becomes a customer is a Bernoulli outcome: it either enrolls, moves in or funds, or it doesn’t, with some probability p.

Uniform distribution

In a uniform distribution, every outcome is equally likely, whether there are two possibilities or two hundred. Rolling a fair die is the classic example. Plotted, it is flat, which is why it is also called a rectangular distribution.

Binomial distribution

A binomial distribution counts the successes across many independent Bernoulli trials with the same probability. Ask one voter whether they’ll choose candidate A and you have a Bernoulli trial; ask everyone in town and count the yes answers, and the count follows a binomial distribution. The probability of exactly k successes in n trials is P(k) = C(n, k) × pk × (1 − p)n − k, where C(n, k) is the number of ways to choose k items from n. Example: higher education. Of 200 applications this term, how many will enroll?

Normal distribution

The normal distribution, or bell curve, appears whenever many small, independent effects add up: heights, measurement errors, test scores. Most values cluster near the average, and fewer appear the further you go in either direction, symmetrically. It is described by two numbers: the mean (the center) and the standard deviation (the spread).

Poisson distribution

A Poisson distribution describes how many times an event happens in a fixed interval when events occur independently at a steady average rate: calls to a help line in an hour, typos on a page, inquiries per day. It assumes that one event doesn’t change the chance of the next, that the average rate stays the same across the interval, and that two events can’t happen at exactly the same instant. The probability of seeing exactly k events when the average is λ is P(k) = λk × e−λ / k!.

Poisson is more useful to a marketer than it looks, as the next section shows.

Where This Breaks in a Long Funnel

Every method above assumes that the data in front of it is a fair record of what happened. In a long, high-value funnel, it often isn’t, and statistics can’t detect what was never recorded.

The blind spot: data missing in a pattern, and breaks that look like noise

Some data goes missing at random, which mostly just makes estimates less precise. Funnel data rarely goes missing at random. It goes missing in patterns: phone calls without call tracking, mobile visits that never connect to the later form, a lead source field that records “Live chat” instead of the campaign, a landing page someone launched without the tracking snippet. Whole channels and whole kinds of prospects drop out of the data together.

A model trained on that data learns a confident, precise answer about the part of the funnel it could see. A conversion rate (a Bernoulli probability) computed on tracked leads only describes tracked leads. A k-NN or regression model learns that phone-heavy audiences “don’t convert,” because their conversions arrived with no source.

The blind spot

Training data where whole channels lose their source Illustrative higher education training data: enrollments by the channel the inquiry came through, with the source the data records and what a model learns from it. Lights off: web forms keep their campaign, but phone calls without call tracking have no source, return visits never connect to the later form, live chat records "Live chat" instead of the campaign, and a landing page launched without the tracking snippet records nothing. The data is missing in a pattern, so the model learns that these channels don't convert. Lights on: every channel is captured from the first touch and kept with a Universal ID, so each enrollment carries its campaign and the model learns from the whole funnel. ONE TRAINING SET · FIVE CHANNELS EXAMPLE: HIGHER EDUCATION TRAINING DATA · ENROLLMENTS CHANNEL SOURCE MODEL LEARNS WEB FORM Campaign PHONE CALL RETURN VISIT LIVE CHAT UNTAGGED PAGE Real rateCampaignReal rateCampaignReal rateCampaignReal rateCampaignReal rateEVERY CHANNEL CAPTUREDONE UNIVERSAL ID FROM THE FIRST TOUCH ConvertsNoneWon't convertNot joinedWon't convertLive chatWon't convertNoneWon't convertMISSING IN A PATTERNWHOLE CHANNELS DROP OUT TOGETHER Training data where whole channels lose their source Illustrative higher education training data: enrollments by the channel the inquiry came through, with the source the data records and what a model learns from it. Lights off: web forms keep their campaign, but phone calls without call tracking have no source, return visits never connect to the later form, live chat records "Live chat" instead of the campaign, and a landing page launched without the tracking snippet records nothing. The data is missing in a pattern, so the model learns that these channels don't convert. Lights on: every channel is captured from the first touch and kept with a Universal ID, so each enrollment carries its campaign and the model learns from the whole funnel. ONE TRAINING SET · FIVE CHANNELS EXAMPLE: HIGHER EDUCATION TRAINING DATA · ENROLLMENTS CHANNEL SOURCE MODEL LEARNS WEB FORM Campaign PHONE CALL RETURN VISIT LIVE CHAT UNTAGGED PAGE Real rateCampaignReal rateCampaignReal rateCampaignReal rateCampaignReal rateEVERY CHANNEL CAPTUREDONE UNIVERSAL ID FROM THE FIRST TOUCH ConvertsNoneWon't convertNot joinedWon't convertLive chatWon't convertNoneWon't convertMISSING IN A PATTERNWHOLE CHANNELS DROP OUT TOGETHER
EVERY CHANNEL KEEPS ITS SOURCE · THE MODEL LEARNS FROM THE WHOLE FUNNEL Lights on. Calls, return visits, chats and every landing page are captured and kept with a Universal ID, so each enrollment carries the campaign that started it and the model learns from the whole funnel.

The second problem is time. When a form breaks or a release drops a tracking script, leads don’t stop. They fall by some share, and the drop looks like an ordinary slow week. This is where the Poisson distribution earns its place: if a source averages 40 leads a day, Poisson tells you how unusual a day with 22 really is. A drop far outside the expected range is a signal to check the tracking, not a reason to wait and see.

What it costs

  • Models learn the gaps as facts. Channels whose leads lose their source look ineffective, and the model recommends cutting them.
  • Breaks hide for months. A tracking failure read as normal variation stays in the data until someone notices the trend, and then it is a permanent blip in your history.
  • Precision gets mistaken for accuracy. Narrow confidence intervals on biased data look rigorous and are still wrong.

Checklist: is your model learning from the whole funnel?

  • What share of leads and outcomes have a known, specific source (campaign, not just channel)?
  • Are phone calls, chats and offline conversions in the same data set as web leads?
  • Which channels or audiences are most likely to lose their source, and how does your analysis treat them?
  • Do you track daily lead counts by source against their expected range, and alert on outliers?
  • When a site release, form change or new campaign goes live, does someone check that tracking still works?
  • Can you mark known data breaks in your history, so models don’t learn from them?

If you can’t answer these, start with the data before the model. For more on how analysis turns data into decisions, see 10 ways to use data science to improve sales.

View all posts

Get it first

Start with your own numbers instead.

The assessment gives you a scored read on your own funnel today, and it is the fastest way onto the list for everything above.