Home » date » 2011 » Jan » 16 »

10/2 eigen reeks addi triple

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 16 Jan 2011 15:15:54 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/Jan/16/t1295190889q75olqunhqh68kc.htm/, Retrieved Sun, 16 Jan 2011 16:14:53 +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/2011/Jan/16/t1295190889q75olqunhqh68kc.htm/},
    year = {2011},
}
@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 = {2011},
    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 «
100,4 97,7 97 96,5 98,4 106,3 103,1 102,4 95 98,1 106,1 99,1 101,2 95,5 99,8 97,1 97,5 96,8 97,7 100,9 94,3 99,5 100,8 97 99,2 101 102,3 97 91,2 97,6 95,7 100,5 94,4 102,9 105,1 98,8 100,7 99,6 107,7 102,9 101,6 102,7 110,5 109,8 94,3 102,5 105 102,3 107,7 100,3 99,5 95 97,7 96,3 97,8 106,4 96,1 106,2 114,7 111,9 121 117,7 115,4 114,3 109,5 108,1 108,2 99,1 101,2 98,1 95,5 97,9 98,2 98,7 95,6 95,8 94,4 96,5 103,3 104,3 104,5 102,3 103,8 103,1 102,2 106,3 102,1 94 102,6 102,6 106,7 107,9 109,3 105,9 109,1 108,5 111,7 109,8 109,1 108,5 108,5 106,2 117,1 109,8 115,2 115,9 119,2 121 118,6 117,6 114,6 110,6 102,5 101,6 107,4 105,8 102,8 104 100,4 100,6
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Herman Ole Andreas Wold' @ www.yougetit.org


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.645519343176284
beta0
gamma0.630222883115812


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13101.2102.525-1.32500000000003
1495.596.0715808096854-0.571580809685358
1599.899.9086749469057-0.108674946905722
1697.196.92375043928670.17624956071333
1797.597.41441687934740.0855831206526005
1896.896.8923897119053-0.0923897119053265
1997.7101.167977638487-3.46797763848723
20100.998.10205826386822.7979417361318
2194.392.29757771501542.00242228498456
2299.596.36290730590753.1370926940925
23100.8106.214855260675-5.41485526067517
249795.96718872213681.03281127786325
2599.298.87310823901860.326891760981354
2610193.65433235275977.3456676472403
27102.3102.70557752661-0.40557752661033
289799.59264931476-2.59264931475998
2991.298.2756829235404-7.07568292354041
3097.693.091160547964.50883945204001
3195.799.5828184106473-3.88281841064732
32100.597.648929095252.85107090474993
3394.491.70102395796062.69897604203936
34102.996.46947990884986.43052009115019
35105.1106.53687820285-1.43687820285
3698.8100.29749325132-1.49749325132005
37100.7101.412348544547-0.712348544546884
3899.697.09073025691812.50926974308186
39107.7101.2883447412016.4116552587989
40102.9102.087476337930.812523662070177
41101.6101.967097095834-0.36709709583387
42102.7103.701100037914-1.00110003791352
43110.5104.7612737277385.73872627226244
44109.8110.542640755584-0.742640755584318
4594.3102.240946958373-7.9409469583727
46102.5100.9747605403631.52523945963662
47105106.118114193257-1.11811419325703
48102.3100.0709560635862.2290439364139
49107.7103.7667659522363.93323404776383
50100.3103.163676482069-2.86367648206925
5199.5104.764750280781-5.26475028078139
529596.7756800451205-1.7756800451205
5397.794.72103581989582.9789641801042
5496.398.4733486269165-2.17334862691654
5597.8100.282502652167-2.48250265216697
56106.499.30895818444467.09104181555536
5796.194.4559432974131.64405670258699
58106.2101.4918254359054.7081745640951
59114.7108.0992952457386.60070475426187
60111.9107.7825452763584.11745472364193
61121113.0780800311737.92191996882654
62117.7113.5313222836154.16867771638482
63115.4119.135512485183-3.73551248518277
64114.3112.9130594730671.38694052693265
65109.5113.962144182978-4.46214418297819
66108.1111.760041540663-3.6600415406631
67108.2112.540440960346-4.34044096034586
6899.1112.506308649066-13.4063086490663
69101.293.2049911570537.99500884294704
7098.1105.025065261446-6.92506526144575
7195.5104.54584843191-9.0458484319095
7297.993.57418314660924.32581685339082
7398.299.8541441523693-1.6541441523693
7498.793.28737062716045.41262937283958
7595.697.9287451960203-2.32874519602026
7695.893.75875301412922.04124698587081
7794.493.92350902104240.476490978957571
7896.595.08858209601251.41141790398754
79103.398.9907042156114.30929578438892
80104.3102.5148129308291.78518706917117
81104.597.80099308805086.69900691194917
82102.3105.451301144575-3.15130114457507
83103.8106.934335225665-3.13433522566451
84103.1102.765920444360.334079555639818
85102.2105.133203630046-2.93320363004567
86106.399.31950254895256.98049745104753
87102.1103.243529109843-1.14352910984277
8894100.814881051026-6.81488105102643
89102.694.91326576224757.68673423775253
90102.6100.9415547078461.65844529215403
91106.7105.6505289819181.04947101808204
92107.9106.5064672703441.393532729656
93109.3102.6375832792266.66241672077385
94105.9108.063694896898-2.16369489689808
95109.1110.188038131494-1.08803813149372
96108.5108.1153978864040.384602113595903
97111.7109.7853773453081.91462265469212
98109.8109.3157807832120.484219216788134
99109.1107.2314117531911.86858824680893
100108.5105.4801533576863.01984664231378
101108.5109.166732300793-0.666732300792702
102106.2108.455966281895-2.25596628189453
103117.1110.5020662056596.59793379434106
104109.8115.016508554146-5.21650855414576
105115.2108.0577933363037.14220666369683
106115.9111.8218492301824.07815076981788
107119.2118.215728260520.984271739479709
108121117.8097946354433.19020536455668
109118.6121.632654638014-3.0326546380138
110117.6117.649940153837-0.0499401538369852
111114.6115.530031480746-0.930031480745939
112110.6112.229403139543-1.62940313954277
113102.5112.091212966017-9.59121296601667
114101.6105.264484283663-3.6644842836628
115107.4108.379335996946-0.979335996946219
116105.8105.3631361854160.436863814583987
117102.8104.814741677478-2.0147416774781
118104101.9832946246322.01670537536775
119100.4106.355292566911-5.95529256691141
120100.6101.962545538909-1.36254553890876


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
121101.4563185087993.287596187126109.625040830454
122100.0975851035690.3747628114492109.820407395671
12397.81329976020886.7526251750177108.873974345398
12494.95678382707282.7034670828193107.210100571325
12594.091722079866380.7519687016926107.43147545804
12694.78034887508380.436211774999109.124485975167
127100.86056309462785.5779089370035116.14321725225
12898.792925230171882.6261454934083114.959704966935
12997.41483354693280.4098338111915114.419833282673
13096.784573833498978.980774661186114.588373005812
13198.073790584774879.5055242703458116.642056899204
13298.551328154971879.2488474108014117.853808899142
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Jan/16/t1295190889q75olqunhqh68kc/1u9sc1295190952.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/16/t1295190889q75olqunhqh68kc/1u9sc1295190952.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Jan/16/t1295190889q75olqunhqh68kc/25nik1295190952.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/16/t1295190889q75olqunhqh68kc/25nik1295190952.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Jan/16/t1295190889q75olqunhqh68kc/3lj0c1295190952.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/16/t1295190889q75olqunhqh68kc/3lj0c1295190952.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