Home » date » 2010 » Dec » 12 »

opgave9_deel2

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 12 Dec 2010 21:00:37 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/12/t1292187636d46tc70ef9rfuf0.htm/, Retrieved Sun, 12 Dec 2010 22:00:37 +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/2010/Dec/12/t1292187636d46tc70ef9rfuf0.htm/},
    year = {2010},
}
@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 = {2010},
    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:
KDGP2W92
 
Dataseries X:
» Textbox « » Textfile « » CSV «
43,8 43,4 43,3 42,8 41,6 41,5 40,7 40,6 39,9 39,7 39,6 39,4 39,4 39,4 39,3 39,09 38,9 38,8 38,8 38,7 38,6 38,4 38,4 38,4 37,8 37,7 37,7 37,5 37,5 37,49 37,3 37,2 37,1 37,1 36,82 36,74 36,7 36,6 36,6 36,3 36,2 35,9 35,9 35,4 34,7 34,7 34,39 34,3 34,3 34,2 33,4 33,17 33 32,8 32,7 32 31,8 31,8 31,7 31,6 30,98 30,7 30,4 30,3 30,14 29,6 29,5 29,4 29,3 29,2 29,1 29 29 28,9 28,44 28 27,8 24,3 24,1 22,9 22,64 22,3 21,5 21,2
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
143.8NANA0.071863425925925NA
243.4NANA0.196724537037038NA
343.3NANA0.162835648148149NA
442.8NANA0.156863425925926NA
541.6NANA0.266724537037039NA
641.5NANA-0.256192129629629NA
740.741.104918981481541.175-0.07008101851852-0.40491898148148
840.640.69172453703740.825-0.133275462962963-0.091724537037031
939.940.245613425925940.4916666666667-0.246053240740741-0.345613425925926
1039.740.047002314814840.1704166666667-0.123414351851853-0.347002314814809
1139.639.830196759259339.9033333333333-0.073136574074074-0.230196759259258
1239.439.72547453703739.67833333333330.0471412037037034-0.325474537037039
1339.439.558530092592639.48666666666670.071863425925925-0.158530092592592
1439.439.525057870370439.32833333333330.196724537037038-0.12505787037037
1539.339.357835648148139.1950.162835648148149-0.057835648148135
1639.0939.243530092592639.08666666666670.156863425925926-0.153530092592582
1738.939.24922453703738.98250.266724537037039-0.349224537037038
1838.838.634641203703738.8908333333333-0.2561921296296290.165358796296296
1938.838.712418981481538.7825-0.070081018518520.0875810185185202
2038.738.51172453703738.645-0.1332754629629630.188275462962963
2138.638.261446759259338.5075-0.2460532407407410.338553240740737
2238.438.251168981481538.3745833333333-0.1234143518518530.148831018518521
2338.438.176863425925938.25-0.0731365740740740.223136574074076
2438.438.18422453703738.13708333333330.04714120370370340.215775462962966
2537.838.091863425925938.020.071863425925925-0.291863425925925
2637.738.09172453703737.8950.196724537037038-0.391724537037028
2737.737.932835648148137.770.162835648148149-0.232835648148146
2837.537.810196759259337.65333333333330.156863425925926-0.310196759259263
2937.537.800057870370437.53333333333330.266724537037039-0.300057870370381
3037.4937.142141203703737.3983333333333-0.2561921296296290.3478587962963
3137.337.213252314814837.2833333333333-0.070081018518520.0867476851851805
3237.237.058391203703737.1916666666667-0.1332754629629630.141608796296296
3337.136.853946759259337.1-0.2460532407407410.246053240740743
3437.136.880752314814837.0041666666667-0.1234143518518530.219247685185181
3536.8236.826863425925936.9-0.073136574074074-0.00686342592592837
3636.7436.82672453703736.77958333333330.0471412037037034-0.0867245370370426
3736.736.726863425925936.6550.071863425925925-0.0268634259259315
3836.636.718391203703736.52166666666670.196724537037038-0.118391203703702
3936.636.509502314814836.34666666666670.1628356481481490.0904976851851842
4036.336.303530092592636.14666666666670.156863425925926-0.00353009259259807
4136.236.212141203703735.94541666666670.266724537037039-0.012141203703699
4235.935.486307870370435.7425-0.2561921296296290.413692129629631
4335.935.470752314814835.5408333333333-0.070081018518520.429247685185189
4435.435.207557870370435.3408333333333-0.1332754629629630.192442129629633
4534.734.861446759259335.1075-0.246053240740741-0.161446759259249
4634.734.720335648148134.84375-0.123414351851853-0.0203356481481407
4734.3934.506863425925934.58-0.073136574074074-0.116863425925914
4834.334.364641203703734.31750.0471412037037034-0.064641203703701
4934.334.126863425925934.0550.0718634259259250.173136574074071
5034.233.97672453703733.780.1967245370370380.223275462962967
5133.433.680335648148233.51750.162835648148149-0.280335648148153
5233.1733.432696759259333.27583333333330.156863425925926-0.262696759259264
533333.309641203703733.04291666666670.266724537037039-0.309641203703706
5432.832.562141203703732.8183333333333-0.2561921296296290.237858796296294
5532.732.497418981481532.5675-0.070081018518520.202581018518522
563232.150057870370432.2833333333333-0.133275462962963-0.150057870370375
5731.831.766446759259332.0125-0.2460532407407410.0335532407407371
5831.831.644502314814831.7679166666667-0.1234143518518530.155497685185185
5931.731.456030092592631.5291666666667-0.0731365740740740.243969907407404
6031.631.323807870370431.27666666666670.04714120370370340.276192129629631
6130.9831.081863425925931.010.071863425925925-0.101863425925924
6230.730.965057870370430.76833333333330.196724537037038-0.265057870370367
6330.430.718668981481530.55583333333330.162835648148149-0.31866898148148
6430.330.500196759259330.34333333333330.156863425925926-0.200196759259256
6530.1430.393391203703730.12666666666670.266724537037039-0.253391203703703
6629.629.653807870370429.91-0.256192129629629-0.0538078703703633
6729.529.649085648148129.7191666666667-0.07008101851852-0.149085648148144
6829.429.428391203703729.5616666666667-0.133275462962963-0.028391203703702
6929.329.158946759259329.405-0.2460532407407410.141053240740742
7029.229.104085648148129.2275-0.1234143518518530.095914351851853
7129.128.961030092592629.0341666666667-0.0731365740740740.138969907407411
722928.76297453703728.71583333333330.04714120370370340.237025462962968
732928.341863425925928.270.0718634259259250.658136574074074
7428.927.970891203703727.77416666666670.1967245370370380.92910879629629
7528.4427.388668981481527.22583333333330.1628356481481491.05133101851852
762826.817696759259326.66083333333330.1568634259259261.18230324074074
7727.826.323391203703726.05666666666670.2667245370370391.4766087962963
7824.325.158807870370425.415-0.256192129629629-0.85880787037037
7924.1NANA-0.07008101851852NA
8022.9NANA-0.133275462962963NA
8122.64NANA-0.246053240740741NA
8222.3NANA-0.123414351851853NA
8321.5NANA-0.073136574074074NA
8421.2NANA0.0471412037037034NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292187636d46tc70ef9rfuf0/15vjs1292187633.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292187636d46tc70ef9rfuf0/15vjs1292187633.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292187636d46tc70ef9rfuf0/25vjs1292187633.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292187636d46tc70ef9rfuf0/25vjs1292187633.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292187636d46tc70ef9rfuf0/3xmiv1292187633.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292187636d46tc70ef9rfuf0/3xmiv1292187633.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292187636d46tc70ef9rfuf0/4xmiv1292187633.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292187636d46tc70ef9rfuf0/4xmiv1292187633.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