Home » date » 2008 » Jul » 16 »

Classical Decomposition_Gem consumptieprijs roze zalm_Dominique Van Santfoort

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Wed, 16 Jul 2008 03:51:34 -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/Jul/16/t12162019414iun6h4ctgy997c.htm/, Retrieved Wed, 16 Jul 2008 09:52:26 +0000
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
11.73 11.74 11.65 11.38 11.53 11.75 11.82 11.83 11.63 11.55 11.4 11.4 11.63 11.46 11.35 11.7 11.52 11.64 11.9 11.73 11.7 11.54 11.97 11.64 11.98 11.79 11.66 11.96 11.83 12.36 12.53 12.55 12.53 12.24 12.34 12.05 12.22 12.23 11.92 12.13 12.1 12.15 12.23 12.08 12.02 11.93 12.16 11.87 11.93 11.79 11.43 11.63 11.93 11.89 11.83 11.59 12.04 11.81 11.9 11.72 11.91 11.94 11.91 11.84 12.01 11.89 11.8 11.7 11.5 11.76 11.61 11.27 11.64 11.39 11.54 11.62 11.59 11.44 11.31 11.56 11.4 11.51 11.5 11.24 11.8 11.87 11.86 12.11 11.92 12.61 13.34 13.31 13.47 13.3 13.18 13.24
 
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 time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
111.73NANA0.0633564814814815NA
211.74NANA-0.0495601851851849NA
311.65NANA-0.177754629629629NA
411.38NANA0.00245370370370433NA
511.53NANA0.0187037037037035NA
611.75NANA0.0841203703703704NA
711.8211.735717592592611.61333333333330.1223842592592590.0842824074074056
811.8311.650856481481511.59750.05335648148148110.179143518518517
911.6311.616967592592611.57333333333330.04363425925925920.0130324074074064
1011.5511.544745370370411.5741666666667-0.02942129629629660.00525462962963097
1111.411.667037037037011.58708333333330.0799537037037034-0.267037037037035
1211.411.370856481481511.5820833333333-0.2112268518518510.0291435185185183
1311.6311.644189814814811.58083333333330.0633564814814815-0.0141898148148130
1411.4611.530439814814811.58-0.0495601851851849-0.0704398148148115
1511.3511.400995370370411.57875-0.177754629629629-0.0509953703703694
1611.711.583703703703711.581250.002453703703704330.116296296296298
1711.5211.623287037037011.60458333333330.0187037037037035-0.103287037037035
1811.6411.722453703703711.63833333333330.0841203703703704-0.0824537037037025
1911.911.785300925925911.66291666666670.1223842592592590.114699074074075
2011.7311.744606481481511.691250.0533564814814811-0.0146064814814810
2111.711.761550925925911.71791666666670.0436342592592592-0.0615509259259248
2211.5411.712245370370411.7416666666667-0.0294212962962966-0.172245370370371
2311.9711.845370370370411.76541666666670.07995370370370340.124629629629629
2411.6411.597106481481511.8083333333333-0.2112268518518510.0428935185185217
2511.9811.927939814814811.86458333333330.06335648148148150.0520601851851872
2611.7911.875439814814811.925-0.0495601851851849-0.0854398148148157
2711.6611.815995370370411.99375-0.177754629629629-0.155995370370372
2811.9612.059953703703712.05750.00245370370370433-0.0999537037037044
2911.8312.120787037037012.10208333333330.0187037037037035-0.290787037037036
3012.3612.218703703703712.13458333333330.08412037037037040.141296296296296
3112.5312.284050925925912.16166666666670.1223842592592590.245949074074073
3212.5512.243356481481512.190.05335648148148110.306643518518518
3312.5312.262800925925912.21916666666670.04363425925925920.267199074074076
3412.2412.207662037037012.2370833333333-0.02942129629629660.0323379629629645
3512.3412.335370370370412.25541666666670.07995370370370340.00462962962963331
3612.0512.046689814814812.2579166666667-0.2112268518518510.00331018518518533
3712.2212.300023148148112.23666666666670.0633564814814815-0.0800231481481468
3812.2312.155023148148112.2045833333333-0.04956018518518490.0749768518518525
3911.9211.985995370370412.16375-0.177754629629629-0.06599537037037
4012.1312.132037037037012.12958333333330.00245370370370433-0.00203703703703439
4112.112.127870370370412.10916666666670.0187037037037035-0.0278703703703691
4212.1512.178287037037012.09416666666670.0841203703703704-0.0282870370370389
4312.2312.196967592592612.07458333333330.1223842592592590.0330324074074078
4412.0812.097523148148112.04416666666670.0533564814814811-0.0175231481481468
4512.0212.049050925925912.00541666666670.0436342592592592-0.0290509259259242
4611.9311.934745370370411.9641666666667-0.0294212962962966-0.00474537037036882
4712.1612.016203703703711.936250.07995370370370340.143796296296298
4811.8711.707106481481511.9183333333333-0.2112268518518510.162893518518517
4911.9311.954189814814811.89083333333330.0633564814814815-0.0241898148148145
5011.7911.804189814814811.85375-0.0495601851851849-0.0141898148148165
5111.4311.656412037037011.8341666666667-0.177754629629629-0.226412037037036
5211.6311.832453703703711.830.00245370370370433-0.202453703703702
5311.9311.832870370370411.81416666666670.01870370370370350.0971296296296291
5411.8911.881203703703711.79708333333330.08412037037037040.00879629629629619
5511.8311.912384259259311.790.122384259259259-0.0823842592592623
5611.5911.848773148148111.79541666666670.0533564814814811-0.258773148148146
5712.0411.865300925925911.82166666666670.04363425925925920.174699074074075
5811.8111.820995370370411.8504166666667-0.0294212962962966-0.0109953703703685
5911.911.942453703703711.86250.0799537037037034-0.0424537037037034
6011.7211.654606481481511.8658333333333-0.2112268518518510.065393518518519
6111.9111.927939814814811.86458333333330.0633564814814815-0.0179398148148131
6211.9411.818356481481511.8679166666667-0.04956018518518490.121643518518518
6311.9111.672245370370411.85-0.1777546296296290.237754629629629
6411.8411.827870370370411.82541666666670.002453703703704330.0121296296296300
6512.0111.829953703703711.811250.01870370370370350.180046296296297
6611.8911.864537037037011.78041666666670.08412037037037040.0254629629629637
6711.811.872800925925911.75041666666670.122384259259259-0.0728009259259235
6811.711.769606481481511.716250.0533564814814811-0.0696064814814807
6911.511.721550925925911.67791666666670.0436342592592592-0.221550925925923
7011.7611.623912037037011.6533333333333-0.02942129629629660.136087962962964
7111.6111.706620370370411.62666666666670.0799537037037034-0.0966203703703705
7211.2711.379189814814811.5904166666667-0.211226851851851-0.109189814814815
7311.6411.614606481481511.551250.06335648148148150.0253935185185181
7411.3911.475439814814811.525-0.0495601851851849-0.0854398148148157
7511.5411.337245370370411.515-0.1777546296296290.202754629629629
7611.6211.502870370370411.50041666666670.002453703703704330.117129629629629
7711.5911.504120370370411.48541666666670.01870370370370350.0858796296296287
7811.4411.563703703703711.47958333333330.0841203703703704-0.123703703703704
7911.3111.607384259259311.4850.122384259259259-0.297384259259259
8011.5611.565023148148111.51166666666670.0533564814814811-0.0050231481481493
8111.411.588634259259311.5450.0436342592592592-0.188634259259260
8211.5111.549328703703711.57875-0.0294212962962966-0.0393287037037027
8311.511.692870370370411.61291666666670.0799537037037034-0.192870370370368
8411.2411.464189814814811.6754166666667-0.211226851851851-0.224189814814814
8511.811.872106481481511.808750.0633564814814815-0.0721064814814785
8611.8711.916689814814811.96625-0.0495601851851849-0.0466898148148172
8711.8611.947662037037012.1254166666667-0.177754629629629-0.08766203703704
8812.1112.288703703703712.286250.00245370370370433-0.178703703703706
8911.9212.449537037037012.43083333333330.0187037037037035-0.529537037037038
9012.6112.668287037037012.58416666666670.0841203703703704-0.0582870370370401
9113.34NANA0.122384259259259NA
9213.31NANA0.0533564814814811NA
9313.47NANA0.0436342592592592NA
9413.3NANA-0.0294212962962966NA
9513.18NANA0.0799537037037034NA
9613.24NANA-0.211226851851851NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jul/16/t12162019414iun6h4ctgy997c/1pxiw1216201892.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jul/16/t12162019414iun6h4ctgy997c/1pxiw1216201892.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jul/16/t12162019414iun6h4ctgy997c/2wchl1216201892.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jul/16/t12162019414iun6h4ctgy997c/2wchl1216201892.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jul/16/t12162019414iun6h4ctgy997c/3ksrx1216201892.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jul/16/t12162019414iun6h4ctgy997c/3ksrx1216201892.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jul/16/t12162019414iun6h4ctgy997c/49cha1216201892.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jul/16/t12162019414iun6h4ctgy997c/49cha1216201892.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