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:
| Approach | Sequence |
|---|---|
| Classical analysis | Problem → Data → Model → Analysis → Conclusions |
| Exploratory analysis | Problem → 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.
| Step | Question | Technique | Write down |
|---|---|---|---|
| 1. Shape and quality | How many rows, which columns, what time range? Any duplicates? | Row counts by day, duplicate IDs | Gaps, duplicate rate, time-zone cut |
| 2. Missing values | Which fields are empty, and is the emptiness random? | Share of nulls per column, by source | Fields to exclude or fix in tracking |
| 3. Distributions | What does a typical value look like? How long is the tail? | Histogram, five-number summary, mean vs median | Skew, multiple peaks, impossible values |
| 4. Outliers | Which rows sit far outside the bulk, and why? | IQR fences, box plot, inspecting the extreme rows | Bots, test traffic, idle tabs, real heavy users |
| 5. Segment splits | Does the picture change by device, channel, country, new vs returning? | Same summary per segment, side by side | Hypotheses 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 fence | Sessions | Share of the 720 | Decision |
|---|---|---|---|
| Automated traffic (headless user agents, one request per second) | 180 | 25.0% | Exclude: not people |
| One-page sessions longer than 30 minutes with no events (tabs left open) | 410 | 56.9% | Keep, but report the median, not the mean |
| Multi-page sessions with events throughout | 130 | 18.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 with | Data and a broad question | A specific hypothesis written in advance |
| Main tools | Histograms, box plots, segment splits, scatter plots | Hypothesis tests, confidence intervals, controlled experiments |
| Output | Patterns, data-quality issues, hypotheses | A decision: reject or keep the hypothesis, with an error rate |
| Data | Any slice, as many looks as needed | Fresh data, or a holdout the exploration never touched |
| Main risk | Seeing patterns in noise | Testing 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
revenuefield 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:

- 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.
- 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.)
- 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.
- 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.
- Inspect the rows behind an outlier. In All-platform analytics › Behavior › Metrics & SQL, the SQL tab can query the
v_sessionsview (duration, pages, channel, entry page) with a singleSELECT, 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.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

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