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.
using the data below create a time-phased budget for the project. Show how much daily and...
using the data below create a time-phased budget for the project. Show how much daily and cumulative costs of a project is, just as monthly and cumulative costs are shown in figure 10. WBS Activity Intermediate Predecessor Duration in Weeks Resource Hourly cost Hours per week 1 Operational definition 1.1 Research literature 3 Becky $35 30 1.2 Identify and define terms 1.1 1 Ann $60 30 1.3 Obtain approval of definition 1.2 2 Clive $50 30 2 Target selection 2.1...
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...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT