Home » date » 2011 » May » 17 »

Exponential Smoothing bij Time Series Analysis-Inschrijvingen nieuwe personenwagen (eigen reeks)-Ling Weng

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 17 May 2011 10:00:51 +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/May/17/t1305626298kbn2l00oje8u8st.htm/, Retrieved Tue, 17 May 2011 11:58:31 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
26281 23899 25727 30733 28599 16723 43738 45272 46532 41032 37967 35366 33892 21560 26588 33527 24859 17952 45504 40129 40357 41913 33730 37842 33025 24050 30429 34507 25189 20253 48527 44446 46380 48950 38883 42928 37107 30186 32602 39892 32194 21629 59968 45694 55756 48554 41052 49822 39191 31994 35735 38930 33658 23849 58972 59249 63955 53785 52760 44795 37348 32370 32717 40974 33591 21124 58608 46865 51378 46235 47206 45382 41227 33795 31295 42625 33625 21538 56421 53152 53536 52408 41454 38271 35306 26414 31917 38030 27534 18387
 
Output produced by software:


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


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.299879412252782
beta0
gamma0.349182850776405


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
133389233798.397696158493.6023038415951
142156021552.97200267857.02799732148924
152658826888.1310517072-300.131051707198
163352733929.5240389334-402.524038933356
172485925109.3522847842-250.35228478421
181795218072.0832006946-120.08320069464
194550442850.43657931222653.56342068777
204012944771.087406539-4642.08740653903
214035744549.5657657189-4192.56576571891
224191337901.57072517914011.42927482095
233373036129.7009680399-2399.70096803994
243784232996.45936977994845.54063022006
253302532829.7714509667195.228549033258
262405020941.17248184953108.82751815046
273042927209.38889904173219.6111009583
283450735671.1619825215-1164.16198252153
292518926248.5428154518-1059.5428154518
302025318736.4019317571516.59806824305
314852746355.33894095462171.66105904542
324444646275.7477951946-1829.74779519455
334638047090.2980031004-710.298003100448
344895043101.07933923085848.92066076915
353888339770.2737958123-887.273795812296
364292838731.22179160384196.7782083962
373710736906.5305457332200.4694542668
383018624327.45260788055858.54739211946
393260232244.5889745158357.41102548422
403989239535.1691910924356.830808907573
413219429409.90555661252784.0944433875
422162922508.9016903962-879.901690396178
435996853324.33102860096643.66897139913
444569453339.683081199-7645.683081199
455575652905.99930390982850.00069609021
464855451211.8180620544-2657.81806205442
474105243089.3371452171-2037.33714521712
484982242959.26218260196862.73781739811
493919140569.2102791524-1378.21027915242
503199427845.43807574484148.56192425518
513573534183.88932295511551.1106770449
523893042327.2384151215-3397.23841512149
533365831269.54841018782388.45158981219
542384923057.1729841271791.827015872852
555897258047.8843362817924.115663718301
565924952638.34746552536610.65253447473
576395559536.00617751684418.99382248316
585378556508.9716928303-2723.97169283033
595276047666.93184290675093.06815709334
604479552234.4682698308-7439.46826983076
613734843085.2062658501-5737.20626585011
623237029937.28734908572432.71265091434
633271735205.7453001402-2488.74530014017
644097440801.3467616453172.653238354709
653359132136.10371915691454.89628084312
662112423250.7063630654-2126.70636306539
675860856096.89418218232511.1058178177
684686552618.1462843655-5753.14628436547
695137854823.7040192324-3445.70401923241
704623548471.9813162077-2236.98131620768
714720642443.78266926974762.21733073031
724538243768.42814239321613.57185760684
734122738220.52776591553006.47223408447
743379529875.02246899073919.97753100931
753129534350.2593572568-3055.25935725682
764262540339.38980954762285.61019045239
773362532590.0778854171034.92211458299
782153822697.0158892503-1159.01588925028
795642157362.1369654417-941.136965441707
805315250821.46917539842330.53082460164
815353656187.9243639391-2651.9243639391
825240850134.65846141782273.3415385822
834145446861.8263071366-5407.82630713655
843827144359.0796649402-6088.07966494024
853530637091.4423342542-1785.44233425417
862641428241.0030737985-1827.00307379846
873191729045.73844148052871.26155851945
883803037403.5710188032626.428981196754
892753429681.4224998943-2147.4224998943
901838719621.4912786712-1234.49127867119


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
9149828.014653611446267.777982466353388.2513247564
9245023.580622292241044.761594940249002.3996496443
9347981.526753192143435.521805660952527.5317007233
9444408.714352096439627.049820940349190.3788832525
9539313.138910273934442.021501763444184.2563187844
9638308.742746430633123.070704643643494.4147882176
9734199.857476295928990.188701417139409.5262511746
9826305.391323875121451.366067855731159.4165798945
9928698.285982998423194.120850344134202.4511156527
10035206.575118763228487.880163022641925.2700745039
10127180.610661996421313.386151472533047.8351725202
10218409.607112014914974.516388195121844.6978358347
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/17/t1305626298kbn2l00oje8u8st/19m541305626450.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305626298kbn2l00oje8u8st/19m541305626450.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/17/t1305626298kbn2l00oje8u8st/2b9xe1305626450.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305626298kbn2l00oje8u8st/2b9xe1305626450.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/17/t1305626298kbn2l00oje8u8st/3bxsq1305626450.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305626298kbn2l00oje8u8st/3bxsq1305626450.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Triple ; par3 = multiplicative ;
 
Parameters (R input):
par1 = 12 ; par2 = Triple ; par3 = multiplicative ;
 
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