Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Statistics-1-R.md #58

Merged
merged 3 commits into from
Jun 15, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions exercises/Statistics-1-R.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
layout: exercise
title: Statistics 1
language: R
---

This is a follow up to the [Graphing 1]({{ site.baseurl }}/exercises/graphing-1-R).

We've graphed the relationship between adult size and new born size in
mammals and now it's time to analyze the relationship statistically.

1. Do a regression where x is log10(adult mass) and y is log10(newborn mass)
2. Print the summary statistics for this regression
3. Make a graph that shows both the data points and the regression line through
those points. Label the axes.

*Optional: If you want, plot a histogram of the residuals of the regression to
make sure that they are roughly normally distributed (you can do this with just
a single line of code)*