473,396 Members | 2,085 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Help with Excel Complex Formula

Looking for some help here. I've tried to solve this, but I just
can't. What I need to know is what formula to use in an excel
calculation to complete the following calculation. It's in two parts.
If first finds a natural logarithm, then converts it to a percentile.
Even if I had to do it in two steps on the spreadsheet, I can't
determine the calculations.
************************************************** *
Logarithm System
The "natural logarithm" [player] rankings system gives no advantage to
simply playing more often -- but, it gives more weight to [especially]
good results, and [it is more 'forgiving' of especially] bad results,
such that one exceptionally bad result does not 'kill' your ranking [],
and one exceptionally good result will not give you a safe enough lead
that you can then just 'sit on'...

Calculation details:

Where "X" is [a player's] finishing place out of "N" players, each []
individual tournament result is valued at:

*** Log ( (N + 1) / X )

....averaged over his number of plays...for example, with 300-player
tournaments, a player finishing 1st, 300th, 300th would rate 1.9046,
just slightly better than a player finishing 45th every time, 1.9004...
And then these 'natural logarithms' are converted back into
"percentiles"...

*** Log = "natural" base for logarithms -- a universal number known as
"e" = 2.718282... (second in 'fame' only to "pi" = 3.141593...) -- and
"natural logarithms" are logarithms "to the base e" -- that is, numbers
expressed as powers of "e"... The base "e" is key in many mathematical
applications.

Converting logarithms back to percentiles

To convert the natural log score back to percentile, you need to use
this formula:

(1 - exp (-L) ) * 100

The variable L is the average of all the natural log score. The 'exp'
means the inverse of natural log.

For example, these are log scores from 3 different tournaments: 1.5,
2.0, and 1.0, so the average is 1.5.

Then plug that number into the above formula:

= (1 - exp ( -1.5 ) )* 100
= (1 - 0.22313016 ) * 100
= 77.686984

Nov 13 '05 #1
2 13153

cowboyboborton wrote:
Looking for some help here. I've tried to solve this, but I just
can't. What I need to know is what formula to use in an excel
calculation to complete the following calculation. It's in two parts. If first finds a natural logarithm, then converts it to a percentile.
Even if I had to do it in two steps on the spreadsheet, I can't
determine the calculations.
************************************************** *
Logarithm System
The "natural logarithm" [player] rankings system gives no advantage to simply playing more often -- but, it gives more weight to [especially] good results, and [it is more 'forgiving' of especially] bad results,
such that one exceptionally bad result does not 'kill' your ranking [], and one exceptionally good result will not give you a safe enough lead that you can then just 'sit on'...

Calculation details:

Where "X" is [a player's] finishing place out of "N" players, each []
individual tournament result is valued at:

*** Log ( (N + 1) / X )

...averaged over his number of plays...for example, with 300-player
tournaments, a player finishing 1st, 300th, 300th would rate 1.9046,
just slightly better than a player finishing 45th every time, 1.9004...

And then these 'natural logarithms' are converted back into
"percentiles"...

*** Log = "natural" base for logarithms -- a universal number known as "e" = 2.718282... (second in 'fame' only to "pi" = 3.141593...) -- and "natural logarithms" are logarithms "to the base e" -- that is, numbers expressed as powers of "e"... The base "e" is key in many mathematical applications.

Converting logarithms back to percentiles

To convert the natural log score back to percentile, you need to use
this formula:

(1 - exp (-L) ) * 100

The variable L is the average of all the natural log score. The 'exp'
means the inverse of natural log.

For example, these are log scores from 3 different tournaments: 1.5,
2.0, and 1.0, so the average is 1.5.

Then plug that number into the above formula:

= (1 - exp ( -1.5 ) )* 100
= (1 - 0.22313016 ) * 100
= 77.686984


Excel has both LOG and PERCENTILE functions. Have a look at the help
for syntax and usage.

Nov 13 '05 #2
The Excel functions you need are LN, AVERAGE, and EXP. (LOG is used
for base-10 logarithms in Excel)

For example, if column B has a player's finishing place, and column C
has the number of players in that tournament.
For cell C2 to have the natural log ranking based on the contents of A2
and B2, you would have the following formulat in C2:

=LN((B2+1)/A2)

Mark

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dan | last post by:
Hello, I am trying to read and write to an Excel file via my Java applet. I have done so successfully on several simple Excel files that simply had data cells without many complicated equations...
9
by: Julie Miles | last post by:
I need to pull several tables of data from Excel into a web page, but when I use Excel's "Save as web page" function, I get an enormous file containing a massive amount of css formatting. I'd like...
41
by: Seth | last post by:
I am in need of source code for the Aho Corasick algorithm. I have tried searching the web but can't seem to find any code. Is there a good site for c code I can search? Thanks in advance.
3
by: Carlos Magalhaes | last post by:
Hey All, I am doing some excel automation using the excel COM. I can do most of the functions and its working well until I come across a formula. I can run a formula and insert the formula...
4
by: Rich Wallace | last post by:
Hi all, I have a VB app that runs and manages individual XLS files within a single COM object. Upon processing the final fie, I attempt to close out the EXCEL object and release it using...
12
by: vj | last post by:
Hi! I have a piece of code (shown below) involving complex numbers. The code is not running and giving error ("Invalid floating point operation" and "SQRT:Domain error"). I would be very...
3
by: toffee | last post by:
Hi all, I got a pre-formatted spreadsheet. would it be possible using js to copy the data from a table on the current webpage, open the spreadsheet and paste the content ? if so, anyone got any...
3
by: Widge | last post by:
I have made a spreadsheet that will calculate the distance from a set of addresses to a specified postcode in Excel. I'm looking to move this to Access so I can start thinking about hooking it up to...
7
by: Bobh | last post by:
I am trying to figure out some code for a report issue; I have an employee who has a incentive scheme. I have a report showing various income amounts and in the report footer I vae totals for...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.