9

The profile page has a section called "Top tags". Several tags are displayed there. (I have only seen six, I am not sure whether it is always the same number.)

Question: How are the tags displayed here chosen?

Originally I thought that they are the tags where the user has the highest score. However, this is not always the case. For example, Qiaochu Yuan on Mathematics has among his top 5 tags, but this tag is not displayed there.


This is what I see when viewing this user's profile:

screenshot  - profile page

And here is the list of his top tags:

screenshot - top tags

EDIT: It was suggested in one of the answers that is never chosen among top tags, since it is a meta tag. Here is example of a user who has this tag shown in his profile page.

screenshot with (soft-question)

2 Answers 2

8
+100

The tags shown are picked from the top 9 tags by non-CW post count (so questions and answers, but not counting posts with CW (Community Wiki) status), then ranked by their score (total up-votes, minus total down-votes, only for the non-CW posts, ties are broken by post counts), and the top 6 tags are shown.

Today, for the specific user you see, the 9 tags by post count are:

  1. abstract-algebra, 600 posts, scoring 3579
  2. category-theory, 528 posts, scoring 2892
  3. group-theory, 365 posts, scoring 2131
  4. algebraic-topology, 325 posts, scoring 1579
  5. linear-algebra, 285 posts, scoring 1861
  6. algebraic-geometry, 227 posts, scoring 1223
  7. representation-theory 189 posts, scoring 791
  8. ring-theory 168 posts, scoring 866
  9. number-theory, 167 posts, scoring 1738

They only have 146 non-CW posts with the soft-question tag, placing it at #10 and just outside the above top 9 tags. So it doesn't matter what their score is for this tag, it simply doesn't have enough posts to make the cut.

Once you then sort the above 9 tags by score and pick the top 6, you get:

  1. abstract-algebra, 600 posts, scoring 3579
  2. category-theory, 528 posts, scoring 2892
  3. group-theory, 365 posts, scoring 2131
  4. linear-algebra, 285 posts, scoring 1861
  5. number-theory, 167 posts, scoring 1738
  6. algebraic-topology, 325 posts, scoring 1579

and the algebraic-geometry, ring-theory and representation-theory tags are not shown. Of course, the UI shows you the total post count with CW posts included.

I've created a SEDE query that demonstrates this.

Take into account that the SEDE data set only updates once every week, and was last refreshed yesterday (Sunday 2020-08-09), while the Top Tags update frequently. Your screenshots were from yesterday so the SEDE data set counts should be very close to what was used to generate the listing of tags shown.

For a given user and site, the query shows you their tags, their tag score, post count for each tag (first column with CW posts, the second optionally without CW posts, used for ranking), and their correct rankings by tag score. The first 9 rows are tags that are considered, by post count, the rest of the table are the tags that are not considered as they fall outside of the top 9 by count. All rows are ordered by tag score, but within their respective groups.

I've included extra parameters in the query, to play with how the algorithm works. You can alter the number of tags considered, and you can set the countcw parameter to 1 to include Community Wiki posts when ranking the top 9 counts (tag scores always filter out CW posts and only consider scores for answers).

Qiaochu's tags are very interesting here, because their numbers, as they stood yesterday, demonstrate the parameters I named very nicely. Change either to see how the results might change:

  • It has to be the top 8 or 9 tags by post count, because as your screenshot from yesterday shows number-theory is included and the query lists it as the 9th tag by count. If the cut-off was 10 tags, then soft-question would have been shown as it is their 10th tag by post count. If the cut-off was lower, number-theory would not have made the cut.

  • If the post-count actually does include Community Wiki posts, number-theory would also make the cut when only considering the top 8 tags.

To figure out if CW posts are included I actually looked at the results for your own account:

Top posts for Martin Sleziak, as shown on Maths.SE on 2020-08-10.

Only when you disregard CW posts and put the cut-off at the top 9 posts does the query reproduce your exact tag list:

  1. real-analysis, 192 posts, scoring 673
  2. general-topology, 177 posts, scoring 576 (you received an up-vote on this tag today, so after)
  3. linear-algebra, 166 posts, scoring 443
  4. elementary-set-theory, 94 posts, scoring 347
  5. sequences-and-series, 92 posts, scoring 358
  6. calculus, 90 posts, scoring 246
  7. matrices, 83 posts, scoring 254
  8. inequality, 79 posts, scoring 253
  9. limits, 74 posts, scoring 271

which, after sorting and cutting, then becomes:

  1. real-analysis, 192 posts, scoring 673
  2. general-topology, 177 posts, scoring 576
  3. linear-algebra, 166 posts, scoring 443
  4. sequences-and-series, 92 posts, scoring 358
  5. elementary-set-theory, 94 posts, scoring 347
  6. limits, 74 posts, scoring 271

Here limits is the wild-card; it would rank a shared 9th place together with functional-analysis if CW posts were not filtered, and the latter has a higher tag score. But when CW posts are filtered, there is no tie for 9th place (by post count), limit makes the cut, and ends up at 6th place when those 9 are sorted by score.

3
  • Martijn has defended his answer better than I, and it seems that the first image is more about "score" (non-CW): meta.stackexchange.com/a/73116/282094 or meta.stackexchange.com/a/52792/282094 - so I'm deleting my answer.
    – Rob
    Aug 10, 2020 at 19:25
  • Does that apply to the network sites as well, or only SEDE? For example I am mostly concerned with the public Stack Overflow site
    – Zombo
    Apr 20, 2021 at 20:20
  • @StevenPenny: I'm only talking about when SEDE refreshes, I don't know when the profile info is updated. I never touched upon that in my answer, but do mention SEDE updates, so assumed you were asking about the latter. Apr 20, 2021 at 20:27
5
+50

I found this post on SO asking the same thing, a comment from Martijn Pieters♦ says

By percentage, the number of posts with that tag out of the total, together with the score.

So they are sorted by the post % value you see in your screen shot. This seems to be a combination of the total number of posts in a tag and the score, I couldn't find an exact description of that value but you can hover your mouse over it for a description of what is included for that specific user..

0

You must log in to answer this question.

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