Home » date » 2010 » Dec » 11 »

opdracht 9

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sat, 11 Dec 2010 12:39:10 +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/11/t12920712680krghx4k23ouagu.htm/, Retrieved Sat, 11 Dec 2010 13:41:13 +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/11/t12920712680krghx4k23ouagu.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 - Evi Van Dingenen
 
Dataseries X:
» Textbox « » Textfile « » CSV «
84,9 81,9 95,9 81 89,2 102,5 89,8 88,8 83,2 90,2 100,4 187,1 87,6 85,4 86,1 86,7 89,1 103,7 86,9 85,2 80,8 91,2 102,8 182,5 80,9 83,1 88,3 86,6 93 105,3 93,8 86,4 87 96,7 100,5 196,7 86,8 88,2 93,8 85 90,4 115,9 94,9 87,7 91,7 95,9 106,8 204,5 90,2 90,5 93,2 97,8 99,4 120 108,2 98,5 104,3 102,9 111,1 188,1 93,8 94,5 112,4 102,5 115,8 136,5 122,1 110,6 116,4 112,6 121,5 199,3 102,1 100,6 119 106,8 121,3 145,5 129,7 117,7 121,3 124,3 135,2 210,1 106,8 110,5 111,5 122,1 126,3 143,2 137,3 121,5 121,9 123,9 131,6 220,9
 
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
184.9NANA-17.6618055555556NA
281.9NANA-17.4820436507937NA
395.9NANA-10.5499007936508NA
481NANA-13.3808531746032NA
589.2NANA-6.93859126984127NA
6102.5NANA11.9316468253968NA
789.893.742361111111198.0208333333333-4.27847222222222-3.94236111111111
888.886.485813492063598.2791666666667-11.79335317460322.31418650793651
983.287.360218253968398.0166666666667-10.6564484126984-4.16021825396825
1090.291.009027777777897.8458333333333-6.83680555555556-0.809027777777786
11100.499.991170634920698.07916666666671.912003968253970.408829365079356
12187.1183.85962301587398.12585.7346230158733.24037698412700
1387.680.392361111111198.0541666666667-17.66180555555567.20763888888888
1485.480.301289682539797.7833333333333-17.48204365079375.09871031746033
1586.186.983432539682597.5333333333333-10.5499007936508-0.88343253968253
1686.784.094146825396897.475-13.38085317460322.60585317460317
1789.190.678075396825497.6166666666667-6.93859126984127-1.57807539682540
18103.7109.45664682539797.52511.9316468253968-5.75664682539683
1986.992.775694444444597.0541666666667-4.27847222222222-5.87569444444445
2085.284.885813492063596.6791666666667-11.79335317460320.314186507936526
2180.886.018551587301696.675-10.6564484126984-5.21855158730158
2291.289.925694444444496.7625-6.836805555555561.27430555555556
23102.898.832837301587396.92083333333331.912003968253973.96716269841272
24182.5182.88462301587397.1585.734623015873-0.384623015872990
2580.979.842361111111197.5041666666666-17.66180555555561.05763888888892
2683.180.35962301587397.8416666666667-17.48204365079372.74037698412700
2788.387.600099206349298.15-10.54990079365080.699900793650812
2886.685.256646825396898.6375-13.38085317460321.34335317460318
299391.83224206349298.7708333333333-6.938591269841271.16775793650794
30105.3111.19831349206399.266666666666711.9316468253968-5.89831349206349
3193.895.8256944444444100.104166666667-4.27847222222222-2.02569444444444
3286.488.7691468253968100.5625-11.7933531746032-2.36914682539683
338790.3477182539682101.004166666667-10.6564484126984-3.34771825396824
3496.794.3298611111111101.166666666667-6.836805555555562.37013888888889
35100.5102.903670634921100.9916666666671.91200396825397-2.40367063492064
36196.7187.059623015873101.32585.7346230158739.64037698412697
3786.884.1506944444445101.8125-17.66180555555562.64930555555553
3888.284.4304563492063101.9125-17.48204365079373.76954365079366
3993.891.6125992063492102.1625-10.54990079365082.18740079365080
408588.9441468253968102.325-13.3808531746032-3.94414682539681
4190.495.6155753968254102.554166666667-6.93859126984127-5.21557539682539
42115.9115.073313492063103.14166666666711.93164682539680.826686507936529
4394.999.3298611111111103.608333333333-4.27847222222222-4.42986111111108
4487.792.0524801587301103.845833333333-11.7933531746032-4.35248015873013
4591.793.2602182539682103.916666666667-10.6564484126984-1.56021825396824
4695.997.5881944444444104.425-6.83680555555556-1.68819444444443
47106.8107.245337301587105.3333333333331.91200396825397-0.445337301587287
48204.5191.613789682540105.87916666666785.73462301587312.8862103174603
4990.288.9423611111111106.604166666667-17.66180555555561.25763888888889
5090.590.1262896825397107.608333333333-17.48204365079370.373710317460322
5193.298.0334325396826108.583333333333-10.5499007936508-4.83343253968256
5297.896.0191468253968109.4-13.38085317460321.78085317460317
5399.4102.932242063492109.870833333333-6.93859126984127-3.53224206349205
54120121.298313492063109.36666666666711.9316468253968-1.29831349206347
55108.2104.554861111111108.833333333333-4.278472222222223.64513888888889
5698.597.3566468253968109.15-11.79335317460321.14335317460321
57104.399.4602182539683110.116666666667-10.65644841269844.83978174603175
58102.9104.275694444444111.1125-6.83680555555556-1.37569444444442
59111.1113.903670634921111.9916666666671.91200396825397-2.80367063492062
60188.1199.097123015873113.362585.734623015873-10.9971230158730
6193.896.967361111111114.629166666667-17.6618055555556-3.16736111111109
6294.598.2304563492063115.7125-17.4820436507937-3.73045634920635
63112.4106.170932539683116.720833333333-10.54990079365086.22906746031748
64102.5104.248313492063117.629166666667-13.3808531746032-1.74831349206349
65115.8111.528075396825118.466666666667-6.938591269841274.27192460317461
66136.5131.298313492063119.36666666666711.93164682539685.2016865079365
67122.1115.900694444444120.179166666667-4.278472222222226.19930555555554
68110.6108.985813492063120.779166666667-11.79335317460321.61418650793651
69116.4110.651884920635121.308333333333-10.65644841269845.74811507936509
70112.6114.925694444444121.7625-6.83680555555556-2.32569444444445
71121.5124.082837301587122.1708333333331.91200396825397-2.58283730158730
72199.3208.509623015873122.77585.734623015873-9.209623015873
73102.1105.804861111111123.466666666667-17.6618055555556-3.7048611111111
74100.6106.597123015873124.079166666667-17.4820436507937-5.99712301587303
75119114.029265873016124.579166666667-10.54990079365084.97073412698413
76106.8111.889980158730125.270833333333-13.3808531746032-5.08998015873016
77121.3119.390575396825126.329166666667-6.938591269841271.9094246031746
78145.5139.281646825397127.3511.93164682539686.21835317460318
79129.7123.717361111111127.995833333333-4.278472222222225.98263888888889
80117.7116.810813492064128.604166666667-11.79335317460320.8891865079365
81121.3118.047718253968128.704166666667-10.65644841269843.25228174603174
82124.3122.192361111111129.029166666667-6.836805555555562.10763888888889
83135.2131.787003968254129.8751.912003968253973.41299603174602
84210.1215.722123015873129.987585.734623015873-5.62212301587303
85106.8112.546527777778130.208333333333-17.6618055555556-5.74652777777777
86110.5113.201289682540130.683333333333-17.4820436507937-2.70128968253965
87111.5120.316765873016130.866666666667-10.5499007936508-8.81676587301585
88122.1117.494146825397130.875-13.38085317460324.6058531746032
89126.3123.769742063492130.708333333333-6.938591269841272.53025793650795
90143.2142.93998015873131.00833333333311.93164682539680.260019841269838
91137.3NANA-4.27847222222222NA
92121.5NANA-11.7933531746032NA
93121.9NANA-10.6564484126984NA
94123.9NANA-6.83680555555556NA
95131.6NANA1.91200396825397NA
96220.9NANA85.734623015873NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920712680krghx4k23ouagu/1rivz1292071145.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920712680krghx4k23ouagu/1rivz1292071145.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t12920712680krghx4k23ouagu/2jru11292071145.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920712680krghx4k23ouagu/2jru11292071145.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t12920712680krghx4k23ouagu/3jru11292071145.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920712680krghx4k23ouagu/3jru11292071145.ps (open in new window)


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