Home » date » 2010 » Dec » 22 »

voorspelling 10.2 boeken

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 22 Dec 2010 14:12:30 +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/22/t12930271468ni6uky2g9fy43o.htm/, Retrieved Wed, 22 Dec 2010 15:12:27 +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/22/t12930271468ni6uky2g9fy43o.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:
voorspelling 10.2 boeken
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
90 69.3 87.3 57.4 56.2 61.6 77.7 177.2 97.6 81.6 96.8 191.3 106 75.1 72 63.5 57.4 62.3 79.4 178.1 109.3 85.2 102.7 193.7 108.4 73.4 85.9 58.5 58.6 62.7 77.5 180.5 102.2 82.6 97.8 197.8 93.8 72.4 77.7 58.7 53.1 64.3 76.4 188.4 105.5 79.8 96.1 202.5 97.3 89.5 64.7 61.2 57.8 62 76.3 195 110.9 81.4 101.7 202.2 97.4 68.5 86.8 59.1 62.4 66.2 68 198.5 120.4 90.2 103.2 207.3 106.4 75.5 97.3 60 67.5 71.2 73.7 213.3 114.6 96.1 117 229.2 105.6 99.9 79.3 72.5 67.4 78.3 85.7 177.4 113.6 94.1 105.7 228.3 100.3 70.3 94.2 66.5 64.4 73.7 87.9 152.2 97.3 89.3 107.6 228.4
 
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.388480381575032
beta0.079378799348397
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
387.348.638.7
457.444.127586779209313.2724132207907
556.230.186337760713126.013662239287
661.621.99700008934539.602999910655
777.720.308095418355157.3919045816449
8177.227.2996314817916149.900368518208
997.674.851384506608522.7486154933915
1081.673.70867747164417.8913225283559
1196.867.037549147788129.7624508522119
12191.369.780712960143121.519287039857
13106111.916910673859-5.91691067385916
1475.1104.3641852701-29.2641852700999
157286.8390789316744-14.8390789316744
1663.574.4602491540468-10.9602491540468
1757.463.250286280699-5.850286280699
1862.353.84503783453528.45496216546477
1979.450.257824329982129.1421756700179
20178.155.605847789181122.494152210819
21109.3100.9966479036678.30335209633299
2285.2102.282613768227-17.0826137682267
23102.793.1798515511059.52014844889507
24193.794.705314380368598.9946856196315
25108.4134.04258919058-25.6425891905805
2673.4124.169984676402-50.769984676402
2785.9102.970280563629-17.0702805636285
2858.594.3358523079252-35.8358523079252
2958.677.3062935949926-18.7062935949926
3062.766.3543844237556-3.65438442375563
3177.561.137156030003916.3628439699961
32180.564.2008109189472116.299189081053
33102.2109.674105741473-7.47410574147283
3482.6106.833423969598-24.2334239695977
3597.896.73478718753311.06521281246687
36197.896.4970225565805101.302977443419
3793.8138.323553657549-44.5235536575489
3872.4122.126360757447-49.7263607574465
3977.7102.374562299322-24.6745622993225
4058.791.5940039658122-32.8940039658122
4153.176.6059979017651-23.5059979017651
4264.364.5401910606676-0.240191060667613
4376.461.505286941590214.8947130584098
44188.464.8093059990854123.590694000915
45105.5114.15076057243-8.65076057243009
4679.8111.852239990084-32.0522399900841
4796.199.4743054237077-3.37430542370771
48202.598.133132005557104.366867994443
4997.3141.865662946582-44.5656629465819
5089.5126.366551354878-36.8665513548784
5164.7112.721535810545-48.0215358105447
5261.293.26218244586-32.06218244586
5357.879.0140198389737-21.2140198389737
546268.3259765970259-6.32597659702591
5576.363.226571262095913.0734287379041
5619566.0666010251793128.933398974821
57110.9117.8918891598-6.9918891598
5881.4116.697259865209-35.2972598652093
59101.7103.418084005214-1.71808400521401
60202.2103.13077845725399.0692215427473
6197.4145.052371938275-47.6523719382755
6268.5128.5060435415-60.0060435415
6386.8105.31014334553-18.5101433455298
6459.197.6637870342588-38.5637870342588
6562.481.0377879722635-18.6377879722635
6666.271.577913180987-5.37791318098701
676867.10340032804450.896599671955514
68198.565.0940611617671133.405938838233
69120.4118.6758537487081.72414625129198
7090.2121.155020986148-30.9550209861484
71103.2109.984409594208-6.78440959420841
72207.3107.99439497914499.3056050208558
73106.4150.280567217266-43.8805672172662
7475.5135.588570914034-60.0885709140336
7597.3112.747125503834-15.4471255038337
7660106.771661190078-46.7716611900785
7767.587.1849266142028-19.6849266142028
7871.277.5138308482658-6.31383084826578
7973.772.84244319478170.857556805218323
80213.370.9834435236719142.316556476328
81114.6128.467120796611-13.8671207966114
8296.1124.848881649245-28.7488816492445
83117114.5628380490692.43716195093079
84229.2116.467115588559112.732884411441
85105.6164.695473411175-59.0954734111746
8699.9144.349551828394-44.4495518283938
8779.3128.322587897676-49.0225878976756
8872.5109.007374417674-36.5073744176737
8967.493.4282940616907-26.0282940616907
9078.381.1174935712128-2.81749357121281
9185.777.73675036329587.96324963670418
92177.478.789677965673598.6103220343265
93113.6118.098071820628-4.49807182062801
9494.1117.212169968524-23.112169968524
95105.7108.382343724036-2.6823437240355
96228.3107.406388456074120.893611543926
97100.3158.165276589424-57.8652765894245
9870.3137.69544596786-67.3954459678596
9994.2111.445050980946-17.2450509809459
10066.5104.145313105131-37.6453131051313
10164.487.7596010946749-23.3596010946749
10273.776.2032654359678-2.50326543596778
10387.972.672013549966715.2279864500333
104152.276.498592198725275.7014078012747
10597.3106.152321005549-8.85232100554869
10689.3102.685605018411-13.3856050184113
107107.697.045023803864110.5549761961359
108228.4101.030373637203127.369626362797


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
109154.32363404326447.272984601823261.374283484706
110158.13629339883742.0553178321554274.21726896552
111161.9489527544136.2628137538313287.63509175499
112165.76161210998429.9371870635074301.58603715646
113169.57427146555723.1147393626518316.033803568461
114173.3869308211315.8269079760202330.946953666239
115177.1995901767038.10089664849966346.298283704905
116181.012249532276-0.0397086291137612362.064207693665
117184.824908887849-8.57438260678703378.224200382484
118188.637568243422-17.4851774468497394.760313933693
119192.450227598995-26.7563131865662411.656768384555
120196.262886954568-36.3738354169099428.899609326045
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/22/t12930271468ni6uky2g9fy43o/1my3m1293027146.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t12930271468ni6uky2g9fy43o/1my3m1293027146.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t12930271468ni6uky2g9fy43o/2eplp1293027146.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t12930271468ni6uky2g9fy43o/2eplp1293027146.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t12930271468ni6uky2g9fy43o/3eplp1293027146.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t12930271468ni6uky2g9fy43o/3eplp1293027146.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=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