TapCub is live — analytics, insights and live chat, free on one platform
Glossary

What is exploratory data analysis (EDA)? Steps and a worked example

Exploratory data analysis is the look-before-you-test stage: distributions, outliers, missing values and segment splits. The checklist, the IQR fences and a 12,000-session example that turns into a hypothesis.

Lin Zhou Reviewed by Su He Also called EDA Last updated Nov 29, 2026 Glossary

Quick answer

Exploratory data analysis (EDA) is the stage of an analysis where you look at the data before testing anything: distributions, outliers, missing values and segment splits. It produces hypotheses and data-quality fixes, which then need confirmation on fresh data.

Formula: IQR = Q3 − Q1; outlier fences = Q1 − 1.5 × IQR and Q3 + 1.5 × IQR (outer fences use 3 × IQR)

What is exploratory data analysis?

Exploratory data analysis (EDA) is the stage of an analysis where you look at the data before you test anything: how each variable is distributed, where the outliers and missing values are, and how the numbers change when you split them by a segment. The NIST/SEMATECH e-Handbook of Statistical Methods calls it "an approach/philosophy for data analysis that employs a variety of techniques (mostly graphical)", and its purpose is to let the data suggest which model or hypothesis is worth testing.

EDA ends with questions, not answers. "Mobile sessions are half as long as desktop sessions" is an EDA finding; "the new mobile layout increases session length" is a hypothesis that needs a separate, confirmatory test on fresh data. Mixing the two, by finding a pattern and then declaring it proven with the same data, is the most common way exploratory work produces false conclusions.

Where EDA came from: Tukey and the NIST handbook

John Tukey argued in "The Future of Data Analysis" (Annals of Mathematical Statistics, 1962) that statistics needed a looking-first discipline alongside formal inference, and his 1977 book Exploratory Data Analysis introduced tools still used today, including the box plot and the five-number summary.

The NIST handbook (section 1.1.2) puts the difference as an order of steps:

ApproachSequence
Classical analysisProblem → Data → Model → Analysis → Conclusions
Exploratory analysisProblem → Data → Analysis → Model → Conclusions

In classical analysis you assume a model, such as a normal distribution or a linear relationship, and estimate its parameters. In EDA you postpone that assumption and let plots and summaries tell you which model fits. For product and web analytics this matters because most behavioral data breaks the textbook assumptions: session lengths, order values and events per user are heavily right-skewed, so a mean computed without looking can describe almost nobody.

The EDA checklist: what to look at, in order

A practical EDA pass on an event or session export follows five checks. Each one has a question, a technique and a thing to write down.

StepQuestionTechniqueWrite down
1. Shape and qualityHow many rows, which columns, what time range? Any duplicates?Row counts by day, duplicate IDsGaps, duplicate rate, time-zone cut
2. Missing valuesWhich fields are empty, and is the emptiness random?Share of nulls per column, by sourceFields to exclude or fix in tracking
3. DistributionsWhat does a typical value look like? How long is the tail?Histogram, five-number summary, mean vs medianSkew, multiple peaks, impossible values
4. OutliersWhich rows sit far outside the bulk, and why?IQR fences, box plot, inspecting the extreme rowsBots, test traffic, idle tabs, real heavy users
5. Segment splitsDoes the picture change by device, channel, country, new vs returning?Same summary per segment, side by sideHypotheses to test later

Two rules keep the checklist honest. First, inspect the actual rows behind every outlier before you delete them; an extreme value can be a bot or the most valuable customer you have. Second, write each segment difference as a hypothesis with a direction and a metric, so it can be tested on new data rather than re-read from the same chart. If a step changes the data (dropping rows, capping values), record the rule so the next person gets the same numbers.

Five-number summary and outlier fences

The five-number summary describes a distribution with five values that are robust to extreme rows: minimum, first quartile (Q1), median, third quartile (Q3) and maximum. Half of all values fall between Q1 and Q3; that span is the interquartile range:

  • IQR = Q3 − Q1
  • Lower inner fence = Q1 − 1.5 × IQR; upper inner fence = Q3 + 1.5 × IQR
  • Lower outer fence = Q1 − 3 × IQR; upper outer fence = Q3 + 3 × IQR

The NIST handbook (section 7.1.6) calls a point beyond an inner fence a mild outlier and a point beyond an outer fence an extreme outlier. The fences are a flag for inspection, not a deletion rule. For the summary measures themselves (mean, median, variance), see descriptive statistics; for when the mean misleads, see mean vs median.

Worked example: 30 days of session durations

Sample data: a raw export of 12,000 website sessions from the last 30 days, before any bot filtering, with one row per session and its duration in seconds.

Step 3, distribution. The five-number summary is: minimum 1 s, Q1 31 s, median 74 s, Q3 182 s, maximum 86,400 s (24 hours). The mean is 236 s, more than three times the median, which already says the tail is long and that "average session duration" will mislead.

Step 4, outliers. IQR = 182 − 31 = 151 s. The upper inner fence is 182 + 1.5 × 151 = 408.5 s; the upper outer fence is 182 + 3 × 151 = 635 s. The lower inner fence is 31 − 226.5 = −195.5 s, below zero, so there are no low outliers. 720 sessions (6.0%) sit above the upper inner fence. Inspecting them rather than deleting them:

Group above the fenceSessionsShare of the 720Decision
Automated traffic (headless user agents, one request per second)18025.0%Exclude: not people
One-page sessions longer than 30 minutes with no events (tabs left open)41056.9%Keep, but report the median, not the mean
Multi-page sessions with events throughout13018.1%Keep: real heavy use

