Home » date » 2008 » May » 28 »

Exponential Smoothing - Prijzen van stof voor jurken

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 10:16:54 -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/t1211991563nien4mvkqlmxv88.htm/, Retrieved Wed, 28 May 2008 18:19:23 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
20.66 20.66 20.67 20.71 20.73 20.73 20.74 20.74 20.75 20.75 20.77 20.78 20.78 20.8 20.84 20.85 20.86 20.86 20.86 20.86 20.9 20.92 20.95 20.95 20.95 20.96 21.1 21.18 21.19 21.19 21.19 21.19 21.19 21.21 21.22 21.22 21.22 21.23 21.41 21.42 21.43 21.44 21.44 21.44 21.48 21.53 21.54 21.54 21.54 21.54 21.54 21.54 21.54 21.54 21.54 21.54 21.57 21.6 21.61 21.6 21.6 21.71 21.75 21.84 21.85 21.92 21.92 21.93 22 22 21.99 22.01 22.01
 
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 time4 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.957264156086689
beta0.000728381616693922
gamma0.0436617754682502


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1320.7820.68431096620980.0956890337901655
1420.820.8035987033585-0.00359870335853785
1520.8420.8466009164802-0.00660091648018124
1620.8520.8546382827958-0.00463828279578848
1720.8620.8632994673315-0.00329946733154429
1820.8620.8632377301432-0.00323773014320139
1920.8620.8636470812610-0.00364708126102542
2020.8620.8640757840295-0.00407578402951358
2120.920.9003471252069-0.000347125206889842
2220.9220.91310806252310.0068919374769223
2320.9520.93988730633270.0101126936672671
2420.9520.93977017311960.0102298268803942
2520.9520.9860023929698-0.0360023929698094
2620.9620.9790976480829-0.0190976480829228
2721.121.00744212755150.0925578724484808
2821.1821.11039494817670.0696050518233235
2921.1921.1901405564534-0.000140556453377627
3021.1921.1929577864363-0.00295778643629774
3121.1921.1934960734358-0.00349607343584069
3221.1921.1939370234997-0.00393702349964897
3321.1921.230790213948-0.0407902139479859
3421.2121.20484404031210.00515595968786542
3521.2221.2300589066462-0.0100589066461723
3621.2221.21031991215320.0096800878468315
3721.2221.2562222506461-0.036222250646091
3821.2321.2493084655983-0.0193084655983071
3921.4121.27807627060420.131923729395847
4021.4221.41868858856730.00131141143273794
4121.4321.4328956824652-0.00289568246520133
4221.4421.43292204241880.00707795758118479
4321.4421.4429234571782-0.00292345717816644
4421.4421.4437742090780-0.00377420907803128
4521.4821.4810105358994-0.00101053589935063
4621.5321.49322296805350.036777031946535
4721.5421.5487940549371-0.00879405493711616
4821.5421.52996172519120.0100382748087569
4921.5421.5764832131057-0.0364832131056687
5021.5421.5695812629633-0.0295812629633403
5121.5421.5893029495434-0.0493029495433639
5221.5421.5561103661355-0.0161103661354751
5321.5421.5535373732239-0.0135373732239437
5421.5421.543243287304-0.00324328730401646
5521.5421.5431954985783-0.00319549857825407
5621.5421.5436361267929-0.00363612679290881
5721.5721.5810351530419-0.0110351530418917
5821.621.58361349010290.0163865098970604
5921.6121.6194851074222-0.00948510742223618
6021.621.59983103154480.000168968455238172
6121.621.6367606437960-0.0367606437960362
6221.7121.62952349281090.0804765071890543
6321.7521.7547601494398-0.00476014943981085
6421.8421.76422984587550.0757701541245268
6521.8521.84960928845650.00039071154353465
6621.9221.85252185689990.067478143100054
6721.9221.9200367206734-3.67206734281922e-05
6821.9321.92337197979810.00662802020194775
692221.97113078334570.0288692166542965
702222.0120269381526-0.0120269381526299
7121.9922.0208334448575-0.0308334448574996
7222.0121.98038586398920.0296141360108244
7322.0122.0459357368618-0.0359357368617808


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
7422.040049140949021.974088951334422.1060093305635
7522.088641973504221.995352001636222.1819319453721
7622.102853321152121.988631367214922.2170752750893
7722.115535927394121.983651933300022.2474199214882
7822.118053075447121.970647347619022.2654588032753
7922.120700392813621.959256635479422.2821441501477
8022.123941694981221.949581426790122.2983019631722
8122.165592276696321.978923774710622.3522607786821
8222.178707056803121.980679734235722.3767343793706
8322.198985291655621.990144805926122.4078257773851
8422.187891544742321.969035477647222.4067476118374
8522.225102054911418.517464095812325.9327400140105
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211991563nien4mvkqlmxv88/14xhr1211991408.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211991563nien4mvkqlmxv88/14xhr1211991408.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211991563nien4mvkqlmxv88/243kc1211991408.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211991563nien4mvkqlmxv88/243kc1211991408.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211991563nien4mvkqlmxv88/39a3o1211991408.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211991563nien4mvkqlmxv88/39a3o1211991408.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=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