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 Monte Carlo method underestimates because the likelihood ratio $L(\omega^T) = \prod_{t=1}^T \frac{f(\omega_t)}{g(\omega_t)}$ has a highly skewed distribution under $g$.
252
+
253
+
Most samples from $g$ produce small likelihood ratios, while the true mean requires occasional very large values that are rarely sampled.
254
+
255
+
In our case, since $g(\omega) \to 0$ as $\omega \to 0$ while $f(\omega)$ remains bounded, the Monte Carlo procedure undersamples precisely where the likelihood ratio $\frac{f(\omega)}{g(\omega)}$ is largest.
256
+
257
+
As $T$ increases, this problem worsens exponentially, making standard Monte Carlo increasingly unreliable.
258
+
259
+
Importance sampling with $q = h$ fixes this by sampling more uniformly from regions important to both $f$ and $g$.
260
+
251
261
## Distribution of Sample Mean
252
262
253
263
We next study the bias and efficiency of the Monte Carlo and importance sampling approaches.
Since for each $t$, the decision boundary is the same, the decision boundary can be computed as
1134
1099
1135
1100
```{code-cell} ipython3
@@ -1177,11 +1142,11 @@ plt.tight_layout()
1177
1142
plt.show()
1178
1143
```
1179
1144
1180
-
To the left of the green vertical line $g < f$, so $l_t < 1$; therefore a $w_t$ that falls to the left of the green line is classified as a type $g$ individual.
1145
+
To the left of the green vertical line $g < f$, so $l_t > 1$; therefore a $w_t$ that falls to the left of the green line is classified as a type $f$ individual.
1181
1146
1182
-
* The shaded orange area equals $\beta$ -- the probability of classifying someone as a type $g$ individual when it is really a type $f$ individual.
1147
+
* The shaded red area equals $\beta$ -- the probability of classifying someone as a type $g$ individual when it is really a type $f$ individual.
1183
1148
1184
-
To the right of the green vertical line $g > f$, so $l_t >1 $; therefore a $w_t$ that falls to the right of the green line is classified as a type $f$ individual.
1149
+
To the right of the green vertical line $g > f$, so $l_t < 1$; therefore a $w_t$ that falls to the right of the green line is classified as a type $g$ individual.
1185
1150
1186
1151
* The shaded blue area equals $\alpha$ -- the probability of classifying someone as a type $f$ when it is really a type $g$ individual.
1187
1152
@@ -1213,6 +1178,29 @@ Now we simulate timing protocol 2 and compute the classification error probabili
1213
1178
In the next cell, we also compare the theoretical classification accuracy to the empirical classification accuracy
Now for the competitive equilibrium, notice that if we take $\mu_1 = \frac{1}{\lambda}$ and $\mu_2 = \frac{1}{1-\lambda}$, formula {eq}`eq:allocationce` agrees with formula {eq}`eq:allocationrule1`, and we get from {eq}`eq:priceequation1`
0 commit comments