Home » date » 2009 » Dec » 04 »

shw-ws9

*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 06:37:30 -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/t12599339058jp37bon1odx174.htm/, Retrieved Fri, 04 Dec 2009 14:38:30 +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/t12599339058jp37bon1odx174.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:
Workshop 9 - Populaire technieken 1
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1178 2141 2238 2685 4341 5376 4478 6404 4617 3024 1897 2075 1351 2211 2453 3042 4765 4992 4601 6266 4812 3159 1916 2237 1595 2453 2226 3597 4706 4974 5756 5493 5004 3225 2006 2291 1588 2105 2191 3591 4668 4885 5822 5599 5340 3082 2010 2301 1514 1979 2480 3499 4676 5585 5610 5796 6199 3030 1930 2552
 
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
11178NANA0.424259949027869NA
22141NANA0.613554786370274NA
32238NANA0.653872748010061NA
42685NANA0.95446001479855NA
54341NANA1.30971983361023NA
65376NANA1.4188127052466NA
744784950.170619812183378.3751.465251968716370.904615283779836
864045732.857318008463388.51.691856962670341.11706948991793
946174773.699572074583400.3751.403874446810890.967174395935755
1030243029.10505363943424.208333333330.884614707625190.998314666032045
1118971909.896557036243456.750.5525122028021240.993247510191727
1220752169.152391133423458.416666666670.6272096743114890.956594847130944
1313511462.653851771453447.541666666670.4242599490278690.923663516397794
1422112114.872219052803446.916666666670.6135547863702741.04545323357184
1524532255.397820771533449.291666666670.6538727480100611.08761300441483
1630423305.334800414663463.041666666670.954460014798550.920330370048557
1747654544.018391050983469.458333333331.309719833610231.04863131922710
1849924933.2117761424334771.41881270524661.01191682549326
1946015119.468274364283493.916666666671.465251968716370.89872614760394
2062665945.467342984033514.166666666671.691856962670341.05391210455377
2148124934.326206697193514.791666666671.403874446810890.975209136653519
2231593121.326136909333528.458333333330.884614707625191.01206982591315
2319161960.934871770093549.1250.5525122028021240.977084974918352
2422372224.033237635683545.916666666670.6272096743114891.00583029162734
2515951524.489739342273593.291666666670.4242599490278691.04625171218808
2624532214.447047924153609.208333333330.6135547863702741.10772574232447
2722262344.1338016160735850.6538727480100610.949604497177327
2835973431.999598211893595.750.954460014798551.04807704577649
2947064717.938270622473602.251.309719833610230.997469600080017
3049745119.430943706053608.251.41881270524660.971592361474307
3157565289.864867892933610.208333333331.465251968716371.08811853303405
3254936082.9307212013595.416666666671.691856962670340.903018668428214
3350045025.110087590963579.458333333331.403874446810890.99579907957776
3432253164.930270206023577.750.884614707625191.01897979565599
3520061975.737594536833575.916666666670.5525122028021241.01531701656478
3622912239.530543338463570.6250.6272096743114891.02298225260407
3715881514.466598046483569.666666666670.4242599490278691.04855399389354
3821052194.583211715413576.833333333330.6135547863702740.95917985190209
3921912350.835997283173595.250.6538727480100610.93200886941161
4035913439.197817490163603.291666666670.954460014798551.04413883427637
4146684711.717101412823597.51.309719833610230.990721620065069
4248855105.006347869373598.083333333331.41881270524660.956903805230096
4358225268.1913491893595.416666666671.465251968716371.10512310850217
4455996068.831913178753587.083333333331.691856962670340.922582810020082
4553405045.349277532483593.8751.403874446810891.05840046075296
4630823186.455894758233602.083333333330.884614707625190.967218785318803
4720101988.261204467013598.583333333330.5525122028021241.01093357124514
4823012275.568965874943628.083333333330.6272096743114891.01117568155764
4915141547.877069032433648.416666666670.4242599490278690.978113850440588
5019792238.120036764933647.791666666670.6135547863702740.8842242451216
5124802413.961962163973691.791666666670.6538727480100611.02735670191623
5234993555.761246797433725.416666666670.954460014798550.984036822818586
5346764872.048637710613719.916666666671.309719833610230.959760533547808
5455855287.974069650133727.041666666671.41881270524661.05617008072234
555610NANA1.46525196871637NA
565796NANA1.69185696267034NA
576199NANA1.40387444681089NA
583030NANA0.88461470762519NA
591930NANA0.552512202802124NA
602552NANA0.627209674311489NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599339058jp37bon1odx174/1puvn1259933847.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599339058jp37bon1odx174/1puvn1259933847.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t12599339058jp37bon1odx174/223ch1259933847.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599339058jp37bon1odx174/223ch1259933847.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2009/Dec/04/t12599339058jp37bon1odx174/4d9fn1259933847.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599339058jp37bon1odx174/4d9fn1259933847.ps (open in new window)


 
Parameters (Session):
par1 = 0.01 ; par2 = 0.99 ; par3 = 0.005 ;
 
Parameters (R input):
par1 = multiplicative ; par2 = 12 ; par3 = 0.005 ;
 
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