Home » date » 2009 » Dec » 04 »

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: Fri, 04 Dec 2009 11:58:48 -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/t1259953160rlslsg6ot8zf2b5.htm/, Retrieved Fri, 04 Dec 2009 19:59: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/04/t1259953160rlslsg6ot8zf2b5.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 «
0.7461 0.7775 0.7790 0.7744 0.7905 0.7719 0.7811 0.7557 0.7637 0.7595 0.7471 0.7615 0.7487 0.7389 0.7337 0.7510 0.7382 0.7159 0.7542 0.7636 0.7433 0.7658 0.7627 0.7480 0.7692 0.7850 0.7913 0.7720 0.7880 0.8070 0.8268 0.8244 0.8487 0.8572 0.8214 0.8827 0.9216 0.8865 0.8816 0.8884 0.9466 0.9180 0.9337 0.9559 0.9626 0.9434 0.8639 0.7996 0.6680 0.6572 0.6928 0.6438 0.6454 0.6873 0.7265 0.7912 0.8114 0.8281 0.8393
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
10.7461NANA1.00447820979037NA
20.7775NANA0.987963294714205NA
30.779NANA0.980072838319878NA
40.7744NANA0.976032293476133NA
50.7905NANA0.993203799768895NA
60.7719NANA0.978112983912604NA
70.78110.7743740855343640.7674416666666671.009033154139011.00868561408663
80.75570.7835385020329040.7659416666666671.022974119481990.964470792487317
90.76370.7841504851674010.7624458333333331.028467139415240.97392020338668
100.75950.7878205599747680.7595833333333331.037174626406720.964052017155181
110.74710.7523161135352050.7564291666666670.9945625402711710.993066593362338
120.76150.742837273145090.7519166666666670.9879250003037891.02512357353299
130.74870.7518142720952240.74846251.004478209790370.995857657654537
140.73890.7386713398617150.7476708333333330.9879632947142051.00030955599053
150.73370.7322614211506970.747150.9800728383198781.00196457003981
160.7510.7286691090982750.74656250.9760322934761331.03064613364681
170.73820.7423950102322550.7474750.9932037997688950.994349355566193
180.71590.7312005875361660.74756250.9781129839126040.979074705632114
190.75420.7546096486276660.7478541666666661.009033154139010.999457138364967
200.76360.7678742108283360.7506291666666671.022974119481990.994433709625792
210.74330.7764412669015340.754951.028467139415240.957316453524182
220.76580.7864117311072330.7582251.037174626406720.973790153056069
230.76270.7570361415909090.7611750.9945625402711711.00748162220788
240.7480.7577837551288530.7670458333333330.9879250003037890.987088988035657
250.76920.7773322039497730.7738666666666671.004478209790370.9895383159112
260.7850.770043290982620.7794250.9879632947142051.01942320541264
270.79130.7706802764128360.786350.9800728383198781.02675522420677
280.7720.7755064587814610.794550.9760322934761330.995478491840067
290.7880.7953617412040970.8008041666666670.9932037997688950.99074415976691
300.8070.7911589134500080.80886250.9781129839126041.02002263550431
310.82680.8282396387461510.8208251.009033154139010.998261808927268
320.82440.8505049453294940.8314041666666671.022974119481990.969306533168504
330.84870.8632910315454040.8393958333333331.028467139415240.983098363110197
340.85720.8795327263147820.8480083333333331.037174626406720.974608419167805
350.82140.8547933512783960.8594666666666670.9945625402711710.960934006764964
360.88270.8601862977645090.87070.9879250003037891.02617305378382
370.92160.8837190023441960.8797791666666671.004478209790371.04286543296604
380.88650.8790032928484120.88971250.9879632947142051.00852864512861
390.88160.8820042999354960.89993750.9800728383198780.999541612285195
400.88840.8865057313570340.9082750.9760322934761331.00213678104491
410.94660.9074282366113540.91363750.9932037997688951.04316789119868
420.9180.8919860602083330.9119458333333330.9781129839126041.02916406539536
430.93370.906027686320650.8979166666666671.009033154139011.03054245923955
440.95590.897962419689130.8777958333333331.022974119481991.06452116373748
450.96260.8848674150743860.8603751.028467139415241.08784658989740
460.94340.8736294740661510.8423166666666671.037174626406721.07986283430791
470.86390.8151185939427450.8195750.9945625402711711.05984577755894
480.79960.7877837443047450.79741250.9879250003037891.01499936471231
490.668NA0.779166666666667NANA
500.6572NA0.763670833333333NANA
510.6928NA0.750508333333333NANA
520.6438NA0.739404166666667NANA
530.6454NA0.733575NANA
540.6873NANANANA
550.7265NANANANA
560.7912NANANANA
570.8114NANANANA
580.8281NANANANA
590.8393NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259953160rlslsg6ot8zf2b5/1h7v31259953126.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259953160rlslsg6ot8zf2b5/1h7v31259953126.ps (open in new window)


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


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


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