Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit



MATH36031 Project 3

 

For this project you need will need to download the fruitandvegprices.csv file on Blackboard, and it will located in the Projects folder in the Project 3 section. This is a very large datafile with almost 10000 entries, so do not try print the file!  The first few lines of the file are as shown in figure 1.  The category denotes the different categories of products listed.  The

 

 Figure 1: The first few lines of the fruitandveg.csv file.

item header shows the type of product.  For instance in figure 1 the item is apples.  The variety header shows the particular varieties of the item product (for example in figure 1 the different varieties of apples are shown).  The date shows the date, the price column shows the cost in pounds sterling for a unit of the product recorded on that date. The unit header indicates the precise unit (such as kilograms in the above sample).

You need to process the file using MATLAB to answer the following questions:

 

1. From the data produce a list of all the distinct entries under the item header and the all the distinct varieties for the items apples, pears, carrots and cabbage.

2. The price of the products fluctuate a lot during the year. For each variety of the item apples find the mean of that variety.

3. Produce a box plot comparing the variation of the prices of the different varieties of apples and comment on your results.

4. Taking the time series for the apples variety with the smallest mean, analyze the time series and comment on any seasonal trends.

5. Use the corrcoef function to calculate the correlation coefficients between the fluctua- tion of carrot prices and apple prices.  (You may choose the same time series for the apple variety as in the last question).

 

Outputs required You are required to submit a report (maximum 8 pages including any appendices) in pdf form via the submission box on Blackboard. Additionally you need to submit your m-files used for the MATLAB codes in answering the above questions.

Additional information and guidelines

 

1. All coding must be done in MATLAB.

2. Keep to the page length not exceeding eight A4 pages, and there is no need for a title page or abstract for a relative short report like this.  Font sizes should be no smaller than 11 point, and page margins no smaller than 2cm.

3. List the complete code of the whole function at the end of each question, or in an appendix.   Make your source code more readable,  by keeping the indentation and stylistic features,  and can be copied from your submitted.   Your published results should be reproducable from the code attached.

4. Have a look at the generic rubric about how your report will be marked, and also the intended learning outcomes about what you are expected to achieve in the end.

5. Avoid copying (too many) sentences directly from the project description, and try to restate the problem with your own words or examples if possible.

6. You may use your report in the future as evidences of written work, so take it seriously.

7. Your target audience is a fellow student on your course: explain the questions so that the report can be understood without this project description and your approach could be implemented in another computer language like Python. The report should indicate to the reader how well you understand the problem and the approach you took. Your goal will be to communicate your solutions to another person rather than to show you’ve completed the assignment.

8. Balance the explanation of the approach and the comments in the code. Avoid under- commenting and over-commenting.

9. Aim for precision and clarity of writing.

10.  Since there is no final exam, you are advised to spend at least 15 hours on each project, with additional self-study if you are less experience with computer programming. Re- member for a 10 credit module like this one, you are expect to spend 100 = 10     10 hours in total (including lectures, labs, self-study and coursework).

11. Please do not put any personal information on the report, only your student ID number.

12. The submission for each project will be open two weeks before the deadline.  Only your last submission will be marked, and anything submitted after the deadline will be treated late and any penalty will be applied by the Teaching and Learning Office in June according to the Undergraduate Student Handbook.