Home » date » 2008 » May » 26 »

neerslag in Notingham

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Mon, 26 May 2008 14:57:40 -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/26/t1211835514k4dirjiaqwxslvn.htm/, Retrieved Mon, 26 May 2008 22:58:37 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
29.90 28.77 15.64 23.73 25.65 21.81 28.97 24.29 25.33 28.84 19.99 19.75 22.70 23.28 24.15 20.38 27.75 27.31 25.61 22.64 26.05 28.07 21.02 25.00 17.93 35.45 17.70 28.53 26.55 26.51 30.78 26.83 27.49 25.89 20.44 19.79 18.14 27.98 35.90 34.38 21.58 21.53 31.14 28.25 25.16 20.51 30.05 20.17 32.37 22.46 25.40 19.82 18.14 20.10 20.25 19.73 24.74 26.17 20.14 31.71 26.66 20.75 20.01 26.67 23.91 26.81 29.31 31.76 22.99 23.94 27.04 20.28 23.32
 
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 time7 seconds
R Server'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.0059609824078949
beta0
gamma0.149848445764807


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1322.721.83764812641930.862351873580732
1423.2822.59535256213740.684647437862608
1524.1523.48184066715790.668159332842098
1620.3819.82122663950130.558773360498666
1727.7526.98151691826310.768483081736893
1827.3126.27196655271461.0380334472854
1925.6124.62210131775650.987898682243461
2022.6421.49905751983341.14094248016659
2126.0524.50765775235911.54234224764089
2228.0726.34286140752841.72713859247157
2321.0219.50762500501551.51237499498450
242523.28898744446461.71101255553539
2517.9322.0404407121803-4.1104407121803
2635.4522.743491122506412.7065088774936
2717.723.7037352652812-6.00373526528117
2828.5319.97415178106998.55584821893014
2926.5527.2557072182352-0.705707218235155
3026.5126.5737299013003-0.0637299013002917
3130.7824.90094690013685.87905309986323
3226.8321.80963562559305.02036437440704
3327.4924.92419415636572.56580584363426
3425.8926.8073718865538-0.917371886553806
3520.4419.87478813160180.565211868398251
3619.7923.7062178522269-3.91621785222694
3718.1421.5446794857404-3.40467948574039
3827.9824.76882276066343.21117723933658
3935.922.878267544932613.0217324550674
4034.3821.415345139586212.9646548604138
4121.5827.3966351700835-5.81663517008354
4221.5326.7751943751373-5.24519437513732
4331.1425.95015790136265.18984209863742
4428.2522.70444485353695.54555514646314
4525.1625.474351175511-0.314351175510978
4620.5126.8295288302594-6.31952883025937
4730.0520.05372687748949.99627312251055
4820.1723.2971649588303-3.12716495883026
4932.3721.200066705544711.1699332944553
5022.4625.5463776645605-3.08637766456047
5125.425.06834555334260.331654446657375
5219.8223.5034081196583-3.68340811965834
5318.1426.5944361904885-8.45443619048846
5420.126.0405573195039-5.94055731950387
5520.2526.7660522996157-6.51605229961571
5619.7323.5055920427926-3.77559204279258
5724.7425.3407038205359-0.600703820535934
5826.1725.79674258388650.373257416113482
5920.1421.4953500595627-1.35535005956267
6031.7122.70940078603729.00059921396284
6126.6622.80891376647483.85108623352523
6220.7524.9784441593524-4.22844415935237
6320.0125.0025068992166-4.99250689921658
6426.6722.81992521065563.85007478934439
6523.9125.2333903694891-1.32339036948913
6626.8125.09557486771951.71442513228055
6729.3125.77917931233553.53082068766451
6831.7622.98150996669458.7784900333055
6922.9925.3758643609065-2.38586436090646
7023.9425.9690638901831-2.02906389018307
7127.0421.37772467400525.6622753259948
7220.2824.1893790324116-3.90937903241156
7323.3223.4424457585962-0.122445758596172


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
7424.385623593142822.824554362394325.9466928238913
7524.320027261945322.757881129113425.8821733947772
7623.480639431595021.917019724330225.0442591388597
7725.104924446747723.540055439473226.6697934540223
7825.428378379279823.861982238473426.9947745200862
7926.374396166715924.807812108193927.940980225238
8024.330638904017422.762527522342225.8987502856926
8125.009175693881823.439477022886926.5788743648767
8225.669680897213124.101270765265427.2380910291608
8322.232770417216820.662151033820923.8033898006127
8423.583018653314922.011394822941125.1546424836886
8523.4234769289001NANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211835514k4dirjiaqwxslvn/1v9er1211835452.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211835514k4dirjiaqwxslvn/1v9er1211835452.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211835514k4dirjiaqwxslvn/25ck61211835452.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211835514k4dirjiaqwxslvn/25ck61211835452.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211835514k4dirjiaqwxslvn/3i6dv1211835452.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211835514k4dirjiaqwxslvn/3i6dv1211835452.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