Home » date » 2010 » Dec » 30 »

Opgave 10 triple exponential smoothing visproducten

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Thu, 30 Dec 2010 14:16:27 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/30/t1293718466d05ka1ax4q75sfo.htm/, Retrieved Thu, 30 Dec 2010 15:14:27 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/30/t1293718466d05ka1ax4q75sfo.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
96,1 96,5 96,9 97,8 98,9 100,2 101,2 101 101,6 102,4 103,7 103,7 104,6 104,5 104,5 105,6 106,1 107,6 107,7 108,3 108,1 108,1 108 108,2 108,9 109,8 109,9 109,8 110,9 111,1 112,2 112,7 114,6 114,2 114,7 114,7 116 116,3 116,4 116,6 118,1 117,2 108,3 109,5 110,5 110,6 111,2 111,1 111 112,4 112,5 112,4 111,8 111,6 112,9 112,8 113,7 113,8 114 113,8 113,9 114,4 114,4 114,5 113,8 114,3 115 115,4 115,3 114,9 114,3 114,5 115,5 115,8 115,8 116 114,9 114,1 114,1 113,5 115 114,7 115,4 116,1 116,6 117,2 118,2 118 117,7 118,5 117,5 118 117,7 116,3 115 115,7 113,6 114,8 114,9 117,3 117,3 117,7 120 119,6 119,2 117,3 117,5 119 112,5 118,9 118,4 119,4 120,6 118,6 122 122,6 120,6 117,4 116,4 122,2 121 122,4 124,9 126,1 124,5 123,2 126,4 123,9 116 126,6 125,9 126,6 116,7 126,4 129 128,7 128,4 129,2 133,3 128,9 132,7 127,7 131,8 133,9
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.474740092278407
beta0.0325150620496534
gamma0.446603668717535


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13104.6100.8663728632483.73362713675211
14104.5102.597193115111.90280688489034
15104.5103.5882217060640.911778293936095
16105.6105.289510354310.310489645690467
17106.1106.201802622241-0.101802622241209
18107.6107.96679177485-0.36679177484973
19107.7108.300318080196-0.600318080196118
20108.3107.7928801203740.507119879625762
21108.1108.656515365481-0.556515365480948
22108.1109.214943165044-1.11494316504383
23108110.007719076527-2.00771907652695
24108.2109.062333575723-0.862333575722971
25108.9110.452409464733-1.55240946473307
26109.8109.1897572487960.610242751203941
27109.9109.2602234254640.639776574535659
28109.8110.612679245938-0.812679245938483
29110.9110.7990533787960.100946621203605
30111.1112.505275379692-1.40527537969247
31112.2112.1821219412320.0178780587679768
32112.7112.1286065561480.571393443851562
33114.6112.6748903919881.92510960801241
34114.2114.22040036075-0.0204003607499317
35114.7115.280218126212-0.580218126212301
36114.7115.260096277888-0.56009627788778
37116116.615325403069-0.615325403068979
38116.3116.302880177104-0.00288017710359156
39116.4116.0777503281740.322249671825645
40116.6116.922390418307-0.322390418306753
41118.1117.5470620781640.552937921835962
42117.2119.112722087452-1.91272208745173
43108.3118.872871602086-10.5728716020862
44109.5113.748227723022-4.24822772302151
45110.5112.076485986073-1.57648598607256
46110.6111.20169625179-0.601696251790017
47111.2111.543684499657-0.343684499657016
48111.1111.333684751072-0.233684751071877
49111112.529067115873-1.52906711587259
50112.4111.6105450165620.789454983438475
51112.5111.5341127297830.965887270216783
52112.4112.2393014652970.160698534702945
53111.8113.012318708271-1.21231870827108
54111.6112.847956574348-1.247956574348
55112.9110.5888523951582.31114760484206
56112.8112.959982607497-0.159982607497184
57113.7113.814506592089-0.114506592089342
58113.8113.843680265151-0.0436802651510817
59114114.500953966612-0.50095396661159
60113.8114.229516245773-0.429516245772732
61113.9115.012452048033-1.11245204803343
62114.4114.826427836268-0.426427836267976
63114.4114.1862147661610.213785233839161
64114.5114.3059168440330.194083155967107
65113.8114.733661853709-0.933661853708713
66114.3114.65849592189-0.358495921889542
67115113.6355562716111.36444372838872
68115.4114.9419460959870.4580539040129
69115.3116.074467869488-0.774467869487779
70114.9115.770681998778-0.870681998777584
71114.3115.879046297837-1.57904629783695
72114.5115.046881460982-0.546881460982434
73115.5115.546410948045-0.0464109480452777
74115.8115.976381221242-0.176381221242366
75115.8115.557890594330.242109405670462
76116115.6396869235770.360313076422969
77114.9115.837633494259-0.937633494259103
78114.1115.851280272102-1.75128027210195
79114.1114.505577159086-0.405577159085951
80113.5114.665995808558-1.16599580855785
81115114.6202706026320.379729397367583
82114.7114.741557862007-0.0415578620067407
83115.4114.9898685479390.410131452061378
84116.1115.2873779594170.812622040583463
85116.6116.5139092062860.086090793713538
86117.2116.9425289423910.257471057608697
87118.2116.8011075965921.3988924034081
88118117.450591525390.549408474609749
89117.7117.4275397357120.272460264288
90118.5117.8371847617740.662815238226457
91117.5118.0028790488-0.502879048800438
92118117.9868717278550.0131282721451811
93117.7118.929874482049-1.22987448204903
94116.3118.229694870561-1.92969487056135
95115117.699947640108-2.69994764010795
96115.7116.579745238994-0.879745238994346
97113.6116.770636252919-3.17063625291927
98114.8115.581314731849-0.781314731849307
99114.9115.086418005956-0.186418005955801
100117.3114.631465696342.6685343036597
101117.3115.4296404750631.87035952493707
102117.7116.5942684026841.10573159731594
103120116.6084431424673.39155685753283
104119.6118.5341048993921.06589510060813
105119.2119.673339350611-0.473339350611042
106117.3119.167857753131-1.86785775313113
107117.5118.487439828374-0.987439828373653
108119118.6343176598780.365682340122206
109112.5118.925379233257-6.42537923325713
110118.9116.7474743154132.15252568458691
111118.4117.8263086484870.573691351513247
112119.4118.4550339401910.944966059809346
113120.6118.2742181179272.32578188207302
114118.6119.50920915679-0.90920915679034
115122119.1054480264962.89455197350368
116122.6120.2443505924892.35564940751112
117120.6121.649463464064-1.04946346406393
118117.4120.549107749505-3.14910774950516
119116.4119.45294793779-3.05294793778954
120122.2118.8907698902213.30923010977887
121121118.9857253678092.0142746321908
122122.4122.956510778649-0.556510778649113
123124.9122.4668895445222.43311045547841
124126.1124.1821530911541.91784690884626
125124.5124.918839042663-0.418839042662526
126123.2124.181328363591-0.98132836359052
127126.4124.723867593691.67613240630983
128123.9125.227352922982-1.32735292298221
129116124.097796518375-8.09779651837529
130126.6119.0625553452077.53744465479305
131125.9123.1310293488112.76897065118931
132126.6126.98381809783-0.383818097830272
133116.7125.123364145429-8.4233641454286
134126.4123.4764070443052.92359295569538
135129125.3344501344053.66554986559495
136128.7127.5271594292781.17284057072166
137128.4127.363743547231.03625645277029
138129.2127.2092651037671.99073489623281
139133.3129.8562249174053.44377508259512
140128.9130.59166805435-1.69166805435049
141132.7127.7926555907434.90734440925677
142127.7132.891717955207-5.19171795520701
143131.8129.8945351606771.90546483932343
144133.9132.6804531603811.21954683961874


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
145129.802650577125125.352785565395134.252515588855
146135.053840765468130.098135759507140.009545771429
147135.890293728639130.447767175451141.332820281826
148135.893796322636129.977971400085141.809621245186
149135.259165491255128.87981472758141.638516254929
150134.938262920505128.102480112309141.774045728701
151137.051894143682129.764792375331144.338995912032
152134.965487249412127.230674435004142.70030006382
153134.561442255238126.381357033234142.741527477243
154134.929821018225126.305977128069143.55366490838
155136.110471645627127.043640156897145.177303134356
156137.84970956157128.340057621961147.359361501179
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/30/t1293718466d05ka1ax4q75sfo/1f8y41293718582.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/30/t1293718466d05ka1ax4q75sfo/1f8y41293718582.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/30/t1293718466d05ka1ax4q75sfo/2qhy71293718582.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/30/t1293718466d05ka1ax4q75sfo/2qhy71293718582.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/30/t1293718466d05ka1ax4q75sfo/3qhy71293718582.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/30/t1293718466d05ka1ax4q75sfo/3qhy71293718582.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Triple ; par3 = additive ;
 
