Home » date » 2010 » May » 29 »

Maandelijkse melkproductie

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sat, 29 May 2010 13:30:09 +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/29/t1275139928htg26hdca04i4f3.htm/, Retrieved Sat, 29 May 2010 15:32:12 +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/29/t1275139928htg26hdca04i4f3.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 «
589 561 640 656 727 697 640 599 568 577 553 582 600 566 653 673 742 716 660 617 583 587 565 598 628 618 688 705 770 736 678 639 604 611 594 634 658 622 709 722 782 756 702 653 615 621 602 635 677 635 736 755 811 798 735 697 661 667 645 688 713 667 762 784 837 817 767 722 681 687 660 698 717 696 775 796 858 826 783 740 701 706 677 711 734 690 785 805 871 845 801 764 725 723 690 734 750 707 807 824 886 859 819 783 740 747 711 751 804 756 860 878 942 913 869 834 790 800 763 800 826 799 890 900 961 935 894 855 809 810 766 805 821 773 883 898 957 924 881 837 784 791 760 802 828 778 889 902 969 947 908 867 815 812 773 813 834 782 892 903 966 937 896 858 817 827 797 843
 
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'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.543073214984479
beta0
gamma0.942604207416955


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13600592.9080702004677.09192979953343
14566562.6751091998433.32489080015671
15653651.150879572161.84912042784015
16673672.3851876111590.614812388841187
17742742.118596249891-0.118596249891425
18716716.179878460986-0.179878460985719
19660655.0350589168184.96494108318177
20617616.1720223321510.827977667849382
21583585.175810628719-2.17581062871932
22587593.241738957405-6.24173895740535
23565565.242426375484-0.242426375484001
24598594.5878385673483.41216143265228
25628617.66089416763610.3391058323645
26618586.1220536531731.8779463468305
27688695.083053932834-7.08305393283376
28705712.00928700475-7.00928700475049
29770780.822628390711-10.8226283907111
30736747.829951993133-11.8299519931327
31678680.4307426735-2.43074267349982
32639634.4692472227634.53075277723656
33604603.091534335940.908465664059918
34611611.287395187533-0.287395187532752
35594588.1600010455395.83999895446141
36634623.76870125759910.231298742401
37658654.6924451845533.30755481544702
38622626.86819115501-4.86819115500964
39709699.9169268393319.08307316066873
40722726.108374499949-4.10837449994870
41782796.660131966902-14.660131966902
42756760.41120544434-4.41120544433943
43702699.3697433214132.63025667858676
44653657.709257002431-4.70925700243072
45615618.821664359513-3.82166435951342
46621624.06050307681-3.06050307681016
47602601.6520468788220.347953121177738
48635636.575918895763-1.57591889576349
49677658.16782238842318.8321776115770
50635634.6973772006390.302622799361302
51736718.18007726675817.8199227332416
52755743.81205118111311.1879488188871
53811820.627879480584-9.62787948058406
54798790.4515926077667.54840739223368
55735736.040719264392-1.04071926439156
56697686.94757472814310.0524252718571
57661654.2204402859986.77955971400172
58667665.989966453361.01003354664010
59645645.765238012644-0.765238012643636
60688681.6101286462816.38987135371906
61713718.54573242353-5.54573242353035
62667671.382809275995-4.38280927599465
63762764.55251513966-2.55251513965936
64784776.6643879354167.3356120645841
65837844.467654597554-7.46765459755409
66817822.162171354625-5.16217135462534
67767755.43192665104311.5680733489567
68722716.2948853265165.7051146734841
69681678.45446622172.54553377830007
70687685.5664168324141.43358316758554
71660664.148090676016-4.14809067601630
72698702.220824469723-4.22082446972263
73717728.719095313762-11.7190953137621
74696678.11871989863817.8812801013617
75775787.115225888424-12.115225888424
76796798.673109592635-2.67310959263477
77858855.6071454877722.39285451222838
78826839.201553386458-13.2015533864578
79783774.210737432588.78926256742068
80740730.2401827376519.75981726234852
81701692.4140746782588.58592532174225
82706702.4231288481353.57687115186491
83677679.106348228755-2.10634822875500
84711719.307570259149-8.30757025914886
85734740.89241068307-6.89241068307058
86690704.646437861595-14.6464378615949
87785783.1563893442741.84361065572625
88805806.597028246051-1.59702824605085
89871867.0127916030723.98720839692839
90845844.3681278247550.63187217524478
91801795.2331445930945.76685540690562
92764749.02037255430314.9796274456974
93725712.44322518942812.5567748105716
94723722.4997457116620.500254288338169
95690694.373597821263-4.37359782126293
96734731.4766014922162.52339850778390
97750760.311698581786-10.3116985817862
98707717.75969675123-10.7596967512300
99807808.358064246905-1.35806424690509
100824829.142850633479-5.14285063347859
101886891.680234931396-5.6802349313956
102859861.777433184102-2.77743318410239
103819812.1131805571596.88681944284099
104783769.5319604970413.4680395029595
105740730.224234102099.77576589790942
106747733.53049032399213.4695096760082
107711709.5604075167631.43959248323665
108751753.997723643214-2.99772364321382
109804774.79248954526829.2075104547318
110756751.4066489233724.59335107662798
111860860.92687768821-0.926877688210311
112878881.53297202236-3.53297202236070
113942948.987056508297-6.98705650829743
114913917.823590153726-4.82359015372572
115869868.2329264428880.767073557111758
116834822.38039095415611.6196090458437
117790777.53936453738812.4606354626115
118800783.73687732732316.2631226726775
119763753.789075579489.2109244205193
120800803.260033992059-3.26003399205877
121826839.865356207762-13.8653562077620
122799780.63092110665818.3690788933424
123890900.000836757672-10.0008367576717
124900915.30106789176-15.30106789176
125961977.049767831213-16.0497678312128
126935941.116867018099-6.11686701809879
127894891.9910576257852.00894237421505
128855850.2585258094654.74147419053497
129809800.8033639321538.19663606784673
130810806.240577092713.75942290729017
131766765.970603073730.0293969262697829
132805805.241335560175-0.241335560175344
133821839.068420765764-18.0684207657645
134773791.198102094539-18.1981020945386
135883876.4000246480746.59997535192565
136898898.175914936503-0.175914936502636
137957967.578166740362-10.5781667403616
138924938.875067244273-14.8750672442733
139881888.695391228737-7.69539122873698
140837843.316507441881-6.3165074418813
141784790.232524074934-6.23252407493419
142791785.9765065091125.02349349088797
143760745.9658542356114.0341457643897
144802792.1108501136799.8891498863212
145828823.436074474434.56392552557088
146778787.488837287769-9.48883728776889
147889889.285364221146-0.285364221145642
148902904.502971731331-2.50297173133129
149969968.4975871796440.502412820355744
150947943.5902619655793.40973803442125
151908905.4976532095362.50234679046389
152867865.0196493539611.98035064603869
153815814.7092635002610.290736499738955
154812818.94420448093-6.9442044809307
155773775.022497769282-2.02249776928250
156813811.3015896300451.69841036995535
157834836.172248665732-2.17224866573179
158782790.094904179485-8.0949041794845
159892897.661302294342-5.66130229434202
160903909.08458954487-6.08458954486991
161966972.696941830527-6.69694183052695
162937945.12723725248-8.12723725248054
163896900.649624293677-4.64962429367711
164858856.5301003805421.46989961945769
165817805.80644675437511.1935532456254
166827812.83348452655314.1665154734470
167797782.09239679172214.9076032082784
168843830.00476698447512.9952330155248


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
169859.965927621504843.238841266743876.693013976266
170810.98708162045792.09352128844829.880641952461
171928.097269904348905.8662452846950.328294524096
172942.925120844953918.633977747132967.216263942775
1731012.43762506758985.2989487593011039.57630137586
174986.628582685448958.4383894228911014.81877594800
175945.95184357546917.115705019858974.787982131064
176904.754344682149875.386750698343934.121938665954
177854.73436119912825.140830834817884.327891563422
178856.950066463488825.895357093098888.004775833877
179817.325811868334786.025358698467848.6262650382
180857.252613110201825.341492581997889.163733638406
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/29/t1275139928htg26hdca04i4f3/10xcf1275139806.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/29/t1275139928htg26hdca04i4f3/10xcf1275139806.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/29/t1275139928htg26hdca04i4f3/20xcf1275139806.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/29/t1275139928htg26hdca04i4f3/20xcf1275139806.ps (open in new window)


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