All articles

KajoData / Career & business

Correlation and causation: avoid inventing a story for your chart

I explain what two related variables let you say, what a chart cannot settle and how to plan further analysis before making a decision.

Kajo RudzińskiPublished Updated 13 min read

One central mechanism drives two parallel belts with matching patterns of cubes.

Two indicators rise and somebody says that increasing the first made the second improve. It sounds reasonable. The chart, however, has not told the whole story. I stop here and ask which part we observed and which part we added ourselves. The difference can be a few words in a meeting and a substantial change in the decision that follows.

Correlation describes how variables vary together. A causal question asks about the effect of a change: if I changed X, would Y differ from what it would have been without that change? That is harder than checking whether large values of X accompany large values of Y. The small examples below are synthetic reasoning exercises. They are not research findings or descriptions of an actual company.

Start with what the paired observations show

Suppose you compare three stores. The first spends 10 units on advertising and receives 20 orders. The second has 20 and 40, and the third 30 and 60. These points lie on an upward straight line. In this sample, higher spending accompanies more orders. That accurately describes the data, but does not yet tell you the effect of increasing a store’s budget. The intervention is a different question from the comparison.

Larger stores might have both larger budgets and more sales. Budgets might also be assigned using earlier sales results. Advertising could genuinely affect sales as well. Those stories can all be compatible with a similar arrangement of three points. Choosing the most persuasive story in a meeting does not distinguish them. The chart needs additional information about how decisions were made and how the observations came to exist.

NIST describes scatter plots as tools for identifying relationships, while explicitly separating association from proof of causation. My first caption would therefore say that higher budgets accompany more orders in three stores. It sounds less dramatic than a claim about advertising effectiveness, but it tells the reader what is actually visible. Precision at this stage keeps a useful observation from becoming an unsupported promise.

Pearson describes a linear relationship

Pearson’s coefficient ranges from -1 to 1 and measures a linear relationship. For the pairs 10/20, 20/40 and 30/60, it equals 1 because the order count is exactly twice the spending value. That describes the sample’s geometry. It does not mean doubling any store’s budget would double its orders. The SciPy documentation explains the coefficient and its limitations.

I would avoid a universal threshold above which a correlation becomes strong enough for a decision. Interpretation depends on the question, measurement quality and number of observations. Three invented stores are enough to illustrate a perfect line. They are not enough to assess a real campaign. The simplicity of a calculation is easily mistaken for the strength of evidence, particularly when a software output displays several decimal places and looks impressively precise.

Inspect the shape too. If X takes -1, 0 and 1 while Y takes 1, 0 and 1, the points make a U. Linear correlation is zero because the contributions on either side cancel symmetrically. Yet Y is exactly X squared in this example. A zero value for one measure does not establish independence or an absence of structure. The question is which kind of relationship the measure was designed to summarise.

A common cause can move both variables

Return to the stores and add visits: 100, 200 and 300 respectively. Imagine a process in which larger traffic accompanies both a larger budget and more orders. This is a possible explanation of the synthetic example, rather than a discovery established by adding a column. It shows why you need knowledge of the process generating the data. The same visible pattern can be consistent with several different mechanisms.

The earlier Polish article used ice cream and drowning as an illustration. It can prompt a question about season or temperature, but I would not present it as a specific research finding without a source. A clearly hypothetical mechanism is enough: warm days can change several behaviours at once. Two increasing counts alone do not establish whether either count affects the other or whether both respond to another condition.

At work I would list possible common causes before further calculation. Store size, location, season and customer mix could be relevant candidates. That does not mean automatically adding every available column to a model. Understand each variable’s role and measurement time first. A list of explanations helps plan the analysis, but does not confirm any explanation by itself. Extra fields are useful when they address an identified gap in the reasoning.

Investigate the direction of influence

Suppose stores with good results receive a larger budget for the following month. Sales may then influence the spending decision. A report placing the two indicators beside each other does not reveal that assignment mechanism. Without understanding how budgets are set, it is easy to draw the arrow in a convenient direction. I ask who decided on the action and which information they had when they made that decision.

