Home » date » 2008 » May » 25 »

Nicky Van Calster 2MAR04b-Opgave 9- additief decompositie model Pond

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 25 May 2008 13:57:02 -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/25/t12117455034257n91xiajt0y4.htm/, Retrieved Sun, 25 May 2008 21:58:23 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0.70291 0.6885 0.67127 0.66502 0.65825 0.65025 0.65779 0.66014 0.64683 0.64587 0.63702 0.62651 0.61834 0.61466 0.61063 0.59802 0.60151 0.62927 0.62304 0.6071 0.60773 0.58933 0.60039 0.61342 0.6348 0.634 0.62915 0.62168 0.61328 0.6089 0.60857 0.62672 0.62291 0.62393 0.61838 0.62012 0.61659 0.6116 0.61573 0.61407 0.62823 0.64405 0.6387 0.63633 0.63059 0.62994 0.63709 0.64217 0.65711 0.66977 0.68255 0.68902 0.71322 0.70224 0.70045 0.69919 0.69693 0.69763 0.69278 0.70196 0.69215 0.6769 0.67124 0.66532 0.67157 0.66428 0.66576 0.66942 0.6813 0.69144 0.69862 0.695 0.69867 0.68968 0.69233 0.68293 0.68399 0.66895 0.68756 0.68527 0.6776 0.68137 0.67933 0.67922 0.68598 0.68297 0.68935 0.69463 0.6833 0.68666 0.68782 0.67669 0.67511 0.67254 0.67397 0.67286 0.66341 0.668 0.68021 0.67934 0.68136 0.67562 0.6744 0.67766 0.68887 0.69614 0.70896 0.72064 0.74725
 
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 time6 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
10.70291NANA0.00351919642857146NA
20.6885NANA-0.000195208333333318NA
30.67127NANA0.00116651785714289NA
40.66502NANA-0.00277627976190475NA
50.65825NANA0.00104931547619044NA
60.65025NANA0.00187491071428568NA
70.657790.6580822321428570.6556729166666660.00240931547619049-0.000292232142857007
80.660140.6492988988095240.64907250.0002263988095238350.0108411011904761
90.646830.6417424702380950.643469166666667-0.001726696428571450.00508752976190474
100.645870.6346702083333330.638150833333333-0.003480625000000030.0111997916666666
110.637020.630609315476190.632995-0.002385684523809520.00641068452380966
120.626510.6300755059523810.6297566666666670.000318839285714258-0.00356550595238092
130.618340.6309537797619050.6274345833333330.00351919642857146-0.0126137797619048
140.614660.6235814583333330.623776666666667-0.000195208333333318-0.00892145833333335
150.610630.6211040178571430.61993750.00116651785714289-0.0104740178571429
160.598020.6131762202380950.6159525-0.00277627976190475-0.0151562202380954
170.601510.6131197321428570.6120704166666670.00104931547619044-0.0116097321428571
180.629270.6118736607142860.609998750.001874910714285680.0173963392857144
190.623040.6125484821428570.6101391666666670.002409315476190490.0104915178571430
200.60710.6118572321428570.6116308333333330.000226398809523835-0.00475723214285706
210.607730.6114816369047620.613208333333333-0.00172669642857145-0.00375163690476177
220.589330.6114852083333330.614965833333333-0.00348062500000003-0.0221552083333333
230.600390.6140563988095240.616442083333333-0.00238568452380952-0.0136663988095239
240.613420.6164025892857140.616083750.000318839285714258-0.00298258928571427
250.63480.6181512797619050.6146320833333330.003519196428571460.0166487202380953
260.6340.6146514583333330.614846666666667-0.0001952083333333180.0193485416666667
270.629150.617463184523810.6162966666666670.001166517857142890.0116868154761905
280.621680.6155945535714290.618370833333333-0.002776279761904750.00608544642857134
290.613280.6216113988095240.6205620833333330.00104931547619044-0.00833139880952383
300.60890.6234657440476190.6215908333333330.00187491071428568-0.0145657440476191
310.608570.623520565476190.621111250.00240931547619049-0.0149505654761904
320.626720.619645565476190.6194191666666670.0002263988095238350.00707443452380963
330.622910.6161999702380950.617926666666667-0.001726696428571450.00671002976190471
340.623930.6135697916666670.617050416666667-0.003480625000000030.0103602083333334
350.618380.614970565476190.61735625-0.002385684523809520.00340943452380948
360.620120.6197625892857140.619443750.0003188392857142580.000357410714285633
370.616590.6256829464285710.622163750.00351919642857146-0.0090929464285715
380.61160.6236243750.623819583333333-0.000195208333333318-0.0120243750000000
390.615730.6257065178571430.624540.00116651785714289-0.00997651785714282
400.614070.6223341369047620.625110416666667-0.00277627976190475-0.0082641369047618
410.628230.6271897321428570.6261404166666670.001049315476190440.00104026785714262
420.644050.6297136607142860.627838750.001874910714285680.0143363392857142
430.63870.6328551488095240.6304458333333330.002409315476190490.00584485119047617
440.636330.634784315476190.6345579166666670.0002263988095238350.00154568452380954
450.630590.6380391369047620.639765833333333-0.00172669642857145-0.0074491369047619
460.629940.6421922916666670.645672916666667-0.00348062500000003-0.0122522916666666
470.637090.6499513988095240.652337083333333-0.00238568452380952-0.0128613988095236
480.642170.6586217559523810.6583029166666670.000318839285714258-0.0164517559523809
490.657110.6668196130952380.6633004166666670.00351919642857146-0.0097096130952381
500.669770.6682972916666670.6684925-0.0001952083333333180.00147270833333346
510.682550.6750423511904760.6738758333333330.001166517857142890.00750764880952393
520.689020.6766841369047620.679460416666667-0.002776279761904750.0123358630952382
530.713220.685650565476190.684601250.001049315476190440.0275694345238094
540.702240.6912878273809530.6894129166666670.001874910714285680.0109521726190475
550.700450.6957734821428570.6933641666666670.002409315476190490.00467651785714285
560.699190.6953476488095240.695121250.0002263988095238350.00384235119047616
570.696930.6932203869047620.694947083333333-0.001726696428571450.00370961309523821
580.697630.6900077083333330.693488333333333-0.003480625000000030.0076222916666665
590.692780.6883797321428570.690765416666667-0.002385684523809520.00440026785714276
600.701960.6877671726190480.6874483333333330.0003188392857142580.0141928273809524
610.692150.6879404464285710.684421250.003519196428571460.0042095535714286
620.67690.6815402083333330.681735416666667-0.000195208333333318-0.00464020833333334
630.671240.6810102678571430.679843750.00116651785714289-0.00977026785714274
640.665320.6761583035714280.678934583333333-0.00277627976190475-0.0108383035714285
650.671570.679969315476190.678920.00104931547619044-0.00839931547619044
660.664280.6807482440476190.6788733333333330.00187491071428568-0.0164682440476189
670.665760.681264315476190.6788550.00240931547619049-0.0155043154761904
680.669420.679885565476190.6796591666666670.000226398809523835-0.0104655654761904
690.68130.6793437202380950.681070416666667-0.001726696428571450.00195627976190482
700.691440.6792022916666670.682682916666667-0.003480625000000030.0122377083333334
710.698620.6815484821428570.683934166666667-0.002385684523809520.017071517857143
720.6950.6849650892857140.684646250.0003188392857142580.0100349107142856
730.698670.6892683630952380.6857491666666670.003519196428571460.00940163690476192
740.689680.6871227083333330.687317916666667-0.0001952083333333180.00255729166666663
750.692330.688990684523810.6878241666666670.001166517857142890.00333931547619049
760.682930.6844741369047620.687250416666667-0.00277627976190475-0.00154413690476185
770.683990.6870763988095240.6860270833333330.00104931547619044-0.00308639880952366
780.668950.6864407440476190.6845658333333330.00187491071428568-0.0174907440476190
790.687560.6857888988095240.6833795833333330.002409315476190490.00177110119047597
800.685270.6827976488095240.682571250.0002263988095238350.00247235119047617
810.67760.6804408035714290.6821675-0.00172669642857145-0.00284080357142857
820.681370.6790502083333330.682530833333333-0.003480625000000030.00231979166666663
830.679330.6806038988095240.682989583333333-0.00238568452380952-0.00127389880952389
840.679220.6840175892857140.683698750.000318839285714258-0.00479758928571428
850.685980.6879666964285710.68444750.00351919642857146-0.0019866964285713
860.682970.6839056250.684100833333333-0.000195208333333318-0.000935625000000107
870.689350.6848061011904760.6836395833333330.001166517857142890.00454389880952388
880.694630.6803916369047620.683167916666667-0.002776279761904750.0142383630952381
890.68330.6836259821428570.6825766666666670.00104931547619044-0.000325982142857173
900.686660.6839632440476190.6820883333333330.001874910714285680.00269675595238095
910.687820.6832922321428570.6808829166666670.002409315476190490.00452776785714282
920.676690.6795451488095240.679318750.000226398809523835-0.00285514880952376
930.675110.6765874702380950.678314166666667-0.00172669642857145-0.00147747023809519
940.672540.6738156250.67729625-0.00348062500000003-0.00127562500000000
950.673970.6741926488095240.676578333333333-0.00238568452380952-0.00022264880952394
960.672860.6763563392857140.67603750.000318839285714258-0.00349633928571447
970.663410.6785375297619050.6750183333333330.00351919642857146-0.0151275297619047
980.6680.6743043750.674499583333333-0.000195208333333318-0.00630437500000003
990.680210.6762798511904760.6751133333333330.001166517857142890.0039301488095238
1000.679340.6738937202380950.67667-0.002776279761904750.00544627976190493
1010.681360.680160565476190.679111250.001049315476190440.00119943452380955
1020.675620.6844349107142860.682560.00187491071428568-0.00881491071428575
1030.67440.6904534821428570.6880441666666670.00240931547619049-0.0160534821428571
1040.67766NANA0.000226398809523835NA
1050.68887NANA-0.00172669642857145NA
1060.69614NANA-0.00348062500000003NA
1070.70896NANA-0.00238568452380952NA
1080.72064NANA0.000318839285714258NA
1090.74725NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t12117455034257n91xiajt0y4/12jbm1211745414.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t12117455034257n91xiajt0y4/12jbm1211745414.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t12117455034257n91xiajt0y4/2mi4i1211745414.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t12117455034257n91xiajt0y4/2mi4i1211745414.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t12117455034257n91xiajt0y4/31wsf1211745414.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t12117455034257n91xiajt0y4/31wsf1211745414.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t12117455034257n91xiajt0y4/4uxqz1211745414.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t12117455034257n91xiajt0y4/4uxqz1211745414.ps (open in new window)


 
Parameters (Session):
par1 = additive ; par2 = 12 ;
 
Parameters (R input):
par1 = additive ; 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