Statistics and Statistical Programming (Winter 2017)/Problem Set: Week 2: Difference between revisions

From CommunityData
(added WIP and NOTOC)
Line 4: Line 4:
== Programming Challenges ==
== Programming Challenges ==


Because this is our first week, there are no real programming challenges this week. What we have instead are some setup tasks you'll need to do before class.
:'''PC1.''' Follow, and then download, [https://github.com/makoshark/uwcom521-assignments my github repsitory for the class assignments].
 
:'''PC2.''' Once you have it, find the RData file in the subdirectory "week_2" with your name associated with it. Load that file into R. It should load up one variable. Find that variable.
:'''PC1.''' Download and install R — You can do that from [https://cran.rstudio.com/ this webpage] where you will have to choose based on your operating system.
:'''PC3.'''  Once you've found the variable, compute and present a series of statistics on it that you should already be familiar with. Use functions to compute the mean, median, variance, standard deviation, and interquartile range?
:'''PC2.''' Download and install RStudio — Download and run the "installer" from the "Installers" sections of [https://www.rstudio.com/products/rstudio/download/ the RStudio download page]. You'll want to choose the one that is appropriate for your operating systems (e.g., Windows, Mac OSX, or GNU/Linux).
:'''PC4.''' Although these basic functions all exist, many things you will want to do in the future won't have functions. Write R code to compute these three statistics by hand: mean, median, and mode. It's OK if getting the answer involves some eyeballing or counting this by hand. But do get the answer and be ready to walk us through how you did it.
:'''PC3.''' Get setup with git and Github — You should do two things before class.
:'''PC5.''' Create a number of visualizations of your dataset: at the very least, create a boxplot, histogram, and density plot.
:* First, [https://github.com/join?source=button-pricing create an account on Github.com]
:'''PC6.''' Some of you will have negative numbers. Whoops! Those were not supposed to be there. Recode all negative numbers as missing in your dataset. Now create compute a new mean and standard deviation. How does it change?
:* Installing [https://desktop.github.com/ GitHub Desktop] which includes versions for Windows and Mac. If you use Linux, contact me. Completing the setup will involve logging in your Github account.
:'''PC7.''' Log transform your dataset. Create new histograms, boxplots, and means, median, and standard deviations.


== Statistical Questions ==
== Statistical Questions ==
=== Exercises from OpenIntro §2 ===
=== Exercises from OpenIntro §2 ===
=== Empirical Paper ===
=== Empirical Paper ===

Revision as of 23:07, 3 January 2017

This page or section is currently a work in progress and its contents will change, perhaps significantly, before it is finalized. Once it has finalized, this notice will be removed.


Programming Challenges

PC1. Follow, and then download, my github repsitory for the class assignments.
PC2. Once you have it, find the RData file in the subdirectory "week_2" with your name associated with it. Load that file into R. It should load up one variable. Find that variable.
PC3. Once you've found the variable, compute and present a series of statistics on it that you should already be familiar with. Use functions to compute the mean, median, variance, standard deviation, and interquartile range?
PC4. Although these basic functions all exist, many things you will want to do in the future won't have functions. Write R code to compute these three statistics by hand: mean, median, and mode. It's OK if getting the answer involves some eyeballing or counting this by hand. But do get the answer and be ready to walk us through how you did it.
PC5. Create a number of visualizations of your dataset: at the very least, create a boxplot, histogram, and density plot.
PC6. Some of you will have negative numbers. Whoops! Those were not supposed to be there. Recode all negative numbers as missing in your dataset. Now create compute a new mean and standard deviation. How does it change?
PC7. Log transform your dataset. Create new histograms, boxplots, and means, median, and standard deviations.

Statistical Questions

Exercises from OpenIntro §2

Empirical Paper