Home » date » 2009 » Jun » 06 »

Ken Soltvedt Sigaretten O10

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Fri, 05 Jun 2009 16:05:23 -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/06/t1244239554ci881xylo80qw9g.htm/, Retrieved Sat, 06 Jun 2009 00:05:58 +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/06/t1244239554ci881xylo80qw9g.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 «
3.42 3.42 3.43 3.47 3.51 3.52 3.52 3.52 3.52 3.52 3.52 3.52 3.52 3.52 3.58 3.6 3.61 3.61 3.61 3.63 3.68 3.69 3.69 3.69 3.69 3.69 3.69 3.69 3.69 3.78 3.79 3.79 3.8 3.8 3.8 3.8 3.81 3.95 3.99 4 4.06 4.16 4.19 4.2 4.2 4.2 4.2 4.2 4.23 4.38 4.43 4.44 4.44 4.44 4.44 4.44 4.45 4.45 4.45 4.45 4.45 4.45 4.45 4.45 4.46 4.46 4.46 4.48 4.58 4.67 4.68 4.68
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.873418950693836
beta0.0296759775106365
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
133.523.465024097108970.0549759028910324
143.523.516379168665760.00362083133424251
153.583.58007339645459-7.33964545860388e-05
163.63.598035063641870.00196493635812889
173.613.607412440192170.00258755980783043
183.613.607410600781140.00258939921886370
193.613.64964552079433-0.039645520794326
203.633.617420534767750.0125794652322471
213.683.628944738102150.051055261897853
223.693.67395573969760.0160442603024031
233.693.69092692300590-0.000926923005895475
243.693.69477467449461-0.00477467449460711
253.693.70288088133550-0.0128808813354953
263.693.68857502755980.00142497244019779
273.693.75299048235024-0.0629904823502381
283.693.71561636123817-0.0256163612381686
293.693.69930899812387-0.0093089981238701
303.783.686730938692790.0932690613072071
313.793.80424694387552-0.0142469438755199
323.793.80185326741977-0.0118532674197676
333.83.797071250029150.00292874997084658
343.83.794330251240740.00566974875926229
353.83.79872814766320.00127185233679983
363.83.80280392207294-0.00280392207293678
373.813.81066134800965-0.000661348009649565
383.953.807820618592250.142179381407754
393.993.99278607106964-0.00278607106963724
4044.01831319290046-0.0183131929004636
414.064.015127831175020.0448721688249751
424.164.068693527883460.091306472116539
434.194.178071966607820.0119280333921798
444.24.20555035994741-0.00555035994741004
454.24.21472478598400-0.0147247859840043
464.24.20170280812858-0.00170280812857726
474.24.20408432051875-0.0040843205187473
484.24.20816490533-0.00816490533000191
494.234.217533931060470.0124660689395295
504.384.250448409525950.129551590474050
514.434.414938667685270.0150613323147262
524.444.46179694593563-0.0217969459356278
534.444.47062818506073-0.0306281850607295
544.444.46879802914675-0.0287980291467473
554.444.4647068575573-0.0247068575572955
564.444.45819796749402-0.0181979674940225
574.454.45496059279912-0.00496059279912053
584.454.45150519670828-0.00150519670828153
594.454.45328331929561-0.00328331929560921
604.454.45731156450628-0.00731156450628223
614.454.47054849457995-0.0205484945799475
624.454.48956230108177-0.0395623010817703
634.454.48728060425283-0.0372806042528264
644.454.47759229284161-0.0275922928416064
654.464.47388736617346-0.0138873661734555
664.464.48098975504584-0.0209897550458367
674.464.47850731393273-0.0185073139327319
684.484.472654445919910.00734555408009285
694.584.488471821536450.0915281784635482
704.674.566884345713140.103115654286857
714.684.659409968395290.0205900316047112
724.684.68410351827942-0.00410351827941913


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
734.69946427202594.620410170002974.77851837404882
744.736479517250774.629980530740794.84297850376076
754.772611806985044.643121432385244.90210218158483
764.800851507480464.650894242525004.95080877243591
774.82780784251744.658894466000944.99672121903386
784.851064512205694.664313150587745.03781587382363
794.87257587735114.668770613353025.07638114134918
804.891807712017124.671575318827765.11204010520648
814.91768556818334.681154051962855.15421708440374
824.919241569638044.667830823035645.17065231624044
834.910231775938824.644753466531085.17571008534656
844.912925293287880.8850390058003858.94081158077537
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t1244239554ci881xylo80qw9g/1mq5e1244239521.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t1244239554ci881xylo80qw9g/1mq5e1244239521.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t1244239554ci881xylo80qw9g/2mzq91244239521.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t1244239554ci881xylo80qw9g/2mzq91244239521.ps (open in new window)


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