Home » date » 2010 » Dec » 20 »

Paper klassieke decompositie

*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: Mon, 20 Dec 2010 20:22:07 +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/20/t1292876435xw1y19i1mrxqvsi.htm/, Retrieved Mon, 20 Dec 2010 21:20:36 +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/20/t1292876435xw1y19i1mrxqvsi.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
37 30 47 35 30 43 82 40 47 19 52 136 80 42 54 66 81 63 137 72 107 58 36 52 79 77 54 84 48 96 83 66 61 53 30 74 69 59 42 65 70 100 63 105 82 81 75 102 121 98 76 77 63 37 35 23 40 29 37 51 20 28 13 22 25 13 16 13 16 17 9 17 25 14 8 7 10 7 10 3
 
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
137NANA12.0368055555556NA
230NANA-0.188194444444443NA
347NANA-12.7048611111111NA
435NANA2.57013888888889NA
530NANA-2.45486111111111NA
643NANA3.29513888888889NA
78261.370138888888951.6259.745138888888920.6298611111111
84053.353472222222253.9166666666667-0.563194444444445-13.3534722222222
94760.161805555555654.70833333333335.45347222222222-13.1618055555556
101949.020138888888956.2916666666667-7.27152777777778-30.0201388888889
115243.320138888888959.7083333333333-16.38819444444448.67986111111111
1213669.136805555555662.66666666666676.4701388888888966.8631944444444
138077.828472222222265.791666666666712.03680555555562.17152777777777
144269.228472222222269.4166666666667-0.188194444444443-27.2284722222222
155460.545138888888973.25-12.7048611111111-6.54513888888887
166679.945138888888977.3752.57013888888889-13.9451388888889
178175.878472222222278.3333333333333-2.454861111111115.12152777777779
186377.461805555555674.16666666666673.29513888888889-14.4618055555556
1913780.370138888888970.6259.745138888888956.6298611111111
207271.478472222222272.0416666666667-0.5631944444444450.521527777777791
2110778.953472222222273.55.4534722222222228.0465277777778
225866.978472222222274.25-7.27152777777778-8.97847222222222
233657.236805555555573.625-16.3881944444444-21.2368055555555
245280.095138888888973.6256.47013888888889-28.0951388888889
257984.786805555555672.7512.0368055555556-5.78680555555556
267770.061805555555670.25-0.1881944444444436.93819444444445
275455.378472222222268.0833333333333-12.7048611111111-1.37847222222221
288468.528472222222265.95833333333332.5701388888888915.4715277777778
294863.045138888888965.5-2.45486111111111-15.0451388888889
309669.461805555555666.16666666666673.2951388888888926.5381944444444
318376.411805555555566.66666666666679.74513888888896.58819444444445
326664.936805555555665.5-0.5631944444444451.06319444444445
336169.703472222222264.255.45347222222222-8.70347222222222
345355.686805555555662.9583333333333-7.27152777777778-2.68680555555555
353046.695138888888963.0833333333333-16.3881944444444-16.6951388888889
367470.636805555555564.16666666666676.470138888888893.36319444444446
376975.536805555555563.512.0368055555556-6.53680555555555
385964.103472222222264.2916666666667-0.188194444444443-5.10347222222222
394254.086805555555666.7916666666667-12.7048611111111-12.0868055555556
406571.403472222222268.83333333333332.57013888888889-6.40347222222222
417069.420138888888971.875-2.454861111111110.579861111111114
4210078.211805555555574.91666666666673.2951388888888921.7881944444445
436387.995138888888978.259.7451388888889-24.9951388888889
4410581.478472222222282.0416666666667-0.56319444444444523.5215277777778
458290.536805555555585.08333333333335.45347222222222-8.53680555555555
468179.728472222222287-7.271527777777781.27152777777779
477570.820138888888987.2083333333333-16.38819444444444.17986111111111
4810290.761805555555584.29166666666676.4701388888888911.2381944444445
4912192.536805555555580.512.036805555555628.4631944444445
509875.728472222222275.9166666666667-0.18819444444444322.2715277777778
517658.045138888888970.75-12.704861111111117.9548611111111
527769.403472222222266.83333333333332.570138888888897.59652777777778
536360.628472222222263.0833333333333-2.454861111111112.37152777777779
543762.670138888888959.3753.29513888888889-25.6701388888889
553562.786805555555653.04166666666679.7451388888889-27.7868055555556
562345.353472222222245.9166666666667-0.563194444444445-22.3534722222222
574045.828472222222240.3755.45347222222222-5.82847222222222
582928.186805555555635.4583333333333-7.271527777777780.813194444444441
593715.195138888888931.5833333333333-16.388194444444421.8048611111111
605135.4701388888889296.4701388888888915.5298611111111
612039.245138888888927.208333333333312.0368055555556-19.2451388888889
622825.811805555555526-0.1881944444444432.18819444444445
631311.878472222222224.5833333333333-12.70486111111111.12152777777778
642225.653472222222223.08333333333332.57013888888889-3.65347222222222
652518.961805555555621.4166666666667-2.454861111111116.03819444444445
661322.128472222222218.83333333333333.29513888888889-9.12847222222222
671627.370138888888917.6259.7451388888889-11.3701388888889
681316.686805555555617.25-0.563194444444445-3.68680555555556
691621.911805555555616.45833333333335.45347222222222-5.91180555555556
70178.3534722222222215.625-7.271527777777788.64652777777778
719-2.0131944444444514.375-16.388194444444411.0131944444444
721719.970138888888913.56.47013888888889-2.97013888888889
7325NA13NANA
7414NA12.3333333333333NANA
758NANANANA
767NANANANA
7710NANANANA
787NANANANA
7910NANANANA
803NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292876435xw1y19i1mrxqvsi/10o6x1292876524.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292876435xw1y19i1mrxqvsi/10o6x1292876524.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t1292876435xw1y19i1mrxqvsi/20o6x1292876524.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292876435xw1y19i1mrxqvsi/20o6x1292876524.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t1292876435xw1y19i1mrxqvsi/3axnh1292876524.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292876435xw1y19i1mrxqvsi/3axnh1292876524.ps (open in new window)


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