Home » date » 2008 » May » 19 » attachments

Stephanie De Coninck - decompositie scheermachines

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 19 May 2008 13:08:52 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/19/t1211224288gtqjkjayggmv5gk.htm/, Retrieved Mon, 19 May 2008 21:11:33 +0200
 
User-defined keywords:
opgave 9
 
Dataseries X:
» Textbox « » Textfile « » CSV «
68,64 68,61 68,61 68,61 68,58 68,75 68,54 68,5 68,47 68,47 68,47 68,59 68,32 67,86 67,91 67,91 68,05 68,15 68,25 68,25 68,31 68,31 69,65 69,65 70,18 70,08 70,08 70,09 70,04 70,14 70,26 70,23 70,54 70,54 70,57 70,61 70,63 70,45 70,4 70,4 70,33 70,51 70,45 70,39 70,59 70,59 70,32 70,94 70,44 70,57 70,61 70,61 70,68 69,96 70,11 70,22 70,49 70,49 70,58 70,85 70,69 70,7 70,7 70,7 70,67 70,64 70,98 70,75 70,88 70,88 70,92 70,89 71,02 71,01 71,02
 
Text written by user:
 
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
168.64NANA0.229687499999998NA
268.61NANA0.0429166666666638NA
368.61NANA0.0139583333333283NA
468.61NANA-0.0256249999999974NA
568.58NANA-0.0461458333333370NA
668.75NANA-0.176666666666662NA
768.5468.409270833333468.5566666666667-0.1473958333333270.130729166666654
868.568.315416666666768.5120833333333-0.1966666666666650.184583333333336
968.4768.406354166666768.4516666666667-0.04531249999999370.0636458333333394
1068.4768.289895833333368.3933333333333-0.1034374999999980.180104166666666
1168.4768.479791666666668.34208333333330.137708333333326-0.00979166666664355
1268.5968.611979166666768.2950.316979166666663-0.0219791666666538
1368.3268.487604166666768.25791666666670.229687499999998-0.167604166666663
1467.8668.278333333333368.23541666666670.0429166666666638-0.418333333333337
1567.9168.232291666666768.21833333333330.0139583333333283-0.322291666666672
1667.9168.17937568.205-0.0256249999999974-0.269375000000025
1768.0568.201354166666768.2475-0.0461458333333370-0.151354166666664
1868.1568.164166666666768.3408333333333-0.176666666666662-0.0141666666666538
1968.2568.315104166666768.4625-0.147395833333327-0.0651041666666714
2068.2568.435833333333368.6325-0.196666666666665-0.185833333333349
2168.3168.770104166666768.8154166666667-0.0453124999999937-0.460104166666667
2268.3168.893229166666768.9966666666667-0.103437499999998-0.583229166666669
2369.6569.30812569.17041666666670.1377083333333260.341875000000016
2469.6569.653229166666769.336250.316979166666663-0.00322916666667084
2570.1869.732604166666769.50291666666670.2296874999999980.447395833333346
2670.0869.712083333333369.66916666666670.04291666666666380.367916666666659
2770.0869.858541666666769.84458333333330.01395833333332830.221458333333317
2870.0970.004791666666770.0304166666667-0.02562499999999740.0852083333333269
2970.0470.115520833333370.1616666666667-0.0461458333333370-0.0755208333333286
3070.1470.063333333333370.24-0.1766666666666620.076666666666668
3170.2670.151354166666770.29875-0.1473958333333270.108645833333327
3270.2370.1362570.3329166666667-0.1966666666666650.09375
3370.5470.316354166666770.3616666666667-0.04531249999999370.223645833333350
3470.5470.284479166666770.3879166666667-0.1034374999999980.255520833333335
3570.5770.55062570.41291666666670.1377083333333260.0193750000000108
3670.6170.757395833333370.44041666666670.316979166666663-0.147395833333334
3770.6370.693437570.463750.229687499999998-0.0634375000000063
3870.4570.5212570.47833333333330.0429166666666638-0.071249999999992
3970.470.501041666666770.48708333333330.0139583333333283-0.10104166666666
4070.470.46562570.49125-0.0256249999999974-0.0656249999999972
4170.3370.436770833333370.4829166666667-0.0461458333333370-0.106770833333329
4270.5170.309583333333370.48625-0.1766666666666620.200416666666669
4370.4570.344687570.4920833333333-0.1473958333333270.105312499999997
4470.3970.292570.4891666666667-0.1966666666666650.0974999999999966
4570.5970.457604166666770.5029166666667-0.04531249999999370.132395833333334
4670.5970.416979166666770.5204166666667-0.1034374999999980.173020833333339
4770.3270.681458333333370.543750.137708333333326-0.361458333333331
4870.9470.852395833333370.53541666666670.3169791666666630.0876041666666652
4970.4470.728020833333370.49833333333330.229687499999998-0.288020833333334
5070.5770.5270.47708333333330.04291666666666380.049999999999983
5170.6170.479791666666770.46583333333330.01395833333332830.130208333333329
5270.6170.43187570.4575-0.02562499999999740.178125000000009
5370.6870.418020833333370.4641666666667-0.04614583333333700.261979166666677
5469.9670.294583333333370.47125-0.176666666666662-0.334583333333342
5570.1170.330520833333370.4779166666667-0.147395833333327-0.220520833333339
5670.2270.297083333333370.49375-0.196666666666665-0.0770833333333343
5770.4970.457604166666770.5029166666667-0.04531249999999370.0323958333333252
5870.4970.406979166666770.5104166666667-0.1034374999999980.083020833333336
5970.5870.651458333333370.513750.137708333333326-0.0714583333333394
6070.8570.858645833333370.54166666666670.316979166666663-0.00864583333334679
6170.6970.835937570.606250.229687499999998-0.145937500000002
6270.770.707570.66458333333330.0429166666666638-0.00749999999999318
6370.770.71687570.70291666666670.0139583333333283-0.0168749999999989
6470.770.709791666666770.7354166666667-0.0256249999999974-0.00979166666667197
6570.6770.719687570.7658333333333-0.0461458333333370-0.0496874999999903
6670.6470.60570.7816666666667-0.1766666666666620.0349999999999966
6770.9870.649687570.7970833333333-0.1473958333333270.330312500000005
6870.7570.627083333333370.82375-0.1966666666666650.122916666666654
6970.8870.804687570.85-0.04531249999999370.0753124999999812
7070.88NANA-0.103437499999998NA
7170.92NANA0.137708333333326NA
7270.89NANA0.316979166666663NA
7371.02NANANANA
7471.01NANANANA
7571.02NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t1211224288gtqjkjayggmv5gk/1ycob1211224130.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t1211224288gtqjkjayggmv5gk/1ycob1211224130.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t1211224288gtqjkjayggmv5gk/2pcxq1211224130.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t1211224288gtqjkjayggmv5gk/2pcxq1211224130.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t1211224288gtqjkjayggmv5gk/3ipmq1211224130.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t1211224288gtqjkjayggmv5gk/3ipmq1211224130.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t1211224288gtqjkjayggmv5gk/4vwwj1211224130.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t1211224288gtqjkjayggmv5gk/4vwwj1211224130.ps (open in new window)


 
Parameters (Session):
par1 = additive ; par2 = 12 ;
 
Parameters (R input):
par1 = additive ; 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