” MATH2392语言 写作、 辅导R程序、R编程 写作MATH2392 Practice of AnalyticsAssignment 4Due date: Friday, 23 October, 20201. The data file satisfaction.csv (located on Canvas – Assignment 4)recoded satisfaction score for two flights. This data has been collectedfrom different group of passages. Complete the following tasks using R.a. Read the data set into R. Write a simple code to compute the mean ofsatisfaction score for each flight.b. Create a comparison boxplot for the score of two flights.c. Perform the hypothesis test for the satisfaction score of the two flights.Does the sample provide enough evidence to support the claim that themean score satisfaction of flight 1 is less than the mean scoresatisfaction of flight 2?d. Extract p-value from your output results. Base on the p-value, makesimple conclusion about your test. (ie., whether or not the nullhypothesis should be rejected. The null hypothesis in this problem is:mean score satisfaction of flight 1 is equal to the mean scoresatisfaction of flight 2).e. Check whether the assumption of equal variance is valid or not.Copy and Paste the coding and output on your answer sheet.Submit your answer sheet with simple answer to the question where it isrequired.(2 + 1 + 2 + 2 + 1 = 8 marks)2. Researchers would like to know if the variation in the weight that planecarries affect its fuel consumption. The dataset consumption.csv onCanvas – Assignment 4 presents the fuel consumption and the weightthat plane is carrying. Use R to complete the following tasks.a. Read the data set consumption.csv into R. Compute the correlationbetween fuel consumption and weight.b. Create a scatter plot for fuel consumption and weight. Does the plotindicate that there is linear relationship between the fuel consumptionand weight?c. Create the regression model with fuel consumption as dependentvariable and weight as independent variable.d. Check the result by extracting the estimated coefficient, the fittedvalues and residuals;e. Add a line of best-fit to the scatter plot.Copy and Paste the coding and output on your answer sheet.Submit your answer sheet with simple answer to the question where it isrequired.(2 + 1 + +1 + 2 + 1 = 7 marks)如有需要,请加QQ:99515681 或邮箱:99515681@qq.com
“
添加老师微信回复‘’官网 辅导‘’获取专业老师帮助,或点击联系老师1对1在线指导。