Sub topic 6
Turning Several Predictions into One Ranking Score
A feed has to compare different posts for one viewer. That comparison cannot rely on a single action. A viewer might click one post, comment on another, and read a third without reacting. A ranking system therefore predicts several possible outcomes and combines them into a score.
This chapter assumes that you understand basic LinkedIn actions, recommendation systems, and percentages. The examples use a simplified model. LinkedIn does not publish the complete formula or the exact weights used in its feed.
Why one prediction is not enough
A ranking system can estimate the probability that a viewer will:
- Click or open a post.
- React to it.
- Comment on it.
- Share or repost it.
- Spend time reading it.
These outcomes do not have equal value for every feed goal. A comment may indicate deeper participation than a quick reaction. A share may help useful information reach another audience. Reading time can indicate interest even when the viewer takes no visible action.
The system can represent each prediction as a number between 0 and 1. For example, a predicted comment probability of 0.03 means the model estimates a 3% chance of a comment for this viewer and this post.
The predictions are conditional. They describe a particular viewer in a particular context, not the universal quality of a post. The same post can receive different predictions for two viewers because their interests, connections, and past behavior differ.
Combining predictions with a weighted score
A simple approach is a weighted sum:
\[ S(post, viewer) = wcP(click) + wrP(reaction) + wmP(comment) + wsP(share) \]
Here, P(action) is the predicted probability of an action, and w is the weight assigned to that action. The weights express how the ranking objective values each outcome.
A weighted sum makes trade-offs visible. A post with a high reaction probability might outrank one with fewer predicted reactions if the second post has a much higher comment or share probability.
# Illustrative toy model only. This is NOT LinkedIn's actual formula.
# It shows the general idea: predict several outcomes per post, then combine them.
weights = {"click": 1.0, "reaction": 0.5, "comment": 2.0, "share": 3.0}
posts = {
"post_a": {"click": 0.10, "reaction": 0.08, "comment": 0.01, "share": 0.005},
"post_b": {"click": 0.04, "reaction": 0.12, "comment": 0.03, "share": 0.002},
}
def score(predictions):
return sum(weights[action] * p for action, p in predictions.items())
ranked = sorted(posts, key=lambda name: score(posts[name]), reverse=True)
for name in ranked:
print(name, round(score(posts[name]), 4))This program ranks post_a first with a score of 0.175. post_b scores 0.166. Although post_b has higher predicted reactions and comments, post_a has stronger click and share predictions under these made-up weights.
What the score does and does not mean
The score is useful for ordering candidates. It is not a guarantee that a viewer will take an action. A prediction of 10% does not mean exactly one person in every ten will click. It describes an estimated likelihood across many similar cases.
The score also does not equal an analytics metric. Your analytics may show impressions, reactions, comments, reposts, and clicks after publication. Those are observed counts. A ranking model uses predictions made before or during distribution.
A platform may use more than a simple weighted sum. It might apply nonlinear functions, limits, penalties, or separate objectives for different feed surfaces. It may also adjust for uncertainty, freshness, content quality, and repeated exposure. Treat the weighted sum as a working model for understanding the trade-off, not as a reconstruction of a private production system.
Personalized trade-offs
The weights and predictions can vary by context. A professional update may be valuable because it starts a relevant conversation. A technical explanation may be valuable because a viewer reads it carefully and saves or shares it. The system can balance these outcomes while also considering the viewer's relationship with the author and the viewer's current interests.
This personalization means there is no single score for “how good” a post is. There is a score for a post-viewer situation. Broad reach can result when many different viewers receive favorable predictions, while a specialized post may perform well with a smaller, more relevant group.
Practical implication for creators
Do not optimize for one visible action in isolation. Write for the response that fits your audience and purpose. If discussion matters, make the idea specific enough to invite a useful comment. If sharing matters, make the information clear and valuable outside your immediate network.
Then compare posts using consistent measurements. A post with more impressions is not automatically stronger than one with fewer impressions and a higher rate of meaningful interaction. Use the ranking model to ask better questions: Which audience saw the post? Which actions did it invite? Did the observed response match the audience you wanted?
Exercise
A post has a 20% predicted reaction probability and a 1% predicted share probability. Another has a 10% reaction probability and a 3% share probability. Using reaction weight 0.5 and share weight 3, which scores higher?
Show answer
The first scores 0.20 × 0.5 + 0.01 × 3 = 0.13. The second scores 0.10 × 0.5 + 0.03 × 3 = 0.14, so the second ranks higher in this toy model.