Generate pseudo-random samples of size 50 from a normal distribution (see Problem 2.2 for how to do this in Stata). Construct histograms of the data using 5, 7, and 15 bins. What do you notice? Do the shapes look like a normal distribution?
Problem 2.2
Generate pseudo-random data from a normal distribution using a computer program or statistics package. In Stata, this can be done using the generate command and the function invnorm(uniform()). Now generate a normal Q–Q plot for these data. Do this for several samples of size 10, 50, and 200. How well do the Q–Q plots approximate straight lines? This is valuable practice for judging how well an actual dataset can be expected to approximate a straight line.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here