Home » date » 2008 » May » 28 »

Exponentional smooting - Blue Jeans (D) - Alexia Versluys

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 28 May 2008 12:33:40 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/28/t121199973749jn8196mprxx2i.htm/, Retrieved Wed, 28 May 2008 20:35:37 +0200
 
User-defined keywords:
Exponentional smooting - Blue Jeans (D) - Alexia Versluys
 
Dataseries X:
» Textbox « » Textfile « » CSV «
44,13 44,13 44,17 44,14 44,15 44,14 44,14 44,14 44,19 44,29 44,29 44,29 44,29 44,27 44,26 44,33 44,32 44,34 44,34 44,34 44,37 44,47 44,51 44,51 44,51 44,52 44,7 44,84 44,9 44,95 44,94 44,94 44,91 45,28 45,36 45,34 45,34 45,34 45,44 45,62 45,75 45,77 45,77 45,77 46,09 46,25 46,35 46,34 46,34 46,28 46,59 46,42 46,29 46,29 46,29 46,3 46,52 46,66 46,67 46,72 46,72 46,72 46,76 46,89 47,04 47,02 47,02 47,18 47,22 47,8 47,88 47,91
 
Text written by user:
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.0607904611895088
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
344.1744.130.0399999999999991
444.1444.1724316184476-0.0324316184475819
544.1544.1404600854050.00953991459496706
644.1444.151040021213-0.0110400212129633
744.1444.1403688932319-0.000368893231886602
844.1444.1403464680422-0.000346468042188519
944.1944.14032540609010.0496745939098773
1044.2944.19334514756330.0966548524367
1144.2944.2992208406191-0.00922084061913608
1244.2944.2986603014653-0.00866030146534058
1344.2944.2981338377452-0.0081338377452198
1444.2744.2976393779974-0.0276393779974455
1544.2644.275959167462-0.0159591674620003
1644.3344.26498900231180.0650109976882192
1744.3244.3389410508436-0.0189410508436367
1844.3444.32778961562740.0122103843725654
1944.3444.3485318905248-0.00853189052475045
2044.3444.3480132329649-0.0080132329649274
2144.3744.34752610483740.0224738951626193
2244.4744.3788923032890.0911076967109707
2344.5144.484430782190.0255692178099949
2444.5144.5259851467329-0.0159851467329304
2544.5144.5250134022909-0.0150134022908546
2644.5244.5241007306416-0.0041007306415608
2744.744.53385144533470.166148554665348
2844.8444.72395169259870.116048307401272
2944.944.87100632272590.0289936772740802
3044.9544.9327688617390.0172311382610175
3144.9444.9838163505807-0.0438163505806983
3244.9444.9711527344213-0.031152734421255
3344.9144.9692589453285-0.0592589453284731
3445.2844.93565656671230.344343433287655
3545.3645.32658936282950.0334106371705118
3645.3445.4086204108717-0.0686204108717092
3745.3445.3844489444478-0.044448944447808
3845.3445.3817468726154-0.0417468726154411
3945.4445.37920906097590.0607909390240664
4045.6245.48290457019530.137095429804653
4145.7545.67123866460010.0787613353998609
4245.7745.806026602503-0.0360266025030000
4345.7745.8238365287218-0.053836528721753
4445.7745.8205637813119-0.0505637813119151
4546.0945.81748998572650.272510014273522
4646.2546.15405599517290.0959440048270679
4746.3546.31988847547470.0301115245252674
4846.3446.4217189689377-0.0817189689377429
4946.3446.4067512351281-0.0667512351280877
5046.2846.4026933967597-0.122693396759686
5146.5946.33523480858580.254765191414251
5246.4246.6607221020669-0.240722102066862
5346.2946.4760884944637-0.186088494463711
5446.2946.3347760890632-0.0447760890631983
5546.2946.3320541299588-0.0420541299587782
5646.346.3294976400037-0.0294976400036688
5746.5246.33770446486380.18229553513617
5846.6646.56878629451760.0912137054824385
5946.6746.7143312177406-0.0443312177406341
6046.7246.7216363025691-0.00163630256909642
6146.7246.7715368309813-0.05153683098127
6246.7246.7684038832577-0.0484038832576701
6346.7646.7654613888711-0.00546138887107617
6446.8946.80512938852290.084870611477136
6547.0446.9402887121360.0997112878640039
6647.0247.0963502073110-0.0763502073110445
6747.0247.0717088429967-0.0517088429966961
6847.1847.06856543858340.111434561416644
6947.2247.2353395969643-0.0153395969643242
7047.847.27440709579040.525592904209603
7147.8847.8863581308352-0.00635813083523118
7247.9147.9659716171295-0.0559716171294653


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
7347.992569076710647.774326311688948.2108118417324
7448.075138153421347.756976697464948.3932996093776
7548.157707230131947.756281703475948.5591327567879
7648.240276306842547.763066542269548.7174860714156
7748.322845383553247.773901979685548.8717887874209
7848.405414460263847.787091253579549.0237376669481
7948.487983536974447.80166336973349.1743037042159
8048.570552613685147.817010150714949.3240950766553
8148.653121690395747.832726521425249.4735168593662
8248.735690767106347.848530481695549.6228510525171
8348.81825984381747.864219126418349.7723005612157
8448.900828920527647.879642738022849.9220151030324
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t121199973749jn8196mprxx2i/16t9r1211999614.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t121199973749jn8196mprxx2i/16t9r1211999614.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t121199973749jn8196mprxx2i/2xe9o1211999614.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t121199973749jn8196mprxx2i/2xe9o1211999614.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t121199973749jn8196mprxx2i/35nt01211999614.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t121199973749jn8196mprxx2i/35nt01211999614.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Double ; par3 = multiplicative ;
 
Parameters (R input):
par1 = 12 ; par2 = Double ; 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=0, beta=0)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=0)
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