Home » date » 2009 » Dec » 04 »

workshop 9 - ad hoc link 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: Fri, 04 Dec 2009 03:22:32 -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/04/t1259922202jlj8l2laiwlbf5l.htm/, Retrieved Fri, 04 Dec 2009 11:23:27 +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/04/t1259922202jlj8l2laiwlbf5l.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 «
8,6 8,5 8,3 7,8 7,8 8 8,6 8,9 8,9 8,6 8,3 8,3 8,3 8,4 8,5 8,4 8,6 8,5 8,5 8,4 8,5 8,5 8,5 8,5 8,5 8,5 8,5 8,5 8,6 8,4 8,1 8 8 8 8 7,9 7,8 7,8 7,9 8,1 8 7,6 7,3 7 6,8 7 7,1 7,2 7,1 6,9 6,7 6,7 6,6 6,9 7,3 7,5 7,3 7,1 6,9 7,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
18.6NANA0.996702710921287NA
28.5NANA0.995771473511747NA
38.3NANA0.998520165033688NA
47.8NANA1.00619273018036NA
57.8NANA1.01232015874663NA
68NANA1.00437744260445NA
78.68.36406732975078.370833333333330.9991917168442841.02820788749633
88.98.321659646656168.354166666666670.9961088853852761.06949819842443
98.98.328434973161478.358333333333330.996422927995391.06862814306414
108.68.375488371522258.391666666666670.9980720998834851.02680579549739
118.38.417601876835478.450.996165902584080.986029052150934
128.38.50547449107228.504166666666671.000153786309320.975842089552103
138.38.49273768264188.520833333333330.9967027109212870.9773055886283
148.48.459908477043558.495833333333330.9957714735117470.992918543125364
158.58.445816395909948.458333333333330.9985201650336881.00641543712888
168.48.489751160896798.43751.006192730180360.98942829310355
178.68.545669340086158.441666666666671.012320158746631.00635768337759
188.58.495359202029288.458333333333331.004377442604451.00054627448473
198.58.46814980025538.4750.9991917168442841.00376117575810
208.48.454474164707538.48750.9961088853852760.993556764897937
218.58.461291363560858.491666666666670.996422927995391.00457479062899
228.58.47945421526018.495833333333330.9980720998834851.00242300792225
238.58.467410171964678.50.996165902584081.00384885429824
248.58.497139876186288.495833333333331.000153786309321.00033659841492
258.58.44705547505798.4750.9967027109212871.00626780836215
268.58.405970855561678.441666666666660.9957714735117471.01118599458100
278.58.391729886970628.404166666666670.9985201650336881.01290200167161
288.58.414286706133268.36251.006192730180361.01018663813823
298.68.423347320904278.320833333333331.012320158746631.02097179094792
308.48.31122333755188.2751.004377442604451.01068153974964
318.18.214188572224058.220833333333330.9991917168442840.98609861811425
3288.130738776957318.16250.9961088853852760.983920430782031
3388.079329241162628.108333333333330.996422927995390.990181209504564
3488.051114939060118.066666666666670.9980720998834850.99365119744942
3587.994231368237248.0250.996165902584081.00072159930043
367.97.967891830930947.966666666666671.000153786309320.991479323217293
377.87.873951416278177.90.9967027109212870.99060809339955
387.87.791911780229427.8250.9957714735117471.00103802763670
397.97.721889276260527.733333333333330.9985201650336881.02306569252256
408.17.688989446461597.641666666666671.006192730180361.05345443070254
4187.65567120052147.56251.012320158746631.04497695766442
427.67.52864591352257.495833333333331.004377442604451.00947767862868
437.37.431488394029367.43750.9991917168442840.982306586909965
4477.34215257602737.370833333333330.9961088853852760.95339887417425
456.87.257280325566427.283333333333330.996422927995390.93699012508095
4677.1611673166647.1750.9980720998834850.977494267409592
477.17.03127099573937.058333333333330.996165902584081.00977476252904
487.26.971905352064576.970833333333331.000153786309321.03271625709432
497.16.91877798497866.941666666666670.9967027109212871.02619277788865
506.96.933058884325546.96250.9957714735117470.995231702935586
516.76.993801655923457.004166666666670.9985201650336880.95799113695559
526.77.072696399226127.029166666666671.006192730180360.947304906334323
536.67.111549115195097.0251.012320158746630.92806783628871
546.97.043196816263687.01251.004377442604450.979668775415587
557.3NANA0.999191716844284NA
567.5NANA0.996108885385276NA
577.3NANA0.99642292799539NA
587.1NANA0.998072099883485NA
596.9NANA0.99616590258408NA
607.1NANA1.00015378630932NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259922202jlj8l2laiwlbf5l/1xhh01259922148.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259922202jlj8l2laiwlbf5l/1xhh01259922148.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259922202jlj8l2laiwlbf5l/2rv9e1259922148.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259922202jlj8l2laiwlbf5l/2rv9e1259922148.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259922202jlj8l2laiwlbf5l/3fqro1259922149.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259922202jlj8l2laiwlbf5l/3fqro1259922149.ps (open in new window)


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