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

  • Home
  • SEARCH
  • 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 6988747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:07:19+00:00 2026-05-27T19:07:19+00:00

We have a model in our ralis app whose objects are assigned a score

  • 0

We have a model in our ralis app whose objects are assigned a score based on positive user actions. We’ll call them products for simplicity sake. If a user likes a product or buys a product or views a product, the score is incremented at various weights (a like might be worth more than a view, two views in the span of 30 seconds might be worth more than three views spread over an hour, etc.)

We’d like to use these scores to help sort and rank products, say for a popular products list, but for various reasons — using the straight ranking is going to unevenly favor older products, since they’ll have more time to amass a higher score.

My question is, how to normalize the scores between new and old products. I thought about dividing the products score by a unit of time, say the number of days it’s been in existence, but am worried that will cut down the older products too much. Any thoughts on the best way to fairly normalize the scores between the old and new products?

I’m also considering an example of a bayesian rating system I found in another question:

rating = ((avg_num_votes * avg_rating) + (product_num_votes * product_rating)) / (avg_num_votes + product_num_votes)

Where theavg numbers are calculated by looking at the scores across all products that have more than one vote (or in our case, a positive action). This might not be the best way, because we don’t have a negative rating in our system and it doesn’t take time into consideration at all.

  • 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-27T19:07:19+00:00Added an answer on May 27, 2026 at 7:07 pm

    Your question reminds me the concept of Exponential Discounting Cash Flow in finance.

    The concept is the following : 100$ in two years worth less than 100$ in one year, which worth less than 100$ now, …

    I think that we can make a good comparison here : a product of yesterday worth more that a product of the day before but less than a product of today.

    The formula is simple :

    Vn = V0 * (1-t)^n
    

    with V0 the initial value (the real number of positives votes), t a discount rate (you have to fix it, like 10%) and n the time passed (for example n days). Thus a product will lose 10% of his value each day (but 10% of the precedent day, not of the initial value).

    You can also see Hyperbolic discounting that is closer of your try. The formula can be sometyhing like that I guess :

    Vn = V0 * (1/(1+k*n))
    

    An other approach, simpler, but crudest : linear discounting. You can simply give an initial value for the scores, like 1000 and each day, you decrement all scores by 1 (or an other constant).

    Vn = V0 - k*n
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have our domain model declared in rusty old hbm files, we wish to
We're using interfaces to represent entity classes in our domain model. We have concrete
If I have Model.objects.all() I want to get only one object for any content_object=foo,
I have some model objects I'm using in my Java client application. Later these
In our company we have started using VS 2010 to model our systems, in
I'm starting to integrate our Rails-based app with other, external APIs. We're going to
I have a model for our customers and a model for their purchases/orders. In
Why is it important to assume that integers in our computer model have a
We are using JAXB Annotations on our model objects that we return from our
I have model Foo which has field bar. The bar field should be unique,

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.