Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In stata, please write code that will do the following: a b C . (5 points) Set number of observations in your data set to
In stata, please write code that will do the following:
a b C . (5 points) Set number of observations in your data set to 10 and number of samples to 500. . (5 points) Let X be a discrete RV and suppose in the population it can take values 10, 20, 30, 40, and 50 with equal probabilities i.e. P(X 10) P(X 20) P(X 30) P(X 40) P(X 50) .2 Get a random sample of size 10 from the population described. Do it 500 times. . {5 points) For each sample you get above (500 samples total) calculate the sample mean and sample variance. . {5 points) How does the distribution of sample mean look like? Draw a histogram. What about the distribution of sample variance? Remember we are looking at the values of sample means and sample variances over 500 samples. . {5 points) Follow the same steps above for sample sizes 50, 100, 500, and number of samples 50,100, 500. Interpret your results. Conceptually, sample variance and variance of sample mean are two different things. Make sure you understand this. What happens to sample variance as sample size gets larger? What happens to the variance of sample mean as sample size gets larger? CommentStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started