Pdf dari

15

Misalkan X1,X2,...,Xn menjadi iid dari N(μ,σ2) dengan μR dan σ 2 > 0 yang tidak diketahuiσ2>0

Biarkan Z=X1X¯S,S adalah standar deviasi di sini.

Dapat ditunjukkan bahwa Z memiliki Lebesgue pdf

f(z)=nΓ(n12)π(n1)Γ(n22)[1nz2(n1)2]n/22I(0,(n1)/n)(|Z|)

Pertanyaan saya lalu bagaimana cara mendapatkan pdf ini?

Pertanyaannya adalah dari sini dalam contoh 3.3.4 untuk menemukan UMVUE . Saya dapat memahami logika dan prosedur untuk menemukan UMVUE tetapi tidak tahu cara mendapatkan pdf.P(X1c)

Saya pikir pertanyaan ini juga berhubungan dengan ini satu

Terima kasih banyak atas bantuan atau merujuk ke referensi terkait juga akan disesuaikan.

Jauh di Utara
sumber

Jawaban:

14

Apa yang sangat menarik tentang hasil ini adalah seberapa besar distribusi koefisien korelasi. Ada alasannya.


Misalkan adalah normal bivariat dengan korelasi nol dan varian umum σ 2 untuk kedua variabel. Buat sampel iid ( x 1 , y 1 ) , , ( x n , y n ) . Sudah diketahui, dan siap secara geometris (seperti yang dilakukan Fisher seabad yang lalu) bahwa distribusi koefisien korelasi sampel(X,Y)σ2(x1,y1),,(xn,yn)

r=i=1n(xix¯)(yiy¯)(n1)SxSy

adalah

f(r)=1B(12,n21)(1r2)n/22, 1r1.

(Here, as usual, x¯ and y¯ are sample means and Sx and Sy are the square roots of the unbiased variance estimators.) B is the Beta function, for which

(1)1B(12,n21)=Γ(n12)Γ(12)Γ(n21)=Γ(n12)πΓ(n21).

To compute r, we may exploit its invariance under rotations in Rn around the line generated by (1,1,,1), along with the invariance of the distribution of the sample under the same rotations, and choose yi/Sy to be any unit vector whose components sum to zero. One such vector is proportional to v=(n1,1,,1). Its standard deviation is

Sv=1n1((n1)2+(1)2++(1)2)=n.

Consequently, r must have the same distribution as

i=1n(xix¯)(viv¯)(n1)SxSv=(n1)x1x2xn(n1)Sxn=n(x1x¯)(n1)Sxn=nn1Z.

Therefore all we need to is rescale r to find the distribution of Z:

fZ(z)=|nn1|f(nn1z)=1B(12,n21)nn1(1n(n1)2z2)n/22

for |z|n1n. Formula (1) shows this is identical to that of the question.


Not entirely convinced? Here is the result of simulating this situation 100,000 times (with n=4, where the distribution is uniform).

Figure

The first histogram plots the correlation coefficients of (xi,yi),i=1,,4 while the second histogram plots the correlation coefficients of (xi,vi),i=1,,4) for a randomly chosen vector vi that remains fixed for all iterations. They are both uniform. The QQ-plot on the right confirms these distributions are essentially identical.

Here's the R code that produced the plot.

n <- 4
n.sim <- 1e5
set.seed(17)
par(mfrow=c(1,3))
#
# Simulate spherical bivariate normal samples of size n each.
#
x <- matrix(rnorm(n.sim*n), n)
y <- matrix(rnorm(n.sim*n), n)
#
# Look at the distribution of the correlation of `x` and `y`.
#
sim <- sapply(1:n.sim, function(i) cor(x[,i], y[,i]))
hist(sim)
#
# Specify *any* fixed vector in place of `y`.
#
v <- c(n-1, rep(-1, n-1)) # The case in question
v <- rnorm(n)             # Can use anything you want
#
# Look at the distribution of the correlation of `x` with `v`.
#
sim2 <- sapply(1:n.sim, function(i) cor(x[,i], v))
hist(sim2)
#
# Compare the two distributions.
#
qqplot(sim, sim2, main="QQ Plot")

Reference

R. A. Fisher, Frequency-distribution of the values of the correlation coefficient in samples from an indefinitely large population. Biometrika, 10, 507. See Section 3. (Quoted in Kendall's Advanced Theory of Statistics, 5th Ed., section 16.24.)

whuber
sumber
The link to the reference is broken.
Sextus Empiricus
@Martijn Thank you for checking. I see what you mean--the link works, but it doesn't go to anything relevant! I have fixed it up.
whuber
4

I'd like to suggest this way to get the pdf of Z by directly calculating the MVUE of P(Xc) using Bayes' theorem although it's handful and complex.

Since E[I(,c)(X1)]=P(X1c) and Z1=X¯, Z2=S2 are joint complete sufficient statistic, MVUE of P(Xc) would be like this:

ψ(z1,z2)=E[I(,c)(X1)|z1,z2]=I(,c)fX|Z1,Z2(x1|z1,z2)dx1

Now using Bayes' theorem, we get

fX|Z1,Z2(x1|z1,z2)=fZ1,Z2|X1(z1,z2|x1)fX1(x1)fZ1,Z2(z1,z2)

The denominator fZ1,Z2(z1,z2)=fZ1(z1)fZ2(z2) can be written in closed form because Z1N(μ,σ2n), Z2Γ(n12,2σ2n1) are independent of each other.

To get the closed form of numerator, we can adopt these statistics:

W1=i=2nXin1
W2=i=2nXi2(n1)W12(n1)1

which is the mean and the sample variance of X2,X3,...,Xn and they are independent of each other and also independent of X1. We can express these in terms of Z1,Z2.

W1=nZ1X1n1, W2=(n1)Z2+nZ12X12(n1)W12n2

We can use transformation while X1=x1,

fZ1,Z2|X1(z1,z2|x1)=nn2fW1,W2(w1,w2)=nn2fW1(w1)fW2(w2)

Since W1N(μ,σ2n1), W2Γ(n22,2σ2n2) we can get the closed form of this. Note that this holds only for w20 which restricts x1 to z1n1nz2x1z1+n1nz2.

So put them all together, exponential terms would disappear and you'd get,

fX|Z1,Z2(x1|z1,z2)=Γ(n12)πΓ(n22)nz2(n1)(1(n(x1z1)z2(n1))2)
where z1n1nz2x1z1+n1nz2 and zero elsewhere.

From this,at this point, we can get the pdf of Z=X1z1z2 using transformation.

By the way, the MVUE would be like this :

ψ(z1,z2)=Γ(n12)πΓ(n22)π2θccosn3θdθ
while θc=sin1(n(cz1)(n1)z1) and would be 1 if cz1+n1nz2

I am not a native English speaker and there could be some awkward sentences. I am studying statistics by myself with text book introduction to mathmatical statistics by Hogg. So there could be some grammatical or mathmatical conceptual mistakes. It would be appreciated if someone correct them.

Thank you for reading.

KDG
sumber