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, 42. Suppose the following data comes from a study on plant growth (mm) where 2 plants are ineach pot, 3 pots are within each plot and 2 plots are given one of two fertilizer treatments.Treatment 1Treatment 2Plot 1Pot 1Pot 2Pot 3Pot 1Pot 2Pot 314.613.216.47.16.810.015.212.912.27.76.08.3Plot 2Pot 1Pot 2Pot 3Pot 1Pot 2Pot 318.522.224.79.76.810.416.718.820.38.89.011.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 usebin sizes of 2 mm.3. Write a function that uses the short cut formula to calculate the sample variance of a datavector. 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 astudy examining the time teenagers spend watching tv. A random sample ofn= 100 eighth
Image of page 1
Image of page 2

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture