Home » date » 2011 » May » 16 »

Eigen reeks deel 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, 16 May 2011 19:09:23 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/16/t1305572743lkadw1e4dp9ju6r.htm/, Retrieved Mon, 16 May 2011 21:05:47 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2w91
 
Dataseries X:
» Textbox « » Textfile « » CSV «
5,7 5,6 5,8 5,6 5,6 5,6 5,5 5,4 5,4 5,5 5,4 5,4 5,3 5,4 5,2 5,2 5,1 5 5 4,9 5 5 5 4,9 4,7 4,8 4,7 4,7 4,6 4,6 4,7 4,7 4,5 4,4 4,5 4,4 4,6 4,5 4,4 4,5 4,4 4,6 4,7 4,6 4,7 4,7 4,7 5 5 4,8 5,1 4,9 5,4 5,6 5,8 6,1 6,2 6,6 6,8 7,3 7,8 8,2 8,6 8,9 9,4 9,5 9,5 9,7 9,8 10,1 9,9 9,9 9,7 9,7 9,7 9,8 9,6 9,6 9,5 9,6 9,6 9,7 9,8 9,4 9
 
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'Herman Ole Andreas Wold' @ www.yougetit.org


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
15.7NANA0.00341435185185125NA
25.6NANA-0.0035300925925928NA
35.8NANA-0.0118634259259258NA
45.6NANA-0.0201967592592593NA
55.6NANA0.00341435185185229NA
65.6NANA0.0117476851851847NA
75.55.533275462962965.5250.00827546296296327-0.0332754629629637
85.45.512442129629635.50.0124421296296297-0.11244212962963
95.45.438831018518525.46666666666667-0.0278356481481483-0.0388310185185183
105.55.439525462962965.4250.01452546296296310.0604745370370363
115.45.37910879629635.3875-0.008391203703703630.0208912037037035
125.45.359664351851855.341666666666670.01799768518518550.0403356481481483
135.35.299247685185195.295833333333330.003414351851851250.000752314814814525
145.45.250636574074075.25416666666667-0.00353009259259280.149363425925927
155.25.204803240740745.21666666666667-0.0118634259259258-0.00480324074074012
165.25.158969907407415.17916666666667-0.02019675925925930.0410300925925924
175.15.145081018518525.141666666666670.00341435185185229-0.045081018518518
1855.115914351851855.104166666666670.0117476851851847-0.115914351851851
1955.06660879629635.058333333333330.00827546296296327-0.066608796296296
204.95.020775462962965.008333333333330.0124421296296297-0.120775462962961
2154.934664351851854.9625-0.02783564814814830.0653356481481486
2254.93535879629634.920833333333330.01452546296296310.0646412037037045
2354.870775462962964.87916666666667-0.008391203703703630.129224537037037
244.94.859664351851854.841666666666670.01799768518518550.0403356481481492
254.74.815914351851854.81250.00341435185185125-0.11591435185185
264.84.788136574074074.79166666666667-0.00353009259259280.0118634259259265
274.74.750636574074074.7625-0.0118634259259258-0.0506365740740735
284.74.696469907407414.71666666666667-0.02019675925925930.00353009259259274
294.64.674247685185184.670833333333330.00341435185185229-0.0742476851851848
304.64.640914351851854.629166666666670.0117476851851847-0.0409143518518515
314.74.612442129629634.604166666666670.008275462962963270.087557870370369
324.74.599942129629634.58750.01244212962962970.10005787037037
334.54.534664351851854.5625-0.0278356481481483-0.0346643518518519
344.44.556192129629634.541666666666670.0145254629629631-0.15619212962963
354.54.51660879629634.525-0.00839120370370363-0.0166087962962962
364.44.534664351851854.516666666666670.0179976851851855-0.134664351851852
374.64.520081018518524.516666666666670.003414351851851250.0799189814814811
384.54.508969907407414.5125-0.0035300925925928-0.00896990740740744
394.44.504803240740744.51666666666667-0.0118634259259258-0.104803240740741
404.54.517303240740744.5375-0.0201967592592593-0.0173032407407403
414.44.561747685185194.558333333333330.00341435185185229-0.161747685185185
424.64.603414351851854.591666666666670.0117476851851847-0.0034143518518519
434.74.64160879629634.633333333333330.008275462962963270.058391203703704
444.64.674942129629634.66250.0124421296296297-0.0749421296296298
454.74.676331018518524.70416666666667-0.02783564814814830.0236689814814817
464.74.764525462962964.750.0145254629629631-0.0645254629629628
474.74.799942129629634.80833333333333-0.00839120370370363-0.0999421296296301
4854.909664351851854.891666666666670.01799768518518550.090335648148149
4954.982581018518524.979166666666670.003414351851851250.017418981481482
504.85.083969907407415.0875-0.0035300925925928-0.283969907407407
515.15.200636574074075.2125-0.0118634259259258-0.100636574074074
524.95.333969907407415.35416666666667-0.0201967592592593-0.433969907407407
535.45.524247685185195.520833333333330.00341435185185229-0.124247685185186
545.65.715914351851855.704166666666670.0117476851851847-0.115914351851853
555.85.924942129629635.916666666666670.00827546296296327-0.12494212962963
566.16.187442129629636.1750.0124421296296297-0.087442129629629
576.26.434664351851856.4625-0.0278356481481483-0.234664351851852
586.66.789525462962966.7750.0145254629629631-0.189525462962963
596.87.099942129629637.10833333333333-0.00839120370370363-0.29994212962963
607.37.455497685185197.43750.0179976851851855-0.155497685185185
617.87.757581018518527.754166666666670.003414351851851250.0424189814814833
628.28.054803240740748.05833333333333-0.00353009259259280.145196759259258
638.68.34646990740748.35833333333333-0.01186342592592580.253530092592593
648.98.633969907407418.65416666666667-0.02019675925925930.26603009259259
659.48.932581018518528.929166666666670.003414351851852290.467418981481483
669.59.178414351851859.166666666666670.01174768518518470.321585648148147
679.59.362442129629639.354166666666670.008275462962963270.137557870370371
689.79.508275462962969.495833333333330.01244212962962970.191724537037036
699.89.576331018518529.60416666666667-0.02783564814814830.223668981481481
7010.19.702025462962969.68750.01452546296296310.397974537037037
719.99.724942129629639.73333333333333-0.008391203703703630.175057870370372
729.99.763831018518529.745833333333330.01799768518518550.136168981481481
739.79.753414351851859.750.00341435185185125-0.0534143518518544
749.79.742303240740749.74583333333333-0.0035300925925928-0.0423032407407415
759.79.72146990740749.73333333333333-0.0118634259259258-0.0214699074074094
769.89.688136574074079.70833333333333-0.02019675925925930.111863425925927
779.69.690914351851859.68750.00341435185185229-0.0909143518518505
789.69.674247685185189.66250.0117476851851847-0.0742476851851848
799.59.620775462962969.61250.00827546296296327-0.120775462962962
809.6NANA0.0124421296296297NA
819.6NANA-0.0278356481481483NA
829.7NANA0.0145254629629631NA
839.8NANA-0.00839120370370363NA
849.4NANA0.0179976851851855NA
859NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/16/t1305572743lkadw1e4dp9ju6r/17chi1305572961.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/16/t1305572743lkadw1e4dp9ju6r/17chi1305572961.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/16/t1305572743lkadw1e4dp9ju6r/24mwc1305572961.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/16/t1305572743lkadw1e4dp9ju6r/24mwc1305572961.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/16/t1305572743lkadw1e4dp9ju6r/3dck81305572961.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/16/t1305572743lkadw1e4dp9ju6r/3dck81305572961.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/16/t1305572743lkadw1e4dp9ju6r/45uck1305572961.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/16/t1305572743lkadw1e4dp9ju6r/45uck1305572961.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