Home » date » 2009 » Dec » 01 »

ad hoc 1

*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: Tue, 01 Dec 2009 13:00:13 -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/01/t1259697680tjy2qh4slby6i20.htm/, Retrieved Tue, 01 Dec 2009 21:01:25 +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/01/t1259697680tjy2qh4slby6i20.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 «
105.7 105.7 111.1 82.4 60 107.3 99.3 113.5 108.9 100.2 103.9 138.7 120.2 100.2 143.2 70.9 85.2 133 136.6 117.9 106.3 122.3 125.5 148.4 126.3 99.6 140.4 80.3 92.6 138.5 110.9 119.6 105 109 129.4 148.6 101.4 134.8 143.7 81.6 90.3 141.5 140.7 140.2 100.2 125.7 119.6 134.7 109 116.3 146.9 97.4 89.4 132.1 139.8 129 112.5 121.9 121.7 123.1
 
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
1105.7NANA0.97318121800085NA
2105.7NANA0.95152026739898NA
3111.1NANA1.21299453867965NA
482.4NANA0.694503848470929NA
560NANA0.75073415971995NA
6107.3NANA1.144233413222NA
799.3109.628344220261103.66251.057550649658860.905787647403394
8113.5111.164689304183104.03751.068505964716411.02100766628715
9108.996.1580898841023105.1458333333330.9145211639462871.13251001690295
10100.2104.364036104902106.0041666666670.9845276783607780.960100852167917
11103.9109.412994093463106.5751.026629078990970.949612985741408
12138.7132.728266738881108.6958333333331.221098018834341.04499217391927
13120.2108.335344172203111.3208333333330.973181218000851.10951786712320
14100.2107.577295565016113.0583333333330.951520267398980.931423303344173
15143.2137.230115475958113.1333333333331.212994538679651.04350272899893
1670.979.135819767227113.9458333333330.6945038484709290.895928041290882
1785.286.9099912235796115.7666666666670.750734159719950.980324572589352
18133133.956359213744117.0708333333331.1442334132220.992860665821635
19136.6124.504556692129117.7291666666671.057550649658861.0971485994507
20117.9126.039182754673117.9583333333331.068505964716410.935423393132313
21106.3107.745835132272117.8166666666670.9145211639462870.986581057815397
22122.3116.264514417088118.0916666666670.9845276783607781.05191167410944
23125.5121.954979341802118.7916666666671.026629078990971.02906827320484
24148.4145.712609005819119.3291666666671.221098018834341.01844309159322
25126.3115.309809567876118.48750.973181218000851.09531010824934
2699.6111.791737416038117.48750.951520267398980.890942410433558
27140.4142.53191243877117.5041666666671.212994538679650.98504256062876
2880.381.1846061202163116.8958333333330.6945038484709290.989103770252868
2992.687.463657666373116.5041666666670.750734159719951.05872544632445
30138.5133.503433487677116.6751.1442334132221.03742650193925
31110.9122.301326172007115.6458333333331.057550649658860.906776757629172
32119.6124.026829854457116.0751.068505964716410.964307482021011
33105107.620088472229117.6791666666670.9145211639462870.975654280632698
34109116.047097888117117.8708333333330.9845276783607780.9392738119577
35129.4120.966848853273117.8291666666671.026629078990971.06971456416919
36148.6143.916577336450117.8583333333331.221098018834341.03254262122007
37101.4116.027530716151119.2250.973181218000850.873930517818776
38134.8115.443196442181121.3250.951520267398981.16767383574236
39143.7147.965117143272121.9833333333331.212994538679650.971174846980031
4081.685.0622526075123122.4791666666670.6945038484709290.959297426280402
4190.392.1651303416192122.7666666666670.750734159719950.979763167103373
42141.5139.343791534331121.7791666666671.1442334132221.01547401891341
43140.7128.510029777712121.5166666666671.057550649658861.09485617771137
44140.2129.356003353480121.06251.068505964716411.08383064075416
45100.2110.131211168232120.4250.9145211639462870.90982382684359
46125.7119.341163411966121.2166666666670.9845276783607781.05328284395958
47119.6125.081920411562121.83751.026629078990970.956173359079195
48134.7148.251475303312121.4083333333331.221098018834340.908591295462072
49109117.734652769394120.9791666666670.973181218000850.925810689003323
50116.3114.634404214892120.4750.951520267398981.01452963267455
51146.9146.191112630453120.5208333333331.212994538679651.00484904558691
5297.483.9481526839235120.8750.6945038484709291.16023994437048
5389.490.6918145531688120.8041666666670.750734159719950.985755996177456
54132.1137.775238230372120.4083333333331.1442334132220.958807995520335
55139.8NANA1.05755064965886NA
56129NANA1.06850596471641NA
57112.5NANA0.914521163946287NA
58121.9NANA0.984527678360778NA
59121.7NANA1.02662907899097NA
60123.1NANA1.22109801883434NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259697680tjy2qh4slby6i20/1uxnu1259697610.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259697680tjy2qh4slby6i20/1uxnu1259697610.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/01/t1259697680tjy2qh4slby6i20/2hay61259697610.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259697680tjy2qh4slby6i20/2hay61259697610.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/01/t1259697680tjy2qh4slby6i20/34kkb1259697610.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259697680tjy2qh4slby6i20/34kkb1259697610.ps (open in new window)


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