Home » date » 2011 » May » 11 »

Opdracht 9: Decompositie van multiplicatieve tijdsreeksen (eigen reeks) - Yesse De Ley

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Wed, 11 May 2011 19:02:20 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/11/t1305140318rmuq96roof7vpk2.htm/, Retrieved Wed, 11 May 2011 20:58:42 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W92
 
Dataseries X:
» Textbox « » Textfile « » CSV «
101397 97994 94044 91159 87239 89235 118647 125620 125154 117529 109459 108483 107137 104699 100804 96066 91971 93228 120144 127233 127166 118194 109940 106683 102834 99882 96666 92540 88744 89321 115870 122401 122030 113802 105791 103076 98658 96945 92497 90687 88796 90015 113228 118711 117460 106556 97347 92657 93118 89037 83570 81693 75956 73993 97088 102394 96549 89727 82336 82653 82303 79596 74472 73562 66618 69029 89899 93774 90305 83799 80320 82497 84420 84646 84186 83269 77793 81145 101691 107357 104253 95963 91432 94324 93855 92183 87600 83641 78195 79604 100846 105293 102518 93132 87479 85476
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ www.wessa.org


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1101397NANA0.983854734637985NA
297994NANA0.963449970065537NA
394044NANA0.925032362623144NA
491159NANA0.901150444238061NA
587239NANA0.851836315164543NA
689235NANA0.866964915297973NA
7118647117967.201266888105735.8333333331.115678550477731.00576260796062
8125620125012.148209611106254.3751.176536478706041.00486234177314
9125154123235.035242689106815.4166666671.153719557423651.01557158444051
10117529114798.563981642107301.5416666671.069868728804151.02378458339248
11109459107618.304285136107703.1666666670.9992120716209451.01710392787817
12108483107277.375148604108066.7083333330.9926958709402481.0112383888003
13107137106546.999421041108295.4583333330.9838547346379851.00553746780449
14104699104462.103148105108425.0416666670.9634499700655371.00226777792861
15100804100436.390890201108576.0833333330.9250323626231441.00366011867353
169606697943.9015519298108687.6250.9011504442380610.980826763870192
179197192624.7411680348108735.3750.8518363151645430.992942045939445
189322894222.108229965108680.4166666670.8669649152979730.989449310266558
19120144120968.701973917108426.1251.115678550477730.993182517787992
20127233127120.207445332108046.1251.176536478706041.00088729051765
21127166124224.4459064771076731.153719557423651.0236793496808
22118194114854.330889131107353.6666666671.069868728804151.02907743299722
23109940106987.926369452107072.2916666670.9992120716209451.02759258666584
24106683105995.142981973106775.0416666670.9926958709402481.00648951450675
25102834104715.758802248106434.1666666670.9838547346379850.98202984131737
2699882102178.445712808106054.750.9634499700655370.977525145378873
279666697719.8791852974105639.4166666670.9250323626231440.989215304049865
289254094839.2505318538105242.4166666670.9011504442380610.97575634013386
298874489346.1651636856104886.5416666670.8518363151645430.993260313270498
308932190652.7775501452104563.3750.8669649152979730.985309026528078
31115870116297.30939646104239.0833333331.115678550477730.996325715541676
32122401122292.388049668103942.7083333331.176536478706041.00088813336679
33122030119579.138323455103646.6251.153719557423651.02049572953031
34113802110619.835038388103395.7083333331.069868728804151.02876667607132
35105791103239.257381257103320.6666666670.9992120716209451.02471678587651
36103076102596.855479449103351.750.9926958709402481.0046701676997
3798658101603.252361327103270.5833333330.9838547346379850.97101222359642
389694599241.8502040483103006.750.9634499700655370.976856032013452
399249794966.2120138287102662.5833333330.9250323626231440.973999047014014
409068792070.7661754138102170.250.9011504442380610.98497062387015
418879686475.4412884013101516.50.8518363151645431.02683488718906
429001587329.8455239606100730.5416666670.8669649152979731.03074727156482
43113228111641.024966042100065.5833333331.115678550477731.01421498086784
44118711117071.55644776499505.251.176536478706041.0140037734355
45117460113991.86679344598803.79166666671.153719557423651.03042439170541
46106556104908.20709607698057.08333333331.069868728804151.01570699709333
479734797070.788192450497147.33333333330.9992120716209451.00284546785591
489265795243.957163394495944.750.9926958709402480.972838621573058
499311893077.249218848494604.66666666670.9838547346379851.00043781677578
508903789843.917614792893252.29166666670.9634499700655370.991018672869404
518357084826.508313950391701.1250.9250323626231440.985187315393204
528169381219.450457315690128.6250.9011504442380611.00583049429685
537595675644.73296606288801.95833333330.8518363151645431.0041148540253
547399376084.55197824587759.66666666670.8669649152979730.972510162393503
559708896943.77304114286892.20833333331.115678550477731.00148773824593
56102394101238.85603146386048.20833333331.176536478706041.0114100851572
579654998384.300548969885275.751.153719557423650.981345595397547
588972790465.826236630184557.8751.069868728804150.991833090268832
598233683763.9479639838838300.9992120716209450.982952714160539
608265382626.130846496683234.08333333330.9926958709402481.00032518954026
618230381392.047529500382727.70833333330.9838547346379851.01119215572221
627959679069.3755933086820690.9634499700655371.00666028285591
637447275343.577591534281449.66666666670.9250323626231440.98843195904156
647356272941.369832739380942.50.9011504442380611.00850861683409
656661868667.803119886680611.50.8518363151645430.970148992296902
666902969808.8819447081805210.8669649152979730.988828327814707
678989989926.712797912480602.70833333331.115678550477730.999691829078923
689377495183.369842623280901.33333333331.176536478706040.985193108365953
699030594047.18030272581516.51.153719557423650.960209542798844
708379988077.700922484482325.70833333331.069868728804150.951421291908493
718032083130.239341394583195.79166666670.9992120716209450.966194740161236
728249783551.488847524784166.250.9926958709402480.987379173464532
738442083787.446850712985162.41666666670.9838547346379851.00754949784321
748464683068.375412809486219.70833333330.9634499700655371.0189918796335
758418680817.148253235887366.83333333330.9250323626231441.041684862923
768326979711.11235333788454.83333333330.9011504442380611.04463477602586
777779376175.178538150989424.66666666670.8518363151645431.02123817092255
788114578356.686403550490380.45833333330.8669649152979731.03558488400198
79101691101823.93696735791266.3751.115678550477730.998694442865637
80107357108210.22684662391973.54166666671.176536478706040.992115099732374
81104253106638.10640607592429.83333333331.153719557423650.977633638795192
829596399056.560083881592587.58333333331.069868728804150.968769760616946
839143292546.855538186692619.83333333330.9992120716209450.987953609750397
849432491896.214425632392572.3750.9926958709402481.026418776764
859385590979.957882231192472.95833333330.9838547346379851.03160082928913
869218388976.29077392351.750.9634499700655371.03604004166887
878760085281.932580481792193.45833333330.9250323626231441.02718122525343
888364182908.732060910292003.20833333330.9011504442380611.00883221731761
897819578130.888238229391720.54166666670.8518363151645431.00082056870485
907960479056.074225428991187.16666666670.8669649152979731.00693084977896
91100846NANA1.11567855047773NA
92105293NANA1.17653647870604NA
93102518NANA1.15371955742365NA
9493132NANA1.06986872880415NA
9587479NANA0.999212071620945NA
9685476NANA0.992695870940248NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/11/t1305140318rmuq96roof7vpk2/1ao1f1305140536.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/11/t1305140318rmuq96roof7vpk2/1ao1f1305140536.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/11/t1305140318rmuq96roof7vpk2/2wad51305140536.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/11/t1305140318rmuq96roof7vpk2/2wad51305140536.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/11/t1305140318rmuq96roof7vpk2/3y17p1305140536.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/11/t1305140318rmuq96roof7vpk2/3y17p1305140536.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/11/t1305140318rmuq96roof7vpk2/426aw1305140536.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/11/t1305140318rmuq96roof7vpk2/426aw1305140536.ps (open in new window)


 
Parameters (Session):
par1 = multiplicative ; par2 = 12 ;
 
