Home » date » 2009 » Dec » 06 »

review workshop 9

*The author of this computation has been verified*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 06 Dec 2009 03:41:04 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/06/t1260096099w3rlpqnk7prrvt6.htm/, Retrieved Sun, 06 Dec 2009 11:41:44 +0100
 
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/Dec/06/t1260096099w3rlpqnk7prrvt6.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 «
102.86 102.55 102.28 102.26 102.57 103.08 102.76 102.51 102.87 103.14 103.12 103.16 102.48 102.57 102.88 102.63 102.38 101.69 101.96 102.19 101.87 101.6 101.63 101.22 101.21 101.49 101.64 101.66 101.77 101.82 101.78 101.28 101.29 101.37 101.12 101.51 102.24 102.94 103.09 103.46 103.64 104.39 104.15 105.21 105.8 105.91 105.39 105.46 104.72 103.14 102.63 102.32 101.93 100.62 100.6 99.63 98.9 98.32 99.22 98.81
 
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
1102.86NANA0.999475561748494NA
2102.55NANA0.998783384067919NA
3102.28NANA0.999724161541092NA
4102.26NANA1.00020201637734NA
5102.57NANA1.00024741222967NA
6103.08NANA0.998121731017254NA
7102.76102.652125682148102.74750.9990717602097161.00105087271340
8102.51102.741488000615102.73251.000087489359400.997746888767921
9102.87102.914331482291102.7583333333331.001518107037140.999569238981074
10103.14102.997087229921102.798751.001929373945901.00138754186087
11103.12102.822335652294102.806251.000156465704121.00289493859304
12103.16102.810540777981102.7404166666671.000682536761961.00339906024591
13102.48102.595333517181102.6491666666670.9994755617484940.99887584051606
14102.57102.477672163829102.60250.9987833840679191.00090095563474
15102.88102.519213455635102.54750.9997241615410921.00351920905559
16102.63102.462361561055102.4416666666671.000202016377341.00163609774741
17102.38102.340730752034102.3154166666671.000247412229671.00038371084199
18101.69101.980592562360102.17250.9981217310172540.997150511140806
19101.96101.944033572099102.038750.9990717602097161.00015661954252
20102.19101.949752071538101.9408333333331.000087489359401.00235653273873
21101.87101.998777012775101.8441666666671.001518107037140.99873746512903
22101.6101.948401151857101.7520833333331.001929373945900.996582573655682
23101.63101.702160410705101.686251.000156465704120.99929047317762
24101.22101.735640953076101.666251.000682536761960.99493156038292
25101.21101.610850088859101.6641666666670.9994755617484940.99605504639998
26101.49101.495119009752101.618750.9987833840679190.99994956398099
27101.64101.528653432241101.5566666666670.9997241615410921.00109670092131
28101.66101.543425958509101.5229166666671.000202016377341.00114802155227
29101.77101.517193715965101.4920833333331.000247412229671.00249028046168
30101.82101.292304452013101.4829166666670.9981217310172541.00520963118414
31101.78101.443665132194101.5379166666670.9990717602097161.00331548418886
32101.28101.650142527851101.641251.000087489359400.996358661988597
33101.29101.916569068156101.7620833333331.001518107037140.993852137352302
34101.37102.094098381652101.89751.001929373945900.99290753928846
35101.12102.066384056966102.0504166666671.000156465704120.990727759529154
36101.51102.305196096916102.2354166666671.000682536761960.992227216922954
37102.24102.387525889968102.441250.9994755617484940.998559141959086
38102.94102.578798981466102.703750.9987833840679191.00352120537695
39103.09103.026990019351103.0554166666670.9997241615410921.00061158712525
40103.46103.453395058949103.43251.000202016377341.00006384460411
41103.64103.825264619685103.7995833333331.000247412229670.998215611389354
42104.39103.946476488410104.1420833333330.9981217310172541.00426684507810
43104.15104.313082483496104.410.9990717602097160.998436605652774
44105.21104.530811200327104.5216666666671.000087489359401.00649749860232
45105.8104.669491964874104.5108333333331.001518107037141.01080074063515
46105.91104.645678520634104.4441666666671.001929373945901.01208192729255
47105.39104.341740016443104.3254166666671.000156465704121.01004641079775
48105.46104.168133419521104.0970833333331.000682536761961.01240174454577
49104.72103.737650794630103.7920833333330.9994755617484941.00946955322244
50103.14103.285854385437103.4116666666670.9987833840679190.998587857104879
51102.63102.863285187899102.8916666666670.9997241615410920.997732084995413
52102.32102.308580501037102.2879166666671.000202016377341.00011161819377
53101.93101.739748765186101.7145833333331.000247412229671.00186997940454
54100.62100.990372628380101.1804166666670.9981217310172540.996332594694514
55100.6NANA0.999071760209716NA
5699.63NANA1.00008748935940NA
5798.9NANA1.00151810703714NA
5898.32NANA1.00192937394590NA
5999.22NANA1.00015646570412NA
6098.81NANA1.00068253676196NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260096099w3rlpqnk7prrvt6/19dcu1260096062.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260096099w3rlpqnk7prrvt6/19dcu1260096062.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/06/t1260096099w3rlpqnk7prrvt6/2z1281260096062.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260096099w3rlpqnk7prrvt6/2z1281260096062.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/06/t1260096099w3rlpqnk7prrvt6/3hir91260096062.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260096099w3rlpqnk7prrvt6/3hir91260096062.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/06/t1260096099w3rlpqnk7prrvt6/4zn1j1260096062.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260096099w3rlpqnk7prrvt6/4zn1j1260096062.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