Home » date » 2010 » Jan » 12 »

Classical Decomposition inschrijving eigen reeks

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Tue, 12 Jan 2010 12:43:41 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Jan/12/t1263325489wwm92qz30m4hrid.htm/, Retrieved Tue, 12 Jan 2010 20:44:55 +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/2010/Jan/12/t1263325489wwm92qz30m4hrid.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:
KDGP2W52
 
Dataseries X:
» Textbox « » Textfile « » CSV «
76,3 71 85,9 109 83,4 101,3 81,6 84,8 88 88,4 85,2 139,5 85,3 79,4 131 91,4 88,2 113,2 81,9 89 95,7 93,2 98 140,5 93 82,1 86,3 84,8 85,7 110,8 87,4 100,4 100,4 99,4 108 161,7 109,3 99,9 110,3 97,5 102,4 122,3 104,4 122,7 127,3 128,4 125,3 187,1 131,4 125,6 142,9 116,6 129,7 155,4 138,7 167,7 155,8 157,1 159,9 244,6 154,3 143,2 147,3 155,1 152,2 166,5 161,2 180,1 169,2 164,5 166,2 267,3
 
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'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
176.3NANA0.962459102149803NA
271NANA0.877076078060531NA
385.9NANA1.03044273310302NA
4109NANA0.885313990310911NA
583.4NANA0.894567966560115NA
6101.3NANA1.06969376643926NA
781.680.167734776640191.5750.875432539193451.01786585622446
884.890.5083264673392.30.9805885857782230.936930372153213
98892.971914130904694.52916666666670.9835262216871820.94652240757457
1088.493.205381055610895.6750.9741874163115840.948443094152004
1185.293.79713784679995.14166666666670.9858681388820080.908343281637859
12139.5141.92033524379895.83751.480843461523910.982945817879868
1385.392.728924245874696.34583333333330.9624591021498030.919885577167093
1479.484.6670774021196.53333333333330.8770760780605310.937790726174532
1513199.982999690708697.02916666666671.030442733103021.31022274191853
1691.486.362379754829497.550.8853139903109111.05833118841180
1788.287.9211216467598.28333333333330.8945679665601151.00317191532622
18113.2105.74814292724198.85833333333331.069693766439261.07046797103459
1981.986.8611460658999.22083333333330.875432539193450.942884174448646
208997.71973835857499.65416666666670.9805885857782230.910767890857651
2195.796.291315129098897.90416666666670.9835262216871820.993859102159878
2293.293.294681568772695.76666666666670.9741874163115840.998985134337986
239894.039497097607595.38750.9858681388820081.04211531350792
24140.5140.95161681271895.18333333333331.480843461523910.996795944431643
259391.734383173653195.31250.9624591021498031.01379653716046
2682.184.213921428445396.01666666666670.8770760780605310.974898195065747
2786.399.630931756898496.68751.030442733103020.866196857523864
2884.886.00087654211997.14166666666670.8853139903109110.986036461598959
2985.787.503656595688597.81666666666660.8945679665601150.979387643147048
30110.8106.02448048357199.11666666666671.069693766439261.0450416686283
3187.488.1378185188805100.6791666666670.875432539193450.991628808934925
32100.4100.118094607957102.10.9805885857782231.00281572869667
33100.4102.131002070366103.8416666666670.9835262216871820.983051159439581
3499.4102.650939879598105.3708333333330.9741874163115840.96833014989038
35108105.08943582091106.5958333333330.9858681388820081.02769606817616
36161.7159.59173388465107.7708333333331.480843461523911.01321037164039
37109.3104.867939671739108.9583333333330.9624591021498031.04226325359432
3899.997.0009597498362110.5958333333330.8770760780605311.02988671717930
39110.3116.075080372668112.6458333333331.030442733103020.950247026716448
4097.5101.788976035997114.9750.8853139903109110.957864041834155
41102.4104.578722657405116.9041666666670.8945679665601150.9791666736594
42122.3126.954821846899118.6833333333331.069693766439260.963334816439561
43104.4105.631878760430120.66250.875432539193450.988338001984955
44122.7120.273275831473122.6541666666670.9805885857782231.02017675291332
45127.3123.022738229372125.0833333333330.9835262216871821.03476805858973
46128.4123.953171382945127.23750.9741874163115841.03587506933015
47125.3127.345409056171129.1708333333330.9858681388820080.983938101331403
48187.1195.00857333943131.68751.480843461523910.959444996678866
49131.4129.446738992890134.4958333333330.9624591021498031.01508930253714
50125.6120.861083556741137.80.8770760780605311.03920961407759
51142.9145.150739491724140.86251.030442733103020.984493778677216
52116.6126.817540303745143.2458333333330.8853139903109110.9194311742739
53129.7130.502556855011145.8833333333330.8945679665601150.99385025953244
54155.4160.155442122758149.7208333333331.069693766439260.970307333552157
55138.7134.003188301457153.0708333333330.875432539193451.03504999961625
56167.7151.754255220728154.7583333333330.9805885857782231.10507609658839
57155.8153.110444561152155.6750.9835262216871821.01756611344547
58157.1153.397986040963157.46250.9741874163115841.02413339349872
59159.9157.743010005033160.0041666666670.9858681388820081.0136740765559
60244.6239.014304871049161.4041666666671.480843461523911.02336971057847
61154.3156.692352076247162.8041666666670.9624591021498030.984732170750218
62143.2144.067054788759164.2583333333330.8770760780605310.99398158871207
63147.3170.366531873033165.3333333333331.030442733103020.864606436373175
64155.1147.139185189673166.20.8853139903109111.05410397509042
65152.2149.187845256536166.7708333333330.8945679665601151.02019034954412
66166.5179.686267474995167.9791666666671.069693766439260.926615051554623
67161.2NANA0.87543253919345NA
68180.1NANA0.980588585778223NA
69169.2NANA0.983526221687182NA
70164.5NANA0.974187416311584NA
71166.2NANA0.985868138882008NA
72267.3NANA1.48084346152391NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jan/12/t1263325489wwm92qz30m4hrid/1dot81263325419.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/12/t1263325489wwm92qz30m4hrid/1dot81263325419.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/12/t1263325489wwm92qz30m4hrid/2t57i1263325419.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/12/t1263325489wwm92qz30m4hrid/2t57i1263325419.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/12/t1263325489wwm92qz30m4hrid/3j30k1263325419.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/12/t1263325489wwm92qz30m4hrid/3j30k1263325419.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/12/t1263325489wwm92qz30m4hrid/4miv21263325419.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/12/t1263325489wwm92qz30m4hrid/4miv21263325419.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