Parameters (R input):
par1 = multiplicative ; par2 = 12 ;
 
R code (references can be found in the software module):
par2 <- as.numeric(par2)
x <- ts(x,freq=par2)
m <- decompose(x,type=par1)
m$figure
bitmap(file='test1.png')
plot(m)
dev.off()
mylagmax <- length(x)/2
bitmap(file='test2.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(x),lag.max = mylagmax,main='Observed')
acf(as.numeric(m$trend),na.action=na.pass,lag.max = mylagmax,main='Trend')
acf(as.numeric(m$seasonal),na.action=na.pass,lag.max = mylagmax,main='Seasonal')
acf(as.numeric(m$random),na.action=na.pass,lag.max = mylagmax,main='Random')
par(op)
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
spectrum(as.numeric(x),main='Observed')
spectrum(as.numeric(m$trend[!is.na(m$trend)]),main='Trend')
spectrum(as.numeric(m$seasonal[!is.na(m$seasonal)]),main='Seasonal')
spectrum(as.numeric(m$random[!is.na(m$random)]),main='Random')
par(op)
dev.off()
bitmap(file='test4.png')
op <- par(mfrow = c(2,2))
cpgram(as.numeric(x),main='Observed')
cpgram(as.numeric(m$trend[!is.na(m$trend)]),main='Trend')
cpgram(as.numeric(m$seasonal[!is.na(m$seasonal)]),main='Seasonal')
cpgram(as.numeric(m$random[!is.na(m$random)]),main='Random')
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Classical Decomposition by Moving Averages',6,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Observations',header=TRUE)
a<-table.element(a,'Fit',header=TRUE)
a<-table.element(a,'Trend',header=TRUE)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,'Random',header=TRUE)
a<-table.row.end(a)
for (i in 1:length(m$trend)) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,x[i])
if (par1 == 'additive') a<-table.element(a,m$trend[i]+m$seasonal[i]) else a<-table.element(a,m$trend[i]*m$seasonal[i])
a<-table.element(a,m$trend[i])
a<-table.element(a,m$seasonal[i])
a<-table.element(a,m$random[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.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