MTH205 Introduction to Statistical Methods 2Matlab

统计方法作业:数据测试与分析

Java Python MTH205 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

MTH205 Introduction to Statistical Methods Assignment 2Matlab

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         

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值