@@ -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.
140140141141142-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)$
143143144-(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).
145145146146From expressions {eq}`eq:five` and {eq}`eq:seven` we can deduce that:
147147148-- The MSE of $\hat{\pi}$ decreases as $p$ increasing.
148+- The MSE of $\hat{\pi}$ decreases as $p$ increases.
149149150150151151## Comparing Two Survey Designs
@@ -154,7 +154,7 @@ Let's compare the preceding randomized-response method with a stylized non-rando
154154155155In our non-randomized response method, we suppose that:
156156157-- 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.
159159160160Then 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$$
192192193-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.
194194195-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
196196under different values of $\pi_A$ and $n$:
197197198198```{code-cell} ipython3
@@ -256,7 +256,7 @@ Let's put the code to work for parameter values
256256257257We can generate MSE Ratios theoretically using the above formulas.
258258259-We can also perform a Monte Carlo simulation of the MSE Ratio.
259+We can also perform Monte Carlo simulations of a MSE Ratio.
260260261261```{code-cell} ipython3
262262cp1 = Comparison(0.6, 1000)
@@ -269,7 +269,7 @@ df1_mc = cp1.MCsimulation()
269269df1_mc
270270```
271271272-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.
273273274274We 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
319319320320{doc}`This QuantEcon lecture <util_rand_resp>` describes some alternative randomized response surveys.
321321322-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`.