Home » date » 2010 » Dec » 16 »

Classical Decomposition 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: Thu, 16 Dec 2010 16:07:33 +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/Dec/16/t1292515686ykluk2wqqnv2wq5.htm/, Retrieved Thu, 16 Dec 2010 17:08:11 +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/Dec/16/t1292515686ykluk2wqqnv2wq5.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:
KDGP2W92
 
Dataseries X:
» Textbox « » Textfile « » CSV «
95,05 96,84 96,92 97,44 97,78 97,69 96,67 98,29 98,2 98,71 98,54 98,2 96,92 99,06 99,65 99,82 99,99 100,33 99,31 101,1 101,1 100,93 100,85 100,93 99,6 101,88 101,81 102,38 102,74 102,82 101,72 103,47 102,98 102,68 102,9 103,03 101,29 103,69 103,68 104,2 104,08 104,16 103,05 104,66 104,46 104,95 105,85 106,23 104,86 107,44 108,23 108,45 109,39 110,15 109,13 110,28 110,17 109,99 109,26 109,11 107,06 109,53 108,92 109,24 109,12 109 107,23 109,49 109,04 109,02 109,23 109,46
 
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
195.05NANA0.98140733479096NA
296.84NANA1.00247656470811NA
396.92NANA1.00208045626739NA
497.44NANA1.00383742651187NA
597.78NANA1.00447763133924NA
697.69NANA1.00487913979828NA
796.6796.902702845814497.60541666666670.9928004628754150.997598592825789
898.2998.391069956150897.77583333333331.006292317864680.998972773075892
998.298.232845681331697.98208333333331.002559267362640.999665634431092
1098.7198.327075112692798.1951.001345028898551.00389439924729
1198.5498.362622794367398.386250.9997598525644311.00180329886082
1298.298.399489058652798.58833333333330.9980845170184370.997972661641223
1396.9296.971223071803398.80833333333330.981407334790960.999471770385268
1499.0699.280684284436299.03541666666671.002476564708110.997777167975556
1599.6599.479867161851499.27333333333331.002080456267391.00171022381717
1699.8299.86843943891199.48666666666671.003837426511870.99951496749941
1799.99100.12172643608599.67541666666661.004477631339240.998684337148645
18100.33100.37277157839399.88541666666661.004879139798280.999573872697544
1999.3199.3900816721768100.1108333333330.9928004628754150.99919426897705
20101.1100.971371174542100.341.006292317864681.00127391382291
21101.1100.804827935145100.54751.002559267362641.00292815404680
22100.93100.879670482193100.7441666666671.001345028898551.00049890644533
23100.85100.941170080773100.9654166666670.9997598525644310.999096799841927
24100.93100.989934248864101.183750.9980845170184370.999406532449892
2599.699.5028450758412101.3879166666670.981407334790961.00097640347957
26101.88101.838670318716101.5870833333331.002476564708111.00040583484794
27101.81101.975882565004101.7641666666671.002080456267390.998373315721016
28102.38102.306509588552101.9154166666671.003837426511871.00071833563420
29102.74102.530798621914102.073751.004477631339241.00204037597383
30102.82102.745542447241102.2466666666671.004879139798281.00072467915381
31101.72101.667317733897102.4045833333330.9928004628754151.00051818290555
32103.47103.195696485489102.5504166666671.006292317864681.00265809063607
33102.98102.966596355396102.703751.002559267362641.00013017468848
34102.68102.995846309932102.85751.001345028898550.99693340730478
35102.9102.964434082400102.9891666666670.9997598525644310.999374210299173
36103.03102.903345441698103.1008333333330.9980845170184371.00123081089111
37101.29101.293095622389103.2120833333330.981407334790960.999969438959586
38103.69103.572954775661103.3170833333331.002476564708111.00113007516868
39103.68103.643511457642103.4283333333331.002080456267391.00035205814474
40104.2103.982081559638103.5845833333331.003837426511871.00209573069796
41104.08104.266870794745103.8020833333331.004477631339240.99820776442871
42104.16104.566048488843104.0583333333331.004879139798280.996116822862576
43103.05103.589213963280104.3404166666670.9928004628754150.994794690077758
44104.66105.303878891415104.6454166666671.006292317864680.993885515916472
45104.46105.259950679488104.991251.002559267362640.992400236991147
46104.95105.499626109274105.3579166666671.001345028898550.994790255382473
47105.85105.730852907767105.756250.9997598525644311.00112689048614
48106.23106.023607163027106.2270833333330.9980845170184371.00194666869479
49104.86104.745604842239106.730.981407334790961.00109212370231
50107.44107.483031076592107.21751.002476564708110.999599647719639
51108.23107.913626801912107.6895833333331.002080456267391.00293172611712
52108.45108.552469709427108.13751.003837426511870.99905603520858
53109.39108.975359691648108.4895833333331.004477631339241.00380489965369
54110.15109.282281251629108.7516666666671.004879139798281.00794015954309
55109.13108.178847769781108.9633333333330.9928004628754151.00879240489086
56110.28109.828840014080109.1420833333331.006292317864681.00410784622565
57110.17109.537536886902109.2579166666671.002559267362641.00577393951949
58109.99109.466621332094109.3195833333331.001345028898551.00478117129713
59109.26109.314991979211109.341250.9997598525644310.999496940188945
60109.11109.072755362519109.2820833333330.9980845170184371.00034146599999
61107.06107.125517629107109.1550.981407334790960.999388403150275
62109.53109.312968505753109.0429166666671.002476564708111.00198541396519
63108.92109.189609249559108.9629166666671.002080456267390.99753081587697
64109.24109.293218077074108.8754166666671.003837426511870.999513070636855
65109.12109.321067409767108.833751.004477631339240.998160762472125
66109109.378163469552108.8470833333331.004879139798280.996542605419985
67107.23NANA0.992800462875415NA
68109.49NANA1.00629231786468NA
69109.04NANA1.00255926736264NA
70109.02NANA1.00134502889855NA
71109.23NANA0.999759852564431NA
72109.46NANA0.998084517018437NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292515686ykluk2wqqnv2wq5/1q0m41292515649.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292515686ykluk2wqqnv2wq5/1q0m41292515649.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t1292515686ykluk2wqqnv2wq5/2q0m41292515649.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292515686ykluk2wqqnv2wq5/2q0m41292515649.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t1292515686ykluk2wqqnv2wq5/309lo1292515649.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292515686ykluk2wqqnv2wq5/309lo1292515649.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t1292515686ykluk2wqqnv2wq5/409lo1292515649.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292515686ykluk2wqqnv2wq5/409lo1292515649.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