Home » date » 2008 » May » 25 »

Classical Decompostion, kwartz uurwerken, Daniëlle Versmissen

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 08:20:53 -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/t12117253223bwmury4hjjqg5j.htm/, Retrieved Sun, 25 May 2008 16:22:07 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
120,05 120,05 120,08 120,12 120,18 120,2 120,25 120,25 120,24 120,29 120,25 120,26 120,32 120,31 120,36 120,4 120,4 120,39 120,44 120,5 120,53 120,64 120,78 120,94 121 121,05 121,15 121,07 121,18 121,46 121,71 121,71 121,74 121,76 121,76 121,82 121,82 121,82 121,94 121,99 122,18 122,41 122,48 122,52 122,62 122,63 122,74 122,58 122,59 122,61 122,63 122,37 122,36 122,47 122,46 122,45 122,49 122,5 122,37 122,37 122,51 122,51 122,55 122,56 122,72 122,97 123,03 123,05 123,08 123,08 123,12 123,07 123,04 123,06 123,39 124,02 124,05 123,99 124,46 124,46 124,6 124,84 124,84 124,99
 
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 time5 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1120.05NANA0.999946242484007NA
2120.05NANA0.999662380256842NA
3120.08NANA0.999818813414997NA
4120.12NANA0.9990416352703NA
5120.18NANA0.999391118272827NA
6120.2NANA1.00041001636649NA
7120.25120.282983293415120.196251.000721597332820.999725785871686
8120.25120.281810659693120.2183333333331.000528017022020.99973553225115
9120.24120.302040478502120.2408333333331.000509037932220.999484294046427
10120.29120.300568283810120.2641666666671.000302680492060.999912151006756
11120.25120.293534652118120.2851.000070953586220.999638096492517
12120.26120.253662655382120.3020833333330.99959750756921.00005269980538
13120.32120.311448674337120.3179166666670.9999462424840071.00007107657465
14120.31120.295622106182120.336250.9996623802568421.00011952133890
15120.36120.336942609112120.358750.9998188134149971.00019160691960
16120.4120.270043529363120.3854166666670.99904163527031.00108053898397
17120.4120.348760527244120.4220833333330.9993911182728271.00042575820916
18120.39120.521895696712120.47251.000410016366490.998905628757753
19120.44120.616140191860120.5291666666671.000721597332820.998539663169622
20120.5120.652006025991120.5883333333331.000528017022020.998740128481924
21120.53120.713499820351120.6520833333331.000509037932220.99847987324844
22120.64120.749454111681120.7129166666671.000302680492060.999093543631427
23120.78120.781902634453120.7733333333331.000070953586220.99998424735485
24120.94120.801775288699120.8504166666670.99959750756921.00114422748317
25121120.941414807102120.9479166666670.9999462424840071.00048440968705
26121.05121.010380708066121.051250.9996623802568421.00032740407643
27121.15121.130132201088121.1520833333330.9998188134149971.00016402028588
28121.07121.132965741828121.2491666666670.99904163527030.999480193179105
29121.18121.262786987497121.3366666666670.9993911182728270.999317292719771
30121.46121.463948462123121.4141666666671.000410016366490.99996749272378
31121.71121.572663251977121.4851.000721597332821.00112966800553
32121.71121.615431129048121.551251.000528017022021.0007776058521
33121.74121.678157284424121.616251.000509037932221.00050824829169
34121.76121.724332432377121.68751.000302680492061.00029301920914
35121.76121.776139840810121.76751.000070953586220.999867463028218
36121.82121.799706800423121.848750.99959750756921.00016661123504
37121.82121.913862527918121.9204166666670.9999462424840070.999230091427081
38121.82121.945065033606121.986250.9996623802568420.998974414966512
39121.94122.034551636056122.0566666666670.9998188134149970.999225206019207
40121.99122.012538648214122.1295833333330.99904163527030.999815275967015
41122.18122.132257260395122.2066666666670.9993911182728271.00039091015491
42122.41122.329303126280122.2791666666671.000410016366491.00065966920155
43122.48122.431198989023122.3429166666671.000721597332821.00039859946958
44122.52122.472550130297122.4079166666671.000528017022021.00038743269126
45122.62122.531924996793122.4695833333331.000509037932221.00071879229196
46122.63122.551249314918122.5141666666671.000302680492061.00064259389866
47122.74122.546194475071122.53751.000070953586221.00158148954163
48122.58122.498175558837122.54750.99959750756921.00066796457000
49122.59122.542578727880122.5491666666670.9999462424840071.00038697791913
50122.61122.504042914566122.5454166666670.9996623802568421.00086492725393
51122.63122.514881257668122.5370833333330.9998188134149971.00093963068935
52122.37122.408825163538122.526250.99904163527030.999682823820212
53122.36122.430825356979122.5054166666670.9993911182728270.999421507150899
54122.47122.531469317088122.481251.000410016366490.999498338529438
55122.46122.557540090686122.4691666666671.000721597332820.999204128194694
56122.45122.526328511212122.4616666666671.000528017022020.999377044002383
57122.49122.516500482458122.4541666666671.000509037932220.99978369866627
58122.5122.495815874707122.458751.000302680492061.00003415729152
59122.37122.490357180163122.4816666666671.000070953586220.9990174150608
60122.37122.468187633610122.51750.99959750756920.999198260090994
61122.51122.555494700178122.5620833333330.9999462424840070.999628782860453
62122.51122.569437495275122.6108333333330.9996623802568420.999515070832586
63122.55122.638192244656122.6604166666670.9998188134149970.999280874554316
64122.56122.591566529323122.7091666666670.99904163527030.999742506518057
65122.72122.689834221798122.7645833333330.9993911182728271.00024587023362
66122.97122.875360260214122.8251.000410016366491.00077020925583
67123.03122.964917174267122.876251.000721597332821.00052927962893
68123.05122.986154512368122.921251.000528017022021.00051912744068
69123.08123.041767727373122.9791666666671.000509037932221.00031072597000
70123.08123.112252401560123.0751.000302680492060.999738024437609
71123.12123.199990860978123.191251.000070953586220.999350723482858
72123.07123.239543710284123.2891666666670.99959750756920.998624275089152
73123.04123.384616792905123.391250.9999462424840070.997206971161704
74123.06123.467884059531123.5095833333330.9996623802568420.996696435978978
75123.39123.609266267185123.6316666666670.9998188134149970.998226134060928
76124.02123.649718128013123.7683333333330.99904163527031.00299460344587
77124.05123.837884768914123.9133333333330.9993911182728271.00171284604451
78123.99124.115868680508124.0651.000410016366490.99898587761705
79124.46NANA1.00072159733282NA
80124.46NANA1.00052801702202NA
81124.6NANA1.00050903793222NA
82124.84NANA1.00030268049206NA
83124.84NANA1.00007095358622NA
84124.99NANA0.9995975075692NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t12117253223bwmury4hjjqg5j/14to01211725244.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t12117253223bwmury4hjjqg5j/14to01211725244.ps (open in new window)


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t12117253223bwmury4hjjqg5j/3k74z1211725244.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t12117253223bwmury4hjjqg5j/3k74z1211725244.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t12117253223bwmury4hjjqg5j/40dvi1211725244.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t12117253223bwmury4hjjqg5j/40dvi1211725244.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