Parameters (R input):
par1 = 12 ; par2 = Triple ; par3 = additive ;
 
R code (references can be found in the software module):
par1 <- as.numeric(par1)
if (par2 == 'Single') K <- 1
if (par2 == 'Double') K <- 2
if (par2 == 'Triple') K <- par1
nx <- length(x)
nxmK <- nx - K
x <- ts(x, frequency = par1)
if (par2 == 'Single') fit <- HoltWinters(x, gamma=F, beta=F)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=F)
if (par2 == 'Triple') fit <- HoltWinters(x, seasonal=par3)
fit
myresid <- x - fit$fitted[,'xhat']
bitmap(file='test1.png')
op <- par(mfrow=c(2,1))
plot(fit,ylab='Observed (black) / Fitted (red)',main='Interpolation Fit of Exponential Smoothing')
plot(myresid,ylab='Residuals',main='Interpolation Prediction Errors')
par(op)
dev.off()
bitmap(file='test2.png')
p <- predict(fit, par1, prediction.interval=TRUE)
np <- length(p[,1])
plot(fit,p,ylab='Observed (black) / Fitted (red)',main='Extrapolation Fit of Exponential Smoothing')
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(myresid),lag.max = nx/2,main='Residual ACF')
spectrum(myresid,main='Residals Periodogram')
cpgram(myresid,main='Residal Cumulative Periodogram')
qqnorm(myresid,main='Residual Normal QQ Plot')
qqline(myresid)
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Estimated Parameters of Exponential Smoothing',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'Value',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'alpha',header=TRUE)
a<-table.element(a,fit$alpha)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'beta',header=TRUE)
a<-table.element(a,fit$beta)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'gamma',header=TRUE)
a<-table.element(a,fit$gamma)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Interpolation Forecasts of Exponential Smoothing',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Observed',header=TRUE)
a<-table.element(a,'Fitted',header=TRUE)
a<-table.element(a,'Residuals',header=TRUE)
a<-table.row.end(a)
for (i in 1:nxmK) {
a<-table.row.start(a)
a<-table.element(a,i+K,header=TRUE)
a<-table.element(a,x[i+K])
a<-table.element(a,fit$fitted[i,'xhat'])
a<-table.element(a,myresid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Extrapolation Forecasts of Exponential Smoothing',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Forecast',header=TRUE)
a<-table.element(a,'95% Lower Bound',header=TRUE)
a<-table.element(a,'95% Upper Bound',header=TRUE)
a<-table.row.end(a)
for (i in 1:np) {
a<-table.row.start(a)
a<-table.element(a,nx+i,header=TRUE)
a<-table.element(a,p[i,'fit'])
a<-table.element(a,p[i,'lwr'])
a<-table.element(a,p[i,'upr'])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by