Home » date » 2010 » May » 31 »

smoothing- zakje friet- Keshia Vleminx

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Mon, 31 May 2010 20:33:21 +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/May/31/t1275338065olnvbx87ride6j9.htm/, Retrieved Mon, 31 May 2010 22:34:26 +0200
 
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/May/31/t1275338065olnvbx87ride6j9.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:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W62
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2.06 2.06 2.05 2.04 2.04 2.03 2.03 2.03 2.02 2.02 2.02 2.02 2.01 2.01 2.01 2 2 1.99 1.99 1.99 1.98 1.97 1.97 1.96 1.96 1.96 1.96 1.95 1.94 1.94 1.93 1.93 1.93 1.92 1.92 1.9 1.9 1.9 1.9 1.89 1.88 1.88 1.87 1.86 1.86 1.85 1.83 1.82 1.8 1.8 1.79 1.78 1.78 1.78 1.77 1.77 1.76 1.75 1.75 1.75 1.75 1.75 1.74 1.74 1.74 1.74 1.73 1.73 1.73 1.73 1.73 1.72 1.71 1.71 1.71 1.7 1.7 1.7 1.7 1.7 1.69 1.68 1.67 1.65 1.61
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.927762771241466
beta0.198109645413317
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
132.012.03072115384615-0.0207211538461549
142.012.007481440022780.00251855997722172
152.012.006265575683810.0037344243161872
1621.997280794214960.00271920578504181
1721.998270584089080.0017294159109249
181.991.989076614922250.000923385077747696
191.991.984304557382350.00569544261764721
201.991.989589985758070.000410014241930323
211.981.979630483896710.000369516103292167
221.971.97928465930258-0.00928465930257993
231.971.968275541372080.00172445862792125
241.961.96779722654822-0.00779722654821624
251.961.945555087446530.0144449125534722
261.961.959778945134170.000221054865829018
271.961.959256124951260.000743875048742071
281.951.949610580599930.000389419400073532
291.941.95012626385646-0.0101262638564608
301.941.929454633908130.0105453660918706
311.931.93530254343693-0.00530254343692627
321.931.929329560050590.000670439949406409
331.931.918983526869130.0110164731308733
341.921.92914984006377-0.00914984006376707
351.921.92041752849116-0.000417528491158947
361.91.9182269009656-0.0182269009656035
371.91.8869610109090.0130389890910043
381.91.897640408302560.0023595916974426
391.91.898319865677580.00168013432242087
401.891.888869881837890.00113011816211439
411.881.88880181242994-0.00880181242994271
421.881.870584331406640.0094156685933584
431.871.87376381453316-0.00376381453316266
441.861.86945716870631-0.0094571687063083
451.861.848408334570070.0115916654299335
461.851.85570309936632-0.00570309936631874
471.831.84948441830759-0.0194844183075893
481.821.82349834477349-0.00349834477348709
491.81.80604331658941-0.00604331658940715
501.81.792627801621090.0073721983789079
511.791.79321038811514-0.00321038811513552
521.781.773586257425010.00641374257498684
531.781.773076635926390.0069233640736075
541.781.76902858944450.010971410555505
551.771.77124954700737-0.0012495470073739
561.771.767876556397380.00212344360261807
571.761.76023307832219-0.00023307832219488
581.751.75427537268716-0.00427537268715872
591.751.747615585866390.00238441413360846
601.751.746322681585290.0036773184147143
611.751.739909293818160.0100907061818423
621.751.74996500639083.49936092007841e-05
631.741.74916096388099-0.00916096388099419
641.741.729802635796810.0101973642031861
651.741.738626860908270.00137313909172843
661.741.734488547220020.00551145277997622
671.731.73452422292915-0.00452422292915178
681.731.73151795586241-0.00151795586240877
691.731.722817800088880.00718219991111613
701.731.727302534065410.00269746593458664
711.731.73272939559088-0.0027293955908827
721.721.73098199671585-0.0109819967158451
731.711.7129336754931-0.00293367549309709
741.711.709287737716250.000712262283754761
751.711.70768051341860.00231948658139758
761.71.70171456836556-0.00171456836556105
771.71.698003366499490.00199663350050594
781.71.694010503680880.0059894963191156
791.71.693120660449910.00687933955008502
801.71.70236323854667-0.0023632385466672
811.691.69480385424044-0.00480385424044405
821.681.68693790496287-0.00693790496287483
831.671.68035593379931-0.0103559337993102
841.651.66685755060263-0.0168575506026325
851.611.63878035710017-0.0287803571001695


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
861.601508474399881.58537064687161.61764630192816
871.589315899771761.56518691155521.61344488798833
881.570439652397831.538514773969081.60236453082659
891.558435425624621.518573231805321.59829761944393
901.542359790628771.494305720870921.59041386038661
911.52435773025261.467812254013991.58090320649121
921.513666175709731.448311895573591.57902045584587
931.495673293845891.421187305799651.57015928189212
941.48054324721631.396603221125471.56448327330714
951.469859498777241.376146776724241.56357222083023
961.457111116086241.353312286871631.56090994530085
971.438522666182541.324330321241631.55271501112344
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/31/t1275338065olnvbx87ride6j9/10bda1275337996.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/31/t1275338065olnvbx87ride6j9/10bda1275337996.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/31/t1275338065olnvbx87ride6j9/2b2cd1275337996.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/31/t1275338065olnvbx87ride6j9/2b2cd1275337996.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/31/t1275338065olnvbx87ride6j9/3b2cd1275337996.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/31/t1275338065olnvbx87ride6j9/3b2cd1275337996.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=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