My Math Forum  

Go Back   My Math Forum > College Math Forum > Real Analysis

Real Analysis Real Analysis Math Forum

LinkBack Thread Tools Display Modes
November 28th, 2009, 11:38 PM   #1
Joined: Nov 2009

Posts: 1
Thanks: 0

Help to create ranking formula!

I am a computer scientist and I want to create a ranking formula for an application, so I thought to post in a math forum instead of developers forums coz you are the gurus in topics like this!

Basically I want to create a ranking formula where the rank number (result) will be between 0-1 inclusive.

And the problem is:
I have two variables, x and y, where x&y can take values between 1-9, inclusive. And I want a formula where I can manipulate these variables and get a result (e.g 0.765 or 0.453). The highest the better, so if both x and y take the max value (=9) then the number should be really close to 1 (e.g 0.928 or something or if not so close, to be the closet to 1 if x and y take the max value)

I thought of this:


but when
x= 9
result = 0.9998475...

and when
result= 0.9984

also when
x= 1
y= 1
result= 0

so I don't think this is efficient and I am sure there must be a better formula than this.

Any help or hints on how to design my formula ?
demec is offline  
November 29th, 2009, 09:29 AM   #2
Joined: Oct 2009

Posts: 64
Thanks: 0

Re: Help to create ranking formula!

You want a number that is highest when x and y are equal and lowest when min(x,y) is substantially different from max(x,y), right?

Try something like 1-(x-y)^2/(x+y)^2, I guess.
rival is offline  
November 29th, 2009, 11:59 AM   #3
Senior Member
Joined: Aug 2008
From: Blacksburg VA USA

Posts: 342
Thanks: 5

Math Focus: primes of course
Re: Help to create ranking formula!

well, you give very minimal info so my minimal sol'n would be to just sum x&y, and offset/scale to put into desired ranging. So, if x,y range is 1-9, the range of the sum is 2-18. We offset by 2 and divide by 16 to give result=(x+y-2)/16. It will then range 0-1, and peak when x&y both peak. A previous post thought maybe the result peaks when x=y but I did not interpret it this way. If so, post back and we can give it another go.
billymac00 is offline  

  My Math Forum > College Math Forum > Real Analysis

create, formula, ranking

Search tags for this page
Click on a term to search for related topics.
Thread Tools
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ranking Probabilities JeffM Advanced Statistics 3 June 14th, 2012 08:24 PM
Help with Poker ranking system hhsmithy Advanced Statistics 0 July 18th, 2011 02:26 AM
Ranking SidT New Users 7 May 30th, 2010 02:32 AM
Ranking functions on order of growth - little/big o notation Mahonroy Applied Math 1 November 18th, 2009 10:53 AM
Ranking Probabilities JeffM Algebra 1 December 31st, 1969 04:00 PM

Copyright © 2018 My Math Forum. All rights reserved.