Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 252837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:42:41+00:00 2026-05-11T21:42:41+00:00

For finding trending topics, I use the Standard score in combination with a moving

  • 0

For finding trending topics, I use the Standard score in combination with a moving average:

z-score = ([current trend] - [average historic trends]) / [standard deviation of historic trends]

(Thank you very much, Nixuz)

Until now, I do it as follows:

Whatever the time is, for the historic trends I simply go back 24h. Assuming we have January 12, 3:45pm now:

current_trend = hits [Jan 11, 3:45 – Jan 12, 3:45]

historic_trends = hits [Jan 10, 3:45 – Jan 11, 3:45] + hits [Jan 9, 3:45 – Jan 10, 3:45] + hits [Jan 8, 3:45 – Jan 9, 3:45] + …

But is this really adequate? Wouldn’t it be better if I always started at 00:00 o’clock? For example this way for the same data (3:45pm):

current_trend = hits [Jan 11, 0:00 – Jan 12, 0:00]

historic_trends = hits [Jan 10, 0:00 – Jan 11, 0:00] + hits [Jan 9, 0:00 – Jan 10, 0:00] + hits [Jan 9, 0:00 – Jan 9, 0:0] + …

I’m sure the results would be different. But which approach will give you better results?

I hope you’ve understood my question and you can help me. 🙂 Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T21:42:41+00:00Added an answer on May 11, 2026 at 9:42 pm

    I think that the problem you may be seeing with your current implementation is that topics that were hot 23 hours ago are influencing your rankings right now. The problem I see with your new proposed implementation is that you’re wiping the slate clean at midnight, so topics that were hot late last night won’t seem hot early the next morning (but they should).

    I suggest you look into implementing a Digg-style algorithm where the hotness of a topic decays with age. You could do this by counting up the hits/hour for each of the last 24 hour periods then divide each period-score by how many hours ago the period took place. Add up the 24 periods to get the score.

    hottness = (score24 / 24) + (score23 / 23) + … + (score2 / 2) + score1

    Where score24 is the number of “hits” that a topic got in the one-hour period that occured 24 hours ago (maybe not the hits exactly, but the normalized score for that hour).

    This way topics that were hot 24 hours ago will still be counted in your algorithm, but not as heavily as topics that were hot an hour ago.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In finding string in the current buffer, I know that we can use C-s
I'm some trouble finding the problem with my program. Getting the error: Use of
Finding a good way to do this has stumped me for a while now:
I'm failing at finding the commands I need to send to authenticate to a
I'm finding that I can't access the admin shares on an XP64 box when
I'm interested in finding out why this is used on some Web sites for
I'm finding myself doing a lot of things with associative arrays in PHP. I
I keep finding that if I have nested divs inside each other, and one
I'm having trouble finding an open-source IDE with support for Git. Are there any
I'm finding a couple for Java in general but no plugins for netbeans that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.