# What does Qanswers mean in the formula for selecting hot questions?

The formula:

As we know, the formula is used to determine hot questions. What does Qanswers mean in the hot tab but not the week or month tab? Is it mean how many answers were generated in the past 24 hours or how many answers the question totally have?

I have the same question about Qscore and Ascores.

• It seems like at this point, you'd probably be best-off just to ask all these in the same question. – Matthew Haugen Mar 6 '15 at 6:08
• Sorry. I asked these in the same question as a comment, but nobody answer it. I want to know the answer at the moment, so I asked here. Could I? – xshsinap Mar 6 '15 at 7:11
• Yeah, I'd probably just post a question asking for a definition of each of the variables. You should give what you've already figured out (since that's your background research), but that should be fine. – Matthew Haugen Mar 6 '15 at 7:18
• Yeah, Stack Overflow is an self-management community and I love it so much that I'm curious about how it was designed. – xshsinap Mar 6 '15 at 8:24
• For sure! There are lots of cool algorithms in use. Honestly, I don't really know why this has gotten so many downvotes. But I think you'd have a lot more luck if you did like I said and asked clearly for these in one question. And as for your comment not being answered yet, it's hard to know whether it will be, but it could take a day or two. Whether she's going to answer it or not, it's the middle of the night in Anna Lear's timezone. – Matthew Haugen Mar 6 '15 at 8:29

Experimenting with that formula on SEDE did give me this query that, by the looks of it, generates a list of hot questions.

``````/*
(log(Qviews)*4) + ((Qanswers * Qscore)/5) + sum(Ascores)
--------------------------------------------------------
((QageInHours+1) - ((QageInHours - Qupdated)/2)) ^ 1.5
*/

select top 1000
(
(log(qviews)*4) + ((qanswers * qscore)/5) + sumascores
)/(
power( (qageinhours+1) - ((qageinhours - qupdated)/2), 1.5)
) as hotness
from (
select viewcount as qviews
, score as qscore
, ISNULL((select sum(score)
from posts
where parentid = q.id),0) as sumascores
, datediff(hh, creationdate, getdate()) as qageinhours
, datediff(hh, lastactivitydate, getdate()) as qupdated
, id
from posts q
where q.posttypeid = 1 -- Q
)  rawdata
order by 1 desc -- yeah I know order by ordinal is bad
``````

That gives the following definitons of the parameters used:

• qviews
The number of views of a question
The number of answers on the question
• qscore
• ascores