Sub topic 2
Normalizing for Follower Count and Posting Volume
This chapter assumes you can read public metrics (followers, likes, comments, shares), compute a median, and have already chosen a competitor set.
Normalizing for follower count and posting volume
Raw totals favor large accounts. A rival with 50,000 followers will usually get more likes than an account with 20,000 followers. To compare fairly, divide each post's engagement by the account's size. Engagement rate per post is:
(likes + comments + shares) / followers
Posting volume also distorts totals. Compare average engagement per post, and count posts per week separately.
from statistics import median
accounts = {
"us": {"followers": 20000, "posts": [(400, 30, 20), (250, 10, 5), (610, 55, 40)]},
"rival_a": {"followers": 50000, "posts": [(900, 60, 30), (700, 40, 20), (1200, 90, 70)]},
"rival_b": {"followers": 8000, "posts": [(300, 25, 15), (150, 8, 4), (420, 30, 22)]},
}
def median_engagement_rate(followers, posts):
# Each post is (likes, comments, shares).
return median(sum(p) / followers for p in posts)
for name, a in accounts.items():
rate = median_engagement_rate(a["followers"], a["posts"])
print(name, round(rate * 100, 2), "%")> Use the median, not the mean. One viral post can pull a mean far from typical performance.
Building benchmarks: medians, percentiles, and gaps
A benchmark is the typical value for a peer group. The median is the middle value of the peer rates. Percentiles, such as the 25th and 75th, show how spread out the peers are. The gap is your rate minus the peer median, reported in percentage points.
from statistics import median, quantiles
rates = {"us": 0.0225, "rival_a": 0.0198, "rival_b": 0.0425}
peer_rates = [r for name, r in rates.items() if name != "us"]
peer_median = median(peer_rates)
q1, _, q3 = quantiles(peer_rates, n=4, method="inclusive")
gap = rates["us"] - peer_median
print("peer median:", round(peer_median * 100, 2), "%")
print("peer 25th to 75th:", round(q1 * 100, 2), "to", round(q3 * 100, 2), "%")
print("gap:", round(gap * 100, 2), "percentage points")| Measure | Your account | Peer median |
|---|---|---|
| Engagement rate | 2.25% | 3.12% |
With only two peers, the percentiles are rough. Add more competitors before you draw firm conclusions.
Analyzing competitor content mix and posting cadence
Content mix is the share of posts in each format, such as video, image, or link. Cadence is the number of posts per week. Compare both with the engagement results. A format that wins on rate but appears rarely in a rival's mix may not be worth copying.
Exercise
Your account has a 2.25% median engagement rate and the peer median is 3.12%. What is the gap in percentage points, and is it positive or negative?
Show answer
The gap is 2.25 minus 3.12, which is -0.87 percentage points. It is negative, so you trail the peer median.