5 The weighted Dirichlet posterior

Jeremy Strief and Glen Meeden

Previous | Next

It is often the case that weights are attached to data in public use files. These weights are then used by researchers to make point and interval estimates of population parameters. We shall see that the stepwise Bayes weights introduced here can often be used in standard frequentist formulas to estimate parameters of interest just as the usual weights are. We will use our weights to define the Weighted Dirichlet posterior (WDP) and show that it gives an alternative way to compute point and interval estimates for a variety of population quantities.

Let the w j s MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9LqFf0x e9q8qqvqFr0dXdHiVc=bYP0xb9sq=fFjea0RXxb9qr0dd9q8qi0lf9 Fve9Fve9vapdbaqaaeGacaGaaiaabeqaamaabaabaaGcbaGaam4Dam aaBaaaleaacaWGQbaabeaaieaakiaa=LbicaqGZbaaaa@3D22@  be a set of weights defined by equation (4.1) with μ j = w j /N . MathType@MTEF@5@5@+= feaagKart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4HqGqpipeea0xe9LqFf0x e9q8qqvqFr0dXdbrVc=b0P0xb9sq=fFfeu0RXxb9qr0dd9q8as0lf9 vqFf0xb9vqFfWZqaaeaabiGaaiaacaqabeaadaqaaqaaaOqaaiabeY 7aTnaaBaaaleaacaWGQbaabeaakiabg2da9maalyaabaGaam4Damaa BaaaleaacaWGQbaabeaaaOqaaiaad6eaaaGaaiOlaaaa@426E@  Consider the Dirichlet distribution over the simplex defined by the vector nμ=( n μ 1 ,,n μ n ) MathType@MTEF@5@5@+= feaagKart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4HqGqpipeea0xe9LqFf0x e9q8qqvqFr0dXdbrVc=b0P0xb9sq=fFfeu0RXxb9qr0dd9q8as0lf9 vqFf0xb9vqFfWZqaaeaabiGaaiaacaqabeaadaqaaqaaaOqaaiaad6 gacqaH8oqBcqGH9aqpdaqadaqaaiaad6gacqaH8oqBdaWgaaWcbaGa aGymaaqabaGccaGGSaGaeSOjGSKaaiilaiaad6gacqaH8oqBdaWgaa WcbaGaamOBaaqabaaakiaawIcacaGLPaaaaaa@49F7@  as an alternative posterior distribution for p=( p 1 ,, p n ) MathType@MTEF@5@5@+= feaagKart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4HqGqpipeea0xe9LqFf0x e9q8qqvqFr0dXdbrVc=b0P0xb9sq=fFfeu0RXxb9qr0dd9q8as0lf9 vqFf0xb9vqFfWZqaaeaabiGaaiaacaqabeaadaqaaqaaaOqaaiaadc hacqGH9aqpdaqadaqaaiaadchadaWgaaWcbaGaaGymaaqabaGccaGG SaGaeSOjGSKaaiilaiaadchadaWgaaWcbaGaamOBaaqabaaakiaawI cacaGLPaaaaaa@44DB@ when using the observed sample to generate complete simulated copies of the population. We will call this posterior the weighted Dirichlet posterior (WDP). Note the WDP is a looser version of the CPP. Under the CPP every complete copy of the population will satisfy the constraints; however, under the WDP, only the average of all the simulated populations will satisfy the constraints. It is easy to see that under the WDP

E( i=1 n p i y i )= i=1 n μ i y i = y ¯ bw MathType@MTEF@5@5@+= feaagKart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4HqGqpipeea0xe9LqFf0x e9q8qqvqFr0dXdbrVc=b0P0xb9sq=fFfeu0RXxb9qr0dd9q8as0lf9 vqFf0xb9vqFfWZqaaeaabiGaaiaacaqabeaadaqaaqaaaOqaaiaadw eadaqadaqaamaaqahabaGaamiCamaaBaaaleaacaWGPbaabeaakiaa dMhadaWgaaWcbaGaamyAaaqabaaabaGaamyAaiabg2da9iaaigdaae aacaWGUbaaniabggHiLdaakiaawIcacaGLPaaacqGH9aqpdaaeWbqa aiabeY7aTnaaBaaaleaacaWGPbaabeaakiaadMhadaWgaaWcbaGaam yAaaqabaGccqGH9aqpceWG5bGbaebadaWgaaWcbaGaamOyaiaadEha aeqaaaqaaiaadMgacqGH9aqpcaaIXaaabaGaamOBaaqdcqGHris5aa aa@573E@ (5.1)

and

