How Do You Calculate the Median of a Geometric Distribution?

Click For Summary
SUMMARY

The median of a geometric distribution can be calculated using the inequalities P(X≥M) ≥ 1/2 and P(X≤M) ≥ 1/2. The derived formulas indicate that M can be expressed as M ≥ log(1/2)/log(1-p) + 1 and M ≤ log(1/2)/log(1-p). The correct approach involves finding a continuous solution for (1-p)^(M-1) = 1/2 and then taking M as the ceiling of that value. This method ensures that the median interval shrinks to a single point, aligning with the properties of the cumulative distribution function (CDF).

PREREQUISITES
  • Understanding of geometric distributions
  • Familiarity with cumulative distribution functions (CDF)
  • Knowledge of logarithmic functions and their properties
  • Basic concepts of probability theory
NEXT STEPS
  • Study the properties of geometric distributions in detail
  • Learn about cumulative distribution functions and their applications
  • Explore the concept of median in discrete distributions
  • Investigate the implications of using ceiling functions in statistical calculations
USEFUL FOR

Students studying probability and statistics, mathematicians focusing on discrete distributions, and educators teaching concepts related to geometric distributions and their medians.

Max.Planck
Messages
128
Reaction score
0

Homework Statement


How do you find the median of the geometric distribution?


Homework Equations


M is median if P(X>=M) >= 1/2 and P(X<=M)>=1/2.


The Attempt at a Solution


I have found this inequality using the geometric series:
(m-1)*log(1-p) >= 1/2
 
Physics news on Phys.org
anyone??
 
Max.Planck said:
anyone??

Show your work; your answer is wrong, but until I see what you did I cannot see how to help you fix it.

RGV
 
P(X>=M) =\sum_{k=M}^{\infty}p(1-p)^{k-1} = p(1-p)^{M-1}\sum_{k=0}^{\infty}(1-p)^k = (1-p)^{M-1}

Now I set:

(1-p)^{M-1} &gt;= 1/2 \implies (M-1)log(1-p) &gt;= log(1/2) \implies M &gt;= log(1/2)/log(1-p)+1

Now for the other part:
P(X<=M) = 1-P(X>M) =
1-\sum_{k=M+1}^{\infty}p(1-p)^{k-1} = 1-(1-p)^M

Now I set:

1-(1-p)^{M} &gt;= 1/2 \implies (M)log(1-p) &lt;= log(1/2) \implies M &lt;= log(1/2)/log(1-p)

Is this correct and how do I combine these solutions?
 
Max.Planck said:
P(X>=M) =\sum_{k=M}^{\infty}p(1-p)^{k-1} = p(1-p)^{M-1}\sum_{k=0}^{\infty}(1-p)^k = (1-p)^{M-1}

Now I set:

(1-p)^{M-1} &gt;= 1/2 \implies (M-1)log(1-p) &gt;= log(1/2) \implies M &gt;= log(1/2)/log(1-p)+1

Now for the other part:
P(X<=M) = 1-P(X>M) =
1-\sum_{k=M+1}^{\infty}p(1-p)^{k-1} = 1-(1-p)^M

Now I set:

1-(1-p)^{M} &gt;= 1/2 \implies (M)log(1-p) &lt;= log(1/2) \implies M &lt;= log(1/2)/log(1-p)

Is this correct and how do I combine these solutions?

You have the >= and <= backwards: you need P{X >= M} <= 1/2, etc. The way I would do it is to find a continuous solution of (1-p)^(m-1) = 1/2, then take M = ceiling(m), where ceiling(w) = smallest integer >= w.

RGV
 
Ray Vickson said:
You have the >= and <= backwards: you need P{X >= M} <= 1/2, etc. The way I would do it is to find a continuous solution of (1-p)^(m-1) = 1/2, then take M = ceiling(m), where ceiling(w) = smallest integer >= w.

RGV

Actually it is P(X>=M) >= 1/2 and P(X<=M) >= 1/2. See http://en.wikipedia.org/wiki/Median.
 
Max.Planck said:
Actually it is P(X>=M) >= 1/2 and P(X<=M) >= 1/2. See http://en.wikipedia.org/wiki/Median.

If that is what the article says, it is wrong. I suggest you look in a real book.

RGV
 
Ray Vickson said:
If that is what the article says, it is wrong. I suggest you look in a real book.

RGV

It also says here in my book, however, the way you described it seems to lead to the right answer...
 
Fix typos
Max.Planck said:
It also says here in my book, however, the way you described it seems to lead to the right answer...

Actually, My statement may have been a bit harsh: saying "not useful" rather than "wrong" may have been better.

The point is that there is a bit of an issue defining the "median" for some discrete cases, and some sources regard entire intervals [a,b] as the median when F(a) = 1/2 (and b > a is the next point in the distribution). Other sources define the median as the solution of the optimization problem min_m E|X-m|; that would lead to a median interval in some cases. I think it is better to deal with strict inequalities: the interval [Mmin,Mmax] (Mmin <= Mmax) is a median interval if P{X < Mmin} < 1/2 and P{X > Mmax } < 1/2. Of course, if Mmin=Mmax= M we have P{X>M} < 1/2 and P{X<M} <1/2. Some books and papers would say that we must pick a particular point, so would reject the median-interval notion, but would choose a point M in [Mmin,Mmax] in some way. If you do that , it would be false to say P{X<M}<1/2 and P{X>M} < 1/2.

Anyway, the method I gave is OK as long as the median interval shrinks to a single point; if you look at the graph of the cdf you can even see why it works: at the median M we have F(M) < 1/2 and F(M+1) > 1/2. If you imagine drawing the graph y = F(x), but with vertical line segments inserted at the jump points, then the solution of the equation 1/2 = F(x) is at the point M where the vertical segment from F(M) to F(M+1) cuts the value 1/2; that is, it is at the point M where F(M) < 1/2 and F(M+1) > 1/2. You would get this same value by joining up the points (j,F(j)) by a smooth curve y = H(x) (with H(j) = F(j) for all j) and then rounding up the solution x of 1/2 = H(x).

RGV
 
Last edited:

Similar threads

  • · Replies 23 ·
Replies
23
Views
4K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
3
Views
2K
Replies
8
Views
1K
Replies
2
Views
1K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K