Random sample of size n (n odd) from Uni(0,1)

  • Thread starter Thread starter thesandbox
  • Start date Start date
  • Tags Tags
    Random
Click For Summary

Homework Help Overview

The discussion revolves around finding the mean and variance of the sample median from a random sample of size n (where n is odd) drawn from a uniform distribution on the interval (0, 1). Participants explore the mathematical formulation and integration techniques necessary for this task.

Discussion Character

  • Mathematical reasoning, Problem interpretation, Assumption checking

Approaches and Questions Raised

  • Participants discuss the formula for the probability density function (PDF) of the sample median and the integration process required to find the mean and variance. There are questions about the correctness of coefficients and integration limits, as well as suggestions for using substitution or integration by parts.

Discussion Status

Some participants express confidence in the PDF formulation, while others suggest simplifications and alternative methods for integration. There is an acknowledgment of the potential to use known results from the Beta distribution for the mean and variance, indicating a productive direction in the discussion.

Contextual Notes

Participants note that the integration bounds should be from 0 to 1, and there is mention of the need to verify coefficients in the PDF. The discussion includes references to the binomial theorem and standard results for the Beta distribution, which may influence the approach taken.

thesandbox
Messages
10
Reaction score
0

Homework Statement


If you were taking a random sample of size n (n=2m+1 odd) from Uni(0,1)
How do you find the mean and variance of the sample median?


Homework Equations



In order to find the mean and variance of the sample median you need to start with the sample median itself. Using this equation:

ƒxmedian(x) = ƒx(2m+1)(x) = [itex]\frac{(2m+1)!}{m!m!}[/itex]*ƒ(x)*[F(x)]m*[1-F(x)]m

Where ƒ(x) is the pdf of the Uni(0,1) ~ Uni(a,b)
ƒ(x) = [itex]\frac{1}{b-a}[/itex] This becomes = 1

Where F(x) is the cdf of the Uni(0,1)
F(x) = [itex]\frac{x-a}{b-a}[/itex] This becomes x

So,
ƒxmedian(x)

= ƒx(2m+1)(x)

= [itex]\frac{(2m+1)!}{m!m!}[/itex]*(1)*xm*(1-x)m

= [itex]\frac{(2m+1)!}{m!m!}[/itex]*xm*(1-x)m


The Attempt at a Solution


Above is part of the attempt.

Now as for the mean and variance of the sample median

Mean
E(x) = x*ƒxmedian(x)*dx

= [itex]\int[/itex][itex]^{1}_{0}[/itex] x*[itex]\frac{(2m+1)!}{m!m!}[/itex]*xm*(1-x)m

= [itex]\frac{(2m+1)!}{m!m!}[/itex]*[itex]\int[/itex][itex]^{1}_{0}[/itex] x*xm*(1-x)m

= [itex]\frac{(2m+1)!}{m!m!}[/itex]*[itex]\int[/itex][itex]^{1}_{0}[/itex] xm+1*(1-x)m

= [itex]\frac{(2m+1)!}{m!m!}[/itex]*[itex]\int[/itex][itex]^{1}_{0}[/itex] x*xm*(1-x)m

= [itex]\frac{(2m+1)!}{m!m!}[/itex]*[itex]\int[/itex][itex]^{1}_{0}[/itex] x*(xm*(1-x)m)

= [itex]\frac{(2m+1)!}{m!m!}[/itex]*[itex]\int[/itex][itex]^{1}_{0}[/itex] x*[x*(1-x)]m

= [itex]\frac{(2m+1)!}{m!m!}[/itex]*[itex]\int[/itex][itex]^{1}_{0}[/itex] x*[(x-x2)]m

-> Continue with integration by parts.


Edit: Above has been corrected


So my question is: Have I done everything above correctly and how would I continue? Is there something I'm missing with this Uniform distribution because that integral doesn't seem to want to simplify.





Variance
Var(x) = E(x2) - [E(x)]2
And similarly for variance will follow.

Thanks!
 
Last edited:
Physics news on Phys.org
The general method looks correct. I agree with the formula for the PDF of the sample median, except I didn't verify that your coefficient (2m+1)!/[(m!)(m!)] is correct.

Your integral bounds should be from 0 to 1, not 0 to infinity. You can combine the x^m with the (1-x)^m to get (x - x^2)^m. The integral seems straightforward - did you try a substitution, or integration by parts?
 
Last edited:
I believe you just answered it. I'm fairly confident the pdf for the sample median is correct, however with the new limits and simplification of (x - x^2)^m should make it a little more straight forward. I'll see what happens.
 
If substitution or integration by parts doesn't work out, you could always expand (x - x^2)^m using the binomial theorem and integrate term by term.
 
Your formula for [itex]f_{\mbox{median}}(x)[/itex] is just that of a standard Beta distribution, so you can apply known formulas for the mean and variance. Actually, the mean is easy: [itex]x f_{\mbox{median}}(x)[/itex] is just a simple scale factor (depending on m) times another Beta density, and the latter integrates to 1. Getting variance is most easily done using the standard result [itex]\mbox{Var}(X) = E(X^2) - (EX)^2.[/itex]

RGV
 
Yes that's right, this is a βeta distribution with a mean and variance that can be looked up.

β([itex]\alpha[/itex], [itex]\beta[/itex])

β(m+1, m+1)

Mean = [itex]\frac{\alpha}{\alpha + \beta}[/itex]

Variance = ([itex]\alpha\beta[/itex])/[([itex]\alpha+\beta[/itex])2*([itex]\alpha+\beta+1[/itex])]
 
Were the correct answers:

Mean of the sample median: 1/2

Variance of the sample median: 1/(12 + 8m)

Thanks!

Jim
 
Last edited:

Similar threads

  • · Replies 34 ·
2
Replies
34
Views
6K
Replies
9
Views
2K
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
10K
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
1K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K