V( i=1 n p i y i ) = i=1 n y i 2 V( p i )+ i<j   y i y j Cov( p i , p j ) = i=1 n n μ i ( nn μ i ) y i 2 n 2 ( n+1 ) 2 i<j   n μ i n μ j y i y j n 2 ( n+1 )     (5.2) = 1 n+1 ( i=1 n μ i ( 1 μ i ) y i 2 +2 i<j   μ i n μ j y i y j ) = 1 n+1 ( i=1 n μ i y i 2 i=1 n i=1 n μ i μ j y i y j ) = 1 n+1 σ bw 2

where y ¯ bw MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9LqFf0x e9q8qqvqFr0dXdHiVc=bYP0xb9sq=fFjea0RXxb9qr0dd9q8qi0lf9 Fve9Fve9vapdbaqaaeGacaGaaiaabeqaamaabaabaaGcbaGabmyEay aaraWaaSbaaSqaaiaadkgacaWG3baabeaaaaa@3C6D@  and σ bw 2 MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9LqFf0x e9q8qqvqFr0dXdHiVc=bYP0xb9sq=fFjea0RXxb9qr0dd9q8qi0lf9 Fve9Fve9vapdbaqaaeGacaGaaiaabeqaamaabaabaaGcbaGaeq4Wdm 3aa0baaSqaaiaadkgacaWG3baabaGaaGOmaaaaaaa@3DD7@ were defined in equation (4.2).

From this we see that when estimating the population mean, simulating from the WDP is equivalent to using the sample and their weights to construct the best guess for the population. In particular, when the weights are all equal the WDP is just the Polya posterior.

There are two main reasons for introducing the WDP. The first is that as the number of constraints used increases the approximate 0.95 credible intervals based on the CPP become too short and contain the true parameter value less than 95% of the time. This happens because with a large number of constraints the CPP does not allow enough variability in the simulated complete copies of the population which it generates. The second reason is that simulating from the WDP is much easier that simulating from the CPP. Now it would be possible to simulated from the constrained WDP in such a way that all the constraints would be satisfied but this involves as much effort as simulating from the CPP. Moreover, we believe that this would yield approximate 0.95 credible intervals which have poor frequentist coverage properties because they are too short.

Now suppose our set of weights is the reciprocals of the inclusion probabilities from the sampling design. Let W= i=1 n w i . MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9LqFf0x e9q8qqvqFr0dXdHiVc=bYP0xb9sq=fFjea0RXxb9qr0dd9q8qi0lf9 Fve9Fve9vapdbaqaaeGacaGaaiaabeqaamaabaabaaGcbaGaam4vai abg2da9maaqadabaGaam4DamaaBaaaleaacaWGPbaabeaaaeaacaWG PbGaeyypa0JaaGymaaqaaiaad6gaa0GaeyyeIuoakiaac6caaaa@4395@  For most samples this value will not be equal to N MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9LqFf0x e9q8qqvqFr0dXdHiVc=bYP0xb9sq=fFjea0RXxb9qr0dd9q8qi0lf9 Fve9Fve9vapdbaqaaeGacaGaaiaabeqaamaabaabaaGcbaGaamOtaa aa@3A1B@ but often is is quite close. Again we can construct our best guess for the population based on the weights. The mean and variance of this population will be

y ¯ dw = i=1 n w i W y i MathType@MTEF@5@5@+= feaagKart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4HqGqpipeea0xe9LqFf0x e9q8qqvqFr0dXdbrVc=b0P0xb9sq=fFfeu0RXxb9qr0dd9q8as0lf9 vqFf0xb9vqFfWZqaaeaabiGaaiaacaqabeaadaqaaqaaaOqaaiqadM hagaqeamaaBaaaleaacaWGKbGaam4DaaqabaGccqGH9aqpdaaeWbqa amaalaaabaGaam4DamaaBaaaleaacaWGPbaabeaaaOqaaiaadEfaaa GaamyEamaaBaaaleaacaWGPbaabeaaaeaacaWGPbGaeyypa0JaaGym aaqaaiaad6gaa0GaeyyeIuoaaaa@4A05@  and σ dw 2 = i=1 n w i W ( y i y ¯ dw ) 2 . MathType@MTEF@5@5@+= feaagKart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4HqGqpipeea0xe9LqFf0x e9q8qqvqFr0dXdbrVc=b0P0xb9sq=fFfeu0RXxb9qr0dd9q8as0lf9 vqFf0xb9vqFfWZqaaeaabiGaaiaacaqabeaadaqaaqaaaOqaaiabeo 8aZnaaDaaaleaacaWGKbGaam4DaaqaaiaaikdaaaGccqGH9aqpdaae WbqaamaalaaabaGaam4DamaaBaaaleaacaWGPbaabeaaaOqaaiaadE faaaaaleaacaWGPbGaeyypa0JaaGymaaqaaiaad6gaa0GaeyyeIuoa kmaabmaabaGaamyEamaaBaaaleaacaWGPbaabeaakiabgkHiTiqadM hagaqeamaaBaaaleaacaWGKbGaam4DaaqabaaakiaawIcacaGLPaaa daahaaWcbeqaaiaaikdaaaGccaGGUaaaaa@52DA@ (5.3)

