Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

homework 4 with Correct Answers Georgia Institute Of Technology ISYE 6501

Beoordeling
-
Verkocht
-
Pagina's
48
Cijfer
A+
Geüpload op
11-04-2023
Geschreven in
2022/2023

ISYE 6501 19SP1 HW 4 solution Question 7.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  (the first smoothing parameter) to be closer to 0 or 1, and why? Solution 7.1 Exponential smoothing would be appropriate to be used in forecasting USA Gross domestic product (GDP). The Gross domestic Product (GDP) is the market value of all final goods and services produced within a country in a given period of time. For USA quarterly GDP data, we can download the Federal Reserve website ( I expect the smoothing parameter, alpha, is closer 1 in USA GDP forecasting as the economy of USA. It means that more weight is given to the actual data. As US economy is huge and has many types goods and service produces, the randomness of overall US economy should be less. Question 7.2 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.) 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). Solution 7.2 HoltWinters function is used to generate 4 exponential smoothing models: single, double, triple with additive seasonality and triple with multiplicative seasonality. The results from exponential smoothing models do not support the unofficial end of summer has gotten later over the 20 years. Sample result & chart from Triple exponential smoothing model with multiplicative seasonality. It is observed that there is not trend variation in the temperature data set. ## HoltWinters(x = temp_ts, seasonal = "multiplicative") ## Smoothing parameters: ## alpha: 0. ## beta : 0 ## gamma: 0. ## ## Coefficients: ## [,1] ## a 73. ## b -0. ## s1 1. .. .. Result from Triple exponential smoothing model with multiplicative seasonality is used to generated season data set for later cucum calculation for verify if there is any significant change in temperate over the years (1996 to 2005) Please note that the generated season date set is from 1997 to 2005 only as the very first predicted value (year 1996) is empty. Code of cucum calculation is from previous homework. In the Code, function is used. Various val and parameter values have been used to generate the cusum models to figure out the unofficial summer end-day data set of each year from 1997 to 2005. The cusum models of all these date set do not show significant increases or decreases of summer end day change from 1997 to 2005. Sample year over year summer end day cusum chart Code for homework 7 clear the environment & load data rm(list = ls()) (123) # ---------------------------- Data manipulation ------------------------------------- data - ("", header = TRUE, stringsAsFactors = FALSE) head(data) #convert data into vector temp_vec - r(unlist(data[,2:21])) plot (temp_vec) cat('temp_vec class is', class(temp_vec), 'n') ## temp_vec class is integer temp_ts - ts(temp_vec, start = 1996, frequency = 123)

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

ISYE 6501 19SP1 HW 4 solution


Question 7.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  (the
first smoothing parameter) to be closer to 0 or 1, and why?

Solution 7.1

Exponential smoothing would be appropriate to be used in forecasting USA Gross domestic product
(GDP). The Gross domestic Product (GDP) is the market value of all final goods and services produced
within a country in a given period of time. For USA quarterly GDP data, we can download the Federal
Reserve website (​https://fred.stlouisfed.org/series/GDP​).

I expect the smoothing parameter, alpha, is closer 1 in USA GDP forecasting as the economy of USA. It
means that more weight is given to the actual data. As US economy is huge and has many types goods
and service produces, the randomness of overall US economy should be less.


Question 7.2
Using the 20 years of daily high temperature data for Atlanta (July through October) from Question 6.2
(file temps.txt), 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.)
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).

,Solution 7.2

HoltWinters function is used to generate 4 exponential smoothing models: single, double, triple with
additive seasonality and triple with multiplicative seasonality. The results from exponential
smoothing models do not support the unofficial end of summer has gotten later over the 20 years.

Sample result & chart from Triple exponential smoothing model with multiplicative seasonality. It is
observed that there is not trend variation in the temperature data set.
​## HoltWinters(x = temp_ts, seasonal = "multiplicative")

## Smoothing parameters:

## alpha: 0.615003

## beta : 0

## gamma: 0.5495256

##

## Coefficients:

## [,1]

## a 73.679517064

## b -0.004362918

## s1 1.239022317

..

..

,Result from Triple exponential smoothing model with multiplicative seasonality is used to generated
season data set for later cucum calculation for verify if there is any significant change in temperate
over the years (1996 to 2005)

Please note that the generated season date set is from 1997 to 2005 only as the very first predicted
value (year 1996) is empty.

Code of cucum calculation is from previous homework. In the Code, qcc.cucum function is used.
Various decision.interval and se.shift parameter values have been used to generate the cusum
models to figure out the unofficial summer end-day data set of each year from 1997 to 2005. The
cusum models of all these date set do not show significant increases or decreases of summer end day
change from 1997 to 2005.
Sample year over year summer end day cusum chart

, Code for homework 7
clear the environment & load data
rm(list = ls())
set.seed(123)

# ---------------------------- Data manipulation
-------------------------------------

data <- read.table("temps.txt", header = TRUE, stringsAsFactors = FALSE)

head(data)
#convert data into vector
temp_vec <- as.vector(unlist(data[,2:21]))
plot (temp_vec)




cat('temp_vec class is', class(temp_vec), '\n')

Geschreven voor

Vak

Documentinformatie

Geüpload op
11 april 2023
Aantal pagina's
48
Geschreven in
2022/2023
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$9.99
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF


Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
ExamsConnoisseur Self
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
587
Lid sinds
3 jaar
Aantal volgers
344
Documenten
1492
Laatst verkocht
3 weken geleden

4.2

68 beoordelingen

5
40
4
11
3
13
2
1
1
3

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen