Home » date » 2009 » Jun » 04 »

Exponential smoothing - gemiddelde prijs strip - Dellaert Kenny

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Thu, 04 Jun 2009 04:12:59 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/04/t1244110510v241o8y96pipoak.htm/, Retrieved Thu, 04 Jun 2009 12:15:10 +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/2009/Jun/04/t1244110510v241o8y96pipoak.htm/},
    year = {2009},
}
@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 = {2009},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
5,11 5,11 5,11 5,1 5,1 5,1 5,1 5,1 5,12 5,25 5,26 5,26 5,26 5,26 5,26 5,26 5,29 5,3 5,33 5,33 5,35 5,38 5,38 5,38 5,38 5,38 5,39 5,39 5,4 5,4 5,4 5,4 5,4 5,41 5,41 5,41 5,41 5,41 5,42 5,42 5,42 5,42 5,43 5,43 5,45 5,51 5,51 5,51 5,51 5,51 5,51 5,53 5,53 5,53 5,53 5,52 5,53 5,54 5,54 5,57 5,56 5,57 5,58 5,61 5,66 5,68 5,69 5,7 5,72 5,71 5,69 5,7 5,7
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.0406582087810778
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
35.115.110
45.15.11-0.0100000000000007
55.15.099593417912190.000406582087810747
65.15.09960994881160.000390051188397855
75.15.099625807594260.000374192405744544
85.15.099641021587210.000358978412787536
95.125.099655617006470.0203443829935335
105.255.120482783177740.129517216822260
115.265.255748721220040.00425127877995557
125.265.26592157060027-0.00592157060026643
135.265.26568081014649-0.00568081014648847
145.265.26544983858151-0.00544983858150694
155.265.26522825790664-0.00522825790663717
165.265.26501568630511-0.00501568630510718
175.295.264811757484130.0251882425158660
185.35.295835866307170.00416413369282687
195.335.306005172524250.023994827475752
205.335.33698075922942-0.00698075922942287
215.355.336696934063220.0133030659367765
225.385.357237812895510.0227621871044921
235.385.38816328265112-0.00816328265111732
245.385.38783137820075-0.0078313782007493
255.385.38751296839082-0.00751296839081927
265.385.38720750455342-0.00720750455341967
275.395.38691446032850.00308553967150349
285.395.39703991284466-0.00703991284466277
295.45.396753682598420.00324631740157688
305.45.40688567204911-0.00688567204910662
315.45.40660571295734-0.00660571295733625
325.45.40633713650077-0.00633713650076917
335.45.40607947988185-0.00607947988184598
345.415.405832299119530.00416770088046992
355.415.41600175037207-0.0060017503720653
365.415.41575772995239-0.00575772995238566
375.415.41552363096588-0.00552363096587616
385.415.41529905002484-0.00529905002483666
395.425.415083600142590.00491639985741443
405.425.42528349215444-0.00528349215443935
415.425.42506867482733-0.00506867482733053
425.425.42486259158796-0.00486259158795743
435.435.424664887323960.00533511267604236
445.435.43488180344901-0.00488180344901057
455.455.434683318065150.0153166819348476
465.515.455306066917090.0546939330829064
475.515.51752982426744-0.00752982426743642
485.515.51722367510029-0.00722367510028565
495.515.51692997340989-0.00692997340989177
505.515.51664821310414-0.0066482131041452
515.515.51637790866774-0.00637790866773535
525.535.516118594325540.0138814056744643
535.535.53668298741562-0.00668298741562356
545.535.536411269118-0.00641126911799805
555.535.53615059839965-0.00615059839964616
565.525.53590052608579-0.0159005260857858
575.535.525254039176460.00474596082354051
585.545.535447001442490.00455299855750901
595.545.54563211820842-0.00563211820842202
605.575.545403126370420.0245968736295765
615.565.57640319119382-0.0164031911938176
625.575.565736266821580.00426373317841744
635.585.575909622575340.00409037742466190
645.615.586075929994660.0239240700053376
655.665.617048639827830.0429513601721663
665.685.668794965197140.0112050348028552
675.695.689250541841560.000749458158442629
685.75.699281013467840.000718986532162624
695.725.709310246172370.0106897538276272
705.715.72974487241531-0.0197448724153144
715.695.7189420812703-0.0289420812702961
725.75.697765348087450.00223465191254935
735.75.70785620503146-0.00785620503146323


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
745.707536785807075.667857203258315.74721636835583
755.715073571614135.657806028603265.77234111462501
765.72261035742125.651052603736475.79416811110594
775.730147143228275.645870831968325.81442345448822
785.737683929035345.641607238091765.83376061997891
795.74522071484245.637934092655455.85250733702936
805.752757500649475.634661063823165.87085393747579
815.760294286456545.631666982614585.8889215902985
825.767831072263615.628869676593225.90679246793399
835.775367858070675.626210784994255.9245249311471
845.782904643877745.623647375100215.94216191265527
855.790441429684815.621146980293975.95973587907565
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244110510v241o8y96pipoak/16ft01244110374.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244110510v241o8y96pipoak/16ft01244110374.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244110510v241o8y96pipoak/2fgwk1244110374.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244110510v241o8y96pipoak/2fgwk1244110374.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244110510v241o8y96pipoak/3dpqd1244110374.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244110510v241o8y96pipoak/3dpqd1244110374.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=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