Only 130 of the 720 "outliers" are the long, engaged visits the fence seemed to promise.

Step 5, segment split. Splitting the cleaned sessions by device: 7,200 mobile sessions (60%) have a median of 52 s; 4,800 desktop sessions have a median of 104 s. The mobile median is half the desktop median. That is not a conclusion. It is a hypothesis with a direction and a metric: "mobile article pages lose readers before the second screen." The next step is a confirmatory check on new data, for example comparing scroll depth on the two devices next month or testing a shorter mobile layout, not re-reading this export until it agrees.

Exploratory vs confirmatory data analysis

Exploratory (EDA)Confirmatory
Starts withData and a broad questionA specific hypothesis written in advance
Main toolsHistograms, box plots, segment splits, scatter plotsHypothesis tests, confidence intervals, controlled experiments
OutputPatterns, data-quality issues, hypothesesA decision: reject or keep the hypothesis, with an error rate
DataAny slice, as many looks as neededFresh data, or a holdout the exploration never touched
Main riskSeeing patterns in noiseTesting the wrong question because nobody looked first

The rule that connects them: a pattern found by exploring cannot be confirmed by the same data. If you compare 20 segments, about one will look "significant" at the 5% level by chance alone. Exploration chooses what to test; confirmation tests it on data the exploration did not use.

EDA is also not the same as descriptive statistics. Descriptive statistics are the measures (median, IQR, standard deviation). EDA is the iterative process that uses them, together with plots and segment splits, to decide what to do next. In the four types of analytics described in types of data analytics, EDA sits between descriptive and diagnostic work.

Common mistakes in exploratory data analysis

  • Reporting the mean of a skewed metric. In the example, a mean of 236 s describes a session that almost nobody had. Report the median and a percentile such as P75 or P90 alongside it.
  • Deleting outliers by rule. The 1.5 × IQR fence flagged 720 sessions, of which 130 were real heavy use. Inspect, label, then decide; more on this in outliers in data.
  • Not separating bots first. Automated traffic inflates both tails: very short sessions from crawlers and very long ones from monitors. If 25% of your outliers are bots, every downstream rate is off.
  • Treating missing values as zero. A blank revenue field on a pageview is "not applicable", not "zero revenue". Averaging it in drags the mean down.
  • Testing on the same data you explored. Write the hypothesis down, then check it on a later period. The broader workflow is in how to analyze data.
  • Too many splits on a small sample. Twelve segments from 1,200 sessions leave about 100 sessions each; medians of groups that small move by tens of seconds from one week to the next.

How to run EDA on analytics data in TapCub

The session-duration example above, done in TapCub:

TapCub interval histogram with two peaks: one between 10 seconds and 5 minutes and another between 1 day and 7 days
Demo data: an interval histogram in TapCub with two separate peaks, the kind of shape EDA is meant to catch before anyone reports a single average. The data are demo data, not customer data.
  1. Bots are already separated. TapCub counts recognized crawlers and automated traffic in Web analytics › Bots and keeps them out of human reports, so the 180 automated sessions in the example do not enter the summary in the first place.
  2. Look at the distribution. In All-platform analytics › Behavior › Behavior analysis, open Distribution and pick session duration as the subject. The histogram shows each bucket's count and share, plus the mean and the median, so a mean far above the median shows up on one screen. Session duration uses fixed duration edges and keeps buckets up to 6 hours. (How to read it: analyze event distribution.)
  3. Split by segment. Distribution has no breakdown control, so add a device filter (mobile, then desktop) and run it twice to compare the two medians.
  4. Get quartiles for a gap between two events. Interval analysis in the same menu returns the sample size, minimum, 25th percentile, median, 75th, 90th, maximum and average for the time between a start and an end event, enough to apply the IQR fences above.
  5. Inspect the rows behind an outlier. In All-platform analytics › Behavior › Metrics & SQL, the SQL tab can query the v_sessions view (duration, pages, channel, entry page) with a single SELECT, so you can list the sessions above the fence and look at them before deciding.

TapCub does not run the confirmatory test for you: it does not split traffic for experiments. It gives you the exploration and, later, the same reports on fresh data to check the hypothesis.

Sources

Was this explanation clear?

We use your answers to fix and expand this page.

Lin Zhou

Product Experience Specialist

Writes about product experience, practical workflows, and growth, turning complex processes into clear steps for everyday decisions.

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

What are the main steps of exploratory data analysis?

Check the shape and quality of the data (rows, time range, duplicates), then missing values, then each distribution with a histogram and five-number summary, then outliers with IQR fences, and finally split the key metrics by segments such as device or channel. Write each difference down as a hypothesis to test on new data.

What is the difference between EDA and confirmatory data analysis?

EDA starts with data and a broad question and ends with patterns and hypotheses. Confirmatory analysis starts with a hypothesis written in advance and tests it, usually on fresh data, with a known error rate. A pattern found while exploring cannot be confirmed with the same data.

How do you find outliers in exploratory data analysis?

Compute Q1, Q3 and the interquartile range, then flag values below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR as mild outliers, and beyond 3 × IQR as extreme. Then inspect the flagged rows: they may be bots, test traffic or your heaviest real users.

Is EDA the same as descriptive statistics?

No. Descriptive statistics are the summary measures, such as median, IQR and standard deviation. EDA is the iterative process that uses those measures together with plots and segment splits to find data problems and decide which hypotheses are worth testing.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics