Sub topic 12
From analysis to decisions: trends, priorities and reporting
The earlier chapters produced labels: sentiment, themes, aspects, summaries and quality checks. This chapter covers the last step, which is turning those labels into something a product or support team can act on. It assumes you have a table of labelled reviews, with a date, a sentiment and a list of themes per review. It also assumes you know the evaluation metrics from the previous chapter and basic Python.
Why a score is not a decision
A dashboard that says "average sentiment: 0.31" tells a team nothing about what to do. A decision needs four things:
- What changed, and is the change real?
- Which problems matter most?
- What evidence supports each claim?
- What should someone do, and how will we know it worked?
The pipeline so far answers "what do customers say". This chapter answers the other four by adding comparison over time, uncertainty, ranking and a report structure that readers can check.
From labels to trends
Counting mentions per theme per week is easy. Reading the counts correctly is harder. Three habits prevent most mistakes.
- Use shares and counts together. "Delivery complaints doubled" can mean 4 to 8 reviews, or 400 to 800. Always show the number of reviews behind a percentage.
- Attach uncertainty to small samples. A negative share of 40% from 20 reviews is far less certain than 40% from 2,000. A confidence interval makes this visible.
- Compare like with like. Compare the same source, the same period length and the same label version. If you changed the taxonomy or the prompt between two periods, the trend may be an artefact of the change.
The code below computes the negative share per theme and period. It then flags a change only when the Wilson confidence intervals of two consecutive periods do not overlap. The Wilson interval behaves better than the simple normal approximation when counts are small or the share is near 0% or 100%.
from collections import defaultdict
from math import sqrt
def wilson(k, n, z=1.96):
"""95% Wilson score interval for k successes out of n."""
if n == 0:
return (0.0, 1.0)
p = k / n
denom = 1 + z**2 / n
centre = (p + z**2 / (2 * n)) / denom
half = z * sqrt(p * (1 - p) / n + z**2 / (4 * n**2)) / denom
return (centre - half, centre + half)
def add(records, period, theme, negative, other):
for _ in range(negative):
records.append({"period": period, "theme": theme, "sentiment": "negative"})
for _ in range(other):
records.append({"period": period, "theme": theme, "sentiment": "neutral"})
def negative_share(records):
counts = defaultdict(lambda: [0, 0]) # (theme, period) -> [negative, total]
for r in records:
key = (r["theme"], r["period"])
counts[key][1] += 1
if r["sentiment"] == "negative":
counts[key][0] += 1
return counts
records = []
add(records, "2026-W44", "delivery", 18, 82)
add(records, "2026-W45", "delivery", 40, 60)
add(records, "2026-W44", "usability", 10, 40)
add(records, "2026-W45", "usability", 16, 34)
add(records, "2026-W44", "pricing", 5, 15)
add(records, "2026-W45", "pricing", 9, 11)
counts = negative_share(records)
for theme in ["delivery", "usability", "pricing"]:
k0, n0 = counts[(theme, "2026-W44")]
k1, n1 = counts[(theme, "2026-W45")]
lo0, hi0 = wilson(k0, n0)
lo1, hi1 = wilson(k1, n1)
changed = lo1 > hi0 or hi1 < lo0
print(f"{theme:10s} {k0}/{n0} -> {k1}/{n1} clear change: {changed}")Running this flags only delivery. Usability rose from 20% to 32% and pricing from 25% to 45%, but with this few reviews the intervals overlap, so the honest report says "possible increase, not yet confirmed".
Non-overlapping intervals is a conservative rule. It misses some real changes, but it rarely raises a false alarm. For a weekly report that many people read, that is usually the right trade-off.
Reasons a trend may not be real
Before you tell anyone that something got worse, rule out the following:
- Source mix shift. If a marketing campaign brought in many app-store reviews, and app-store reviewers are angrier than survey respondents, the overall score drops without any change in product quality. Break trends down by source, or compare within one source.
- Volume spikes from a single event. One outage can create hundreds of near-identical complaints. Deduplication from the preparation chapter helps, but also look at the daily series.
- Label drift. A new model version or a prompt edit shifts labels. Keep a version string with every label, and re-score a fixed anchor sample whenever you change either.
- Seasonality. Delivery complaints rise before holidays every year. Compare with the same week last year when you have it.
- Coverage change. If redaction or filtering now removes more text, mention counts fall for reasons unrelated to customers.
Prioritising what to fix
Teams cannot fix everything. A priority score ranks themes so the discussion starts from evidence rather than from the loudest voice. A simple and explainable formula is:
priority = negative mentions × impact weight
The impact weight is a business judgement, not a model output. The following table lists typical inputs. Agree on the weights with product and support leads before you see the results, so the weights do not get tuned to justify a preferred answer.
| Input | Where it comes from | Why it matters |
|---|---|---|
| Negative mentions | Theme and sentiment labels | How many customers are affected |
| Impact weight | Agreed with the business, for example higher for anything linked to refunds or cancellations | Not every complaint costs the same |
| Trend flag | The interval test above | Rising issues deserve earlier attention than stable ones |
| Effort estimate | Engineering or operations | Cheap fixes with moderate impact can beat costly ones |
| Evidence IDs | Source review identifiers | Lets a reader verify the claim |
The function below ranks themes and carries evidence IDs through to the output. It does not include effort, because effort belongs in a conversation with the people who will do the work.
def prioritise(rows, weights, default_weight=1.0):
ranked = []
for row in rows:
weight = weights.get(row["theme"], default_weight)
ranked.append({**row, "score": row["negative"] * weight})
return sorted(ranked, key=lambda r: r["score"], reverse=True)
rows = [
{"theme": "delivery", "negative": 40, "trend": "rising", "evidence": ["r-1042", "r-1077", "r-1103"]},
{"theme": "usability", "negative": 16, "trend": "unclear", "evidence": ["r-0988", "r-1010"]},
{"theme": "pricing", "negative": 9, "trend": "unclear", "evidence": ["r-0951"]},
{"theme": "support", "negative": 12, "trend": "stable", "evidence": ["r-1001", "r-1029"]},
]
weights = {"delivery": 1.5, "support": 2.0, "pricing": 1.0, "usability": 1.2}
for item in prioritise(rows, weights):
print(f"{item['theme']:10s} score={item['score']:5.1f} trend={item['trend']:8s} evidence={item['evidence']}")Delivery ranks first with a score of 60. Support comes second at 24, ahead of usability at 19.2, because its weight is high even though its volume is lower. That is the point of the weight: it makes the business judgement explicit and open to challenge.
Reporting so that people trust and use it
A good report has a fixed structure that readers learn quickly. A workable layout looks like this:
- Headline findings. Three to five sentences. Each states a finding, its size and its confidence, for example "Delivery complaints rose from 18% to 40% of delivery mentions (100 reviews per week). The intervals do not overlap."
- Priority table. The ranking above, with trend flag and evidence IDs.
- Evidence. Two or three representative quotes per finding, redacted for personal data, each with its review ID.
- Method and limits. Sources covered, period, label version, agreement with human labels (kappa and per-class recall from the evaluation chapter), and known gaps.
- Recommended actions. Each with a named owner and a way to measure whether it worked.
Different readers need different depths, so produce one analysis and several views.
| Audience | Needs | Format |
|---|---|---|
| Executives | Direction and top risks | One page: headline findings and a trend chart |
| Product managers | Which features, how many customers, evidence | Priority table with quotes |
| Support leads | Recurring issues and wording to fix in help content | Theme list with typical phrases |
| Analysts and reviewers | Reproducibility | Method, label version, evaluation numbers |
Keep summaries traceable
The summarisation chapter required that each claim link back to reviews. In the report, keep that link. A claim with no review IDs behind it should not appear. When an LLM writes the narrative paragraphs, give it only the computed numbers and the selected quotes, and ask it to use nothing else. Then check that every number in the generated text matches a number in your table. A check as simple as extracting all digits from the text and comparing them with the allowed set catches most invented figures.
Report uncertainty in words readers understand
Readers rarely want interval bounds, but they should see the distinction between confirmed and tentative. A small set of fixed phrases works well:
- "Confirmed": the interval test passed, or the pattern held for two periods.
- "Possible": the direction is clear, but the sample is small.
- "Unclear": no reliable change.
Use the same words every week so people learn what they mean.
Closing the loop
An analysis that does not feed a decision is a cost with no return. An analysis that feeds a decision but never checks the result cannot improve. Make the loop explicit.
The final step matters most. Before the action starts, record the baseline: the negative share, the review count and the label version. After the change ships, compare the same measure in the same source. If delivery complaints fall from 40% to 22% after a courier switch, you have an outcome to report. If they do not move, the action did not address the real cause, and the next report should say so.
Common errors
- Reporting averages only. A mean sentiment hides a split between very happy and very unhappy customers. Show the distribution or at least the share of each class.
- Chasing a single quote. A vivid review is persuasive but may be one customer. Pair every quote with its theme count.
- Mixing label versions. Charts that span a prompt change show a jump that is not real. Mark changes on the chart, or re-score the older data.
- Hiding the evaluation numbers. If recall for the "negative" class is 0.6, a reader should know that roughly four in ten negative reviews are missed, so the real count is higher.
- Treating correlation as cause. Complaints about delivery rising during a sale may reflect volume, not a worse courier. Check order volume before assigning cause.
- Ignoring privacy in the report. Quotes can identify a person even after emails and phone numbers are redacted, for example through a rare job title or a street name. Review quotes before wide distribution, and keep the raw data access-controlled.
Exercises
Exercise
Theme "support" had 6 negative reviews out of 12 last week (50%) and 8 negative out of 12 this week (67%). A colleague says "support is clearly getting worse". What do you reply, and what would you put in the report?
Show answer
With only 12 reviews per week the Wilson intervals are wide (roughly 25% to 75% last week and 39% to 86% this week) and they overlap, so the change is not clear. Report it as "possible increase, unclear" with the counts, read the eight negative reviews for a shared cause, and check again next week or combine sources to get a larger sample.
Exercise
Two themes have the same number of negative mentions, 30 each. "Billing" has an impact weight of 2.0 and "packaging" has 0.8. Which ranks higher, and what is a risk of relying on this ranking alone?
Show answer
Billing scores 60 and packaging scores 24, so billing ranks higher. The risk is that the weights are subjective and the mention counts reflect only customers who write reviews. Agree the weights in advance, state them in the report, and cross-check the ranking with support tickets or cancellation data.
Exercise
Your overall negative share fell from 35% to 28% in a month, but you also changed the classification prompt in that month. List two checks before you report an improvement.
Show answer
First, re-score a fixed anchor sample with both the old and new prompt, or compare the new labels against human labels, to see how much of the drop comes from the label change. Second, break the trend down by source and theme, and check whether the mix of sources shifted. Report an improvement only if the drop remains after these checks.