Sub topic 2
Where Feedback Comes From and How It Is Skewed
This chapter assumes you can read basic Python (lists, dictionaries, functions) and know what an average is. It also assumes you have a question and a label taxonomy from the first chapter, because the question decides which sources you need. Here you will learn what each common feedback source contains, how each one distorts the picture, and what to record so you can correct for the distortion later.
The working model: every data set is a filtered sample
A feedback data set is not "what customers think". It is what a particular subset of customers chose to write, through a particular channel, at a particular moment, and what your systems managed to store. Each step filters the population.
Two consequences follow. First, any statement such as "30% of reviews mention delivery" is a statement about the data set, not about customers. Second, the right fix is rarely a smarter model. It is knowing which filter acted on the data and saying so in your report.
The common sources
Most projects combine several of the sources below. Each has a different shape, so each needs different preparation in the next chapter.
| Source | Who writes | Typical structure | Main skew |
|---|---|---|---|
| Public reviews (app stores, marketplaces) | Customers who are very happy or very unhappy, plus incentivised and fake writers | Rating, title, free text, public date | Extreme ratings, review bursts, fakes |
| Post-purchase or NPS surveys | Customers you chose to ask, who then chose to answer | Score plus optional comment | Non-response, timing, survey design |
| Support tickets and chat logs | Customers with a problem | Free text, often a multi-turn thread, no rating | Only failures; the product's quiet successes are absent |
| Social media and forums | Vocal users, competitors, bots | Short, informal, sarcasm, mixed languages | Public-facing tone, viral spikes, hard to link to a customer |
| In-app feedback widgets | Active users at the moment of friction | Short text, often with context such as the screen name | Only active users; churned users never see it |
| Sales and success call notes | Employees summarising customers | Second-hand paraphrase | Employee framing and memory |
Support tickets illustrate a subtle point. A ticket is a record of a problem, so a theme that dominates tickets, such as "login", may simply be the theme that is hardest to solve without help. A feature that annoys people but is easy to work around never generates a ticket.
The main kinds of skew
Self-selection and extremity bias
People write when the experience is far from what they expected. Public review ratings therefore tend to form a J shape or a U shape, with many 5-star and 1-star ratings and few in the middle. A mean rating computed from such data mixes two different groups, and it can sit at 3.0 even though almost nobody holds a "3" opinion.
Non-response bias
A survey with a 6% response rate tells you about the 6%. If responders differ from non-responders in ways that matter (satisfaction, tenure, plan type), the comments are not representative, however many you collect. A large sample size does not cure this. It only makes the biased estimate look more precise.
Survivorship bias
Customers who left before you asked cannot answer your satisfaction survey. If the question is "why do customers churn", a data set made only of active customers can answer a different question and look as if it answers yours.
Prompting and incentive effects
The way you ask changes the answer. A pop-up shown right after a successful checkout collects mood from a happy moment. A request sent after a support ticket closes collects feelings about the support process, not about the product. Discounts for reviews raise volume and usually raise ratings. Mark these records, because the model will not be able to see the incentive in the text.
Channel, language and demographic effects
Each channel attracts different people. Social media over-represents younger and more vocal users. Reviews written in one language may come from one market with its own expectations. If your sentiment or theme model works well in English and poorly in other languages, the non-English share of your data silently receives lower quality analysis. The result looks like "fewer problems in that market", when it may be an analysis gap.
Time effects
Feedback is not stationary. Typical patterns:
- A release or an outage produces a burst of reviews in a few days, which can dominate a monthly summary.
- Review bombing, where a group posts negative reviews for reasons unrelated to the product, creates sharp spikes.
- Old reviews describe old versions. Mixing them with recent ones blurs what is still true.
- Seasonal buyers (holiday gifts, for example) differ from year-round users.
Duplicates and overlap across sources
The same customer may complain in a ticket, in a survey and in a public review. Counting each as a separate voice inflates that customer's weight. Exact and near-duplicate removal, covered in the next chapter, handles copies of the same text, but it does not detect one person writing three different texts. For that you need a customer identifier, where privacy rules allow one.
Keep provenance with every record
You cannot correct for a skew you cannot see. Store, for each item, at least:
- a stable ID and the raw text (before cleaning)
- the source and channel
- the timestamp, plus the product version if known
- the rating or score, if the channel has one, with
Nonewhen it does not - how the item was solicited (unprompted, survey, incentivised)
- coarse segments you are allowed to keep, such as plan type or region
- the language
Segments should be coarse for a reason: they are enough for weighting, and they limit the personal data you hold. Chapter 10 returns to this.
A worked example: profile each source, then reweight
The code below does two things. source_profile shows how different the sources look when you do not pool them. segment_weights applies post-stratification: if you know the true share of customers in each segment (from your customer database, not from the feedback), you can give over-represented segments less weight and under-represented ones more.
from collections import Counter, defaultdict
def source_profile(reviews):
groups = defaultdict(list)
for r in reviews:
groups[r["source"]].append(r)
profile = {}
for source, rows in groups.items():
rated = [r["rating"] for r in rows if r["rating"] is not None]
profile[source] = {
"count": len(rows),
"rated": len(rated),
"mean_rating": round(sum(rated) / len(rated), 2) if rated else None,
"extreme_share": (
round(sum(1 for x in rated if x in (1, 5)) / len(rated), 2)
if rated
else None
),
}
return profile
def segment_weights(rows, population_share):
counts = Counter(r["segment"] for r in rows)
total = sum(counts.values())
return {
seg: share / (counts[seg] / total)
for seg, share in population_share.items()
if counts[seg]
}
def weighted_mean(rows, weights):
numerator = sum(weights[r["segment"]] * r["rating"] for r in rows)
denominator = sum(weights[r["segment"]] for r in rows)
return numerator / denominator
reviews = [
{"source": "app_store", "segment": "free", "rating": 1},
{"source": "app_store", "segment": "free", "rating": 1},
{"source": "app_store", "segment": "free", "rating": 5},
{"source": "app_store", "segment": "paid", "rating": 2},
{"source": "survey", "segment": "paid", "rating": 4},
{"source": "survey", "segment": "paid", "rating": 5},
{"source": "survey", "segment": "paid", "rating": 4},
{"source": "survey", "segment": "free", "rating": 3},
{"source": "support", "segment": "free", "rating": None},
{"source": "support", "segment": "paid", "rating": None},
]
for source, stats in source_profile(reviews).items():
print(source, stats)
rated = [r for r in reviews if r["rating"] is not None]
population = {"free": 0.7, "paid": 0.3}
weights = segment_weights(rated, population)
print("unweighted mean:", round(sum(r["rating"] for r in rated) / len(rated), 1))
print("weighted mean:", round(weighted_mean(rated, weights), 1))Running it prints:
app_store {'count': 4, 'rated': 4, 'mean_rating': 2.25, 'extreme_share': 0.75}
survey {'count': 4, 'rated': 4, 'mean_rating': 4.0, 'extreme_share': 0.25}
support {'count': 2, 'rated': 0, 'mean_rating': None, 'extreme_share': None}
unweighted mean: 3.1
weighted mean: 2.9Three observations. The app store and the survey disagree by almost two points, so a single pooled average hides the story. The app store has three times the share of extreme ratings. The weighted mean is lower than the raw mean because free users, who are 70% of customers but only half of the rated rows, are on average less satisfied.
Reweighting only corrects differences you can measure. It cannot fix the fact that unhappy paid customers may simply not respond. Treat weighted figures as a sensitivity check, not as the truth.
Choosing sources for a question
Match the source to the question from chapter 1, not to what is easiest to download.
- "What breaks for customers?" Support tickets and in-app widgets, because they are written at the moment of failure.
- "How do people see us against competitors?" Public reviews and forums, because the customer is describing the product to other buyers.
- "Is satisfaction rising?" A survey with a stable question wording and a tracked response rate, because consistency over time matters more than volume.
- "Why do people leave?" Exit surveys and cancellation reasons, plus the last support interactions of churned accounts.
When two sources answer the same question and disagree, report both. The disagreement is itself a finding about who is speaking.
Common errors
- Pooling everything into one table with no source column. Provenance cannot be recovered afterwards. Add the column at collection time.
- Treating review counts as mention rates. "400 reviews mention delivery" means little without the total volume and the source mix.
- Reading silence as satisfaction. A topic with few mentions may be one customers do not bother to report.
- Comparing months with different collection rules. A new survey trigger or a review-request campaign changes the population.
- Using a model's quality on one language or channel as its quality everywhere. Evaluation must be sliced by source and language, as chapter 9 shows.
- Weighting with segments estimated from the feedback itself. Population shares must come from an independent record, such as the customer database.
Exercises
Exercise
Your monthly report shows mean satisfaction rising from 3.4 to 3.9. During the same month, the share of rows from the post-purchase survey rose from 20% to 60%, and survey ratings average higher than app store ratings. What should you check before claiming customers are happier?
Show answer
Compute the mean within each source for both months. If each source's mean is flat and only the mix changed, the rise comes from the source mix, not from opinion. Also check the survey response rate and whether the survey trigger changed, and report per-source trends or reweight to a fixed source mix.
Exercise
A team analyses only support tickets and concludes that "login problems" are the top issue and that "pricing" is almost never raised. Give two reasons this conclusion may be wrong, and name one additional source that would test it.
Show answer
First, tickets record problems that need human help, so a theme that is easy to self-serve or only mildly annoying rarely appears, and pricing complaints often go to public reviews, cancellation reasons or sales calls instead. Second, ticket volume depends on how easy it is to contact support and on which customers do so. Public reviews, exit surveys or sales call notes would test whether pricing is raised elsewhere.