Sub topic 5
Predicting Clicks, Reactions, Comments, Shares, and Reading Time
Assume you already understand connections, followers, impressions, and basic recommendation systems. This chapter focuses on one stage of feed ranking: predicting how a particular viewer might respond to a post.
LinkedIn does not need to ask only, “Is this post good?” It can ask more useful questions:
- Is this viewer likely to stop and read?
- Will the viewer click to expand or open something?
- Might the viewer react?
- Is the viewer likely to comment?
- Could the viewer share or repost it?
- How much time might the viewer spend reading it?
These are predictions, not guarantees. A prediction is an estimated probability based on patterns in earlier activity. The system can then use several predictions when deciding which posts to show first.
One post can have several predicted outcomes
A post may be excellent at earning reactions but poor at generating comments. Another may receive few clicks but lead to long reading sessions. Treating all engagement as one number would hide these differences.
| Predicted outcome | What it represents | Example evidence |
|---|---|---|
| Click | Likelihood of opening, expanding, or following a post action | The viewer often opens similar posts |
| Reaction | Likelihood of selecting a reaction | The topic matches the viewer's interests |
| Comment | Likelihood of writing a response | The post invites a useful discussion |
| Share | Likelihood of reposting or sharing | The post seems useful to the viewer's network |
| Reading time | Likelihood of sustained attention | The viewer usually reads similar content |
The exact events and weights used by a platform are not fully public. Therefore, use this model to understand the mechanism, not to recreate LinkedIn's production formula.
Predictions depend on the viewer
The same post can receive different predictions for different people. A post about database design may have a high predicted comment probability for a database engineer and a low probability for someone who works in recruiting.
The system can use information about the viewer, the post, and their relationship. Examples include the viewer's past interactions, the post's subject and format, the author's network, and the context in which the post appears.
Reading time also needs care. Time on a post can indicate attention, but it can also mean that the viewer left the tab open or became distracted. A ranking system may combine several signals instead of treating time alone as proof of quality.
From predictions to a ranking input
A simplified model can assign a made-up weight to each predicted action. The weights express a design choice: perhaps a thoughtful comment or share is more valuable for a particular feed goal than a quick click.
# Illustrative toy model only. This is not LinkedIn's actual formula.
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] * probability
for action, probability 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))In this example, post_a may win because its click probability is higher, even though post_b has stronger reaction and comment probabilities. Changing the weights changes the ordering. A real system can also apply quality, safety, freshness, and diversity rules before or after this type of calculation.
What you can and cannot see
Your analytics usually show outcomes after distribution: impressions, reactions, comments, reposts, clicks, or video views. They do not normally show the private prediction made for every viewer.
This distinction matters. A post with few comments may have reached a small audience, or it may have been shown broadly but failed to encourage discussion. Raw counts cannot tell you which explanation is correct.
Use rates when possible:
posts = [
{"id": "p1", "impressions": 1200, "reactions": 30, "comments": 6, "reposts": 2},
{"id": "p2", "impressions": 800, "reactions": 40, "comments": 12, "reposts": 5},
]
for post in posts:
engagements = post["reactions"] + post["comments"] + post["reposts"]
rate = engagements / post["impressions"]
print(post["id"], f"{rate:.1%}")The rate is an observed result, not a direct measurement of the ranking model's prediction. Compare posts with similar goals and enough impressions to avoid overreacting to small samples.
Exercise
Why can two viewers produce different predicted outcomes for the same post?
Show answer
The system uses viewer-specific context, such as interests, prior interactions, relationship to the author, and response patterns. The same post can therefore have different predicted probabilities for each viewer.