AndersonB_Sec2_Lab1

AndersonB_Sec2_Lab1 - Beverly Anderson Section 2, Mon 1:25...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Beverly Anderson Section 2, Mon 1:25 30 August 2010 1. a. > leaves = read.table("leaves.txt") 2. a. > head(leaves) V1 1 61 2 75 3 79 4 68 5 79 6 66 b. > mean(leaves) V1 67.97727 c. > var(leaves) V1 V1 188.2056 d. > sqrt(var(leaves)) V1 V1 13.71880 e. > mean(leaves$V1) [1] 67.97727 3. a. hist(leaves$V1) Histogram of leaves$V1 leaves$V1 Frequency 20 40 60 80 100 0 5 10 15 20 25 30 35 b. > median(leaves$V1) [1] 68 c. The mean leaf length is 67.97727mm, though the median leaf length is 68mm. Since the histogram is in a “bell-curve” form, it is expected that the mean and median would be very close. This is because there are about as many leaves longer than the average length as there are leaves that are shorter than the average. Further, the bell-curve shape tells us that the distribution is similar on both the longer end and shorter end. d. About 99% of the data should fall within the range of the mean – 3*standard deviation and the mean + 3*standard deviation. The standard deviation is 13.71880mm,
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

AndersonB_Sec2_Lab1 - Beverly Anderson Section 2, Mon 1:25...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online