If we use y ¯ dw MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9LqFf0x e9q8qqvqFr0dXdHiVc=bYP0xb9sq=fFjea0RXxb9qr0dd9q8qi0lf9 Fve9Fve9vapdbaqaaeGacaGaaiaabeqaamaabaabaaGcbaGabmyEay aaraWaaSbaaSqaaiaadsgacaWG3baabeaaaaa@3C6F@  as an estimate of the unknown population mean then an unbiased estimate of its variance depends on the joint inclusion probabilities of the units in the sample. Since these are often difficult to obtain, what has been recommended in practice (Särndal, Swensson and Wretman 1992) is to assume the sampling was done with replacement even when that is not the case. Then the resulting approximate estimate of variance for y ¯ dw MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9LqFf0x e9q8qqvqFr0dXdHiVc=bYP0xb9sq=fFjea0RXxb9qr0dd9q8qi0lf9 Fve9Fve9vapdbaqaaeGacaGaaiaabeqaamaabaabaaGcbaGabmyEay aaraWaaSbaaSqaaiaadsgacaWG3baabeaaaaa@3C6F@ is

V ^ d ( y ¯ dw ) = 1 n( n1 ) i=1 n ( n w i W y i y ¯ dw ) 2     (5.4) = σ dw 2 + γ dw n1

where the second line follows from some simple algebra and where

γ dw = i=1 n w i W y i 2 ( n w i W 1 ). MathType@MTEF@5@5@+= feaagKart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4HqGqpipeea0xe9LqFf0x e9q8qqvqFr0dXdbrVc=b0P0xb9sq=fFfeu0RXxb9qr0dd9q8as0lf9 vqFf0xb9vqFfWZqaaeaabiGaaiaacaqabeaadaqaaqaaaOqaaiabeo 7aNnaaBaaaleaacaWGKbGaam4DaaqabaGccqGH9aqpdaaeWbqaamaa laaabaGaam4DamaaBaaaleaacaWGPbaabeaaaOqaaiaadEfaaaGaam yEamaaDaaaleaacaWGPbaabaGaaGOmaaaakmaabmaabaGaamOBamaa laaabaGaam4DamaaBaaaleaacaWGPbaabeaaaOqaaiaadEfaaaGaey OeI0IaaGymaaGaayjkaiaawMcaaiaac6caaSqaaiaadMgacqGH9aqp caaIXaaabaGaamOBaaqdcqGHris5aaaa@534A@ (5.5)

Note that when the design is simple random sampling with or without replacement and N=nk MathType@MTEF@5@5@+= feaagKart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4HqGqpipeea0xe9LqFf0x e9q8qqvqFr0dXdbrVc=b0P0xb9sq=fFfeu0RXxb9qr0dd9q8as0lf9 vqFf0xb9vqFfWZqaaeaabiGaaiaacaqabeaadaqaaqaaaOqaaiaad6 eacqGH9aqpcaWGUbGaam4Aaaaa@3E8D@  then γ dw =0. MathType@MTEF@5@5@+= feaagKart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4HqGqpipeea0xe9LqFf0x e9q8qqvqFr0dXdbrVc=b0P0xb9sq=fFfeu0RXxb9qr0dd9q8as0lf9 vqFf0xb9vqFfWZqaaeaabiGaaiaacaqabeaadaqaaqaaaOqaaiabeo 7aNnaaBaaaleaacaWGKbGaam4DaaqabaGccqGH9aqpcaaIWaGaaiOl aaaa@4105@ In this case, the estimate of variance in (5.4) is essentially equivalent to the variance in equation (5.2).

In situations where the Horvitz-Thompson estimator makes sense, calculations have shown that γ dw MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9LqFf0x e9q8qqvqFr0dXdHiVc=bYP0xb9sq=fFjea0RXxb9qr0dd9q8qi0lf9 Fve9Fve9vapdbaqaaeGacaGaaiaabeqaamaabaabaaGcbaGaeq4SdC 2aaSbaaSqaaiaadsgacaWG3baabeaaaaa@3D00@  tends to be negative. This suggests that in such situations intervals based on the WDP will tend to be conservative. However calculations also show that γ dw MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9LqFf0x e9q8qqvqFr0dXdHiVc=bYP0xb9sq=fFjea0RXxb9qr0dd9q8qi0lf9 Fve9Fve9vapdbaqaaeGacaGaaiaabeqaamaabaabaaGcbaGaeq4SdC 2aaSbaaSqaaiaadsgacaWG3baabeaaaaa@3D00@ term tends to be positive in situations where the Horvitz-Thompson estimator is not appropriate. We will see in such cases that the usual approximation can work poorly and intervals based on the WDP can have better frequentist properties.

Previous | Next

Date modified: