Part 1 Assignment Statistics
Part 1 Assignment Statistics
Assignment #3
(Due on: Dec 15, 2019 at mid-night)
Problem 1
Implement a function that takes a vector of numbers as an input and outputs the values
needed to plot the boxplot. Specifically, the function should output the 1st quartile (q1), 2nd
quartile (q2), 3rd quartile (q3), the inter-quartile range, a vector containing the outlier
points and the vector containing the extreme outlier points as defined in the lecture. Apply
your function to the data given in the file Data1.txt.
Deliverables:
• Your code.
• The values of q1, q2, q3, inter-quartile range, outlier points, and extreme outlier
points.
Problem 2
Implement a function to verify the Central Limit Theorem using throwing a die example.
The steps of the function should be as follows:
1. Simulate the outcome of throwing a die 1000 times: Use a population of discrete
values (1, 2, 3, 4, 5, 6) with uniform distribution.
3. Simulate the outcome of throwing TWO dice 1000 times: by generating two samples
as in step 1.
4. Calculate the average of the resulting values of the two dice in each time.
7. Simulate the outcome of throwing TEN dice 1000 times: by generating ten samples
as in step 1.
8. Calculate the average of the resulting values of the ten dice in each time.
1/2