EC031-S26
Important: Be neat or type. You can download this problem set as a PDF, Word document, or Markdown file.
Note: The problems may differ based on the edition of the textbook you have.
ASW 4.22
Solution
ASW 4.41
Solution
\(S_1=\) successful, \(S_2=\) not successful, and \(B=\) request received for additional information. a. \(P\left(\mathrm{~S}_1\right)=.50\) b. \(\underline{P}\left(\mathrm{~B} \mid \mathrm{S}_1\right)=.75\) c. \(P(\mathrm{~S}, \mid \mathrm{B})=\frac{(.50)(.75)}{(.50)(.75)+(.50)(.40)}=\frac{.375}{.575}=.65\)
Note
Problems 3-5 have now been added to PS3.
ASW 5.21
Solution
Middle Managers: \(\sigma^2=\Sigma(x-\mu)^2 f(x)=1.13\) d. Executives: \(\sigma=1.12\)
Middle Managers: \(\sigma=1.07\) e. The senior executives have a higher average score: 4.05 versus 3.84 for the middle managers. The executives also have a slightly higher standard deviation.
ASW 4.48
Solution
Because \(P(F) \neq \mathrm{P}(A \mid F)\), events \(A\) and \(F\) are not independent.
ASW 3.62
ASW 3.66
ASW 4.55
ASW 3.39
ASW 4.48
Important
Make sure to submit the do-file along with the rest of your problem set.
Many datasets that you will encounter will be publicly available. For this question you will download a “harmonized” dataset from the World Bank Living Standards and Measurement Surveys (LSMS). This dataset provides a standardized survey across many less-developed economies. “Harmonization” means that the data have been cleaned and standardized across countries, as in many cases, variable names or coding schemes may differ across countries.
LSMS_ISA_harmonised_dataset.dta. Save this file in your Econ 31 folder. Unzip the file into another folder. This new folder should contain four files with .dta extensions:Individual_dataset.dta
Plotcrop_dataset.dta
Plot_dataset.dta
Household_dataset.dta
These four files have are connected by different id variables, whether it be a unique individual ID, a household ID, country ID or some other characteristic.
Save it as ps2.do. Run the do-file. The dataset with all its variables should now be loaded into Stata.
Now add some commands to the bottom of your .do file.
describe. How many observations are there? How many variables?Take a look at the HDDS variable. HDDS is a measure of household diversity, which is an important component for measuring food security. For the following questions write your answers as comments in the do-file.
Construct a histogram of the HDDS variable, by urban and rural. Use the histogram command with the by option. What do you see?
Create a variable with the egen command that is equal to 1 if HDDS is below the mean and 0 otherwise. Call this variable low_hdds:
Use tabulate to give a table of the number of households with low HDDS by urban and rural. What is the probability of having a low HDDS and being in an urban area?
What is the probability of having a low HDDS, conditional on being in an urban area?
Solution
\[ 13,516/143,306=0.0944 \]
\[ P(\text{low HDDS} \mid \text{urban}) = \frac{P(\text{low HDDS and urban})}{P(\text{urban})} = \frac{\frac{13,516}{143,306}}{\frac{44,930}{143,306}} = \frac{13,516}{44,930} = 0.3008 \]