Home » date » 2010 » Aug » 05 »

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: Thu, 05 Aug 2010 16:48:06 +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/05/t1281026872zddyx2m2e7od41w.htm/, Retrieved Thu, 05 Aug 2010 18:47:54 +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/05/t1281026872zddyx2m2e7od41w.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:
Mathias Goossenaerts
 
Dataseries X:
» Textbox « » Textfile « » CSV «
430 429 428 426 424 423 424 426 427 427 428 430 432 435 426 411 405 403 402 399 392 387 380 379 386 385 365 356 338 338 343 338 320 316 317 315 317 321 303 303 290 285 300 291 278 273 277 269 275 278 255 254 245 240 261 247 229 213 218 206 217 219 196 193 188 171 190 180 149 135 151 134 145 151 137 124 125 109 131 133 103 85 104 82
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1430NANA7.29108796296295NA
2429NANA14.1938657407407NA
3428NANA0.645254629629646NA
4426NANA-1.56307870370372NA
5424NANA-5.27141203703703NA
6423NANA-8.10474537037038NA
7424434.249421296296426.9166666666677.33275462962963-10.2494212962963
8426431.992476851852427.254.74247685185185-5.99247685185179
9427421.777199074074427.416666666667-5.639467592592595.22280092592604
10427417.853587962963426.708333333333-8.854745370370369.14641203703712
11428423.943865740741425.291666666667-1.347800925925934.0561342592593
12430420.242476851852423.666666666667-3.424189814814819.75752314814815
13432429.20775462963421.9166666666677.291087962962952.79224537037044
14435434.068865740741419.87514.19386574074070.931134259259295
15426417.936921296296417.2916666666670.6452546296296468.06307870370375
16411412.603587962963414.166666666667-1.56307870370372-1.60358796296299
17405405.228587962963410.5-5.27141203703703-0.228587962962933
18403398.27025462963406.375-8.104745370370384.72974537037038
19402409.666087962963402.3333333333337.33275462962963-7.66608796296293
20399403.075810185185398.3333333333334.74247685185185-4.07581018518516
21392388.068865740741393.708333333333-5.639467592592593.9311342592593
22387380.02025462963388.875-8.854745370370366.97974537037044
23380382.443865740741383.791666666667-1.34780092592593-2.4438657407407
24379374.867476851852378.291666666667-3.424189814814814.13252314814815
25386380.416087962963373.1257.291087962962955.58391203703707
26385382.318865740741368.12514.19386574074072.68113425925924
27365363.228587962963362.5833333333330.6452546296296461.77141203703707
28356355.061921296296356.625-1.563078703703720.938078703703695
29338345.77025462963351.041666666667-5.27141203703703-7.77025462962962
30338337.64525462963345.75-8.104745370370380.354745370370381
31343347.541087962963340.2083333333337.33275462962963-4.54108796296293
32338339.409143518519334.6666666666674.74247685185185-1.40914351851853
33320323.777199074074329.416666666667-5.63946759259259-3.77719907407408
34316315.77025462963324.625-8.854745370370360.229745370370381
35317319.068865740741320.416666666667-1.34780092592593-2.0688657407407
36315312.784143518518316.208333333333-3.424189814814812.21585648148152
37317319.499421296296312.2083333333337.29108796296295-2.4994212962963
38321322.652199074074308.45833333333314.1938657407407-1.65219907407408
39303305.39525462963304.750.645254629629646-2.39525462962956
40303299.64525462963301.208333333333-1.563078703703723.35474537037032
41290292.478587962963297.75-5.27141203703703-2.47858796296293
42285286.061921296296294.166666666667-8.10474537037038-1.06192129629625
43300297.83275462963290.57.332754629629632.16724537037044
44291291.700810185185286.9583333333334.74247685185185-0.700810185185162
45278277.527199074074283.166666666667-5.639467592592590.472800925925981
46273270.27025462963279.125-8.854745370370362.72974537037044
47277273.860532407407275.208333333333-1.347800925925933.13946759259261
48269268.034143518519271.458333333333-3.424189814814810.965856481481467
49275275.249421296296267.9583333333337.29108796296295-0.249421296296248
50278278.693865740741264.514.1938657407407-0.693865740740762
51255261.27025462963260.6250.645254629629646-6.27025462962959
52254254.52025462963256.083333333333-1.56307870370372-0.520254629629534
53245245.853587962963251.125-5.27141203703703-0.853587962962905
54240237.936921296296246.041666666667-8.104745370370382.06307870370375
55261248.332754629632417.3327546296296312.6672453703704
56247240.867476851852236.1254.742476851851856.13252314814818
57229225.568865740741231.208333333333-5.639467592592593.43113425925927
58213217.353587962963226.208333333333-8.85474537037036-4.35358796296299
59218219.943865740741221.291666666667-1.34780092592593-1.94386574074076
60206212.617476851852216.041666666667-3.42418981481481-6.61747685185185
61217217.499421296296210.2083333333337.29108796296295-0.499421296296276
62219218.652199074074204.45833333333314.19386574074070.347800925925952
63196198.978587962963198.3333333333330.645254629629646-2.97858796296293
64193190.186921296296191.75-1.563078703703722.81307870370375
65188180.436921296296185.708333333333-5.271412037037037.5630787037037
66171171.811921296296179.916666666667-8.10474537037038-0.811921296296305
67190181.249421296296173.9166666666677.332754629629638.75057870370372
68180172.825810185185168.0833333333334.742476851851857.1741898148148
69149157.152199074074162.791666666667-5.63946759259259-8.15219907407408
70135148.603587962963157.458333333333-8.85474537037036-13.603587962963
71151150.610532407407151.958333333333-1.347800925925930.389467592592581
72134143.325810185185146.75-3.42418981481481-9.3258101851852
73145148.999421296296141.7083333333337.29108796296295-3.99942129629628
74151151.485532407407137.29166666666714.1938657407407-0.485532407407391
75137134.061921296296133.4166666666670.6452546296296462.9380787037037
76124127.853587962963129.416666666667-1.56307870370372-3.85358796296295
77125120.103587962963125.375-5.271412037037034.89641203703704
78109113.14525462963121.25-8.10474537037038-4.1452546296296
79131NANA7.33275462962963NA
80133NANA4.74247685185185NA
81103NANA-5.63946759259259NA
8285NANA-8.85474537037036NA
83104NANA-1.34780092592593NA
8482NANA-3.42418981481481NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/05/t1281026872zddyx2m2e7od41w/1vymk1281026882.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/05/t1281026872zddyx2m2e7od41w/1vymk1281026882.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/05/t1281026872zddyx2m2e7od41w/2vymk1281026882.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/05/t1281026872zddyx2m2e7od41w/2vymk1281026882.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/05/t1281026872zddyx2m2e7od41w/357351281026882.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/05/t1281026872zddyx2m2e7od41w/357351281026882.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/05/t1281026872zddyx2m2e7od41w/4gy3q1281026882.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/05/t1281026872zddyx2m2e7od41w/4gy3q1281026882.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