Home » date » 2010 » Aug » 02 »

Tijdreeks 2 - Stap 24

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 02 Aug 2010 14:07:26 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Aug/02/t12807584657ochlszk4xg5i6j.htm/, Retrieved Mon, 02 Aug 2010 16:14:32 +0200
 
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/2010/Aug/02/t12807584657ochlszk4xg5i6j.htm/},
    year = {2010},
}
@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 = {2010},
    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:
Van Puyenbroeck Cassandra
 
Dataseries X:
» Textbox « » Textfile « » CSV «
408 407 406 404 402 401 402 404 405 405 406 408 405 400 402 404 410 402 400 392 390 397 394 397 400 395 391 392 395 386 385 372 367 364 364 368 370 357 350 353 353 348 337 322 315 316 317 326 329 310 301 299 300 295 274 258 250 247 248 256 253 237 225 214 221 221 207 194 191 185 180 185 189 179 162 148 152 151 134 122 119 115 113 109
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'George Udny Yule' @ 72.249.76.132


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1408NANA9.84664351851853NA
2407NANA2.33275462962965NA
3406NANA-1.55613425925924NA
4404NANA-1.05613425925926NA
5402NANA6.49247685185187NA
6401NANA5.9369212962963NA
7402403.950810185185404.708333333333-0.757523148148149-1.95081018518516
8404396.138310185185404.291666666667-8.153356481481517.8616898148149
9405394.95775462963403.833333333333-8.8755787037037410.0422453703704
10405397.596643518519403.666666666667-6.070023148148167.40335648148147
11406400.610532407407404-3.389467592592595.38946759259261
12408409.624421296296404.3755.2494212962963-1.62442129629630
13405414.179976851852404.3333333333339.84664351851853-9.17997685185185
14400406.08275462963403.752.33275462962965-6.08275462962956
15402401.068865740741402.625-1.556134259259240.931134259259295
16404400.610532407407401.666666666667-1.056134259259263.38946759259261
17410407.325810185185400.8333333333336.492476851851872.67418981481484
18402405.811921296296399.8755.9369212962963-3.81192129629625
19400398.450810185185399.208333333333-0.7575231481481491.54918981481484
20392390.638310185185398.791666666667-8.153356481481511.36168981481484
21390389.249421296296398.125-8.875578703703740.750578703703752
22397391.096643518518397.166666666667-6.070023148148165.90335648148152
23394392.652199074074396.041666666667-3.389467592592591.34780092592604
24397399.999421296296394.755.2494212962963-2.99942129629625
25400403.304976851852393.4583333333339.84664351851853-3.30497685185185
26395394.3327546296303922.332754629629650.667245370370495
27391388.652199074074390.208333333333-1.556134259259242.34780092592598
28392386.818865740741387.875-1.056134259259265.1811342592593
29395391.742476851852385.256.492476851851873.25752314814821
30386388.728587962963382.7916666666675.9369212962963-2.72858796296293
31385379.575810185185380.333333333333-0.7575231481481495.42418981481484
32372369.346643518518377.5-8.153356481481512.65335648148152
33367365.332754629630374.208333333333-8.875578703703741.66724537037032
34364364.804976851852370.875-6.07002314814816-0.804976851851848
35364364.110532407407367.5-3.38946759259259-0.110532407407391
36368369.416087962963364.1666666666675.2494212962963-1.41608796296293
37370370.429976851852360.5833333333339.84664351851853-0.429976851851848
38357358.832754629630356.52.33275462962965-1.83275462962956
39350350.693865740741352.25-1.55613425925924-0.693865740740705
40353347.027199074074348.083333333333-1.056134259259265.97280092592592
41353350.617476851852344.1256.492476851851872.38252314814821
42348346.353587962963340.4166666666675.93692129629631.64641203703707
43337336.200810185185336.958333333333-0.7575231481481490.799189814814781
44322325.138310185185333.291666666667-8.15335648148151-3.13831018518522
45315320.416087962963329.291666666667-8.87557870370374-5.41608796296293
46316318.929976851852325-6.07002314814816-2.92997685185185
47317317.152199074074320.541666666667-3.38946759259259-0.152199074074019
48326321.374421296296316.1255.24942129629634.62557870370375
49329321.138310185185311.2916666666679.846643518518537.86168981481484
50310308.3327546296303062.332754629629651.66724537037038
51301299.068865740741300.625-1.556134259259241.93113425925924
52299293.985532407407295.041666666667-1.056134259259265.01446759259255
53300295.784143518518289.2916666666676.492476851851874.21585648148152
54295289.436921296296283.55.93692129629635.56307870370370
55274276.659143518518277.416666666667-0.757523148148149-2.65914351851848
56258263.054976851852271.208333333333-8.15335648148151-5.05497685185185
57250256.124421296296265-8.87557870370374-6.12442129629625
58247252.221643518519258.291666666667-6.07002314814816-5.22164351851853
59248248.068865740741251.458333333333-3.38946759259259-0.0688657407407618
60256250.332754629630245.0833333333335.24942129629635.66724537037035
61253249.054976851852239.2083333333339.846643518518533.94502314814815
62237236.082754629630233.752.332754629629650.917245370370324
63225227.068865740741228.625-1.55613425925924-2.06886574074076
64214222.527199074074223.583333333333-1.05613425925926-8.52719907407405
65221224.659143518519218.1666666666676.49247685185187-3.65914351851853
66221218.311921296296212.3755.93692129629632.68807870370370
67207205.992476851852206.75-0.7575231481481491.00752314814818
68194193.513310185185201.666666666667-8.153356481481510.486689814814866
69191187.749421296296196.625-8.875578703703743.25057870370375
70185185.179976851852191.25-6.07002314814816-0.179976851851819
71180182.235532407407185.625-3.38946759259259-2.23553240740742
72185185.082754629630179.8333333333335.2494212962963-0.0827546296296475
73189183.721643518519173.8759.846643518518535.2783564814815
74179170.166087962963167.8333333333332.332754629629658.83391203703701
75162160.277199074074161.833333333333-1.556134259259241.72280092592590
76148154.860532407407155.916666666667-1.05613425925926-6.86053240740742
77152156.700810185185150.2083333333336.49247685185187-4.70081018518519
78151150.186921296296144.255.93692129629630.813078703703695
79134NANA-0.757523148148149NA
80122NANA-8.15335648148151NA
81119NANA-8.87557870370374NA
82115NANA-6.07002314814816NA
83113NANA-3.38946759259259NA
84109NANA5.2494212962963NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/02/t12807584657ochlszk4xg5i6j/1jrrq1280758042.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/02/t12807584657ochlszk4xg5i6j/1jrrq1280758042.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/02/t12807584657ochlszk4xg5i6j/2u18s1280758042.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/02/t12807584657ochlszk4xg5i6j/2u18s1280758042.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/02/t12807584657ochlszk4xg5i6j/3u18s1280758042.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/02/t12807584657ochlszk4xg5i6j/3u18s1280758042.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/02/t12807584657ochlszk4xg5i6j/44a8d1280758042.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/02/t12807584657ochlszk4xg5i6j/44a8d1280758042.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