Home » date » 2009 » Jun » 06 »

opgave 9(2) dennis gys

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sat, 06 Jun 2009 05:16:53 -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/06/t1244287061ph5zxi1rrvdhd3g.htm/, Retrieved Sat, 06 Jun 2009 13:17:41 +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/06/t1244287061ph5zxi1rrvdhd3g.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.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 time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
110.738NANA0.456913194444444NA
210.171NANA0.314238194444444NA
39.721NANA0.206671527777778NA
49.897NANA0.091429861111111NA
59.828NANA-0.340586805555557NA
69.924NANA-0.182786805555556NA
710.37110.000904861111110.3024583333333-0.3015534722222220.370095138888889
810.84610.064638194444410.3034166666667-0.2387784722222230.781361805555555
910.41310.123263194444410.3707083333333-0.2474451388888880.289736805555554
1010.70910.478388194444410.43529166666670.04309652777777830.230611805555553
1110.66210.414179861111110.4750416666667-0.06086180555555430.247820138888889
1210.5710.778954861111110.51929166666670.259663194444445-0.208954861111112
1310.29711.005788194444410.5488750.456913194444444-0.708788194444445
1410.63510.863529861111110.54929166666670.314238194444444-0.228529861111111
1510.87210.764254861111110.55758333333330.2066715277777780.107745138888889
1610.29610.672138194444410.58070833333330.091429861111111-0.376138194444444
1710.38310.245371527777810.5859583333333-0.3405868055555570.137628472222223
1810.43110.394838194444410.577625-0.1827868055555560.0361618055555546
1910.57410.276196527777810.57775-0.3015534722222220.297803472222222
2010.65310.342596527777810.581375-0.2387784722222230.310403472222221
2110.80510.321221527777810.5686666666667-0.2474451388888880.483778472222221
2210.87210.619263194444410.57616666666670.04309652777777830.252736805555555
2310.62510.572638194444410.6335-0.06086180555555430.0523618055555541
2410.40710.971704861111110.71204166666670.259663194444445-0.56470486111111
2510.46311.243621527777810.78670833333330.456913194444444-0.780621527777779
2610.55611.192113194444410.8778750.314238194444444-0.636113194444446
2710.64611.212879861111111.00620833333330.206671527777778-0.56687986111111
2810.70211.261304861111111.1698750.091429861111111-0.55930486111111
2911.35311.052038194444411.392625-0.3405868055555570.300961805555554
3011.34611.515004861111111.6977916666667-0.182786805555556-0.169004861111111
3111.45111.754779861111112.0563333333333-0.301553472222222-0.303779861111112
3211.96412.184138194444412.4229166666667-0.238778472222223-0.220138194444443
3312.57412.579179861111112.826625-0.247445138888888-0.00517986111111135
3413.03113.358096527777813.3150.0430965277777783-0.327096527777778
3513.81213.678179861111113.7390416666667-0.06086180555555430.133820138888888
3614.54414.353663194444414.0940.2596631944444450.190336805555559
3714.93114.929746527777814.47283333333330.4569131944444440.00125347222222416
3814.88615.102113194444414.7878750.314238194444444-0.216113194444443
3916.00515.225921527777815.019250.2066715277777780.779078472222226
4017.06415.318888194444415.22745833333330.0914298611111111.74511180555556
4115.16815.058121527777815.3987083333333-0.3405868055555570.109878472222224
4216.0515.321254861111115.5040416666667-0.1827868055555560.72874513888889
4315.83915.304654861111115.6062083333333-0.3015534722222220.534345138888892
4415.13715.469888194444415.7086666666667-0.238778472222223-0.332888194444443
4514.95415.511554861111115.759-0.247445138888888-0.557554861111113
4615.64815.762054861111115.71895833333330.0430965277777783-0.114054861111113
4715.30515.633846527777815.6947083333333-0.0608618055555543-0.328846527777779
4815.57915.958079861111115.69841666666670.259663194444445-0.37907986111111
4916.34816.129829861111115.67291666666670.4569131944444440.218170138888887
5015.92816.034863194444415.7206250.314238194444444-0.106863194444443
5116.17116.068088194444415.86141666666670.2066715277777780.102911805555555
5215.93716.124763194444416.03333333333330.091429861111111-0.187763194444443
5315.71315.879746527777816.2203333333333-0.340586805555557-0.166746527777775
5415.59416.298171527777816.4809583333333-0.182786805555556-0.704171527777778
5515.68316.496696527777816.79825-0.301553472222222-0.813696527777777
5616.43816.891971527777817.13075-0.238778472222223-0.453971527777778
5717.03217.158013194444417.4054583333333-0.247445138888888-0.126013194444440
5817.69617.653429861111117.61033333333330.04309652777777830.0425701388888946
5917.74517.765388194444417.82625-0.0608618055555543-0.0203881944444397
6019.39418.346829861111118.08716666666670.2596631944444451.04717013888889
6120.14818.793246527777818.33633333333330.4569131944444441.35475347222222
6220.10818.835613194444418.5213750.3142381944444441.27238680555556
6318.58418.922088194444418.71541666666670.206671527777778-0.338088194444445
6418.44118.978138194444418.88670833333330.091429861111111-0.537138194444445
6518.39118.687954861111119.0285416666667-0.340586805555557-0.296954861111111
6619.17818.984963194444419.16775-0.1827868055555560.193036805555558
6718.079NANA-0.301553472222222NA
6818.483NANA-0.238778472222223NA
6919.644NANA-0.247445138888888NA
7019.195NANA0.0430965277777783NA
7119.65NANA-0.0608618055555543NA
7220.83NANA0.259663194444445NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t1244287061ph5zxi1rrvdhd3g/16l741244287009.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t1244287061ph5zxi1rrvdhd3g/16l741244287009.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t1244287061ph5zxi1rrvdhd3g/2mx211244287009.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t1244287061ph5zxi1rrvdhd3g/2mx211244287009.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t1244287061ph5zxi1rrvdhd3g/3vn7c1244287009.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t1244287061ph5zxi1rrvdhd3g/3vn7c1244287009.ps (open in new window)


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