R语言代写

Task 1
Calculate the mean and standard deviation for PM10 and PM2.5 for both sites: calculate the mean and standard deviation for the entire year first of all, and then for each quarter. Present these values in a simple table.
For the air pollution data, how well do the annual parameters summarise the datasets? Do you see differences between the four quarters? If so, how might these be explained? [5 lines]

Task 2
Produce two time-series plots for Camden Kerbside, one for PM10 and a second for PM2.5. Make sure that you label the x-axis with the date, and the y axis with the name of the variable and the units of measurement.
Comment briefly on the variations in the variable. How similar are the time series for the two variables? [5 lines]

Task 3
You will now investigate further any differences or similarities between the two Camden sites, using the same variable (i.e. those data plotted as a time series above).
First, plot the data for the two sites on a bivariate scatter plot, clearly noting which axis represents which site by appropriate labelling. Then fit a linear regression line through the dataset. Give the regression equation for the regression line and calculate the correlation coefficient between the two variables.
Comment critically on the findings [5 lines]

Task 4
You will now investigate the relationship between the two variables (PM10 and PM2.5) for one of the sites. For either Camden Kerbside or London Bloomsbury, plot PM10 and PM2.5 on a bivariate scatter plot, clearly noting which axis represents which variable by appropriate labelling and indicating which site you have chosen in the plot title. Then fit a linear regression line through the dataset. Give the regression equation for the regression line and calculate the correlation coefficient between the two variables.
Comment critically on the findings [5 lines]

You should hand in the graphs, results of statistical tests and answers to questions, as noted above, in a single document that has 2 cm margins all round and does not exceed 2 A4 pages in length. Graphs and tables should be appropriately titled, labelled and scaled: they should be large enough to be legible but not excessively large. Answers to the questions should be in minimum 11pt Times or Arial and should adhere to the line limits stated above. Any text that exceeds these limits will be disregarded and not marked.