Sub topic 12
From analysis to decisions: trends, priorities and reporting
This chapter assumes you can already produce labelled reviews (sentiment, themes, aspects) as a table of rows, and that you have checked label quality against a human sample. It covers the last step. You turn those labels into trends, a priority list and a report that a product or support team will act on.
Why raw scores mislead
A single number such as "average sentiment 0.42" hides most of what a team needs. It does not say which theme drives the score, whether the score is moving, or how many reviews stand behind it. Three habits fix this:
- Report counts next to every percentage, so readers see the sample size.
- Compare periods, not single snapshots.
- Tie every finding to an action and an owner.
Step 1: Compute trends per theme
Start with a table with one row per review: a date, a sentiment label and a theme. Count negative mentions per theme per week, and divide by all reviews that week. Using a share of reviews instead of a raw count stops a busy week from looking like a worsening problem.
import pandas as pd
rows = [
("2026-10-05", "delivery", "negative"),
("2026-10-06", "delivery", "negative"),
("2026-10-07", "pricing", "neutral"),
("2026-10-08", "usability", "positive"),
("2026-10-12", "delivery", "negative"),
("2026-10-13", "delivery", "negative"),
("2026-10-14", "delivery", "negative"),
("2026-10-15", "usability", "positive"),
("2026-10-16", "pricing", "negative"),
("2026-10-17", "usability", "neutral"),
]
df = pd.DataFrame(rows, columns=["date", "theme", "sentiment"])
df["date"] = pd.to_datetime(df["date"])
df["week"] = df["date"].dt.to_period("W").astype(str)
total = df.groupby("week").size().rename("reviews")
neg = (
df[df["sentiment"] == "negative"]
.groupby(["week", "theme"]).size()
.unstack(fill_value=0)
)
share = neg.div(total, axis=0).round(2)
print(total)
print(share)Here delivery complaints rise from 2 of 4 reviews in the first week to 3 of 6 in the second, and pricing complaints appear for the first time. With so few reviews, neither change is trustworthy. On real data, set a minimum count before you call something a trend.
Step 2: Rank by impact, not by volume
The most frequent theme is not always the most important one. A simple priority score combines three inputs:
| Input | Question it answers | Example source |
|---|---|---|
| Frequency | How many reviews mention it? | Theme count |
| Severity | How bad is it for the customer? | Negative share, refund or churn language |
| Trend | Is it getting worse? | Change in share versus last period |
A basic formula is priority = frequency_share * negative_share * (1 + trend), where trend is the relative change from the previous period. Treat the result as a way to sort a discussion, not as a verdict. Add business weights if some areas matter more, such as safety issues or high-value customers.
Step 3: Report so people can verify and act
A useful report has a fixed shape, so readers learn where to look:
- Headline. One sentence, such as "Late delivery is the top complaint and grew from 50% to 50% of negative reviews"; use real figures and say what changed.
- Top priorities. Three to five themes with counts, trend and the score inputs.
- Evidence. Two or three verbatim quotes per theme, with review IDs, so readers can open the source. This carries over the traceability from the summarisation chapter.
- Caveats. Source mix, sample size, known label error rates from your evaluation, and any redacted or excluded data.
- Recommended action. A specific change, an owner and a date to re-check.
Step 4: Close the loop
An analysis only matters if something changes. After an action ships, re-run the same pipeline with the same taxonomy and compare the targeted theme before and after. If you change the taxonomy or the model mid-way, say so in the report, because the numbers are no longer directly comparable. Keep a log of each period's labels, model version and prompt, so you can reproduce old results.
Common errors
- Reporting averages without counts or sources.
- Reading a one-week jump on a small sample as a trend.
- Mixing sources with different biases (for example app-store reviews and support tickets) into one score without saying so.
- Presenting model labels as facts, without the error rates you measured.
- Ending the report with findings but no owner or date.
Exercise
Last week 8 of 40 reviews were negative about pricing. This week 12 of 120 were. A colleague says pricing complaints rose because 12 is more than 8. What do you answer, and what do you check next?
Show answer
The share fell from 20% (8/40) to 10% (12/120), so the raw count rose only because more reviews arrived. Report the share together with the counts. Next, check whether the source mix changed, and whether the sample is large enough to treat the change as real.
Exercise
Name the five parts of a report that lets readers verify and act on a finding.
Show answer
A headline with the change, a short list of top priorities with counts and trend, evidence quotes with review IDs, caveats (sources, sample size, label error rates), and a recommended action with an owner and re-check date.