You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The estimated risk of unemployment for a baseline person is low and it
129
-
is even lower for a white collar worker. It is higher for females,
130
-
older persons and particularly for those unemployed in 1997.
127
+
128
+
The estimated risk of unemployment for a baseline person is low and it is even lower for a white collar worker. It is higher for females, older persons and particularly for those unemployed in 1997.
131
129
132
130
```{r, echo = -c(1:2)}
133
131
if (pdfplots) {
@@ -140,8 +138,7 @@ for (j in seq_len(ncol(betas))) {
140
138
}
141
139
```
142
140
143
-
A plot of the autocorrelation of the draws shows that although there is some
144
-
autocorrelation, it vanishes after a few lags.
141
+
A plot of the autocorrelation of the draws shows that although there is some autocorrelation, it vanishes after a few lags.
145
142
146
143
```{r, echo = -c(1:2)}
147
144
if (pdfplots) {
@@ -152,12 +149,13 @@ for (j in seq_len(ncol(betas))) {
The sampler is easy to implement, however there might be problems when the
156
-
response variable contains either only few or very many successes.
152
+
The sampler is easy to implement, however there might be problems when the response variable contains either only few or very many successes.
157
153
To illustrate this issue, we use data where in $N = 500$ trials only 1 success
158
154
or only 1 failure is observed.
159
155
160
156
```{r}
157
+
set.seed(1234)
158
+
161
159
N <- 500
162
160
X <- matrix(1, nrow = N)
163
161
@@ -168,7 +166,8 @@ y2 <- c(rep(0, N-1), 1)
168
166
betas2 <- probit(y2, X, b0 = 0, B0 = 10000)
169
167
```
170
168
171
-
In both cases the autocorrelation of the draws decreases very slowly.
169
+
In both cases the autocorrelation of the draws decreases very slowly and remains high even higher lags.
170
+
172
171
```{r, echo = -c(1:2)}
173
172
if (pdfplots) {
174
173
pdf("8-1_3.pdf", width = 8, height = 5)
@@ -180,13 +179,9 @@ plot(betas2, type = "l", main = "", xlab = "", ylab = "")
180
179
acf(betas2)
181
180
```
182
181
183
-
High autocorrelated draws in probit models not only occur if successes
184
-
or failures are very rare, but also when a covariate (or a linear
185
-
combination of covariates) perfectly allows to predict successes
182
+
High autocorrelation in MCMC draws for probit models not only occur if successesor failures are very rare, but also when a covariate (or a linear combination of covariates) perfectly allows to predict successes
186
183
and/or failures. Complete separation means that both successes and
187
-
failures can be perfectly predicted by a covariate, whereas with
188
-
quasi-complete separation only either successes or failures can be
189
-
predicted perfectly.
184
+
failures can be perfectly predicted by a covariate, whereas quasi-complete separation means that either successes or failures can be predicted perfectly.
190
185
191
186
# Example 8.3
192
187
@@ -202,14 +197,15 @@ y <- rep(c(0,1), c(ns, N - ns))
202
197
table(x,y)
203
198
```
204
199
205
-
We estimate the model parameters and plot the ACF of the draws. Again the
206
-
autocorrelations remain high even for lag 35.
200
+
We estimate the model parameters and plot the ACF of the draws. Again the autocorrelations remain high even for lag 35.
To illustrate quasi-seperation we use the responses as in Example 8.3., but now $x=0$ for all successes and additionally for 100 failures.
219
+
To illustrate quasi-seperation we use the responses as in Example 8.3., but now $x=1$ for all successes and additionally for 100 failures. Hence for $x=1$ always a success is observed, whereas for $x=0$ both successes and failures occur,
plot(betas[, 1], type = "l", main = "", xlab = "", ylab = "")
260
262
acf(betas[, 1])
261
263
plot(betas[, 2], type = "l", main = "", xlab = "", ylab = "")
262
264
acf(betas[, 2])
263
265
```
264
266
265
-
266
-
High autocorrelations typically indicate problems with the sampler. If
267
-
there is complete or quasi-complete separation in the data, the
268
-
likelihood is monotone and the maximum likelihood estiamte does not
269
-
exist. In a Bayesian approach using a flat, improper prior on the
267
+
High autocorrelations typically indicate problems with the sampler. If there is complete or quasi-complete separation in the data, the likelihood is monotone and the maximum likelihood estimate does not exist. In a Bayesian approach using a flat, improper prior on the
270
268
regression effects will result in an improper posterior
271
269
distribution. Hence, a proper prior is required to avoid improper
272
270
posteriors in case of separation.
273
271
274
-
In the examples above we used a proper prior which is rather
275
-
flat. With a more informative prior, the autocorrelations of the draws
272
+
In the examples above we used a very flat but proper prior With a more informative prior, the autocorrelations of the draws
276
273
are lower. This can be seen in the next figure, where the simulated
277
274
data under quasi-separation are re-analyzed with a Normal prior that
0 commit comments