代写MTH205 Introduction to Statistical Methods Assignment 2代做Matlab编程
- 首页 >> WebMTH205 Introduction to Statistical Methods
Assignment 2
1. Please use Matlab to solve all questions. You need to provide your Matlab code and the output. You need also to draw a conclusion or make a comment for each question.
2. You need to convert your answer into a PDF file, and then submit it to
3. You need to complete your submission before 9:00 am, Dec 14.
Q1 For the data in Q1. txt,
(a) Draw a box-plot for the given data. (4 marks)
(b) Conduct a test to determine if the data follows a Poisson distribution, using a significance level of 0.05. Note that the sample size is 100. (8 marks)
(12 marks)
Q2 The data, in Q2.txt, describes the sale prices of properties in four different neighborhoods from the previous month. It is assumed that all the data points are independent.
(a) Assume that all data collected are normally distributed. Use a proper method to test whether the means of sale prices are the same in neighbourhoods A and B. Test with α = 5%. (16 marks)
(b) Choose an appropriate nonparametric test to whether the medians of sale prices are the same in neigh- bourhoods A and B. Test with α = 5%. (8 marks)
(c) Assuming all the collected data follows a normal distribution with the same variance, Use a proper method to test whether the means of sale prices are equal across neighbourhoods A, B, C and D. If the means are different, use a proper way to compare which pairs are different. Test with α = 5%. (16 marks)
(40 marks)
Q3 A hospital is launching a program to improve its services. They are assessing patient satisfaction by collecting feedback from a random sample of 30 recently discharged patients. The data is given below.
Satisfaction |
Severity |
69 |
49 |
78 |
23 |
97 |
45 |
81 |
49 |
42 |
59 |
45 |
61 |
27 |
63 |
89 |
39 |
74 |
45 |
59 |
53 |
54 |
37 |
90 |
31 |
87 |
33 |
99 |
32 |
86 |
34 |
72 |
50 |
84 |
62 |
40 |
72 |
50 |
60 |
52 |
39 |
61 |
42 |
30 |
65 |
55 |
32 |
80 |
43 |
78 |
39 |
30 |
64 |
76 |
38 |
75 |
46 |
60 |
52 |
53 |
38 |
(a) Draw a scatter plot and comment on it. (8 marks)
(b) Find a regression line, and comment on it. (10 marks)
(c) Perform a detailed residual analysis for the model in (b) and comment on it. (30 marks)
(48 marks)