Home » date » 2008 » May » 27 »

Voorspelling Prijzen Jeansbroeken - Stephanie Van Mechelen

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 27 May 2008 14:07:08 -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/27/t12119189363uou3qhbzmya0i4.htm/, Retrieved Tue, 27 May 2008 22:08:56 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
47,87 47,87 47,89 47,88 47,91 47,92 47,92 47,91 47,93 48,05 48,03 48,04 48,04 48,06 48,04 48,09 48,12 48,16 48,16 48,16 48,08 48,13 48,16 48,15 48,15 48,15 48,27 48,47 48,51 48,53 48,53 48,53 48,68 48,64 48,67 48,66 48,66 48,67 48,71 48,96 49,01 49,04 49,04 49,04 49,06 49,13 49,19 49,26 49,26 49,26 49,29 49,43 49,43 49,45 49,45 49,46 49,57 49,68 49,71 49,7 49,7 49,8 49,84 50,09 50,2 50,16 50,16 50,29 50,36 51,02 51,03 51,04
 
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.686758989105527
beta0.135239935983842
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1348.0447.91668707712080.123312922879236
1448.0648.03271970806090.0272802919391211
1548.0448.0490772950521-0.00907729505211563
1648.0948.1167163506858-0.0267163506857599
1748.1248.1506047560502-0.0306047560502307
1848.1648.1877432868974-0.0277432868973762
1948.1648.1850937169537-0.0250937169537195
2048.1648.1827649173209-0.0227649173209485
2148.0848.0948899595994-0.0148899595994081
2248.1348.12898497311690.0010150268830742
2348.1648.14743336564560.0125666343543784
2448.1548.13541103981480.0145889601852076
2548.1548.2820007051115-0.132000705111466
2648.1548.1708476595438-0.0208476595438043
2748.2748.11655713875270.153442861247321
2848.4748.27938816333680.190611836663173
2948.5148.47060421789690.0393957821030995
3048.5348.5726268733716-0.0426268733716171
3148.5348.5748065685705-0.0448065685704577
3248.5348.5720630313411-0.0420630313411294
3348.6848.48332172842190.196678271578065
3448.6448.6983388676371-0.0583388676370689
3548.6748.7044607912358-0.0344607912358228
3648.6648.6807465854872-0.0207465854872382
3748.6648.7749629822466-0.114962982246652
3848.6748.7291053898704-0.0591053898703606
3948.7148.7182815292995-0.00828152929945958
4048.9648.78209944640750.177900553592465
4149.0148.91591124907480.0940887509252235
4249.0449.03386911005970.00613088994034428
4349.0449.0772949799023-0.0372949799022777
4449.0449.089731790502-0.0497317905020296
4549.0649.0786790947428-0.0186790947427511
4649.1349.05401864869220.0759813513077674
4749.1949.16093469637940.0290653036205981
4849.2649.19163335380960.0683666461904338
4949.2649.3331170381074-0.0731170381074406
5049.2649.3528147517729-0.0928147517728704
5149.2949.3509763751709-0.0609763751709096
5249.4349.4491397677637-0.0191397677636616
5349.4349.41356722349010.0164327765099159
5449.4549.4359939306660.0140060693340018
5549.4549.4573072614544-0.00730726145442873
5649.4649.4754044338477-0.0154044338476922
5749.5749.48983823746460.0801617625354396
5849.6849.56390917857940.116090821420649
5949.7149.68876451018250.0212354898174922
6049.749.7305345292593-0.0305345292593273
6149.749.7549483236664-0.0549483236664159
6249.849.77797995296320.0220200470368468
6349.8449.8728975063549-0.0328975063549137
6450.0950.01501847330960.0749815266903937
6550.250.07360816539940.126391834600604
6650.1650.1995860519914-0.0395860519914208
6750.1650.2011296136076-0.0411296136076373
6850.2950.21426330612150.0757366938784685
6950.3650.35103664760310.00896335239689705
7051.0250.41010678284710.609893217152887
7151.0350.91221439250530.117785607494660
7251.0451.0805565342605-0.040556534260503


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
7351.166710237895750.959006067781451.37441440801
7451.334549598332751.071099641639851.5979995550257
7551.477383285980451.157545252844451.7972213191163
7651.764014724457951.385674883523552.1423545653922
7751.862281389700451.424729125813452.2998336535875
7851.911184090823651.413042628140252.409325553507
7952.006208236867351.445306194583752.5671102791509
8052.15671983489551.530614172658252.7828254971317
8152.285299414531151.592294341775552.9783044872868
8252.595682367903951.831431149785453.3599335860224
8352.526026479562951.693896947685353.3581560114404
8452.557398294517150.698799697586854.4159968914474
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t12119189363uou3qhbzmya0i4/1j0qa1211918821.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t12119189363uou3qhbzmya0i4/1j0qa1211918821.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t12119189363uou3qhbzmya0i4/2rfhg1211918821.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t12119189363uou3qhbzmya0i4/2rfhg1211918821.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t12119189363uou3qhbzmya0i4/3pqyd1211918821.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t12119189363uou3qhbzmya0i4/3pqyd1211918821.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