Editing Statistics and Statistical Programming (Spring 2019)/Problem Set: Week 5

From CommunityData

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 13: Line 13:
: '''PC4.''' Let's look beyond the mean. Compare the distribution from your sample of <code>x</code> to the true population of <code>x</code>. Draw histograms and compute other descriptive and summary statistics. What do you notice? Be prepared to discuss and explain any differences.
: '''PC4.''' Let's look beyond the mean. Compare the distribution from your sample of <code>x</code> to the true population of <code>x</code>. Draw histograms and compute other descriptive and summary statistics. What do you notice? Be prepared to discuss and explain any differences.
: '''PC5.''' Calculate the conditional mean of <code>x</code> for each of the groups in the population and the standard deviation of this distribution of conditional means. Compare this standard deviation to the standard error of the mean you calculated in PC2 above. Explain the relationship between these values.
: '''PC5.''' Calculate the conditional mean of <code>x</code> for each of the groups in the population and the standard deviation of this distribution of conditional means. Compare this standard deviation to the standard error of the mean you calculated in PC2 above. Explain the relationship between these values.
: '''PC6.''' I want you to run a simple simulation that demonstrates a fundamental insight of statistics. Please see the R lecture materials from Week 4 for ideas about how to do this (but note that there are some differences between that example and this programming challenge).
: '''PC6.''' I want you to run a simple simulation that demonstrates a fundamental insight of statistics. Please see the R lecture materials from last week for ideas about how to do this (but note that there are some differences between that example and this programming challenge).
:* (a) Create a vector of 10,000 randomly generated numbers that are uniformly distributed between 0 and 9.
:* (a) Create a vector of 10,000 randomly generated numbers that are uniformly distributed between 0 and 9.
:* (b) Calculate the mean of that vector. Draw a histogram of the distribution.
:* (b) Calculate the mean of that vector. Draw a histogram of the distribution.
Please note that all contributions to CommunityData are considered to be released under the Attribution-Share Alike 3.0 Unported (see CommunityData:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)