Home » date » 2010 » Dec » 10 »

Blog4

*The author of this computation has been verified*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Fri, 10 Dec 2010 20:04:18 +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/10/t12920115132z31axz8zkev0vw.htm/, Retrieved Fri, 10 Dec 2010 21:05:14 +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/10/t12920115132z31axz8zkev0vw.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
42.33600 42.14710 40.25640 39.18980 39.13170 38.15070 38.27070 39.13350 40.12190 41.28450 42.57490 43.90190 43.18350 43.61880 44.76240 45.19720 44.38810 43.55520 43.56780 44.21350 45.14510 45.80790 42.32820 37.89990 34.79640 35.21440 36.37270 36.25020 36.82610 36.77230 36.90420 37.04940 36.82590 36.13570 36.03000 35.79270 35.91740 35.40080 35.17230 34.92110 35.02920 34.77390 34.89990 34.90540 34.56800 34.40600 34.45780 34.73160 34.26020 33.88490 34.05490 34.27550 34.13930 34.15870 34.53860 33.79870 33.49730 33.68020 34.32840 34.15380 33.91840 34.32620 34.77500 35.01190 34.55130 34.69510 35.47300 35.97940 36.47890 36.39100 36.67040 37.41620 37.11850 36.30010 35.70020 35.58590 35.67770 35.24080 34.80160 34.43890 34.98810 36.06800 36.35660 36.12540 34.87100 35.21990 34.33900 33.82340 34.51990 35.53000 35.79660 33.84840 33.98710 34.11610 33.82350 32.45400 31.87740 31.11500 31.04360 30.88680 31.30010 30.05070 28.6 etc...
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.99993997895847
betaFALSE
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
242.147142.336-0.188899999999997
340.256442.1471113379747-1.89071133797475
439.189840.2565134824637-1.06671348246374
539.131739.1898640252542-0.0581640252542286
638.150739.1317034910654-0.98100349106538
738.270738.15075888085130.11994111914872
839.133538.27069280100910.862807198990893
940.121939.13344821341330.988451786586722
1041.284540.12184067209431.16265932790574
1142.574941.28443021597621.29046978402381
1243.901942.57482254465951.3270774553405
1343.183543.9018203474289-0.718320347428936
1443.618843.18354311433540.435256885664593
1544.762443.61877387542841.14362612457161
1645.197244.76233135836890.43486864163112
1744.388145.1971738987312-0.8090738987312
1843.555244.3881485614581-0.832948561458082
1943.567843.55524999444020.0125500055598025
2044.213543.56779924673560.645700753264407
2145.145144.21346124436830.931638755631724
2245.807945.14504408207160.66285591792844
2342.328245.8078602146974-3.47966021469742
2437.899942.3284088528303-4.42850885283026
2534.796437.9001658037138-3.10376580371377
2635.214434.79658629125620.4178137087438
2736.372735.2143749223861.15832507761397
2836.250236.3726304761224-0.122430476122418
2936.826136.25020734840470.575892651595304
3036.772336.8260654343232-0.053765434323239
3136.904236.77230322705740.131896772942632
3237.049436.90419208341830.145207916581683
3336.825937.0493912844696-0.22349128446961
3436.135736.8259134141797-0.690213414179667
3536.0336.135741427328-0.105741427327999
3635.792736.0300063467106-0.237306346710596
3735.917435.79271424337410.124685756625908
3835.400835.917392516231-0.516592516231029
3935.172335.4008310064209-0.228531006420866
4034.921135.172313716669-0.251213716669021
4135.029234.92111507810890.108084921891077
4234.773935.0291935126304-0.255293512630416
4334.899934.77391532298250.125984677017478
4434.905434.89989243826850.00550756173152678
4534.56834.9053996694304-0.337399669430411
4634.40634.5680202510796-0.162020251079568
4734.457834.40600972462420.0517902753757795
4834.731634.45779689149370.273803108506272
4934.260234.7315835660523-0.471383566052253
5033.884934.2602282929326-0.375328292932593
5134.054933.88492252759510.169977472404945
5234.275534.05488979777510.220610202224925
5334.139334.2754867587459-0.136186758745893
5434.158734.13930817407110.0193918259288992
5534.538634.15869883608240.379901163917587
5633.798734.5385771979365-0.739877197936472
5733.497333.7987444082-0.30144440820002
5833.680233.49731809300730.182881906992655
5934.328433.68018902323750.648210976762535
6034.153834.328361093702-0.174561093702046
6133.918434.1538104773387-0.235410477338654
6234.326233.9184141295820.407785870417968
6334.77534.32617552426730.448824475732664
6435.011934.77497306108750.236926938912497
6534.551335.0118857793984-0.460585779398357
6634.695134.55132764483820.143772355161808
6735.47334.69509137063350.7779086293665
6835.979435.47295330911380.50644669088615
6936.478935.97936960254210.499530397457868
7036.39136.4788700176653-0.0878700176652742
7136.670436.391005274050.27939472595002
7237.416236.67038323043760.745816769562452
7337.118537.4161552353007-0.297655235300709
7436.300137.1185178655772-0.818417865577239
7535.700236.3001491222927-0.599949122292699
7635.585935.7002360095712-0.114336009571183
7735.677735.58590686256640.0917931374336192
7835.240835.6776944904803-0.436894490480285
7934.801635.2408262228624-0.439226222862359
8034.438934.8016263628154-0.362726362815366
8134.988134.43892177121410.549178228785919
8236.06834.98806703775071.07993296224927
8336.356636.06793518129880.288664818701179
8436.125436.3565826740369-0.23118267403693
8534.87136.1254138758249-1.25441387582487
8635.219934.87107529122730.348824708772668
8734.33935.2198790631777-0.880879063177673
8833.823434.3390528712788-0.515652871278832
8934.519933.82343095002240.696469049977601
9035.5334.51985819720221.01014180279778
9135.796635.52993937023690.266660629763095
9233.848435.7965839947513-1.94818399475127
9333.987133.84851693203250.138583067967545
9434.116133.98709168209990.12900831790008
9533.823534.1160922567864-0.292592256786392
9632.45433.823517561692-1.369517561692
9731.877432.4540821998704-0.576682199870447
9831.11531.8774346130663-0.762434613066272
9931.043631.1150457621196-0.0714457621195699
10030.886831.0436042882491-0.156804288249056
10131.300130.88680941155670.413290588443303
10230.050731.3000751938684-1.24937519386843
10328.679930.0507749888004-1.3708749888004
10427.643828.6799822813446-1.03618228134464
10527.239427.6438621927397-0.404462192739739
10626.854927.2394242762421-0.384524276242068
10727.015826.85492307954760.160876920452445
10826.918827.0157903439997-0.096990343999675
10926.496626.9188058214615-0.422205821461464
11026.78526.49662534123310.288374658766855
11126.839826.78498269145260.0548173085473707
11226.447826.839796709808-0.391996709808048
11325.172826.4478235280508-1.2750235280508
11424.878425.1728765282401-0.294476528240128
11525.401524.87841767478790.523082325212069
11625.771625.4014686040540.370131395945965
11726.118125.77157778432810.346522215671886
11826.396926.11807920137570.278820798624299
11926.657126.39688326488530.260216735114735
12025.183926.6570843815205-1.47318438152053
12123.839425.1839884220609-1.34458842206094
12223.861923.83948070359750.0224192964024752
12324.258123.86189865437050.396201345629521
12425.109824.25807621958260.85172378041742
12526.161725.10974887865161.0519511213484
12626.808726.16163686079810.647063139201943
12725.657726.8086611625965-1.15096116259645
12827.098225.65776908188771.44043091811226
12927.466527.0981135438360.368386456163957
13028.28927.46647788906120.822522110938785
13128.693328.28895063136620.404349368633778
13227.240128.6932757305298-1.45317573052975
13327.279827.24018722112090.0396127788791283
13427.640427.27979762239980.360602377600244
13526.83127.6403783562697-0.809378356269718
13626.246726.8310485797319-0.584348579731934
13725.221226.2467350732104-1.02553507321037
13825.365325.22126155368320.144038446316781
13926.259225.36529135466240.893908645337568
14027.227926.25914634667210.968753653327926
14126.331527.2278418543967-0.896341854396745
14225.898126.3315537993717-0.433453799371666
14326.689825.89812601634850.79167398365151


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
14426.689752482902924.997538050096828.3819669157091
14526.689752482902924.296671700263129.0828332655428
14626.689752482902923.758868387978229.6206365778277
14726.689752482902923.305475968856630.0740289969493
14826.689752482902922.90602766875930.4734772970469
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/10/t12920115132z31axz8zkev0vw/1kqst1292011454.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t12920115132z31axz8zkev0vw/1kqst1292011454.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/10/t12920115132z31axz8zkev0vw/2kqst1292011454.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t12920115132z31axz8zkev0vw/2kqst1292011454.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/10/t12920115132z31axz8zkev0vw/3disf1292011454.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t12920115132z31axz8zkev0vw/3disf1292011454.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Single ; par3 = additive ;
 
Parameters (R input):
par1 = 12 ; par2 = Single ; par3 = additive ;
 
R code (references can be found in the software module):
par1 <- 5
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