Home » date » 2009 » Jun » 01 »

Opgave 9 - Classical Decomposition: goudkoers - Talia Vereycken

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 01 Jun 2009 03:54:23 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/01/t12438501034thylqdgnrbseoi.htm/, Retrieved Mon, 01 Jun 2009 11:55:07 +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/2009/Jun/01/t12438501034thylqdgnrbseoi.htm/},
    year = {2009},
}
@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 = {2009},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
10.812 10.738 10.171 9.721 9.897 9.828 9.924 10.371 10.846 10.413 10.709 10.662 10.570 10.297 10.635 10.872 10.296 10.383 10.431 10.574 10.653 10.805 10.872 10.625 10.407 10.463 10.556 10.646 10.702 11.353 11.346 11.451 11.964 12.574 13.031 13.812 14.544 14.931 14.886 16.005 17.064 15.168 16.050 15.839 15.137 14.954 15.648 15.305 15.579 16.348 15.928 16.171 15.937 15.713 15.594 15.683 16.438 17.032 17.696 17.745 19.394 20.148 20.108 18.584 18.441 18.391 19.178 18.079 18.483 19.644 19.195 19.650 20.830
 
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'George Udny Yule' @ 72.249.76.132


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
110.812NANA1.01520968589506NA
210.738NANA1.02456102948526NA
310.171NANA1.01743275298979NA
49.721NANA1.01566286173115NA
59.897NANA1.00506080507181NA
69.828NANA0.980121548860336NA
79.92410.209102828909210.33091666666670.9882088064701420.972073664680717
810.37110.017230424521110.30245833333330.972314577784861.03531610639732
910.84610.102858558672110.30341666666670.9805347959339161.07355754185928
1010.41310.341387942625810.37070833333330.9971727687477941.0069248013682
1110.70910.464851698495310.43529166666671.002832698191181.02333031642865
1210.66210.484340034738410.47504166666671.000887668838711.01694526929430
1310.5710.679286788755210.51929166666671.015209685895060.989766471215078
1410.29710.807966229911310.5488751.024561029485260.952723184080905
1510.63510.733194862508910.54929166666671.017432752989790.990851292297704
1610.87210.722945301298410.55758333333331.015662861731151.01390053707385
1710.29610.634255235730010.58070833333331.005060805071810.968191920521758
1810.38310.375525877837610.58595833333330.9801215488603361.00072036080391
1910.43110.452902176538710.5776250.9882088064701420.997904679851698
2010.57410.284900525163810.577750.972314577784861.02810911725678
2110.65310.375406376325210.5813750.9805347959339161.02675496396056
2210.80510.538786601972510.56866666666670.9971727687477941.02526034619371
2310.87210.606125754852910.57616666666671.002832698191181.02506798913123
2410.62510.642939026596510.63351.000887668838710.998314466844955
2510.40710.874968455711410.71204166666671.015209685895060.956968293046803
2610.46311.051640994757210.78670833333331.024561029485260.946737231598777
2710.55611.067506307928810.8778751.017432752989790.953783057023213
2810.64611.178597052642511.00620833333331.015662861731150.9523556444396
2910.70211.226403560051511.1698751.005060805071810.953288374389323
3011.35311.166157260585011.3926250.9801215488603361.01673294895053
3111.34611.559860741253011.69779166666670.9882088064701420.981499713012126
3211.45111.722548654633512.05633333333330.972314577784860.9768353570001
3311.96412.181102058654012.42291666666670.9805347959339160.982177141476308
3412.57412.790361164939712.8266250.9971727687477940.983084045700543
3513.03113.352717376415513.3151.002832698191180.975906224377685
3613.81213.751237385827913.73904166666671.000887668838711.00441870156606
3714.54414.308365313004914.0941.015209685895061.01646831638978
3814.93114.828301019568614.47283333333331.024561029485261.00692587642346
3914.88615.045668372118814.7878751.017432752989790.989387751466414
4016.00515.254494436055515.019251.015662861731151.04919897982135
4117.06415.304521531697515.22745833333331.005060805071811.11496461778687
4215.16815.092605862115215.39870833333330.9801215488603361.00499543541874
4316.0515.3212305108815.50404166666670.9882088064701421.04756598946817
4415.83915.174143866447615.60620833333330.972314577784861.04381506722251
4515.13715.402894264393915.70866666666670.9805347959339160.98273738299895
4614.95415.714445662696515.7590.9971727687477940.951608495837581
4715.64815.763485398171415.71895833333331.002832698191180.992673866517822
4815.30515.708640036853515.69470833333331.000887668838710.974304584234755
4915.57915.937184653216415.69841666666671.015209685895060.97752522412143
5016.34816.057859635036715.67291666666671.024561029485261.01806843325061
5115.92815.994678772470115.7206251.017432752989790.995831190271553
5216.17116.109851842776815.86141666666671.015662861731151.00379569953963
5315.93716.114474907984716.03333333333331.005060805071810.988986615511948
5415.71315.897898229697616.22033333333330.9801215488603360.988369643142374
5515.59416.286628164067516.48095833333330.9882088064701420.957472586892136
5615.68316.333183356274516.798250.972314577784860.960192490215035
5716.43816.797296455444917.130750.9805347959339160.978609864010082
5817.03217.356249077574417.40545833333330.9971727687477940.981318021185044
5917.69617.660218092712717.61033333333331.002832698191181.00202613054377
6017.74517.842073806636117.826251.000887668838710.99455927558152
6119.39418.362266790398218.08716666666671.015209685895061.05618768212982
6220.14818.786692556984918.33633333333331.024561029485261.07246126154915
6320.10818.844253555406218.5213751.017432752989791.06706269584402
6418.58419.008553650157518.71541666666671.015662861731150.977665126028462
6518.44118.982290282656518.88670833333331.005060805071810.971484458693004
6618.39118.650283730886819.02854166666670.9801215488603360.98609759858734
6719.17818.941739350218119.167750.9882088064701421.01247301767877
6818.079NANA0.97231457778486NA
6918.483NANA0.980534795933916NA
7019.644NANA0.997172768747794NA
7119.195NANA1.00283269819118NA
7219.65NANA1.00088766883871NA
7320.83NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438501034thylqdgnrbseoi/1jkke1243850060.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438501034thylqdgnrbseoi/1jkke1243850060.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438501034thylqdgnrbseoi/2v9uc1243850060.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438501034thylqdgnrbseoi/2v9uc1243850060.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438501034thylqdgnrbseoi/3arzo1243850060.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438501034thylqdgnrbseoi/3arzo1243850060.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438501034thylqdgnrbseoi/4f3f71243850060.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438501034thylqdgnrbseoi/4f3f71243850060.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