29

Which users have the highest rep to total posts ratio?

I'm curious which users contributed the "least" (in terms of number of posts), but have accrued the most rep.

2 Answers 2

31

Here's my query:

SELECT TOP 50
   u.Id,
   u.DisplayName,
   u.Reputation,
   count(*) as [Total Number of Posts],
   u.Reputation/count(*) as Ratio
FROM Users u
join Posts p on p.OwnerUserId = u.Id
where p.postTypeId in (1,2)
group by u.Id,u.DisplayName,u.Reputation
ORDER BY Ratio DESC

Almost all of the top 50 users made only one post.

Id     |DisplayName |Reputation |Total Number of Posts |Ratio
13161  |mattshane   |34863      |1                     |34863
581625 |baisong     |28430      |1                     |28430
543858 |chuck97224  |26658      |1                     |26658
...

Details of the 3 posts relating to the users above follow

8
  • 11
    "Almost all of the top 50 users made only one post." -- A variation on the query which only includes users with a minimum amount of posts.
    – duplode
    Commented May 26, 2018 at 15:44
  • contributing with a question is even less contributing that with an answer... 35k gives almost the max delvotes & quick deletion rights. But those were ancient times. Commented May 27, 2018 at 13:24
  • 1
    @Jean-FrançoisFabre - Matt Shane was " Last seen Jan 23 '09" so these privileges gained have gone unused. Commented May 27, 2018 at 13:35
  • 8
    @duplode: Thanks for your query. It's interesting to run it with the limits set at 100, 1000, 10000 posts. John Skeet doesn't appear until the last (nor do I). The most prolific posters don't get all that many points per posting. Commented May 27, 2018 at 19:56
  • 2
    @Jonathan, on the other hand, posting more will reduce your ratio, so prolific posters are actively working against what is being queried for here. Commented May 28, 2018 at 10:55
  • 1
    Alternative Query that tries to solve the "a single good post will propel you to the top" issue. It raises the ratio to the power of sqrt(sqrt(user_posts)) / average_posts_per_user. The fourth-order root was necessary to keep the numbers in the int range, and has the effect of squashing the values for the exponent a bit. You can change the 0.25 in that query to play around with other order roots. The net effect is adding some weight to the number of posts as well. It ain't perfect, but a good starting point perhaps?
    – jrial
    Commented May 28, 2018 at 13:07
  • 1
    Interestingly, if you flip the ratio you get a list of suspended users
    – user4639281
    Commented Jun 20, 2018 at 4:14
  • Matt shane current score 82769, chuck: 34266 Commented Oct 19, 2020 at 11:43
3

Quoting your self-answer:

Almost all of the top 50 users made only one post.

Here is a variation of the query which only includes users with a minimum amount of posts. As of now, out of the top ten users with at least ten posts, seven have ten or eleven posts. There already is more variability in that regard once the cutoff is raised to a hundred posts.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .