TExcelTAD
Home › Data Science › DS Communicating Results

DS Communicating Results

An analysis that nobody understands changes nothing. The last step of every project — explaining what you found to people who will act on it — is where data science creates value. The audience is rarely other data scientists: it's a manager, a city council, a team on the ground.

Lead with the answer

Structure a report like a newspaper article, not like a lab notebook:

  1. The answer in one or two sentences, in the audience's language.
  2. The evidence: one or two charts and the key numbers.
  3. How sure we are: ranges, assumptions, limitations.
  4. What to do next: the recommendation.
  5. Details (methods, code, full tables) in an appendix.
Instead of… Write…
"The OLS coefficient for temp_c is 11.49 (p < 0.001)." "Each degree warmer brings about 11–12 more rides per day."
"R² = 0.916." "Weather and the day of the week explain over 90 % of the day-to-day ups and downs."
"The weekend dummy is 64.16." "Weekends bring about 64 extra rides compared with a weekday with the same weather."

Turn numbers into sentences with code

Generating the key sentences from the model keeps the report in sync with the analysis — no copy-paste errors when the data is updated:

python · try it yourself
import numpy as np
import pandas as pd
import statsmodels.formula.api as smf

rng = np.random.default_rng(42)
dates = pd.date_range("2024-04-01", periods=60)
temp = rng.uniform(4, 30, 60).round(1)
rain = np.where(rng.random(60) < 0.3, rng.uniform(1, 15, 60), 0).round(1)
humidity = rng.integers(35, 95, 60)
weekend = (dates.dayofweek >= 5).astype(int)
rides = (150 + 12 * temp - 8 * rain + 60 * weekend + rng.normal(0, 30, 60)).round().astype(int)
bikes = pd.DataFrame({"date": dates, "temp_c": temp, "rain_mm": rain,
                      "humidity": humidity, "weekend": weekend, "rides": rides})

m = smf.ols("rides ~ temp_c + rain_mm + weekend", data=bikes).fit()
ci = m.conf_int()

def effect(term, unit):
    lo, hi = ci.loc[term]
    word = "more" if m.params[term] > 0 else "fewer"
    lo, hi = sorted([abs(lo), abs(hi)])
    return f"{abs(m.params[term]):.0f} {word} rides per {unit} (likely between {lo:.0f} and {hi:.0f})"

print("Key findings, spring 2024 (60 days):")
print(f"- Temperature: {effect('temp_c', 'degree')}.")
print(f"- Rain: {effect('rain_mm', 'mm of rain')}.")
print(f"- Weekends: {effect('weekend', 'weekend day')}.")
print(f"- Together these explain {m.rsquared:.0%} of the daily variation.")
Key findings, spring 2024 (60 days):
- Temperature: 11 more rides per degree (likely between 10 and 13).
- Rain: 9 fewer rides per mm of rain (likely between 7 and 11).
- Weekends: 64 more rides per weekend day (likely between 45 and 83).
- Together these explain 92% of the daily variation.

One chart, one message

A chart for decision makers should make its point without explanation. Put the message in the title, highlight what matters, remove what doesn't (gridlines, unnecessary colours, a legend you could replace with direct labels):

python · try it yourself
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

rng = np.random.default_rng(42)
dates = pd.date_range("2024-04-01", periods=60)
temp = rng.uniform(4, 30, 60).round(1)
rain = np.where(rng.random(60) < 0.3, rng.uniform(1, 15, 60), 0).round(1)
humidity = rng.integers(35, 95, 60)
weekend = (dates.dayofweek >= 5).astype(int)
rides = (150 + 12 * temp - 8 * rain + 60 * weekend + rng.normal(0, 30, 60)).round().astype(int)
bikes = pd.DataFrame({"date": dates, "temp_c": temp, "rain_mm": rain,
                      "humidity": humidity, "weekend": weekend, "rides": rides})

bands = pd.cut(bikes["temp_c"], [0, 10, 20, 30], labels=["below 10 °C", "10–20 °C", "above 20 °C"])
avg = bikes.groupby(bands, observed=True)["rides"].mean()

fig, ax = plt.subplots(figsize=(7, 4))
bars = ax.bar(avg.index.astype(str), avg.values, color=["#cccccc", "#cccccc", "#ff6f00"])
for bar, value in zip(bars, avg.values):
    ax.text(bar.get_x() + bar.get_width() / 2, value + 8, f"{value:.0f}", ha="center")
ax.set_title("Warm days bring twice as many riders as cold days", loc="left", fontsize=13)
ax.set_ylabel("average rides per day")
ax.spines[["top", "right"]].set_visible(False)
ax.set_ylim(0, avg.max() * 1.15)
plt.show()
print(avg.round(0))
temp_c
below 10 °C    230.0
10–20 °C       318.0
above 20 °C    445.0
Name: rides, dtype: float64

The highlighted bar, direct value labels and a title that states the finding mean nobody needs to decode the chart. The y-axis starts at zero, so bar heights are honest.

Communicate uncertainty

Point estimates invite over-confidence. Give ranges, and explain them in words:

  • "Plan for about 474 rides on a sunny 22 °C Saturday; on most such days it will be between roughly 410 and 540."
  • "The data covers April–May. We don't yet know how riders behave in summer heat."
  • "These are associations. Weekend riders may differ from weekday riders in ways we didn't measure."
python · try it yourself
estimate, low, high = 474, 407, 541
print(f"Expected: {estimate} rides")
scale = 600 / 60                      # one character per 10 rides
line = [" "] * 61
for i in range(int(low / scale), int(high / scale) + 1):
    line[i] = "-"
line[int(estimate / scale)] = "|"
print("".join(line))
print(f"{'':{int(low / scale)}}{low}{'':{int(high / scale) - int(low / scale) - 6}}{high}")
Expected: 474 rides
                                        -------|-------
                                        407        541

Even a simple text sketch like this shows a range better than a single number. In a slide, an error bar or shaded band does the same.

Know your audience

Audience Wants Give them
Manager A decision The recommendation, the expected impact, the main risk
Operations team Daily numbers A simple forecast table, updated automatically
Data colleagues To check your work Code, data sources, model diagnostics
The public Trust and clarity Plain language, honest limits, no jargon

A checklist before you send

  • Does the first paragraph answer the original question?
  • Is every number rounded to a sensible precision ("about 12", not "11.4939")?
  • Does every chart have a message title and labelled axes with units?
  • Are uncertainty and limitations stated?
  • Could someone reproduce the result from your code and data?

Test yourself

How should a report for a manager begin?

  1. With the data cleaning steps
  2. With the answer to the question in plain language
  3. With the regression table
  4. With the list of libraries

Which chart title is most useful for decision makers?

  1. "Figure 3"
  2. "Rides by temperature band"
  3. "Warm days bring twice as many riders as cold days"
  4. "Bar chart"

Why generate report sentences from the model with code?

  1. It looks more technical
  2. The numbers stay in sync with the analysis when data changes
  3. It's required by statsmodels
  4. It hides uncertainty