Home » date » 2008 » May » 25 »

marlies smulders eigen reeks exponential smoothing

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 25 May 2008 05:22:57 -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/25/t1211714736xskov2vo9z0u3pi.htm/, Retrieved Sun, 25 May 2008 13:25:36 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2301 2512 3145 2741 2548 1987 2281 2016 2434 2637 1831 1851 1839 2609 2417 2394 2372 2717 2998 2538 3007 2475 2175 2465 2279 2323 2746 2601 2486 2718 2646 2551 2712 2606 2365 3533 3509 2912 3599 2719 2869 4085 2686 2545 3071 3388 2652 3190 2884 3295 3818 3226 3953 3810 2877 3515 3708 3450 3360 4098 4374 3703 4257 3487 3659 3904 2957 3320 3420 3500 2791 2919
 
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 time6 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.421222314791007
beta0.00099345799369076
gamma0.768751783081094


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1318391771.2334722222267.7665277777769
1426092532.9596111981176.0403888018895
1524172342.2027054355674.797294564442
1623942348.4534808160245.5465191839844
1723722352.9439032484319.0560967515726
1827172680.9506096321936.0493903678062
1929982948.1303559574649.869644042536
2025382517.6523703107720.3476296892345
2130073008.37256824583-1.3725682458321
2224752468.401493088236.59850691176689
2321752172.749107248482.25089275152413
2424652473.84968456526-8.84968456526394
2522792143.71420776375135.285792236248
2623232937.75297110593-614.752971105929
2727462455.36697713888290.633022861118
2826012539.5097513746561.49024862535
2924862538.92805555715-52.9280555571531
3027182844.14282193609-126.142821936087
3126463049.05330747937-403.053307479365
3225512414.36970120493136.630298795074
3327122944.16635998225-232.166359982251
3426062310.18954340422295.810456595778
3523652134.20943081216230.790569187843
3635332526.516763269941006.48323673006
3735092688.49796404187820.502035958134
3829123438.03698676852-526.036986768515
3935993396.48785159841202.512148401586
4027193342.14985767164-623.14985767164
4128693002.57877308779-133.578773087785
4240853241.51716235907843.482837640932
4326863732.3252381571-1046.3252381571
4425453067.21399489408-522.213994894081
4530713155.53196733373-84.5319673337344
4633882818.85220515374569.14779484626
4726522729.38660990147-77.3866099014654
4831903337.19620546927-147.19620546927
4928842930.16878520631-46.1687852063087
5032952714.85655656415580.143443435847
5138183463.21024850511354.789751494895
5232263105.5085727968120.491427203198
5339533297.17562139202655.82437860798
5438104303.86067100086-493.860671000857
5528773390.44800908055-513.448009080553
5635153183.15824520286331.84175479714
5737083826.48714866684-118.487148666835
5834503766.85933806598-316.85933806598
5933603016.65905314433343.340946855669
6040983770.94167772287327.058322277132
6143743609.14410377887764.855896221132
6237034014.97453174642-311.974531746417
6342574287.75871686254-30.7587168625396
6434873663.72478309449-176.724783094489
6536593968.5796685894-309.579668589402
6639044056.86713288802-152.867132888015
6729573278.30497701392-321.304977013923
6833203528.06225466171-208.062254661705
6934203743.38984196395-323.389841963947
7035003508.88970774994-8.88970774994368
7127913181.98936814293-390.989368142926
7229193619.23279439654-700.23279439654


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
733218.601306634922438.835607182613998.36700608723
742821.908228673531975.662694317903668.15376302916
753350.128640099862442.140129336114258.11715086361
762673.020668916361707.117126744633638.9242110881
772992.193275989541971.550699633444012.83585234563
783279.728532473232207.036500106614352.42056483984
792489.796089393241367.369856348453612.22232243803
802924.597244726181754.456723850654094.73776560171
813175.656169606761959.583400749074391.72893846444
823216.847243491601956.429343243714477.26514373948
832723.224768306161419.886760009654026.56277660266
843187.274967331211842.30536398574532.24457067673
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211714736xskov2vo9z0u3pi/1l5q21211714568.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211714736xskov2vo9z0u3pi/1l5q21211714568.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211714736xskov2vo9z0u3pi/2olo81211714568.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211714736xskov2vo9z0u3pi/2olo81211714568.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211714736xskov2vo9z0u3pi/3p7gz1211714568.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211714736xskov2vo9z0u3pi/3p7gz1211714568.ps (open in new window)


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