程序代写代做 STA 304H1F-1003H Winter 2020

STA 304H1F-1003H Winter 2020
Assignment 1
Question 2. (12 marks)
Consider all the digits of your U of T student number as a population. Use R (or Rstudio) to do the following parts.
(a) Use a Histogram to visually describe the population digits. (2 marks)
(b) Find the proportion of 0¡¯s and 1¡¯s. (2 marks)
(c) Draw a random sample of 4 digits with replacement and estimate the proportion of 1¡¯s. (2 marks)
(d) Generate 1000 random samples of 4 digits with replacement from the population of digits. Plot the
distribution of the sample proportion of 1¡¯s using a Histogram.
(e) Draw a random sample of 4 digits without replacement and redo (c)
(f) Generate 1000 random samples of 4 digits without replacement and redo (d).
(2 marks) (2 marks)
(2 marks)
1