Sub topic 6
Building Benchmarks: Medians, Percentiles, and Gaps
Assume you can collect comparable public metrics for your own account and a defined competitor set. You should also be comfortable with basic averages and medians, and you should already know which social media goals matter to your brand.
A benchmark is a reference value used to judge performance. For example, you might compare your engagement rate with the typical rate among three direct competitors. The benchmark is useful only when the accounts, time period, metric definition, and data quality are comparable.
Why use the median?
The mean, or arithmetic average, adds all values and divides by the number of values. The median is the middle value after sorting the values. For competitor analysis, the median is often safer because one unusually large or small account has less influence.
Suppose competitor engagement rates are:
| Account | Engagement rate |
|---|---|
| Rival A | 1.8% |
| Rival B | 5.0% |
| Rival C | 2.2% |
The sorted rates are 1.8%, 2.2%, and 5.0%. The median is 2.2%. The mean is 3.0%, pulled upward by Rival B. If Rival B had a viral post during the measurement period, the median may better represent the typical competitor.
Use the same rule for every account. If your rate is calculated per post, calculate each competitor's rate per post. Do not compare your monthly rate with a competitor's single-post rate.
Use percentiles to show the range
A percentile describes a position within a distribution. The 50th percentile is the median. The 25th percentile is a value that separates the lower quarter from the rest, and the 75th percentile separates the upper quarter.
Percentiles help answer questions that a single median cannot:
- What does low-performing peer content look like?
- What result would place us among the stronger competitors?
- How wide is the difference between ordinary and exceptional performance?
For a small competitor set, percentile estimates are unstable. With only three accounts, the 25th and 75th percentiles depend heavily on the calculation method. Treat them as directional signals, not precise industry standards.
Calculate the gap correctly
A gap measures the distance between your result and a benchmark:
gap = your metric - benchmark metric
If your engagement rate is 2.25% and the peer median is 1.80%, your gap is 0.45 percentage points. A percentage point is the direct difference between two percentages. Do not call this a 25% gap unless you are intentionally calculating relative lift:
relative lift = (your metric - benchmark) / benchmark
In this example, the relative lift is 25%, but the percentage-point gap is 0.45 points. Reports should show both when the distinction matters.
from statistics import median, quantiles
rates = {
"us": 0.0225,
"rival_a": 0.0180,
"rival_b": 0.0500,
"rival_c": 0.0220,
}
peer_rates = [rate for name, rate in rates.items() if name != "us"]
peer_median = median(peer_rates)
peer_quartiles = quantiles(peer_rates, n=4, method="inclusive")
gap = rates["us"] - peer_median
relative_lift = gap / peer_median
print("peer median:", round(peer_median * 100, 2), "%")
print("peer 25th percentile:", round(peer_quartiles[0] * 100, 2), "%")
print("peer 75th percentile:", round(peer_quartiles[2] * 100, 2), "%")
print("gap:", round(gap * 100, 2), "percentage points")
print("relative lift:", round(relative_lift * 100, 1), "%")This code uses decimal rates, so 2.25% is represented as 0.0225. The quantiles function estimates quartile boundaries. For production reporting, record which percentile method and data window you used so later reports remain consistent.
Interpret the result as a decision signal
A benchmark gap becomes useful when it leads to a question:
- If your rate is below the peer median, inspect content relevance, format, publishing time, and audience fit.
- If your rate is above the peer median but reach is low, investigate distribution and posting volume.
- If your rate is high because of one viral post, compare medians across several weeks instead of relying on one period.
- If results vary widely, segment by platform, format, and objective before choosing an action.
Repeat the calculation over the same time window each reporting period. A changing competitor set or metric definition can create a false trend.
Exercise
Your engagement rate is 3.0%, and the competitor median is 2.4%. What is the gap in percentage points, and what additional question should you ask before declaring success?
Show answer
The gap is 0.6 percentage points. Ask whether both rates use the same definition, time period, platform, content mix, and level of paid support.