Home » date » 2009 » Aug » 04 »

Vermeulennickopgave10

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 04 Aug 2009 04:33:55 -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/Aug/04/t12493820806dernklvgus4gk4.htm/, Retrieved Tue, 04 Aug 2009 12:34:44 +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/Aug/04/t12493820806dernklvgus4gk4.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:
roze garnalen
 
Dataseries X:
» Textbox « » Textfile « » CSV «
112 118 132 129 121 135 148 148 136 119 104 118 115 126 141 135 125 149 170 170 158 133 114 140 145 150 178 163 172 178 199 199 184 162 146 166 171 180 193 181 183 218 230 242 209 191 172 194 196 196 236 235 229 243 264 272 237 211 180 201 204 188 235 227 234 264 302 293 259 229 203 229 242 233 267 269 270 315 364 347 312 274 237 278 284 277 317 313 318 374 413 405 355 306 271 306 315 301 356 348 355 422 465 467 404 347 305 336 340 318 362 348 363 435 491 505 404 359 310 337 360 342 406 396 420 472 548 559 463 407 362 405 417 391 419 461 472 535 622 606 508 461 390 432
 
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'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.247959489735621
beta0.0345337296488465
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13115110.6431623931624.35683760683766
14126122.0731433875873.92685661241272
15141137.4301320536283.56986794637163
16135132.0625039833162.93749601668370
17125123.063226970461.93677302954006
18149147.4990623845791.50093761542098
19170160.1313474162149.86865258378634
20170163.5063250513586.4936749486424
21158153.8500500719084.14994992809187
22133138.731495445679-5.73149544567858
23114123.321997399522-9.32199739952222
24140135.6090430410434.39095695895742
25145136.8604638401148.13953615988564
26150149.1778641595620.822135840438364
27178163.74277873872514.2572212612748
28163160.8873683072802.1126316927203
29172151.26166711948020.7383328805204
30178180.523451938488-2.52345193848808
31199198.9079414187760.0920585812235686
32199197.6941126433421.30588735665759
33184185.317990243194-1.31799024319366
34162161.6946288593070.305371140692898
35146145.4157878514150.584212148585237
36166170.890657487435-4.89065748743522
37171172.999007307477-1.99900730747714
38180177.5519720772152.44802792278534
39193202.890186966572-9.89018696657155
40181184.973617184964-3.9736171849643
41183187.853581322794-4.8535813227945
42218193.06418760533624.9358123946635
43230220.2479488461139.75205115388661
44242222.44849022136719.5515097786334
45209212.885752351812-3.88575235181227
46191190.0870074036010.912992596399391
47172174.41421857194-2.41421857193995
48194195.248286577791-1.24828657779145
49196200.685635881057-4.6856358810567
50196208.144971709426-12.1449717094261
51236220.68911254080815.3108874591920
52235213.78992052088921.2100794791114
53229222.7873317405286.21266825947168
54243253.774189579802-10.7741895798022
55264261.008168974432.99183102556992
56272269.1678075187862.83219248121378
57237237.95618678454-0.956186784540307
58211219.640392882199-8.6403928821988
59180199.162435425533-19.1624354255327
60201216.642919355326-15.6429193553264
61204215.725163322482-11.7251633224824
62188215.568185948207-27.5681859482071
63235244.542771479218-9.5427714792177
64227235.311347905093-8.31134790509267
65234224.8512269469919.14877305300945
66264242.95770303988721.0422969601127
67302267.87231929887034.1276807011296
68293283.3377797468769.66222025312373
69259250.7346469911798.26535300882136
70229228.769483300910.230516699089975
71203202.4970072961700.502992703829761
72229227.5877912857471.41220871425273
73242234.0786217080017.92137829199925
74233227.2801229710165.71987702898392
75267278.751213081092-11.7512130810916
76269270.565926630948-1.56592663094830
77270275.634536741208-5.63453674120785
78315299.61859526655515.3814047334445
79364333.52063681328730.4793631867127
80347330.20156310420716.7984368957933
81312298.89764756239913.1023524376011
82274272.7109857773541.28901422264624
83237247.53659554364-10.5365955436402
84278271.1099527898396.89004721016096
85284284.437307658672-0.437307658672239
86277274.4220833394942.57791666050576
87317312.4597305930044.54026940699589
88313316.597926811575-3.59792681157455
89318318.70963058687-0.709630586870162
90374360.36858449974613.6314155002536
91413405.8248697102657.17513028973451
92405386.87301988306118.1269801169390
93355353.5646406373531.43535936264681
94306315.946740877587-9.94674087758744
95271279.342602124885-8.3426021248847
96306316.83391044474-10.8339104447402
97315320.372592752746-5.3725927527455
98301311.475546446946-10.4755464469461
99356347.7148140007468.28518599925422
100348346.6559937740831.3440062259167
101355352.2021792990652.79782070093495
102422405.58288763546716.4171123645332
103465446.96537959720918.034620402791
104467439.1263223763727.8736776236296
105404395.9492591677768.05074083222434
106347351.735857721495-4.73585772149539
107305317.998757010999-12.9987570109991
108336352.790665052808-16.7906650528075
109340359.237140476179-19.2371404761793
110318343.223593245563-25.2235932455625
111362389.947459573453-27.9474595734534
112348374.406789879841-26.4067898798411
113363373.650027638874-10.6500276388742
114435433.3081180437261.69188195627368
115491471.49933393927619.5006660607241
116505470.67927294531634.3207270546843
117404413.504477870092-9.50447787009193
118359354.4830410564354.51695894356527
119310316.066448406359-6.06644840635863
120337349.025200176063-12.0252001760634
121360354.1538562087515.84614379124918
122342339.4130666563942.58693334360578
123406390.77767404240615.2223259575936
124396387.2629846674838.73701533251727
125420407.53409746255812.4659025374422
126472482.867470544423-10.8674705444230
127548531.89171001552216.1082899844778
128559541.90102173974517.0989782602554
129463447.87539022493815.1246097750618
130407406.0943450300010.905654969998693
131362359.3809078701012.61909212989923
132405390.64423675049114.3557632495089
133417416.6123145742660.387685425733935
134391398.878286514509-7.87828651450872
135419457.871953443463-38.8719534434628
136461436.32533337469524.6746666253047
137472463.7475613898478.2524386101527
138535520.84739366095314.1526063390472
139622596.93557876272325.0644212372767
140606610.560492406651-4.56049240665084
141508510.14372167159-2.14372167158962
142461453.7040688180897.29593118191099
143390410.234924183382-20.2349241833816
144432444.833325554046-12.8333255540460


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
145453.497721751322428.415266965021478.580176537623
146429.390569251949403.49600160324455.285136900659
147467.036052088739440.301472551841493.770631625637
148503.25740665386475.655792079981530.859021227739
149512.339520167483.844695250902540.834345083098
150571.887965749639542.474571456702601.301360042575
151652.609534991379622.252994696779682.966075285979
152637.462256917306606.138741269289668.785772565324
153539.754768946301507.441160256026572.068377636576
154490.72498608621457.398842867375524.051129305044
155424.459265263961390.098787394926458.819743132996
156469.531518789793434.115513646617504.947523932969
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/04/t12493820806dernklvgus4gk4/1qj5g1249382032.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/04/t12493820806dernklvgus4gk4/1qj5g1249382032.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/04/t12493820806dernklvgus4gk4/23cac1249382032.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/04/t12493820806dernklvgus4gk4/23cac1249382032.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/04/t12493820806dernklvgus4gk4/354e31249382032.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/04/t12493820806dernklvgus4gk4/354e31249382032.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=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