Writing down the sequence helps: measure performance, assign the budget, observe later sales. The sequence does not replace a research design, but can reveal an interpretation error immediately. Spending approved after a result cannot simply explain that earlier result. Timing is necessary for a coherent causal story, although timing alone does not establish the relationship. A later event can follow an earlier one for many reasons beyond the explanation you prefer.

Do not choose the delay solely to make the chart attractive. Trying successive time shifts until an impressive fit appears can produce a convincing presentation of chance. I justify the period through the process: when could the action begin affecting the outcome, and how long could the effect last? Then I would examine material that was not used to invent that rule. The choice needs a reason beyond the strongest line on the screen.

A shared trend can be misleading

Compare the user count of a growing application with its support-ticket count. Both may rise. That does not mean creating more tickets attracts customers. More users create more opportunities to contact support. Before describing worsening quality, I would want a measure that also accounts for the scale of application use. A growing total may reflect growth in exposure rather than a deterioration in the experience of a typical user.

The denominator still needs a definition. Tickets per user and the proportion of users submitting a ticket answer different questions because one person may contact support repeatedly. I would compare both perspectives if the data supports them. Dividing one count by another does not remove every problem automatically. It helps when the denominator has an appropriate meaning for the question and when both quantities describe a compatible population and time period.

Mark changes in measurement as well. A new contact form may increase recorded cases even if user experience stays the same. Without the deployment information, you might attribute the jump to another event on a similar date. Comparing the product timeline with the data-collection timeline can be more useful at this point than fitting another line to the completed chart. You first need to know whether the indicator is still measuring the same thing.

Two comparison lanes pass through separate gates, with another component left aside for inspection.

Observation selection changes the question

Imagine analysing only people who completed a course. You compare their study time with their final scores. The result concerns that selected group. It does not automatically describe everybody who enrolled, including people who left. If withdrawal reasons relate to time or difficulty, the omission may matter. A more colourful chart of completed cases will not recover the information about people who never reached the final measurement.

Before analysing, document how the sample was formed. Who could enter, who was excluded and which fields are available only for some people? These questions keep the conclusion within scope. Sometimes the correct description concerns people with complete measurements rather than all customers. A shorter slide label is not a reason to expand the claim. The audience needs to know whose experience is represented and whose experience remains absent from the comparison.

Treat missing and unusual observations with the same care. Do not remove records simply because they weaken the expected relationship. First determine whether the measurement is wrong or merely uncommon. Keep the selection rule and its justification in the description. If excluding a record changes the result substantially, that is information for the reader. It should not disappear into a working file because the original chart looked cleaner without it.

Establish the level of aggregation

Store-level data and individual-customer data answer different questions. A large store may have a bigger budget and more sales while the relationship between advertising exposure and purchase among its customers looks different. I do not automatically transfer a store comparison to individual behaviour. Identify the unit represented by each point and the unit targeted by the proposed decision. They should be connected through an explanation rather than assumed to be interchangeable.

Mixing segments also deserves attention. If large stores make up more of the next month’s dataset, the overall result may change with the group composition. Inspect segments and counts where the question justifies it. This does not mean every possible split is useful. Choose using process knowledge, rather than creating dozens of tiny groups merely to search for an interesting pattern. Otherwise the exploration can become a search for a story you want to tell.

Beside the table, I would describe the observation unit, weighting and entry conditions. An average of store results can give every store equal influence, while a proportion based on all orders gives larger stores more weight. Both may be calculated correctly and answer different questions. Naming the difference makes the conversation easier before anyone tries to explain causes. A disagreement about the business story may actually begin with two incompatible definitions of the summary.

Watch for changing definitions over time too. If another sales channel enters the measure in February, earlier and later values no longer cover the same scope. Putting them on a common axis is insufficient. You need a comparable definition or a visible boundary marking the new measurement. Otherwise you may be investigating the consequences of your reporting change while believing you are evaluating the effect of advertising activity.

Before and after is not sufficient on its own

A company launches a new website and receives more orders the following week. A promotion also starts, the season changes and traffic comes from a different source. Comparing the two weeks shows a different outcome. Attributing the entire difference to the website requires more justification. A vertical deployment marker is easy to draw, but it does not separate every other influence operating at the same time.

