Asn1.pdf - Stat 359 Assignment 1 1 Reading Chapters 1 2 3 4 2 Suppose the following data comes from a study on plant growth(mm where 2 plants are in

Asn1.pdf - Stat 359 Assignment 1 1 Reading Chapters 1 2 3 4...

This preview shows page 1 - 2 out of 2 pages.

Stat 359 Assignment 1 1. Reading: Chapters 1, 2, 3, 4 2. Suppose the following data comes from a study on plant growth (mm) where 2 plants are in each pot, 3 pots are within each plot and 2 plots are given one of two fertilizer treatments. Treatment 1 Treatment 2 Plot 1 Pot 1 Pot 2 Pot 3 Pot 1 Pot 2 Pot 3 14.6 13.2 16.4 7.1 6.8 10.0 15.2 12.9 12.2 7.7 6.0 8.3 Plot 2 Pot 1 Pot 2 Pot 3 Pot 1 Pot 2 Pot 3 18.5 22.2 24.7 9.7 6.8 10.4 16.7 18.8 20.3 8.8 9.0 11.3 (a) Arrange the data into a dataframe so that it can be analysed. Print out this dataframe. (b) Sort the data by plant growth. (c) Calculate the mean, and standard deviation of the data. (d) Plot the data using a histogram (R function hist()). Clearly label the axis, title and use bin sizes of 2 mm. 3. Write a function that uses the short cut formula to calculate the sample variance of a data vector. Use the vector y=(11,11,10,8,11,3,15,11,7,6) as your test vector. 4. On the course webpage you will find a dataset with filename ‘tv.txt’. The data arise from a study examining the time teenagers spend watching tv. A random sample of n = 100 eighth
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read both pages?

  • Fall '15
  • FAROUKNATHOO

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors