Home » date » 2010 » Dec » 12 »

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: Sun, 12 Dec 2010 17:12:25 +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/t1292173867rfvp4okua0tx50s.htm/, Retrieved Sun, 12 Dec 2010 18:11:12 +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/t1292173867rfvp4okua0tx50s.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 «
62.027 56.493 65.566 62.653 53.470 59.600 42.542 42.018 44.038 44.988 43.309 26.843 69.770 64.886 79.354 63.025 54.003 55.926 45.629 40.361 43.039 44.570 43.269 25.563 68.707 60.223 74.283 61.232 61.531 65.305 51.699 44.599 35.221 55.066 45.335 28.702 69.517 69.240 71.525 77.740 62.107 65.450 51.493 43.067 49.172 54.483 38.158 27.898 58.648 56.000 62.381 59.849 48.345 55.376 45.400 38.389 44.098 48.290 41.267 31.238
 
Output produced by software:


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


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
162.027NANA13.727375NA
256.493NANA9.66215625NA
365.566NANA18.9978333333333NA
462.653NANA12.5385625NA
553.47NANA3.5604375NA
659.6NANA7.55367708333334NA
742.54245.1905937550.6182083333333-5.42761458333333-2.64859374999999
842.01840.573760416666751.2905416666667-10.716781251.44423958333334
944.03841.8925312552.21475-10.322218752.14546875000001
1044.98849.454166666666752.80475-3.35058333333334-4.46616666666666
1143.30942.3154687552.8424583333333-10.52698958333330.993531250000004
1226.84327.015729166666752.7115833333333-25.6958541666667-0.17272916666667
1369.7766.414552.68712513.7273753.35549999999999
1464.88662.408864583333352.74670833333339.662156252.47713541666667
1579.35471.63387552.636041666666718.99783333333337.720125
1663.02565.115562552.57712.5385625-2.09056250000000
1754.00356.118354166666752.55791666666673.5604375-2.11535416666667
1855.92660.0565937552.50291666666677.55367708333334-4.13059375
1945.62946.977677083333352.4052916666667-5.42761458333333-1.34867708333334
2040.36141.449927083333352.1667083333333-10.71678125-1.08892708333333
2143.03941.4389062551.761125-10.322218751.60009375000001
2244.5748.124541666666751.475125-3.35058333333334-3.55454166666666
2343.26941.1870937551.7140833333333-10.52698958333332.08190625000001
2425.56326.722687552.4185416666667-25.6958541666667-1.15968749999999
2568.70766.78962553.0622513.7273751.917375
2660.22363.1539062553.491759.66215625-2.93090624999999
2774.28372.340416666666753.342583333333318.99783333333331.94258333333335
2861.23265.992729166666753.454166666666712.5385625-4.76072916666666
2961.53157.538020833333353.97758333333333.56043753.99297916666666
3065.30561.748135416666754.19445833333337.553677083333343.55686458333334
3151.69948.931385416666754.359-5.427614583333332.76761458333334
3244.59944.051677083333354.7684583333333-10.716781250.547322916666666
3335.22144.7070312555.02925-10.32221875-9.48603125
3455.06652.251583333333355.6021666666667-3.350583333333342.81441666666667
3545.33545.787010416666756.314-10.5269895833333-0.45201041666666
3628.70230.648187556.3440416666667-25.6958541666667-1.94618749999999
3769.51770.06887556.341513.727375-0.551874999999995
3869.2465.931239583333356.26908333333339.662156253.30876041666667
3971.52575.78437556.786541666666718.9978333333333-4.25937499999999
4077.7469.882104166666757.343541666666712.53856257.85789583333334
4162.10760.580645833333357.02020833333333.56043751.52635416666666
4265.4564.2413437556.68766666666677.553677083333341.20865625000000
4351.49350.773677083333356.2012916666667-5.427614583333330.71932291666667
4443.06744.4799687555.19675-10.71678125-1.41296874999999
4549.17243.941864583333354.2640833333333-10.322218755.23013541666667
4654.48349.787041666666753.137625-3.350583333333344.69595833333333
4738.15841.291760416666751.81875-10.5269895833333-3.13376041666667
4827.89825.129729166666750.8255833333333-25.69585416666672.76827083333333
4958.64863.879333333333350.151958333333313.727375-5.23133333333332
505659.365322916666749.70316666666679.66215625-3.36532291666666
5162.38168.294666666666749.296833333333318.9978333333333-5.91366666666666
5259.84961.365937548.82737512.5385625-1.51693750000000
5348.34552.259312548.6988753.5604375-3.91431249999999
5455.37656.521260416666748.96758333333337.55367708333334-1.14526041666666
5545.4NANA-5.42761458333333NA
5638.389NANA-10.71678125NA
5744.098NANA-10.32221875NA
5848.29NANA-3.35058333333334NA
5941.267NANA-10.5269895833333NA
6031.238NANA-25.6958541666667NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292173867rfvp4okua0tx50s/1a3q61292173940.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292173867rfvp4okua0tx50s/1a3q61292173940.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292173867rfvp4okua0tx50s/2a3q61292173940.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292173867rfvp4okua0tx50s/2a3q61292173940.ps (open in new window)


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


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