Question

In: Statistics and Probability

Part (A): Using R to show how to decompose the seasonal time series data and then...

Part (A): Using R to show how to decompose the seasonal time series data and then subtract that effect from the data.

This assignment is to practice using R to learn how to decompose seasonal time series data. Please use the data set in “A Little of R for Time Series” Section 2.4 (p.20):

• > births <-scan("http://robjhyndman.com/tsdldata/data/nybirths.dat")

> birthstimeseries <-  ts(births, frequency=12, start=c(1946,1))

> birthstimeseries

• Then you can use the following to show how you can decompose the time series and then subtract the seasonal effect from the data:

• Use decompose() function for displaying decomposing seasonal time series as well as seasonally adjusting to subtract the seasonal components from the time series and give some insights to it.

Solutions

Expert Solution

The detailed code for the question is given below


Related Solutions

4. Time-series data contain both trend and seasonal variations. Use an example of quarterly data to...
4. Time-series data contain both trend and seasonal variations. Use an example of quarterly data to explain how you would measure the trend and how you would measure the seasonal variation please TYPE your answer and dont finish this question without writing a full page also do not copy the other answers on this site for this question, they are in complete
With the gasoline time series data from the given table, show the exponential smoothing forecasts using...
With the gasoline time series data from the given table, show the exponential smoothing forecasts using α = 0.1. week 1 2 3 4    5 6 7 8 9 10 11 12 sales 17 21 19 23 18 16 20 18 22 20 15 22   a. Applying the MSE measure of forecast accuracy, would you prefer a smoothing constant of α = 0.1 or α = 0.2 for the gasoline sales time series? Do not round your interim computations and...
1. Using R, construct time series (line) plots for both stock prices and return series. R...
1. Using R, construct time series (line) plots for both stock prices and return series. R functions ts.plot or plot can create the plot. Describe the patterns and compare the plots. 2. Based on the return series, can we claim that the mean Amazon return series is higher than that of Google? a. What would be an appropriate test of the claim above? Explain. b. Write the null and alternative hypotheses. c. Using R, perform the test. d. Write the...
Describe the following terms a) stationary time series b) seasonal time series c) box test (...
Describe the following terms a) stationary time series b) seasonal time series c) box test ( clearly define your notation and the null and alternative hypotheses)
Using R to show how classification and clustering, can be applied to classify or cluster data....
Using R to show how classification and clustering, can be applied to classify or cluster data. Make sure to submit your data, results, plots, and your interpretation. a) Please use any dataset to conduct a classification analysis (logistic regression, random forest, or decision tree – better if you apply more than one method and compare) b) Please use any dataset to conduct a clustering analysis (kmeans or hierarchical or random forest – better if you apply more than one method...
A technique used to isolate the trend in a time series is: adjusted factor% seasonal index...
A technique used to isolate the trend in a time series is: adjusted factor% seasonal index correction factor centered moving average seasonal decomposition
There are four components to a time series: secular trend, cyclical variation, seasonal variation, and irregular...
There are four components to a time series: secular trend, cyclical variation, seasonal variation, and irregular variation. Research these components and explain the differences as well.
How do you load a simple data series onto R? For instance, data values that are...
How do you load a simple data series onto R? For instance, data values that are down below: Below are the batting averages of 20 batting champions of the National League: 0.403 0.378 0.320 0.341 0.362 0.334 0.379 0.424 0.326 0.330 0.345 0.354 0.350 0.330 0.376 0.363 0.353 0.351 0.335 0.371 1. Construct a relative frequency histogram for the data. 2. What can you say about the shape of the histogram (modes, symmetry, outliers)?
Please show the calculation process in Excel, thank you With the gasoline time series data from...
Please show the calculation process in Excel, thank you With the gasoline time series data from Table 8.1, show the exponential smoothing forecasts using α=0.1. Applying the MSE measure of forecast accuracy, would you prefer a smoothing constant of α=0.1 or α=0.2 for the gasoline sales time series? Are the results the same if you apply MAE as the measure of accuracy? What are the results if MAPE is used? Week Sales (1000s of gallons) 1 17 2 21 3...
Consider the following time series data.
Consider the following time series data. Week123456Value181516131716a. Choose the correct time series plot.What type of pattern exists in the data? b. Develop a three-week moving average for this time series. Compute MSE and a forecast for week 7. Round your answers to two decimal places. WeekTime Series ValueForecast118215316413517616 MSE: The forecast for week 7: c. Use α = 0.2 to compute the exponential smoothing values for the time series. Compute MSE and a forecast for week 7. Round your answers to two decimal places. WeekTime Series ValueForecast118215316413517616MSE: The...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT