Home » date » 2009 » Aug » 19 »

Thomas Van den Bosch opgave 9 oef 1 MULTIPLICATIVE correct

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Wed, 19 Aug 2009 09:35:38 -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/Aug/19/t1250696239cs4dw8ppy0ubqxf.htm/, Retrieved Wed, 19 Aug 2009 17:37:24 +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/Aug/19/t1250696239cs4dw8ppy0ubqxf.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 «
5.93 5.9 5.9 5.94 5.86 5.92 5.9 5.91 5.84 5.84 5.83 5.82 5.8 5.91 5.92 5.96 5.9 5.92 6.09 6.31 6.25 6.23 6.22 6.19 6.15 6.12 6.13 6.1 6.05 6.07 6.09 6.17 6.12 6.12 6.13 6.19 6.24 6.41 6.5 6.53 6.58 6.53 6.51 6.51 6.49 6.49 6.49 6.53 6.65 6.61 6.52 6.62 6.6 6.61 6.63 6.62 6.6 6.59 6.59 6.52 6.52 6.61 6.59 6.6 6.48 6.53 6.56 6.56 6.49 6.45 6.44 6.43
 
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
15.93NANA0.99563553035976NA
25.9NANA1.00351321458617NA
35.9NANA1.00187955387615NA
45.94NANA1.00480940427695NA
55.86NANA0.996802435102853NA
65.92NANA0.996769423516207NA
75.95.887487938928235.877083333333331.001770368906611.00212519519387
85.915.930260977636075.872083333333331.009907496368880.99658345935997
95.845.878144980993815.873333333333331.000819236264550.993510711097268
105.845.863546119100135.8750.9980504032510850.995984320985653
115.835.853948274752325.87750.9959929008510960.995909038886523
125.825.844185816894135.879166666666670.9940500326396820.995861559222807
135.85.861389336855445.887083333333330.995635530359760.989526487095913
145.915.932435620228595.911666666666671.003513214586170.996218143497067
155.925.956591397607825.945416666666671.001879553876150.99385699048914
165.966.007504225820845.978751.004809404276950.992092518950438
175.95.992028638012026.011250.9968024351028530.984641488956141
185.926.023394562189816.042916666666670.9967694235162070.98283450285013
196.096.083667969505786.072916666666671.001770368906611.00104082447069
206.316.156648574738766.096251.009907496368881.02490826354625
216.256.118758605712426.113751.000819236264551.02144902303632
226.236.11638555459046.128333333333330.9980504032510851.01857542242809
236.226.115811408267756.140416666666670.9959929008510961.01703593926906
246.196.116307013329246.152916666666670.9940500326396821.01204860817323
256.156.132285170740826.159166666666670.995635530359761.00288878106056
266.126.174951313753596.153333333333331.003513214586170.991100931657357
276.136.153627709870136.142083333333331.001879553876150.996160360849873
286.16.16157500114336.132083333333331.004809404276950.99000661338507
296.056.10416891196116.123750.9968024351028530.99112591529783
306.076.100228871919196.120.9967694235162070.995044633151661
316.096.134591296591866.123751.001770368906610.992731170760041
326.176.200411232914756.139583333333331.009907496368880.995095287752317
336.126.172135631646526.167083333333331.000819236264550.99155306448886
346.126.188328354491426.200416666666670.9980504032510850.988958511802008
356.136.215410698352866.240416666666670.9959929008510960.986258237387998
366.196.24429095503166.281666666666670.9940500326396820.991305505233088
376.246.290757159323086.318333333333330.995635530359760.991931470562672
386.416.37230891262226.351.003513214586171.00591482426458
396.56.391574103915716.379583333333331.001879553876151.01696387999599
406.536.441246952000396.410416666666671.004809404276951.0137788612455
416.586.420238350758296.440833333333330.9968024351028531.02488406824068
426.536.449098170149866.470.9967694235162071.01254467333504
436.516.512759610854116.501251.001770368906610.99957627626091
446.516.591329592967536.526666666666671.009907496368880.987661124842808
456.496.541187725019086.535833333333331.000819236264550.992174551905414
466.496.527665491596796.540416666666670.9980504032510850.99422986799105
476.496.518773536070426.5450.9959929008510960.99558605067177
486.536.510199338762726.549166666666670.9940500326396821.00304148309552
496.656.528879990334136.55750.995635530359761.01855142227230
506.616.590154906288616.567083333333331.003513214586171.00301132431537
516.526.588610416178026.576251.001879553876150.989586511897934
526.626.616669927163746.5851.004809404276951.00050328531919
536.66.572250722111486.593333333333330.9968024351028531.00422218796297
546.616.575770951055046.597083333333330.9967694235162071.00520532865267
556.636.60291894405576.591251.001770368906611.00410137640243
566.626.651082453169366.585833333333331.009907496368880.99532670758659
576.66.594147742938086.588751.000819236264551.00088749256008
586.596.577983866094036.590833333333330.9980504032510851.00182671988113
596.596.558613252104476.5850.9959929008510961.00478557687259
606.526.53753571466036.576666666666670.9940500326396820.9973176873633
616.526.541740282601276.570416666666660.995635530359760.996676682096492
626.616.588064253758226.5651.003513214586171.00332961935355
636.596.570242624356966.557916666666671.001879553876151.00300709985500
646.66.578989574503366.54751.004809404276951.00319356418774
656.486.51451924774516.535416666666670.9968024351028530.994701182630314
666.536.504335809036386.525416666666660.9967694235162071.00394570509843
676.56NANA1.00177036890661NA
686.56NANA1.00990749636888NA
696.49NANA1.00081923626455NA
706.45NANA0.998050403251085NA
716.44NANA0.995992900851096NA
726.43NANA0.994050032639682NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250696239cs4dw8ppy0ubqxf/1u1dd1250696136.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250696239cs4dw8ppy0ubqxf/1u1dd1250696136.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250696239cs4dw8ppy0ubqxf/2c7ii1250696136.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250696239cs4dw8ppy0ubqxf/2c7ii1250696136.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250696239cs4dw8ppy0ubqxf/3c91b1250696136.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250696239cs4dw8ppy0ubqxf/3c91b1250696136.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250696239cs4dw8ppy0ubqxf/4631w1250696136.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250696239cs4dw8ppy0ubqxf/4631w1250696136.ps (open in new window)


 
Parameters (Session):
par1 = 0 ;
 
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