100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

Georgia tech ISYE 6501 OAN - Homework Week 4, Questions and answers, Graded A+, 2022/2023

Rating
-
Sold
-
Pages
19
Grade
A+
Uploaded on
25-04-2023
Written in
2022/2023

Georgia tech ISYE 6501 OAN - Homework Week 4, Questions and answers, Graded A+, 2022/2023 Document Content and Description Below ISYE 6501 OAN - Homework Week 4 Contents 1 Question 7.1 1 2 Question 7.2 2 2.1 Set up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2.2 Load and examine the data for this assignment . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2.3 Convert temps data to vector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2.4 Convert temps data to timeseries object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2.5 Test Model 1: single exponential smoothing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2.6 Test Model 2: double exponential smoothing . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2.7 Test Model 3: triple exponential smoothing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.8 Test Model 4: triple exponential smoothing with multiplicative . . . . . . . . . . . . . . . . . 9 2.9 Compare additive vs multiplicative triple exponential smoothing models . . . . . . . . . . . . 11 2.10 Extract seasonality from the models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.11 QCC on seasonality to determine if summer is later . . . . . . . . . . . . . . . . . . . . . . . . 14 2.12 R Cusum - No adjustments for T or C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.13 R Cusum - T equal 10, C = 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3 Testing different values of T and C using R cusum 16 3.1 R Cusum val = .925, = .374 . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.2 R Cusum val = 1.5, = .25 . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.3 R Cusum val = 1.96, = .3 . . . . . . . . . . . . . . . . . . . . . . . . . . 18 1 Question 7.1 1.0.1 Describe a situation or problem from your job, everyday life, current events, etc., for which exponential smoothing would be appropriate. What data would you need? Would you expect the value of ff (the first smoothing parameter) to be closer to 0 or 1, and why? When I worked for the commuter rail system in Illinois (known as Metra) the organization kept detailed records on something known as “on-time” performance. On-time performance is a measurement of how often commuter trains arrive on-time at their destination. With over a thousand daily commuter rail trips, each trip consisting of 1 or more stops, there is a lot of data. The state agency responsible for operating the commuter trains uses the data to estimate on-time performance and adjust schedules for trains on a daily basis. Forecasting using expotential smoothing would likely increase the accuracy of on-time performance and may reveal weekly or seasonal trends, or day-part trends, that are hidden in the data. Valuable data would include date, time and on-time performance - likely measured as a variance from the planned arrival at train stations. I believe the first smoothing factor would be closer to 0 because I would expect more randomness in the data due to the large number of random events that can occur - anything from equipment issues or failures to passenger or public issues - that can impact on-time performance. 12 Question 7.2 2.0.1 Using the 20 years of daily high temperature data for Atlanta (July through October) from Question 6.2 (file ), build and use an exponential smoothing model to help make a judgment of whether the unofficial end of summer has gotten later over the 20 years. (Part of the point of this assignment is for you to think about how you might use exponential smoothing to answer this question. Feel free to combine it with other models if you’d like to. There’s certainly more than one reasonable approach.) 2.0.2 Note: in R, you can use either HoltWinters (simpler to use) or the smooth package’s es function (harder to use, but more general). If you use es, the Holt-Winters model uses model=”AAM” in the function call (the first and second constants are used “A”dditively, and the third (seasonality) is used “M”ultiplicatively; the documentation doesn’t make that clear). 2.1 Set up # Clear the enviroment rm(list = ls()) # Set a working directory for this particular project setwd("~/OneDrive/GATechMS/ISYE6501/Week4") # Set a seed in case we work with any random number generators (52) # Load the libraries we need for this analysis library(qcc) ## Package 'qcc' version 2.7 ## Type 'citation("qcc")' for citing this R package in publications. 2.2 Load and examine the data for this assignment # Load the data from the file, name is <- ("", header = TRUE, stringsAsFactors = FALSE) 2.3 Convert temps data to vector #Convert to vector data, <-r(unlist([2:21])) 2.4 Convert temps data to timeseries object #convert to time series <-ts(, start=1996, frequency = 123) 22.5 Test Model 1: single exponential smoothing # Data appears like triple expontneial smoothing # Test models #model1 - single expotential smoothing model1<-HoltWinters(, beta=FALSE, gamma=FALSE) model1 ## Holt-Winters exponential smoothing without trend and without seasonal component. ## ## Call: ## HoltWinters(x = , beta = FALSE, gamma = FALSE) ## ## Smoothing parameters: ## alpha: 0. ## beta : FALSE ## gamma: FALSE ## ## Coefficients: ## [,1] ## a 63.30952 plot(model1) Holt−Winters filtering Time Observed / Fitted 100 plot(model1$fitted) 350 70 90 xhat 50 70 90 level Time model1$fitted #alpha smoothing is . - close 0 more randomness, close 1 less randomness # test by changing alpha - .01 and view model line, more smoothing applied 2.6 Test Model 2: double exponential smoothing #model2 - double expoentiatl smoothing # st=ct model2<-HoltWinters(, gamma=FALSE) model2 ## Holt-Winters exponential smoothing with trend and without seasonal component. ## ## Call: ## HoltWinters(x = , gamma = FALSE) ## ## Smoothing parameters: ## alpha: 0. ## beta : 0. ## gamma: FALSE ## ## Coefficients: ## [,1] ## a 63. ## b -0. 4plot(model2) Holt−Winters filtering Time Observed / Fitted 100 plot(model2$fitted) 50 70 90 xhat 50 70 90 level −1.0 −0.6 −0.2 trend Time model2$fitted 52.7 Test Model 3: triple exponential smoothing #model3 - triple exponential smoothing model3<-HoltWinters() model3 ## Holt-Winters exponential smoothing with trend and additive seasonal component. ## ## Call: ## HoltWinters(x = ) ## ## Smoothing parameters: ## alpha: 0. ## beta : 0 ## gamma: 0. ## ## Coefficients: ## [,1] ## a 71. ## b -0. ## s1 18. ## s2 17. ## s3 12. ## s4 13. ## s5 12. ## s6 11. ## s7 10. ## s8 10. ## s9 8. ## s10 5. ## s11 3. ## s12 4. ## s13 2. ## s14 2. ## s15 1. ## s16 2. ## s17 6. ## s18 5. ## s19 7. ## s20 6. ## s21 9. ## s22 9. ## s23 8. ## s24 8. ## s25 7. ## s26 6. ## s27 6. ## s28 6. ## s29 4. ## s30 6. ## s31 4. ## s32 4. ## s33 7. ## s34 6. 6## s35 4. ## s36 3. ## s37 2. ## s38 2. ## s39 3. ## s40 3. ## s41 2. ## s42 0. ## s43 -0. ## s44 -1. ## s45 -1. ## s46 -2. ## s47 -0. ## s48 1. ## s49 5. ## s50 6. ## s51 7. ## s52 8. ## s53 8. ## s54 4. ## s55 1. ## s56 -1. ## s57 1. ## s58 1. ## s59 0. ## s60 1. ## s61 -0. ## s62 5. ## s63 5. ## s64 4. ## s65 3. ## s66 -0. ## s67 0. ## s68 0. ## s69 1. ## s70 0. ## s71 2. ## s72 2. ## s73 4. ## s74 2. ## s75 1. ## s76 1. ## s77 2. ## s78 2. ## s79 0. ## s80 -1. ## s81 0. ## s82 0. ## s83 -3. ## s84 -1. ## s85 -1. ## s86 -5. ## s87 -5. ## s88 -2. 7## s89 -2. ## s90 -3. ## s91 -4. ## s92 -2. ## s93 -7. ## s94 -8. ## s95 -8. ## s96 -7. ## s97 -5. ## s98 -5. ## s99 -8. ## s100 -11. ## s101 -13. ## s102 -16. ## s103 -15. ## s104 -13. ## s105 -12. ## s106 -16. ## s107 -15. ## s108 -13. ## s109 -11. ## s110 -12. ## s111 -12. ## s112 -9. ## s113 -5. ## s114 -6. ## s115 -8. ## s116 -10. ## s117 -13. ## s118 -10. ## s119 -12. ## s120 -9. ## s121 -12. ## s122 -9. ## s123 -7. plot(m

Show more Read less
Institution
ISYE 6501
Course
ISYE 6501










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
ISYE 6501
Course
ISYE 6501

Document information

Uploaded on
April 25, 2023
Number of pages
19
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

  • questions and answers

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Savior NCSU
View profile
Follow You need to be logged in order to follow users or courses
Sold
93
Member since
2 year
Number of followers
70
Documents
3434
Last sold
1 month ago

3.5

25 reviews

5
9
4
7
3
3
2
0
1
6

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions