Data analysis: Turn a question into a defensible finding
Define an analysis question, unit, population, period, and metric; then check data quality, explore patterns, choose a suitable method, and report uncertainty without overstating what the data show.
Data analysis: Turn a question into a defensible finding
Data analysis is the process of preparing and examining data to answer a question, then judging what conclusions the evidence can support. Start by defining the decision and what will be measured, check the data's quality and scope, choose a method that fits the question, and explain the result together with its uncertainty.
How is data analysis different from calculating numbers?
Calculating an average or drawing a chart is only part of analysis. The same number can mean different things depending on what counts as one case, which people or events were included, and which period was compared. Analysis makes these conditions explicit, separates an observed pattern from a proposed explanation, and connects the result to a real decision.
For example, “sign-ups fell” does not tell you what to investigate. The number of completed sign-ups may have fallen, the sign-up rate per visit may have dropped, or the change may have occurred only on a particular device or acquisition channel. The next check depends on which of these is true. Analysis therefore starts by turning the decision question into something measurable, before selecting a statistical technique.
Define the question and unit of analysis first
Write down the following to make the scope clear:
What decision is the result meant to inform?
What will be measured? Purchase count, number of sessions with a purchase, and whether each user purchased are different metrics.
What does one row represent: a user, visit session, order, or day? This is the **unit of analysis**.
Which people or events are included, and what are the time period and geographic scope?
Is the conclusion about the observations in this dataset or a wider population?
If the unit of analysis or denominator is unclear, different teams can calculate different values under the same metric name. For a session conversion rate, for example, the numerator should be the number of eligible sessions with at least one purchase, and the denominator should be the number of eligible sessions under the same definition. Counting order events as the numerator changes the metric's meaning when a session can contain multiple orders.
Check whether the data are ready to answer the question
Before analysis, check row counts, unique identifiers, data types, units, missing values, duplicate rows, date coverage, and measurement definitions. Do not immediately delete missing values or replace them with an average. If missingness is associated with particular users, periods, or devices, removing or replacing those records can tilt the result.
Keep original values distinct from transformed values. Record any operation that can affect the result, such as changing time zones, converting currencies, or handling outliers, so the analysis can be reproduced. If the data are incomplete or the measurement method changed partway through, disclose that and either narrow the question to what can be answered or include the limitation in the conclusion.
Inspect structure with summaries and visualizations
Exploratory data analysis (EDA) uses a combination of summaries and graphics to examine a dataset's structure, unusual values, relationships, and assumptions. NIST describes EDA as an approach to deciding what to look for and how to interpret it, rather than as a fixed list of charts. It also advises analysts to identify and prioritize the questions that matter before choosing exploratory techniques. NIST Engineering Statistics Handbook: What is EDA?, NIST: Analysis Questions
An average alone can hide two groups, a long-tailed distribution, or a sharp change at a particular time. Choose a frequency table, distribution plot, box plot, scatter plot, or time plot to match the variables. Read each display alongside a question: What differs? Does the difference appear in every group? Did the measurement or collection process change? A pattern found during exploration is a clue for follow-up, not by itself a confirmed cause or statistical proof.
Choose an analysis type and method that fit the question
Different questions call for different analyses. The categories below are a practical way to distinguish them; a real project may use more than one.
| Question type | Question it answers | Boundary when interpreting the result |
|---|---|---|
| Descriptive | What was observed? | It summarizes the observed data; it does not automatically identify why a change occurred. |
| Diagnostic | In which group or process did a difference appear? | Breaking results into groups can reveal patterns, but group differences are not the same as causes. |
| Predictive | Given the available information, what outcomes are likely later? | Performance depends on validation data and the deployment setting; a prediction is not a causal effect. |
| Causal | Did an intervention change the outcome? | A suitable comparison or study design is needed. A before-and-after change alone cannot rule out other changes happening at the same time. |
| Prescriptive | Which action fits the goal and constraints? | The answer depends on the objective, costs, risks, and operational limits. |
Do not choose a method such as hypothesis testing, regression, time-series analysis, or experiment analysis just because it is familiar or supported by a tool. First check the outcome type, how the sample was formed, the unit of analysis, whether observations repeat, the method's assumptions, and the cost of the decision. If assumptions fail, use another method or limit the conclusion.
Example: conversion fell after a checkout change
The following is a hypothetical example created to show the calculation and interpretation process. It is not a claim about a real product or measurement. Conversion is defined as the share of eligible sessions in which at least one purchase occurred.
| Period | Device | Eligible sessions | Sessions with a purchase | Conversion |
|---|---|---|---|---|
| Before change | Mobile | 400 | 24 | 6% |
| Before change | Desktop | 600 | 54 | 9% |
| Before change | Overall | 1,000 | 78 | 7.8% |
| After change | Mobile | 700 | 35 | 5% |
| After change | Desktop | 300 | 27 | 9% |
| After change | Overall | 1,000 | 62 | 6.2% |
The overall rate fell by 1.6 percentage points, from 7.8% to 6.2%. But by device, mobile fell from 6% to 5%, while desktop stayed at 9%. At the same time, mobile's share of all sessions grew from 40% to 70%. The overall change therefore reflects both differences in device-level conversion and a change in the mix of visits.
These results alone do not show that the checkout change caused the decline. First confirm that the same session definition and tracking code were used in both periods, then check for simultaneous changes in campaigns, prices, stock, or day-of-week mix. If the question is the causal effect of the change, consider a randomized experiment or a design with an appropriate comparison group. UK government impact-evaluation guidance likewise explains that a before-and-after design with only one measurement in each period and no comparison group is weak evidence for attribution when other factors could affect the outcome. GOV.UK: Quality in policy impact evaluation
Report effect size and uncertainty together
Do not reduce a result to “significant” or “not significant.” Report the size and units of the change, the comparison, the sample scope, uncertainty in the estimate, important assumptions, and limitations so readers can judge its practical meaning. The American Statistical Association (ASA) explains that a p-value can indicate how compatible data are with an assumed statistical model, but it is not the probability that a hypothesis is true or a measure of effect size or importance. Business and policy decisions should not rest on a single threshold. ASA Statement on Statistical Significance and P-Values
At a minimum, state what was observed, what population or period the result applies to, how uncertain it is, which alternative explanations remain, and what should be checked next. Separating observations from possible interpretations makes an analysis more trustworthy and more useful for deciding what to do.
Before drawing a conclusion
Are the question, unit of analysis, numerator and denominator, period, and included population explicit?
Have data-quality issues and transformations been recorded?
Have you examined the distribution and important subgroups instead of only the average or overall value?
Do the method's assumptions and the comparison design fit the question?
Have you separated observed association or change from a causal claim?
Have you reported effect size, uncertainty, limitations, and follow-up checks together?
An analysis that passes these checks is not a universal law for every situation. Revisit the result when the measurement definition, population, collection process, or time period changes.