Home » date » 2009 » Jun » 01 »

opgave 9 oefening 2 gilles heymans

*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 12:45:26 -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/t1243881965d4fk06zcqy3tyyw.htm/, Retrieved Mon, 01 Jun 2009 20:46:09 +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/t1243881965d4fk06zcqy3tyyw.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 «
1639 1296 1063 1282 1365 1268 1532 1455 1393 1515 1510 1225 1577 1417 1224 1693 1633 1639 1914 1586 1552 2081 1500 1437 1470 1849 1387 1592 1590 1798 1935 1887 2027 2080 1556 1682 1785 1869 1781 2082 2571 1862 1938 1505 1767 1607 1578 1495 1615 1700 1337 1531 1623 1543 1638 1520 1416 1820 1596 1358 1267 1742 1402 1388 1646 1670 1531 1730 1407 1795 1504 1371 1734
 
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
11639NANA0.937302336930394NA
21296NANA1.04088801474492NA
31063NANA0.860154119451846NA
41282NANA0.997836101774293NA
51365NANA1.08636394399325NA
61268NANA1.02655847976009NA
715321482.3461789200513761.077286467238411.03349677813864
814551369.912074567491378.458333333330.993800132685061.06211196106098
913931399.267677022621390.208333333331.006516536746370.995520744797055
1015151555.650939542311414.041666666671.100145049621810.973868855468138
1115101379.375667426251442.333333333330.9563501276354871.09469815631697
1212251346.739074809741468.958333333330.916798689418060.909604557343867
1315771406.26593950791500.333333333330.9373023369303941.12140951131323
1414171583.927966104141521.708333333331.040888014744920.894611390368517
1512241319.297220464251533.791666666670.8601541194518460.927766678360232
1616931560.6156631749915640.9978361017742931.08482827639681
1716331724.240639774631587.166666666671.086363943993250.947083581218366
1816391637.95960099721595.583333333331.026558479760091.00063517989221
1919141723.613460645321599.958333333331.077286467238411.11045779329398
2015861603.496514087341613.50.993800132685060.989088523776865
2115521648.967654513781638.291666666671.006516536746370.941194932327298
2220811805.200508298191640.8751.100145049621811.15278053071335
2315001563.512914918071634.8750.9563501276354870.959378068251265
2414371503.282451027871639.708333333330.916798689418060.955908185462719
2514701543.932220244551647.208333333330.9373023369303940.952114335541982
2618491728.524659485791660.6251.040888014744921.06969836377692
2713871456.205084477001692.958333333330.8601541194518460.952475729404658
2815921709.002206809681712.708333333330.9978361017742930.931537708761596
2915901863.1141639484317151.086363943993250.853409861170488
3017981773.422547055541727.541666666671.026558479760091.01385876873240
3119351886.193943326051750.8751.077286467238411.02587541797949
3218871753.891600833681764.833333333330.993800132685061.07589317327425
3320271793.696344860101782.083333333331.006516536746371.13006864612756
3420802001.072166507941818.916666666671.100145049621811.03944277213640
3515561798.137479564641880.208333333330.9563501276354870.865339840631504
3616821763.691478767991923.750.916798689418060.953681536849599
3717851805.752006360441926.541666666670.9373023369303940.988507831481096
3818691988.876774173861910.751.040888014744920.939726394450126
3917811620.5303610472818840.8601541194518461.09902291423224
4020821849.447638134411853.458333333330.9978361017742931.12574152253381
4125711993.115715912961834.666666666671.086363943993251.28994015724889
4218621876.335034651491827.791666666671.026558479760090.992360087944447
4319381953.030591230971812.916666666671.077286467238410.992303965284284
4415051787.639397006111798.791666666670.993800132685060.84189238753662
4517671784.805448785511773.251.006516536746370.990023871342602
4616071905.222029059641731.791666666671.100145049621810.843471246652112
4715781596.467146399511669.333333333330.9563501276354870.988432492055251
4814951482.043281389691616.541666666670.916798689418061.00874246978682
4916151491.013692472021590.750.9373023369303941.08315571356183
5017001643.432064280391578.8751.040888014744921.03442061095746
5113371346.033677677211564.8750.8601541194518460.993288668904038
5215311555.751212178841559.1250.9978361017742930.984090507540611
5316231704.233437139421568.751.086363943993250.95233432499965
5415431605.323595994831563.791666666671.026558479760090.961176926477428
5516381662.881436054761543.583333333331.077286467238410.985037155677323
5615201521.342369785381530.833333333330.993800132685060.999117641227879
5714161545.296451228901535.291666666671.006516536746370.916329031153809
5818201685.468055397681532.041666666671.100145049621811.07981874481185
5915961460.386492821371527.041666666670.9563501276354871.09286138145295
6013581405.719790495631533.291666666670.916798689418060.96605312750217
6112671437.938947643341534.1250.9373023369303940.881122249367057
6217421601.319470017171538.416666666671.040888014744921.08785288171218
6314021330.479224017121546.791666666670.8601541194518461.05375565036404
6413881542.030965779451545.3750.9978361017742930.900111626032367
6516461673.543655721611540.51.086363943993250.983541716627804
6616701578.034249741201537.208333333331.026558479760091.05827867821873
6715311677.559464170881557.208333333331.077286467238410.912635309030124
681730NANA0.99380013268506NA
691407NANA1.00651653674637NA
701795NANA1.10014504962181NA
711504NANA0.956350127635487NA
721371NANA0.91679868941806NA
731734NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243881965d4fk06zcqy3tyyw/1twea1243881924.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243881965d4fk06zcqy3tyyw/1twea1243881924.ps (open in new window)


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243881965d4fk06zcqy3tyyw/3097u1243881924.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243881965d4fk06zcqy3tyyw/3097u1243881924.ps (open in new window)


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