Skip to content

Commit eb5e1aa

Browse files
Tom's July 17 edits of two lectures
1 parent 2a9a699 commit eb5e1aa

File tree

2 files changed

+99
-69
lines changed

2 files changed

+99
-69
lines changed

lectures/rand_resp.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,13 @@ From the expressions above we can find that:
139139
- When $p$ is $1$ or $0$, the randomized estimate degenerates to an estimator without randomized sampling.
140140
141141
142-
We shall analyze only discuss the situation in which $p \in (\frac{1}{2},1)$
142+
We shall only discuss situations in which $p \in (\frac{1}{2},1)$
143143
144-
(the situation in which $p \in (0,\frac{1}{2})$ is symmetric).
144+
(a situation in which $p \in (0,\frac{1}{2})$ is symmetric).
145145
146146
From expressions {eq}`eq:five` and {eq}`eq:seven` we can deduce that:
147147
148-
- The MSE of $\hat{\pi}$ decreases as $p$ increasing.
148+
- The MSE of $\hat{\pi}$ decreases as $p$ increases.
149149
150150
151151
## Comparing Two Survey Designs
@@ -154,7 +154,7 @@ Let's compare the preceding randomized-response method with a stylized non-rando
154154
155155
In our non-randomized response method, we suppose that:
156156
157-
- Members of Group A tells the truth with probability of $T_a$ while the members of Group B tells the truth with probability of $T_b$
157+
- Members of Group A tells the truth with probability $T_a$ while the members of Group B tells the truth with probability $T_b$
158158
- $Y_i$ is $1$ or $0$ according to whether the sample's $i\text{th}$ member's report is in Group A or not.
159159
160160
Then we can estimate $\pi$ as:
@@ -190,9 +190,9 @@ $$
190190
\text{MSE Ratio}=\frac{\text{Mean Square Error Randomized}}{\text{Mean Square Error Regular}}
191191
$$
192192
193-
We can compute MSE Ratios for different surveys and survey designs associated with different parameter values.
193+
We can compute MSE Ratios for different survey designs associated with different parameter values.
194194
195-
The following Python code computes the objects we want to stare at in order to make comparisons
195+
The following Python code computes objects we want to stare at in order to make comparisons
196196
under different values of $\pi_A$ and $n$:
197197
198198
```{code-cell} ipython3
@@ -256,7 +256,7 @@ Let's put the code to work for parameter values
256256
257257
We can generate MSE Ratios theoretically using the above formulas.
258258
259-
We can also perform a Monte Carlo simulation of the MSE Ratio.
259+
We can also perform Monte Carlo simulations of a MSE Ratio.
260260
261261
```{code-cell} ipython3
262262
cp1 = Comparison(0.6, 1000)
@@ -269,7 +269,7 @@ df1_mc = cp1.MCsimulation()
269269
df1_mc
270270
```
271271
272-
The theoretical calculations do a good job of predicting the Monte Carlo results.
272+
The theoretical calculations do a good job of predicting Monte Carlo results.
273273
274274
We see that in many situations, especially when the bias is not small, the MSE of the randomized-sampling methods is smaller than that of the non-randomized sampling method.
275275
@@ -319,5 +319,5 @@ Evidently, as $n$ increases, the randomized response method does better perform
319319
320320
{doc}`This QuantEcon lecture <util_rand_resp>` describes some alternative randomized response surveys.
321321
322-
That lecture presents the utilitarian analysis of those alternatives conducted by Lars Ljungqvist
322+
That lecture presents a utilitarian analysis of those alternatives conducted by Lars Ljungqvist
323323
{cite}`ljungqvist1993unified`.

0 commit comments

Comments
 (0)