Home » date » 2008 » May » 25 »

Ruts Wouter decompositie opgave 9 eigen reeks

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 25 May 2008 14:18:31 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/25/t1211746776cu5vp1uz00jwjhc.htm/, Retrieved Sun, 25 May 2008 22:19:36 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
6,5300 6,5400 6,5400 6,5100 6,5100 6,4900 6,4600 6,4600 6,5200 6,4800 6,4900 6,4800 6,5300 6,4900 6,4800 6,5700 6,5300 6,5700 6,5500 6,5700 6,6200 6,5600 6,6500 6,5900 6,6800 6,7500 6,7700 6,8200 6,8800 6,8100 6,8700 6,9100 6,9800 7,0400 6,9900 7,0800 7,1300 7,1000 7,0200 7,0300 7,1200 7,1100 7,0900 7,0200 7,0300 7,0600 7,0500 7,1100 7,0600 7,0500 7,1100 7,0900 7,1300 7,0300 7,0600 7,1100 7,0800 7,1300 7,0000 7,0200 6,9600 6,9800 7,0200 7,0200 7,0600 7,0200 6,9400 6,9700 6,9700 6,9400 6,9300 7,0000 6,9700 6,9700 6,9800 6,9200 7,0000 6,9400 6,9700 6,9300 6,9200 6,8400 6,8600 6,8600 6,8400
 
Text written by user:
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
16.53NANA1.00018275833522NA
26.54NANA0.999240706850688NA
36.54NANA0.998904810145195NA
46.51NANA1.00172331632599NA
56.51NANA1.00596047545515NA
66.49NANA0.999695577374594NA
76.466.485505820382676.500833333333330.9976422233635690.996067258115395
86.466.489420239943546.498750.9985643762175090.995466430150039
96.526.49622469544016.494166666666671.000316904212511.00365986487145
106.486.497951184154436.494166666666671.000582756446210.997237408585308
116.496.475334910417556.49750.9965886741696881.00226476155833
126.486.505550899542316.501666666666671.000597421103660.996072446448139
136.536.509939528314376.508751.000182758335221.00308151429032
146.496.512134956604846.517083333333330.9992407068506880.996600967769812
156.486.518686306872526.525833333333330.9989048101451950.994065321592215
166.576.544592333329836.533333333333331.001723316325991.00388223824741
176.536.582334711061556.543333333333331.005960475455150.992049217586338
186.576.552587969866566.554583333333330.9996955773745941.00265727529543
196.556.549936880641566.565416666666670.9976422233635691.00000963663614
206.576.573050006451756.58250.9985643762175090.999535983075017
216.626.607509951033756.605416666666671.000316904212511.00189028076519
226.566.631779127829126.627916666666671.000582756446210.989176489981714
236.656.630221400194756.652916666666670.9965886741696881.00298309794069
246.596.68148927941976.67751.000597421103660.986307052874946
256.686.702057966477936.700833333333331.000182758335220.99670877712663
266.756.723224555927046.728333333333330.9992407068506881.00398253008660
276.776.750099254556166.75750.9989048101451951.0029482152326
286.826.804205626144326.79251.001723316325991.00232126639368
296.886.867356845773846.826666666666671.005960475455151.00184105100552
306.816.859161280261436.861250.9996955773745940.992832756330879
316.876.884147025468366.900416666666670.9976422233635690.997944984990004
326.916.923795743598156.933750.9985643762175090.998007488362015
336.986.960955257188846.958751.000316904212511.00273593811589
347.046.981983092585296.977916666666671.000582756446211.00830951703053
356.996.972798756940586.996666666666670.9965886741696881.00246690656923
367.087.023360064963467.019166666666671.000597421103661.00806450680481
377.137.04212010431197.040833333333331.000182758335221.01247918160815
387.17.049226836537087.054583333333330.9992407068506881.00720265706301
397.027.053516590637767.061250.9989048101451950.995248243878486
407.037.076340460412887.064166666666671.001723316325990.993451352337819
417.127.109625660279297.06751.005960475455151.00145919633697
427.117.06909735151017.071250.9996955773745941.00578612041340
437.097.05291483492077.069583333333330.9976422233635691.00525813311905
447.027.054441249486617.064583333333330.9985643762175090.995117792002433
457.037.068489324391687.066251.000316904212510.994554801934996
467.067.076621544965837.07251.000582756446210.99765120335174
477.057.051280115031457.075416666666670.9965886741696880.99981845636387
487.117.076725260755657.07251.000597421103661.00470199675956
497.067.069208387350157.067916666666671.000182758335220.998697394836086
507.057.065048147728887.070416666666670.9992407068506880.99787005729979
517.117.068500162789947.076250.9989048101451951.00587109517639
527.097.093453233733457.081251.001723316325990.999513180164912
537.137.124295917213017.082083333333331.005960475455151.00080065214209
547.037.074095829396977.076250.9996955773745940.99376657731809
557.067.051667782141497.068333333333330.9976422233635691.00118159534963
567.117.051112701565887.061250.9985643762175091.00835149017276
577.087.05681896050927.054583333333331.000316904212511.00328491344620
587.137.052023885536527.047916666666671.000582756446211.01105726749216
5977.018060492559127.042083333333330.9965886741696880.997426569266784
607.027.04295509779347.038751.000597421103660.996740700817389
616.967.034618733624397.033333333333331.000182758335220.98939263996388
626.987.017167863858957.02250.9992407068506880.994703295605855
637.027.004403770805627.012083333333330.9989048101451951.00222663194537
647.027.011645829566836.999583333333331.001723316325991.00119147068124
657.067.03040627283726.988751.005960475455151.00420939075415
667.026.982873607961546.9850.9996955773745941.00531677846727
676.946.968115245934796.984583333333330.9976422233635690.99596515773025
686.976.974556099389216.984583333333330.9985643762175090.999346754212844
696.976.984712783663886.98251.000316904212510.997893573562782
706.946.980732364139736.976666666666661.000582756446210.994165029968922
716.936.946223058962726.970.9965886741696880.997664477684489
7276.968327206802766.964166666666671.000597421103661.00454525056836
736.976.9633557120936.962083333333331.000182758335221.0009541790168
746.976.956380720858876.961666666666670.9992407068506881.00195781106406
756.986.950296426922766.957916666666670.9989048101451951.00427371312714
766.926.96364658732626.951666666666671.001723316325990.99373222251031
7776.985976351837936.944583333333331.005960475455151.00200739989026
786.946.933721908740626.935833333333330.9996955773745941.00090544318650
796.976.908256712532986.924583333333330.9976422233635691.00893760756676
806.93NANA0.998564376217509NA
816.92NANA1.00031690421251NA
826.84NANA1.00058275644621NA
836.86NANA0.996588674169688NA
846.86NANA1.00059742110366NA
856.84NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211746776cu5vp1uz00jwjhc/1lhzi1211746703.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211746776cu5vp1uz00jwjhc/1lhzi1211746703.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211746776cu5vp1uz00jwjhc/2jm241211746703.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211746776cu5vp1uz00jwjhc/2jm241211746703.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211746776cu5vp1uz00jwjhc/3wy081211746703.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211746776cu5vp1uz00jwjhc/3wy081211746703.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211746776cu5vp1uz00jwjhc/440zu1211746703.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211746776cu5vp1uz00jwjhc/440zu1211746703.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