Your Perfect Assignment is Just a Click Away
We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

Coffee is the world’s second largest legal export commodity (after oil) and is the second largest source of foreign exchange for developing nations

Coffee is the world’s second largest legal export commodity (after oil) and is the second largest source of foreign exchange for developing nations

R Homework for Chapter 20

Coffee Prices 2013

Coffee is the world’s second largest legal export commodity (after oil) and is the second largest source of foreign exchange for developing nations.The Unite States consumes about one-fifth of the world’s coffee. The International Coffee Organization (ICO) computes a coffee price index using Colombian, Brazilian, and a mixture of other coffee data. Data are provided for the daily ICO price index (in US dollars) from January 2013 to April 2013.

You can find the data file on Blackboard. Download it and put it in the same folder as your R program file. Then, use the following command to read the data coffee <- read.table('Coffee_prices_2013.txt', sep = 't', header = TRUE) 1. Make a time series plot (not scatterplot) of price against time. Use “Coffee Price” and “Time” as label for y-axis and x-axis, respectively. Which time series components are evident from the plot? 2. Smooth the coffee price series using simple moving averages (SMA) of length 2 and 8. Add the two smoothed curves (one in red and one in green) to the plot made in (a) and compare them. 3. Apply single exponential smoothing (SES) to the coffee price series with weights ? = 0.8 and ? = 0.2, respectively. Add the two smoothed curves (one in orange and one in purple) to the plot made in (a) and compare them. 4. Find autocorrelation between the original time series and each of the first 5 lags. Then, fit an autoregressive model with the lags whose autocorrelations are greater than 0.8. Write down the fitted model and add the smoothed curve in blue to the plot made in (a). Which lag does the model depend on most? Why? 5. Suppose we know that the next value in the series was, in fact, 138.90. Compute the corresponding absolute percentage error (APE) for each of the models you have fitted before. Which model gives us the best prediction?

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: I'm Homework Free only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by I'm Homework Free are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. I'm Homework Free is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At I'm Homework Free, we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.