Home » date » 2010 » Aug » 04 »

Tijdreeks B 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: Wed, 04 Aug 2010 15:48:15 +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/04/t12809368975xfhkhxlb1b0axb.htm/, Retrieved Wed, 04 Aug 2010 17:48:22 +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/04/t12809368975xfhkhxlb1b0axb.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:
Bogaerts Yannik
 
Dataseries X:
» Textbox « » Textfile « » CSV «
83 82 81 79 77 76 77 79 80 80 81 83 83 76 77 72 64 70 69 78 84 91 96 101 99 98 98 97 92 106 100 107 111 115 117 120 117 108 111 118 113 129 122 135 146 151 147 151 156 144 151 159 148 170 163 179 184 192 197 199 205 194 200 211 211 230 229 236 239 250 254 254 264 258 264 277 274 284 279 290 287 297 302 294
 
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'George Udny Yule' @ 72.249.76.132


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
183NANA5.29282407407409NA
282NANA-5.24189814814815NA
381NANA-4.31134259259258NA
479NANA-1.75578703703705NA
577NANA-10.1307870370370NA
676NANA1.36921296296296NA
77773.813657407407479.8333333333333-6.019675925925933.18634259259261
87980.084490740740779.58333333333330.5011574074074-1.08449074074073
98082.174768518518579.16666666666673.00810185185185-2.17476851851850
108084.903935185185278.70833333333336.19560185185186-4.90393518518519
118183.49421296296377.8755.61921296296297-2.49421296296295
128382.55671296296377.08333333333335.473379629629630.443287037037038
138381.79282407407476.55.292824074074091.20717592592592
147670.883101851851876.125-5.241898148148155.11689814814815
157771.938657407407476.25-4.311342592592585.06134259259258
167275.119212962962976.875-1.75578703703705-3.11921296296295
176467.827546296296377.9583333333333-10.1307870370370-3.82754629629629
187080.702546296296379.33333333333331.36921296296296-10.7025462962963
196974.730324074074180.75-6.01967592592593-5.73032407407408
207882.834490740740782.33333333333330.5011574074074-4.83449074074075
218487.133101851851884.1253.00810185185185-3.13310185185183
229192.237268518518586.04166666666676.19560185185186-1.23726851851852
239693.86921296296388.255.619212962962972.13078703703704
2410196.390046296296390.91666666666675.473379629629634.60995370370371
259999.001157407407493.70833333333335.29282407407409-0.00115740740741899
269890.966435185185296.2083333333333-5.241898148148157.03356481481482
279894.23032407407498.5416666666667-4.311342592592583.76967592592592
289798.9108796296296100.666666666667-1.75578703703705-1.91087962962965
299292.4108796296296102.541666666667-10.1307870370370-0.410879629629619
30106105.577546296296104.2083333333331.369212962962960.422453703703709
3110099.730324074074105.75-6.019675925925930.269675925925924
32107107.417824074074106.9166666666670.5011574074074-0.417824074074062
33111110.883101851852107.8753.008101851851850.116898148148167
34115115.487268518519109.2916666666676.19560185185186-0.487268518518533
35117116.660879629630111.0416666666675.619212962962970.339120370370381
36120118.348379629630112.8755.473379629629631.65162037037037
37117120.042824074074114.755.29282407407409-3.04282407407409
38108111.591435185185116.833333333333-5.24189814814815-3.59143518518516
39111115.146990740741119.458333333333-4.31134259259258-4.14699074074075
40118120.660879629630122.416666666667-1.75578703703705-2.66087962962963
41113115.035879629630125.166666666667-10.1307870370370-2.03587962962960
42129129.077546296296127.7083333333331.36921296296296-0.0775462962962905
43122124.605324074074130.625-6.01967592592593-2.60532407407408
44135134.251157407407133.750.50115740740740.74884259259261
45146139.924768518519136.9166666666673.008101851851856.07523148148147
46151146.487268518519140.2916666666676.195601851851864.51273148148150
47147149.077546296296143.4583333333335.61921296296297-2.07754629629630
48151152.098379629630146.6255.47337962962963-1.09837962962959
49156155.334490740741150.0416666666675.292824074074090.665509259259267
50144148.341435185185153.583333333333-5.24189814814815-4.34143518518516
51151152.688657407407157-4.31134259259258-1.68865740740742
52159158.535879629630160.291666666667-1.755787037037050.464120370370381
53148153.952546296296164.083333333333-10.1307870370370-5.95254629629630
54170169.535879629630168.1666666666671.369212962962960.464120370370381
55163166.188657407407172.208333333333-6.01967592592593-3.18865740740742
56179176.834490740741176.3333333333330.50115740740742.16550925925927
57184183.466435185185180.4583333333333.008101851851850.533564814814838
58192190.862268518519184.6666666666676.195601851851861.13773148148150
59197195.077546296296189.4583333333335.619212962962971.92245370370372
60199200.056712962963194.5833333333335.47337962962963-1.05671296296296
61205205.126157407407199.8333333333335.29282407407409-0.126157407407362
62194199.716435185185204.958333333333-5.24189814814815-5.71643518518519
63200205.313657407407209.625-4.31134259259258-5.31365740740739
64211212.577546296296214.333333333333-1.75578703703705-1.57754629629628
65211208.994212962963219.125-10.13078703703702.00578703703704
66230225.160879629630223.7916666666671.369212962962964.83912037037038
67229222.521990740741228.541666666667-6.019675925925936.4780092592593
68236234.167824074074233.6666666666670.50115740740741.83217592592595
69239242.0081018518522393.00810185185185-3.00810185185185
70250250.612268518518244.4166666666676.19560185185186-0.612268518518476
71254255.410879629630249.7916666666675.61921296296297-1.41087962962959
72254260.140046296296254.6666666666675.47337962962963-6.14004629629628
73264264.2928240740742595.29282407407409-0.292824074074019
74258258.091435185185263.333333333333-5.24189814814815-0.091435185185162
75264263.271990740741267.583333333333-4.311342592592580.728009259259295
76277269.785879629630271.541666666667-1.755787037037057.21412037037038
77274265.369212962963275.5-10.13078703703708.63078703703707
78284280.535879629630279.1666666666671.369212962962963.46412037037038
79279NANA-6.01967592592593NA
80290NANA0.5011574074074NA
81287NANA3.00810185185185NA
82297NANA6.19560185185186NA
83302NANA5.61921296296297NA
84294NANA5.47337962962963NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/04/t12809368975xfhkhxlb1b0axb/183g51280936892.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/04/t12809368975xfhkhxlb1b0axb/183g51280936892.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/04/t12809368975xfhkhxlb1b0axb/283g51280936892.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/04/t12809368975xfhkhxlb1b0axb/283g51280936892.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/04/t12809368975xfhkhxlb1b0axb/3w9pj1280936892.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/04/t12809368975xfhkhxlb1b0axb/3w9pj1280936892.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/04/t12809368975xfhkhxlb1b0axb/4617m1280936892.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/04/t12809368975xfhkhxlb1b0axb/4617m1280936892.ps (open in new window)


 
Parameters (Session):
 
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