Home » date » 2009 » Dec » 04 »

Ws 9 ADC1

*The author of this computation has been verified*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Fri, 04 Dec 2009 09:30:31 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/04/t12599442974dya6dckalu9fxk.htm/, Retrieved Fri, 04 Dec 2009 17:31:43 +0100
 
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/2009/Dec/04/t12599442974dya6dckalu9fxk.htm/},
    year = {2009},
}
@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 = {2009},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
100 96,21064363 96,31280765 107,1793443 114,9066592 92,56060184 114,9995356 107,1236185 117,7765394 107,3650971 106,2970187 114,5072908 98,0031578 103,0649206 100,2879168 104,6066685 111,1544534 104,9874617 109,9284852 111,5352466 132,4974459 100,3436426 123,0983561 114,2379493 104,569518 109,0833101 106,9843039 133,6769759 124,8537197 122,5132349 116,8013374 116,0118882 129,7575926 125,1973623 143,7912139 127,9465032 130,2962757 108,4424631 129,3675118 143,6797622 131,8844618 117,6186496 118,9560695 104,8202842 134,624315 140,401226 143,8005015 153,4317823 153,2924677 127,3149438 153,5525216 136,9276493 131,7730101 144,3391845 107,4208229 113,6249652 124,2221603 102,0618557 96,36853348 111,6838488
 
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
1100NANA-1.42050876881944NA
296.21064363NANA-10.9732316063194NA
396.31280765NANA-0.536441727152764NA
4107.1793443NANA6.62635893638889NA
5114.9066592NANA1.97867003034722NA
692.56060184NANA-0.440275969444461NA
7114.9995356102.763765703264106.186727968333-3.4229622650694412.2357698967361
8107.123618596.7884282700347106.38912108375-9.6006928137152810.3351902299653
9117.7765394115.110616394618106.8403455054178.270270889201382.66592300538193
10107.3650971103.925784695139106.898780228333-2.972995533194463.43931240486113
11106.2970187114.096619179514106.6352434957.46137568451388-7.7996004795139
12114.5072908112.027120557431106.9966874141675.030433143263892.48017024256946
1398.0031578105.882670706181107.303179475-1.42050876881944-7.87951290618055
14103.064920696.302471939514107.275703545833-10.97323160631946.7624486604861
15100.2879168107.536450760347108.0728924875-0.536441727152764-7.24853396034722
16104.6066685115.020061923889108.39370298756.62635893638889-10.4133934238889
17111.1544534110.779868138681108.8011981083331.978670030347220.374585261319439
18104.9874617109.049755301389109.490031270833-0.440275969444461-4.06229360138889
19109.9284852106.329444784931109.75240705-3.422962265069443.59904041506945
20111.5352466100.676078807118110.276771620833-9.6006928137152810.8591677928819
21132.4974459119.076824868368110.8065539791678.2702708892013813.4206210316319
22100.3436426109.323837383472112.296832916667-2.97299553319446-8.98019478347223
23123.0983561121.540274172014114.07889848757.461375684513881.55808192798611
24114.2379493120.410374943264115.37994185.03043314326389-6.17242564326389
25104.569518114.976042422847116.396551191667-1.42050876881944-10.4065244228472
26109.0833101105.896215160347116.869446766667-10.97323160631943.18709493965277
27106.9843039116.405371218681116.941812945833-0.536441727152764-9.42106731868056
28133.6769759124.489582982222117.8632240458336.626358936388899.1873929177778
29124.8537197121.739668138681119.7609981083331.978670030347223.11405156131944
30122.5132349120.754114293056121.1943902625-0.4402759694444611.75912060694445
31116.8013374119.414565980764122.837528245833-3.42296226506944-2.61322858076387
32116.0118882114.282081711285123.882774525-9.600692813715281.72980648871527
33129.7575926133.058977118368124.7887062291678.27027088920138-3.30138451836804
34125.1973623123.165127120972126.138122654167-2.972995533194462.03223517902779
35143.7912139134.309228688681126.8478530041677.461375684513889.48198521131945
36127.9465032131.967292680764126.93685953755.03043314326389-4.02078948076390
37130.2962757125.402190218681126.8226989875-1.420508768819444.89408548131944
38108.4424631115.472931052014126.446162658333-10.9732316063194-7.0304679520139
39129.3675118125.646184197847126.182625925-0.5364417271527643.72132760215277
40143.6797622133.645259282222127.0189003458336.6263589363888910.0345029177778
41131.8844618129.631451680347127.652781651.978670030347222.2530101196528
42117.6186496128.274779293056128.7150552625-0.440275969444461-10.6561296930556
43118.9560695127.312154293264130.735116558333-3.42296226506944-8.35608479326388
44104.8202842122.878951773785132.4796445875-9.60069281371528-18.0586675737847
45134.624315142.543977580868134.2737066916678.27027088920138-7.91966258086805
46140.401226132.027081862639135.000077395833-2.972995533194468.3741441373611
47143.8005015142.175471222014134.71409553757.461375684513881.62503027798613
48153.4317823140.853240480764135.82280733755.0304331432638912.5785418192361
49153.2924677135.035018914514136.455527683333-1.4205087688194418.2574487854861
50127.3149438125.368522510347136.341754116667-10.97323160631941.94642128965279
51153.5525216135.738750985347136.2751927125-0.53644172715276417.8137706146528
52136.9276493140.870654773889134.24429583756.62635893638889-3.94300547388889
53131.7730101132.649160104514130.6704900741671.97867003034722-0.876150004513875
54144.3391845126.514384874722126.954660844167-0.44027596944446117.8247996252778
55107.4208229NANA-3.42296226506944NA
56113.6249652NANA-9.60069281371528NA
57124.2221603NANA8.27027088920138NA
58102.0618557NANA-2.97299553319446NA
5996.36853348NANA7.46137568451388NA
60111.6838488NANA5.03043314326389NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599442974dya6dckalu9fxk/1mzb41259944226.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599442974dya6dckalu9fxk/1mzb41259944226.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t12599442974dya6dckalu9fxk/2uvcs1259944226.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599442974dya6dckalu9fxk/2uvcs1259944226.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t12599442974dya6dckalu9fxk/30dnh1259944226.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599442974dya6dckalu9fxk/30dnh1259944226.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t12599442974dya6dckalu9fxk/4r5ff1259944226.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599442974dya6dckalu9fxk/4r5ff1259944226.ps (open in new window)


 
Parameters (Session):
par1 = TRUE ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = 3 ; par7 = 1 ; par8 = 2 ; par9 = 1 ;
 
Parameters (R input):
par1 = additive ; par2 = 12 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = 3 ; par7 = 1 ; par8 = 2 ; par9 = 1 ;
 
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