I would list events that could affect the outcome and check whether the periods describe comparable conditions. This investigation helps plan a better measurement. Merely mentioning seasonality does not control it. If suitable material is unavailable, describe the change after deployment and the limitation on attributing an effect. The reader can then understand what the result leaves unresolved instead of treating the deployment date as a guarantee of an isolated intervention.

NIST distinguishes observed relationships from the effect of changing a factor. The practical implication is that data collection should match the strength of the question. If you need a decision about an action’s effectiveness, plan the measurement before introducing the action. Afterwards, a missing comparison may be impossible to recover, even with many records and sophisticated software. More volume cannot automatically supply an absent design.

What random assignment contributes

For the website, you could plan a comparison of two versions with users assigned randomly. Assignment would then not deliberately depend on their previous tendency to buy. You still need correct measurement, a defined period and an understandable outcome. NIST connects experimental design selection with the objective, factors and available resources. An experiment needs a plan that fits the decision you want to support.

The label A/B does not settle everything. If the most loyal customers get the new version, a difference could reflect group selection. If purchase tracking differs between versions, the result also compares recording mechanisms. Before starting, understand the assignment unit, assignment consistency and whether one person can encounter both versions in a way that complicates interpretation. A test name is less useful than a clear account of what was actually compared.

An experiment is not always possible. Cost, timing or the ability to introduce the change may be limiting. I would not then promise that any observational adjustment solves the problem. Miguel Hernán describes the role of assumptions and design in observational causal inference. Such work can address causes, but needs more than a correlation coefficient and an appealing account of a mechanism. The assumptions need to be visible enough to discuss.

Write a conclusion without pretending certainty

I separate three statements. First, describe the observation: larger budgets accompany more orders in the sample. Second, state the hypothesis: advertising could help explain it. Third, identify the gap: we lack a comparison separating that effect from store size. The reader can assess the argument without guessing which parts are observations and which parts are ideas for further analysis. Clear wording makes uncertainty usable rather than merely apologetic.

The next step should follow the limitation. If traffic information is missing, collect it and understand how it is measured. If the aim is to assess a website change, plan an appropriate comparison. Avoid stopping at a generic request for more data. A large number of similarly selected observations may not resolve the central problem. Specify the information or study design actually needed to strengthen the answer and explain why it addresses the gap.

Avoid causal verbs in a title that only presents association. Advertising increases sales promises more than budgets and orders in three stores. A limitation hidden in small print cannot repair an overstated headline. Start with the most accurate sentence, then shorten it without changing its meaning. The first impression should preserve the same evidential boundary as the detailed explanation, because many recipients will read the headline and little else.

Exercise: write three competing explanations

Take the three-store example and write three stories: an advertising effect, a store-size effect and budgets assigned using previous performance. For each, list the information needed to investigate it. Notice that the same three points do not choose one answer. This exercise concerns interpretation boundaries rather than a competition for the most creative sales story. A useful explanation should suggest evidence that could help distinguish it from the alternatives.

Next, write a descriptive caption and a causal caption. Mark the words that strengthen the claim. Explain which measurement design would justify the stronger version. If you cannot specify one, stay descriptive. The guide to data analysis methods can help plan further work, while the guide to data quality helps examine the input before interpreting its patterns.

Finally, imagine the decision based on your result. What happens if you mistake association for an effect? Could you begin with a small, checkable action instead of a broad change? These questions help match evidence to consequences. Correlation can be a productive beginning. The harder work starts when you want to say what would happen after your intervention, rather than simply describe which numbers appeared together in the dataset you happened to receive.

Key takeaways

Does a strong correlation establish a cause?

No. Even a perfect linear fit does not settle direction, common causes or the way observations were selected.

Does zero Pearson correlation mean no relationship?

It means no linear correlation in the assessed data. A nonlinear relationship may still exist, so inspect the points as well.

Does every causal conclusion require an experiment?

Randomised experiments are an important route. Observational analyses can also address causal questions, but need explicit assumptions and a suitable design; correlation alone is insufficient.

AI was used in an automated way while working on this article. If you want to learn how to do it too, check out this project.

Kajo Rudziński

Newsletter KajoData

Let’s keep in touch.

I write about data analysis, learning and changing careers. My newsletter and the sign-up form are in Polish. If that works for you, I’d be glad to see you there.