Home » date » 2009 » May » 28 »

opgave 9 oef 2 decomposition werkloosheid belgie. umran celik

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Thu, 28 May 2009 10:25: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/2009/May/28/t1243527978rxp4hcjaajoh8x4.htm/, Retrieved Thu, 28 May 2009 18:26:23 +0200
 
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/2009/May/28/t1243527978rxp4hcjaajoh8x4.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
580 579 572 560 551 537 541 588 607 599 578 563 566 561 554 540 526 512 505 554 584 569 540 522 526 527 516 503 489 479 475 524 552 532 511 492 492 493 481 462 457 442 439 488 521 501 485 464 460 467 460 448 443 436 431 484 510 513 503 471 471 476 475 470 461 455 456 517 525 523 519 509 512 519 517 510 509 501 507 569 580 578 565 547 555 562 561 555 544 537 543 594 611 613 611 594 595 591 589 584 573 567 569 621 629 628 612 595 597 593 590 580 574 573 573 620 626 620 588 566 557 561 549 532 526 511 499 555 565 542 527 510 514 517 508 493 490 469 478 528 534 518 506 502 516
 
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
1580NANA-0.90625NA
2579NANA1.55965909090909NA
3572NANA-4.02746212121215NA
4560NANA-14.6259469696970NA
5551NANA-21.7736742424242NA
6537NANA-31.2698863636363NA
7541539.180871212121570.666666666667-31.48579545454541.81912878787875
8588586.044507575758569.33333333333316.71117424242431.95549242424249
9607605.370265151515567.83333333333337.53693181818181.62973484848487
10599598.366477272727566.2532.11647727272720.633522727272748
11578581.858901515152564.37517.4839015151515-3.8589015151515
12563560.972537878788562.291666666667-1.319128787878792.02746212121212
13566558.84375559.75-0.906257.15625
14561558.392992424242556.8333333333331.559659090909092.60700757575751
15554550.430871212121554.458333333333-4.027462121212153.56912878787875
16540537.624053030303552.25-14.62594696969702.37594696969688
17526527.642992424242549.416666666667-21.7736742424242-1.64299242424249
18512514.855113636364546.125-31.2698863636363-2.85511363636363
19505511.264204545455542.75-31.4857954545454-6.26420454545462
20554556.377840909091539.66666666666716.7111742424243-2.37784090909088
21584574.203598484848536.66666666666737.53693181818189.79640151515162
22569565.658143939394533.54166666666732.11647727272723.34185606060601
23540547.942234848485530.45833333333317.4839015151515-7.94223484848487
24522526.222537878788527.541666666667-1.31912878787879-4.22253787878799
25526524.010416666667524.916666666667-0.906251.98958333333326
26527523.976325757576522.4166666666671.559659090909093.02367424242425
27516515.805871212121519.833333333333-4.027462121212150.194128787878753
28503502.332386363636516.958333333333-14.62594696969700.66761363636374
29489492.434659090909514.208333333333-21.7736742424242-3.43465909090901
30479480.480113636364511.75-31.2698863636363-1.48011363636368
31475477.597537878788509.083333333333-31.4857954545454-2.59753787878793
32524522.961174242424506.2516.71117424242431.03882575757575
33552540.911931818182503.37537.536931818181811.0880681818182
34532532.324810606061500.20833333333332.1164772727272-0.324810606060566
35511514.650568181818497.16666666666717.4839015151515-3.65056818181813
36492492.972537878788494.291666666667-1.31912878787879-0.972537878787762
37492490.34375491.25-0.906251.65625000000006
38493489.809659090909488.251.559659090909093.19034090909105
39481481.430871212121485.458333333333-4.02746212121215-0.430871212121133
40462468.249053030303482.875-14.6259469696970-6.24905303030295
41457458.726325757576480.5-21.7736742424242-1.72632575757569
42442446.980113636364478.25-31.2698863636363-4.98011363636357
43439444.264204545454475.75-31.4857954545454-5.26420454545445
44488490.044507575758473.33333333333316.7111742424243-2.04450757575751
45521508.911931818182471.37537.536931818181812.0880681818182
46501502.033143939394469.91666666666732.1164772727272-1.03314393939388
47485486.233901515152468.7517.4839015151515-1.23390151515150
48464466.597537878788467.916666666667-1.31912878787879-2.59753787878788
49460466.427083333333467.333333333333-0.90625-6.42708333333337
50467468.392992424242466.8333333333331.55965909090909-1.39299242424238
51460462.180871212121466.208333333333-4.02746212121215-2.18087121212119
52448451.624053030303466.25-14.6259469696970-3.62405303030306
53443445.726325757576467.5-21.7736742424242-2.72632575757569
54436437.27178030303468.541666666667-31.2698863636363-1.27178030303031
55431437.805871212121469.291666666667-31.4857954545454-6.80587121212125
56484486.836174242424470.12516.7111742424243-2.83617424242419
57510508.661931818182471.12537.53693181818181.33806818181819
58513504.783143939394472.66666666666732.11647727272728.21685606060606
59503491.817234848485474.33333333333317.483901515151511.1827651515152
60471474.555871212121475.875-1.31912878787879-3.55587121212119
61471476.802083333333477.708333333333-0.90625-5.80208333333331
62476481.684659090909480.1251.55965909090909-5.68465909090907
63475478.097537878788482.125-4.02746212121215-3.09753787878788
64470468.54071969697483.166666666667-14.62594696969701.45928030303025
65461462.476325757576484.25-21.7736742424242-1.47632575757575
66455455.230113636364486.5-31.2698863636363-0.230113636363740
67456458.305871212121489.791666666667-31.4857954545454-2.30587121212125
68517510.002840909091493.29166666666716.71117424242436.99715909090912
69525534.370265151515496.83333333333337.5369318181818-9.37026515151518
70523532.366477272727500.2532.1164772727272-9.36647727272725
71519521.400568181818503.91666666666717.4839015151515-2.40056818181813
72509506.514204545454507.833333333333-1.319128787878792.48579545454555
73512510.96875511.875-0.906251.03125
74519517.726325757576516.1666666666671.559659090909091.27367424242425
75517516.597537878788520.625-4.027462121212150.402462121212125
76510510.582386363636525.208333333333-14.6259469696970-0.582386363636374
77509507.642992424242529.416666666667-21.77367424242421.35700757575751
78501501.64678030303532.916666666667-31.2698863636363-0.646780303030255
79507504.805871212121536.291666666667-31.48579545454542.19412878787875
80569556.586174242424539.87516.711174242424312.4138257575758
81580581.036931818182543.537.5369318181818-1.03693181818176
82578579.32481060606547.20833333333332.1164772727272-1.32481060606051
83565568.025568181818550.54166666666717.4839015151515-3.02556818181813
84547552.180871212121553.5-1.31912878787879-5.18087121212125
85555555.59375556.5-0.90625-0.593749999999886
86562560.601325757576559.0416666666671.559659090909091.39867424242425
87561557.347537878788561.375-4.027462121212153.65246212121224
88555549.499053030303564.125-14.62594696969705.500946969697
89544545.726325757576567.5-21.7736742424242-1.72632575757564
90537540.105113636364571.375-31.2698863636363-3.10511363636351
91543543.514204545455575-31.4857954545454-0.514204545454504
92594594.586174242424577.87516.7111742424243-0.586174242424136
93611617.786931818182580.2537.5369318181818-6.78693181818176
94613614.741477272727582.62532.1164772727272-1.74147727272737
95611602.525568181818585.04166666666717.48390151515158.47443181818187
96594586.180871212121587.5-1.319128787878797.81912878787875
97595588.927083333333589.833333333333-0.906256.07291666666674
98591593.601325757576592.0416666666671.55965909090909-2.60132575757575
99589589.889204545455593.916666666667-4.02746212121215-0.889204545454618
100584580.66571969697595.291666666667-14.62594696969703.33428030303048
101573574.184659090909595.958333333333-21.7736742424242-1.18465909090912
102567564.77178030303596.041666666667-31.26988636363632.22821969696975
103569564.680871212121596.166666666667-31.48579545454544.31912878787875
104621613.044507575758596.33333333333316.71117424242437.95549242424238
105629633.995265151515596.45833333333337.5369318181818-4.99526515151501
106628628.44981060606596.33333333333332.1164772727272-0.449810606060623
107612613.692234848485596.20833333333317.4839015151515-1.69223484848476
108595595.180871212121596.5-1.31912878787879-0.180871212121133
109597596.010416666667596.916666666667-0.906250.989583333333371
110593598.601325757576597.0416666666671.55965909090909-5.60132575757575
111590592.847537878788596.875-4.02746212121215-2.84753787878788
112580581.79071969697596.416666666667-14.6259469696970-1.79071969696963
113574573.309659090909595.083333333333-21.77367424242420.690340909090878
114573561.605113636364592.875-31.269886363636311.3948863636365
115573558.514204545455590-31.485795454545414.4857954545455
116620603.71117424242458716.711174242424316.2888257575758
117626621.495265151515583.95833333333337.53693181818184.50473484848487
118620612.366477272727580.2532.11647727272727.63352272727275
119588593.733901515152576.2517.4839015151515-5.7339015151515
120566570.347537878788571.666666666667-1.31912878787879-4.34753787878799
121557565.09375566-0.90625-8.09375
122561561.767992424242560.2083333333331.55965909090909-0.767992424242493
123549550.930871212121554.958333333333-4.02746212121215-1.93087121212125
124532534.54071969697549.166666666667-14.6259469696970-2.54071969696963
125526521.601325757576543.375-21.77367424242424.39867424242436
126511507.230113636364538.5-31.26988636363633.76988636363649
127499502.889204545454534.375-31.4857954545454-3.8892045454545
128555547.461174242424530.7516.71117424242437.53882575757586
129565564.745265151515527.20833333333337.53693181818180.254734848484986
130542555.991477272727523.87532.1164772727272-13.9914772727271
131527538.233901515151520.7517.4839015151515-11.2339015151514
132510516.180871212121517.5-1.31912878787879-6.18087121212108
133514513.96875514.875-0.906250.0312500000001137
134517514.434659090909512.8751.559659090909092.56534090909088
135508506.430871212121510.458333333333-4.027462121212151.56912878787881
136493493.54071969697508.166666666667-14.6259469696970-0.540719696969632
137490484.517992424242506.291666666667-21.77367424242425.48200757575773
138469473.813446969697505.083333333333-31.2698863636363-4.81344696969688
139478473.347537878788504.833333333333-31.48579545454544.65246212121218
140528NANA16.7111742424243NA
141534NANA37.5369318181818NA
142518NANA32.1164772727272NA
143506NANA17.4839015151515NA
144502NANA-1.31912878787879NA
145516NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t1243527978rxp4hcjaajoh8x4/132ew1243527950.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t1243527978rxp4hcjaajoh8x4/132ew1243527950.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t1243527978rxp4hcjaajoh8x4/23kcd1243527950.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t1243527978rxp4hcjaajoh8x4/23kcd1243527950.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t1243527978rxp4hcjaajoh8x4/3qaq11243527950.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t1243527978rxp4hcjaajoh8x4/3qaq11243527950.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t1243527978rxp4hcjaajoh8x4/4q0cp1243527950.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t1243527978rxp4hcjaajoh8x4/4q0cp1243527950.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