Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default How do I calculate the median of a distribution?

I need to calculate the median value of a distribution of numbers. The data I
have are the percentage (pct below, or, I have the total number of contracts
if that is easier to work with) of contracts that settled at given rates
(rate). The data show that 2.9% of contracts settled at 0, 3.4% of contracts
settled at 1, etc. I need to know the median rate of settlement for this set
of contracts. There are many contracts, so it is not feasible to create a
separate row for each contract and to take the median of those values. Can
anybody help?

Many thanks in advance




Rate Pct
0 2.9
1 3.4
2.5 37.0
3.5 41.8
4.5 9.1
5.5 2.9
6.5 1.9
7.5 0.0
8 1.0
9 0.0

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default How do I calculate the median of a distribution?

use =MEDIAN()
--
Gary''s Student
gsnu200708


"hello" wrote:

I need to calculate the median value of a distribution of numbers. The data I
have are the percentage (pct below, or, I have the total number of contracts
if that is easier to work with) of contracts that settled at given rates
(rate). The data show that 2.9% of contracts settled at 0, 3.4% of contracts
settled at 1, etc. I need to know the median rate of settlement for this set
of contracts. There are many contracts, so it is not feasible to create a
separate row for each contract and to take the median of those values. Can
anybody help?

Many thanks in advance




Rate Pct
0 2.9
1 3.4
2.5 37.0
3.5 41.8
4.5 9.1
5.5 2.9
6.5 1.9
7.5 0.0
8 1.0
9 0.0

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 340
Default How do I calculate the median of a distribution?

You need to calculate the cumulative percentages and interpolate the
rate for 50%.

For a single formula try the following array formula with data in
A1:B10.
(use Ctrl+Shift+Enter to execute):

=PERCENTILE(A1:A10,PERCENTRANK(PROB(A1:A10,B1:B10% ,,A1:A10),0.5,20))

Prob(...) returns the cumulative percent and the other part
interpolates at 50%.


On 1 Mar, 17:03, hello wrote:
I need to calculate the median value of a distribution of numbers. The data I
have are the percentage (pct below, or, I have the total number of contracts
if that is easier to work with) of contracts that settled at given rates
(rate). The data show that 2.9% of contracts settled at 0, 3.4% of contracts
settled at 1, etc. I need to know the median rate of settlement for this set
of contracts. There are many contracts, so it is not feasible to create a
separate row for each contract and to take the median of those values. Can
anybody help?

Many thanks in advance

Rate Pct
0 2.9
1 3.4
2.5 37.0
3.5 41.8
4.5 9.1
5.5 2.9
6.5 1.9
7.5 0.0
8 1.0
9 0.0



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default How do I calculate the median of a distribution?

Lori

Thank you very much, the logic is intuitive, and I'm sure your formula will
work, although I have had a bit of difficulty pasting it. Can I ask a
separate question? Where do I find detailed information on the excel
commands? In the excel help function, I cannot find anything on the prob
function that is as detailed as what you wrote (using the % sign, for
example). That makes it hard for me to understand what is really going on in
the formula.

Thank you


"Lori" wrote:

You need to calculate the cumulative percentages and interpolate the
rate for 50%.

For a single formula try the following array formula with data in
A1:B10.
(use Ctrl+Shift+Enter to execute):

=PERCENTILE(A1:A10,PERCENTRANK(PROB(A1:A10,B1:B10% ,,A1:A10),0.5,20))

Prob(...) returns the cumulative percent and the other part
interpolates at 50%.


On 1 Mar, 17:03, hello wrote:
I need to calculate the median value of a distribution of numbers. The data I
have are the percentage (pct below, or, I have the total number of contracts
if that is easier to work with) of contracts that settled at given rates
(rate). The data show that 2.9% of contracts settled at 0, 3.4% of contracts
settled at 1, etc. I need to know the median rate of settlement for this set
of contracts. There are many contracts, so it is not feasible to create a
separate row for each contract and to take the median of those values. Can
anybody help?

Many thanks in advance

Rate Pct
0 2.9
1 3.4
2.5 37.0
3.5 41.8
4.5 9.1
5.5 2.9
6.5 1.9
7.5 0.0
8 1.0
9 0.0




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 340
Default How do I calculate the median of a distribution?

Help does unfortunately lack many examples of how to make good use of
it's functions. Take e.g. sumproduct.

To see how the formula above works, try it on your test data in the
example, then highlight a part of the formula e.g. prob(...) and press
F9 then press Esc to restore the original formula.

- The prob function requires that percentages/probabilities add up to
one.
The percentages in the example given add up to 100 so adding a % sign
divides each percentage by 100. Similarly if you used number of
contracts you would need to divide by sum(b1:b10) instead.

- The percentile/percentrank functions in combination can be used for
interpolation. They return the relative position in the array of a
value and are inverse operations so that: percentrank(A1:A10,9)=1,
percentile(A1:A10,1)=9.




On Mar 2, 1:11 am, hello wrote:
Lori

Thank you very much, the logic is intuitive, and I'm sure your formula will
work, although I have had a bit of difficulty pasting it. Can I ask a
separate question? Where do I find detailed information on the excel
commands? In the excel help function, I cannot find anything on the prob
function that is as detailed as what you wrote (using the % sign, for
example). That makes it hard for me to understand what is really going on in
the formula.

Thank you



"Lori" wrote:
You need to calculate the cumulative percentages and interpolate the
rate for 50%.


For a single formula try the following array formula with data in
A1:B10.
(use Ctrl+Shift+Enter to execute):


=PERCENTILE(A1:A10,PERCENTRANK(PROB(A1:A10,B1:B10% ,,A1:A10),0.5,20))


Prob(...) returns the cumulative percent and the other part
interpolates at 50%.


On 1 Mar, 17:03, hello wrote:
I need to calculate the median value of a distribution of numbers. The data I
have are the percentage (pct below, or, I have the total number of contracts
if that is easier to work with) of contracts that settled at given rates
(rate). The data show that 2.9% of contracts settled at 0, 3.4% of contracts
settled at 1, etc. I need to know the median rate of settlement for this set
of contracts. There are many contracts, so it is not feasible to create a
separate row for each contract and to take the median of those values. Can
anybody help?


Many thanks in advance


Rate Pct
0 2.9
1 3.4
2.5 37.0
3.5 41.8
4.5 9.1
5.5 2.9
6.5 1.9
7.5 0.0
8 1.0
9 0.0- Hide quoted text -


- Show quoted text -



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate MEDIAN of Last x Rows in a Column Sam via OfficeKB.com Excel Worksheet Functions 6 November 26th 06 06:22 PM
How do I calculate the cumulative distribution function macrohunter Excel Worksheet Functions 0 March 17th 06 05:40 PM
calculate a MEDIAN using multiple criteria? MetricsShiva Excel Worksheet Functions 0 August 19th 05 04:39 PM
Calculate median for different groups Daniel Excel Discussion (Misc queries) 2 January 26th 05 12:17 PM
Will not calculate average/median formulas;acts like no data in c. Frustrated User of Excel today Excel Worksheet Functions 3 December 9th 04 05:31 PM


All times are GMT +1. The time now is 07:53 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"