Una stima imparziale della mediana


16

Supponiamo di avere una variabile casuale X supportata su [0,1] da cui possiamo estrarre campioni. Come possiamo ottenere una stima imparziale della mediana di X ?

Naturalmente, possiamo generare alcuni campioni e prendere la mediana del campione, ma capisco che questo non sarà in generale imparziale.

Nota: questa domanda è collegata, ma non identica, alla mia ultima domanda , nel qual caso X potrebbe essere campionato solo approssimativamente.

Risposte:


13

Tale stimatore non esiste.

L'intuizione è che la mediana può rimanere fissa mentre spostiamo liberamente la densità di probabilità su entrambi i lati, in modo che qualsiasi stimatore il cui valore medio è la mediana per una distribuzione avrà una media diversa per la distribuzione alterata, rendendola distorta. La seguente esposizione dà un po 'più di rigore a questa intuizione.


Facciamo il distribuzioni avente mediane uniche m , in modo che per definizione F ( m ) 1 / 2 e F ( x ) < 1 / 2 per tutti x < m . Fissare una dimensione del campione n 1 e supporre che t : [ 0 , 1 ] n[ 0 , 1 ] stima m . (Basterà che tFmF(m)1/2F(x)<1/2x<mn1t:[0,1]n[0,1]mtessere delimitata solo, ma di solito non si considera seriamente stimatori che producono valori ovviamente impossibile) Facciamo. nessun ipotesi sulla ; non deve nemmeno essere continuo da nessuna parte.t

Il significato di essere imparziale (per questa dimensione fissa del campione) è questot

EF[t(X1,,Xn)]=m

per qualsiasi campione IID con . Un "stimatore" t è uno con questa proprietà per tutti i quali F .XiFtF

Supponiamo che esista uno stimatore imparziale. Deriveremo una contraddizione applicandola a un insieme di distribuzioni particolarmente semplice. Considera le distribuzioni aventi queste proprietà:F=Fx,y,m,ε

  1. ;0x<y1

  2. ;0<ε<(yx)/4

  3. ;x+ε<m<yε

  4. ;Pr(X=x)=Pr(X=y)=(1ε)/2

  5. ; ePr(mεXm+ε)=ε

  6. è uniforme su [ m - ε , m + ε ] .F[mε,m+ε]

These distributions place probability (1ε)/2 at each of x and y and a tiny amount of probability symmetrically placed around m between x and y. This makes m the unique median of F. (If you are concerned that this is not a continuous distribution, then convolve it with a very narrow Gaussian and truncate the result to [0,1]: the argument will not change.)

Ora, per qualsiasi stimatore mediano putativo , una semplice stima mostra che E [ t ( X 1 , X 2 , ... , X n ) ] è strettamente all'interno di ε della media dei valori di 2 n t ( x 1 , x 2 , ... , x n ) dove x i variare su tutte le possibili combinazioni di x ed y . Tuttavia, possiamo variare mtE[t(X1,X2,,Xn)]ε2nt(x1,x2,,xn)xixymtra e y - ε , un cambiamento di almeno ε (in virtù delle condizioni 2 e 3). Quindi esiste una m , e da cui una corrispondente distribuzione F x , y , m , ε , per la quale questa aspettativa non è uguale alla mediana, QED.x+εyεεmFx,y,m,ε


(+1) Nice proof. Did you come up with it, or is it something you remembered from the grad school?
StasK

4
Here is another proof: Most Bernoulli random variables have median 0 or 1. The estimate from n trials depends only on the average values of the estimator on the vertices of [0,1]n with k, and the weights of these average values is a polynomial in p of degree n. If this is an unbiased estimator, it must have average value 1 for any p>1/2, and there are more than n+1 such values of p, so this polynomial must be constant... but it must be 0 on lower values of p, so it can't be unbiased there, too.
Douglas Zare

1
@Douglas That's a great proof. I suspect some people might feel a little uneasy about the scope of its applicability, though, because the median for a Bernoulli variable is somewhat special, being coincident with one of its two support points (except when p=1/2). Readers might be tempted to declare this as "pathological" and try to bar such monsters by looking only at continuous distributions with everywhere positive densities on their domains. That's why I took care to show that such efforts will fail.
whuber

3

Finding an unbiased estimator without having a parametric model would be difficult! But you could use bootstrapping, and use that to correct the empirical median to get an approximately unbiased estimator.


If this is impossible, is it possible to prove it? For example, if X1,X2,,Xn are independent samples from X then can one prove that f(X1,,Xn) cannot be unbiased for any choice of f?
robinson

2
I think kjetil is saying that in a nonparametric framework there is no method that will give an unbiased estimate for every possible distribution. But in the parametric framework you probably could. Bootstrapping a biased sample estimate can allow you to estimate the bias and adjust it to get a bootstrap estimate that is nearly unbiased. That was his suggestion for handling the problem in the nonparametric framework. Proving that an unbiased estimate is not possible would also be difficult.
Michael R. Chernick

2
If you really want to try to prove that there do not exist an unbiased estimator, there is a book, Ferguson: "Mathematical Statistics - A Decision Theoretic Approach" which do have some examples of that kind of thing!
kjetil b halvorsen

I imagine that the regularity conditions for the bootstrap will be violated with the distribution functions that whuber considers in his answer. Michael, can you comment?
StasK

2
@Stas As I pointed out, my functions can be made to look very "nice" by mollifying them. They can also be generalized to mollifications of large finite mixtures of atoms. The class of such distributions is dense in all distributions on the unit interval, so I don't think bootstrap regularity would be involved here.
whuber

0

I believe quantile regression will give you a consistent estimator of the median. Given the model Y=α+u. And you want to estimate med(y)=med(α+u)=α+med(u) since α is a constant. All you need is the med(u)=0 which should be true so long as you have independent draws. However, as far as unbiasedness, I don't know. Medians are difficult.


See @whuber 's answer
Peter Flom - Reinstate Monica
Utilizzando il nostro sito, riconosci di aver letto e compreso le nostre Informativa sui cookie e Informativa sulla privacy.
Licensed under cc by-sa 3.0 with attribution required.