Home » date » 2010 » May » 24 »

eigen reeks oef 9

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 24 May 2010 18:17:11 +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/May/24/t1274725260a9eutgr3avgvyfe.htm/, Retrieved Mon, 24 May 2010 20:21:05 +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/May/24/t1274725260a9eutgr3avgvyfe.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 «
18288.3 16049 16764.5 17880.2 16555.9 16087.1 16373.5 17842.2 22321.5 22786.7 18274.1 22392.9 23899.3 21343.5 22952.3 21374.4 21164.1 20906.5 17877.4 20664.3 22160 19813.6 17735.4 19640.2 20844.4 19823.1 18594.6 21350.6 18574.1 18924.2 17343.4 19961.2 19932.1 19464.6 16165.4 17574.9 19795.4 19439.5 17170 21072.4 17751.8 17515.5 18040.3 19090.1 17746.5 19202.1 15141.6 16258.1 18586.5 17209.4 17838.7 19123.5 16583.6 15991.2 16704.5 17422 17872 17823.2 13866.5 15912.8 17870.5 15420.3 16379.4 17903.9 15305.8 14583.3 14861 14968.9 16726.5 16283.6 11703.7 15101.8 15469.7 14956.9 15370.6 15998.1 14725.1 14768.9 13659.6 15070.3 16942.6 15761.3 12083 15023.6 15106.5
 
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
118288.3NANA1364.43969907407NA
216049NANA23.6855324074068NA
316764.5NANA99.1049768518524NA
417880.2NANA1604.79594907407NA
516555.9NANA-423.15613425926NA
616087.1NANA-564.80335648148NA
716373.517548.650115740718701.7833333333-1153.13321759259-1175.15011574074
817842.219149.718171296319156.1791666667-6.46099537037110-1307.51817129630
922321.520282.633449074119634.6083333333648.0251157407392038.86655092593
1022786.721134.514699074120038.0251096.489699074071652.18530092592
1118274.118568.712615740720375.625-1806.91238425926-294.612615740742
1222392.919886.366782407420768.4416666667-882.074884259262506.53321759259
1323899.322396.352199074121031.91251364.439699074071502.94780092592
1421343.521235.848032407421212.162523.6855324074068107.651967592596
1522952.321422.125810185221323.020833333399.10497685185241530.17418981481
1621374.422797.208449074121192.41251604.79594907407-1422.80844907408
1721164.120622.931365740721046.0875-423.15613425926541.168634259258
1820906.520344.142476851920908.9458333333-564.80335648148562.357523148148
1917877.419513.829282407420666.9625-1153.13321759259-1636.42928240740
2020664.320469.864004629620476.325-6.46099537037110194.435995370372
212216020879.429282407420231.4041666667648.0251157407391280.57071759259
2219813.621145.331365740720048.84166666671096.48969907407-1331.73136574074
2317735.418133.020949074119939.9333333333-1806.91238425926-397.620949074073
2419640.218867.345949074119749.4208333333-882.07488425926772.854050925926
2520844.421009.014699074119644.5751364.43969907407-164.614699074074
2619823.119616.714699074119593.029166666723.6855324074068206.385300925926
2718594.619570.009143518519470.904166666799.1049768518524-975.409143518518
2821350.620968.329282407419363.53333333331604.79594907407382.27071759259
2918574.118860.418865740719283.575-423.15613425926-286.318865740737
3018924.218567.300810185219132.1041666667-564.80335648148356.899189814812
3117343.417849.208449074119002.3416666667-1153.13321759259-505.808449074069
3219961.218936.189004629618942.65-6.460995370371101025.01099537037
3319932.119515.333449074118867.3083333333648.025115740739416.766550925924
3419464.619892.848032407418796.35833333331096.48969907407-428.24803240741
3516165.416943.591782407418750.5041666667-1806.91238425926-778.191782407408
3617574.917775.470949074118657.5458333333-882.07488425926-200.570949074074
3719795.419992.327199074118627.88751364.43969907407-196.927199074074
3819439.518644.314699074118620.629166666723.6855324074068795.185300925928
391717018592.371643518518493.266666666799.1049768518524-1422.37164351852
4021072.419996.058449074118391.26251604.795949074071076.34155092592
4117751.817914.510532407418337.6666666667-423.15613425926-162.710532407407
4217515.517675.338310185218240.1416666667-564.80335648148-159.838310185183
4318040.316981.770949074118134.9041666667-1153.133217592591058.52905092592
4419090.117985.151504629617991.6125-6.460995370371101104.94849537037
4517746.518574.579282407417926.5541666667648.025115740739-828.079282407409
4619202.118969.702199074117873.21251096.48969907407232.397800925923
4715141.615936.420949074117743.3333333333-1806.91238425926-794.820949074074
4816258.116749.070949074117631.1458333333-882.07488425926-490.970949074072
4918586.518876.414699074117511.9751364.43969907407-289.914699074074
5017209.417410.498032407417386.812523.6855324074068-201.098032407404
5117838.717421.642476851917322.537599.1049768518524417.057523148149
5219123.518875.108449074117270.31251604.79594907407248.391550925920
5316583.616736.573032407417159.7291666667-423.15613425926-152.973032407408
5415991.216527.409143518517092.2125-564.80335648148-536.209143518518
5516704.515894.858449074117047.9916666667-1153.13321759259809.641550925924
561742216937.151504629616943.6125-6.46099537037110484.84849537037
571787217456.287615740716808.2625648.025115740739415.712384259259
5817823.217793.131365740716696.64166666671096.4896990740730.0686342592599
5913866.514785.670949074116592.5833333333-1806.91238425926-919.170949074074
6015912.815598.604282407416480.6791666667-882.07488425926314.195717592593
6117870.517709.643865740716345.20416666671364.43969907407160.856134259258
6215420.316189.864699074116166.179166666723.6855324074068-769.564699074075
6316379.416115.342476851816016.237599.1049768518524264.057523148151
6417903.917509.154282407415904.35833333331604.79594907407394.745717592597
6515305.815326.935532407415750.0916666667-423.15613425926-21.1355324074066
6614583.315061.379976851915626.1833333333-564.80335648148-478.079976851852
671486114339.225115740715492.3583333333-1153.13321759259521.774884259261
6814968.915366.555671296315373.0166666667-6.46099537037110-397.655671296296
6916726.515959.700115740715311.675648.025115740739766.799884259261
7016283.616286.723032407415190.23333333331096.48969907407-3.12303240740403
7111703.713279.716782407415086.6291666667-1806.91238425926-1576.01678240741
7215101.814188.091782407415070.1666666667-882.07488425926913.708217592592
7315469.716392.281365740715027.84166666671364.43969907407-922.581365740738
7414956.915005.693865740714982.008333333323.6855324074068-48.7938657407431
7515370.615094.342476851914995.237599.1049768518524276.257523148148
7615998.116587.275115740714982.47916666671604.79594907407-589.175115740738
7714725.114553.364699074114976.5208333333-423.15613425926171.735300925928
7814768.914424.263310185214989.0666666667-564.80335648148344.636689814814
7913659.613817.541782407414970.675-1153.13321759259-157.941782407406
8015070.3NANA-6.46099537037110NA
8116942.6NANA648.025115740739NA
8215761.3NANA1096.48969907407NA
8312083NANA-1806.91238425926NA
8415023.6NANA-882.07488425926NA
8515106.5NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/24/t1274725260a9eutgr3avgvyfe/1ex9r1274725028.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/24/t1274725260a9eutgr3avgvyfe/1ex9r1274725028.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/24/t1274725260a9eutgr3avgvyfe/2ex9r1274725028.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/24/t1274725260a9eutgr3avgvyfe/2ex9r1274725028.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/24/t1274725260a9eutgr3avgvyfe/3oorc1274725028.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/24/t1274725260a9eutgr3avgvyfe/3oorc1274725028.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/24/t1274725260a9eutgr3avgvyfe/4hgqf1274725028.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/24/t1274725260a9eutgr3avgvyfe/4hgqf1274725028.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