Home » date » 2009 » Jun » 01 »

opgave 9 oefening 2 rosewijnen - Kathleen Geets

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 01 Jun 2009 07:05:20 -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/Jun/01/t1243861552647aejdvu5uwkas.htm/, Retrieved Mon, 01 Jun 2009 15:05:57 +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/Jun/01/t1243861552647aejdvu5uwkas.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 «
112 118 129 99 116 168 118 129 205 147 150 267 126 129 124 97 102 127 222 214 118 141 154 226 89 77 82 97 127 121 117 117 106 112 134 169 75 108 115 85 101 108 109 124 105 95 135 164 88 85 112 87 91 87 87 142 95 108 139 159 61 82 124 93 108 75 87 103 90 108 123 129 57 65 67 71 76 67 110 118 99 85 107 141 58 65 70 86 93 74 87 73 101 100 96 157 63 115 70 66 67 83 79 77 102 116 100 135 71 60 89 74 73 91 86 74 87 87 109 137 43 69 73 77 69 76 78 70 83 65 110 132 54 55 66 65 60 65 96 55 71 63 74 106 34 47 56 53 53 55 67 52 46 51 58 91 33 40 46 45 41 55 57 54 46 52 48 77 30 35 42 48 44 45 0 0 46 51 63 84 30 39 45 52 28 40 62
 
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'George Udny Yule' @ 72.249.76.132


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1112NANA0.67521885638486NA
2118NANA0.813472539455856NA
3129NANA0.913676955306706NA
499NANA0.868365335046937NA
5116NANA0.902197066506011NA
6168NANA0.936513018655045NA
7118148.415424134303147.0833333333331.009056707995260.795065611868077
8129145.185335312660148.1250.980154162448340.888519489397434
9205148.963906804592148.3751.003969043333391.37617228493419
10147153.742280823358148.0833333333331.038214614451490.95614556524562
11150180.130485798081147.4166666666671.221913979410380.832729670024563
12267237.605575510955145.1251.637247721005721.12371100478528
1312699.763586030863147.750.675218856384861.26298587503681
14129126.596663952818155.6250.8134725394558561.01898419730932
15124142.114836423331155.5416666666670.9136769553067060.8725338122378
1697131.702075815452151.6666666666670.8683653350469370.736510790732878
17102136.758038664536151.5833333333330.9021970665060110.745842811114038
18127140.515974174034150.0416666666670.9365130186550450.903811831690438
19222148.121115927805146.7916666666671.009056707995261.49877347743049
20214140.243724743650143.0833333333330.980154162448341.52591497688163
21118139.719025197231139.1666666666671.003969043333390.844552127624913
22141142.667991602542137.4166666666671.038214614451490.988308578653097
23154169.184173065863138.4583333333331.221913979410380.910250629295261
24226227.986745150046139.251.637247721005720.991285698873684
258990.9013385408118134.6250.675218856384860.979083492373898
2677102.667013417158126.2083333333330.8134725394558560.749997466928669
2782111.164029562316121.6666666666670.9136769553067060.737648682967477
2897104.167658316672119.9583333333330.8683653350469370.931191135209335
29127106.384070758834117.9166666666670.9021970665060111.19378774560997
30121107.425847514889114.7083333333330.9365130186550451.12635834670264
31117112.762087118471111.751.009056707995261.03758278149886
32117110.226503518669112.4583333333330.980154162448341.06145070618323
33106115.581936113757115.1251.003969043333390.917098324911893
34112120.4328952763721161.038214614451490.929978472600693
35134139.807324477538114.4166666666671.221913979410380.958461943970102
36169184.667899198437112.7916666666671.637247721005720.915156346790947
377575.5682436770722111.9166666666670.675218856384860.992480390579136
3810891.0072403516239111.8750.8134725394558561.18671876636102
39115102.446028613764112.1250.9136769553067061.12254229428030
408596.7141891908526111.3750.8683653350469370.87887827743935
4110199.880733571103110.7083333333330.9021970665060111.01120602931996
42108103.523709937160110.5416666666670.9365130186550451.04323927403256
43109111.879162498975110.8751.009056707995260.974265426781317
44124108.266195193773110.4583333333330.980154162448341.14532518463466
45105109.80911411459109.3751.003969043333390.956204781785494
4695113.511464513363109.3333333333331.038214614451490.836919868907309
47135133.1886237557321091.221913979410381.01360008229825
48164176.345223283324107.7083333333331.637247721005720.92999400236949
498871.5169305387631105.9166666666670.675218856384861.23047786499034
508586.0247210474568105.750.8134725394558560.988088063117444
5111296.9258970087864106.0833333333330.9136769553067061.15552193434792
528792.2276349597767106.2083333333330.8683653350469370.943318128432366
539196.4599030272677106.9166666666670.9021970665060110.943397174826889
5487100.089828868758106.8750.9365130186550450.869219190234386
5587106.497526723000105.5416666666671.009056707995260.81692038000363
56142102.221911192008104.2916666666670.980154162448341.38913466148442
5795105.082093202229104.6666666666671.003969043333390.904055078320282
58108109.445123940094105.4166666666671.038214614451490.986795903845975
59139129.981099559780106.3751.221913979410381.06938624515999
60159174.503319597193106.5833333333331.637247721005720.911157451715078
616171.6294670148272106.0833333333330.675218856384860.851604828881011
628284.973985683993104.4583333333330.8134725394558560.965001221726225
6312493.7660975383507102.6250.9136769553067061.32243959443106
649388.9350830643904102.4166666666670.8683653350469371.04570656253468
6510891.7985515169866101.750.9021970665060111.17648915168357
667593.495216362395399.83333333333330.9365130186550450.802180078489724
678799.307997678533898.41666666666671.009056707995260.876062371951395
6810395.605870595481797.54166666666670.980154162448341.07733970056926
699094.833242551533694.45833333333331.003969043333390.949034300404659
7010894.650565684160591.16666666666671.038214614451491.14103913927345
71123108.64851800257388.91666666666671.221913979410381.13209091353724
72129142.84986365774987.251.637247721005720.903046014163993
735759.334857004819687.8750.675218856384860.960649487962364
746572.771897592155189.45833333333330.8134725394558560.89320193853248
756782.649694582119190.45833333333330.9136769553067060.810650303534155
767178.044334487343489.8750.8683653350469370.909739322737311
777679.618891119155588.250.9021970665060110.954547330811986
786782.491188393198588.08333333333330.9365130186550450.812207961905471
7911089.427650746080288.6251.009056707995261.23004461240218
8011886.907002403752788.66666666666670.980154162448341.35777321431241
819989.14408463931188.79166666666671.003969043333391.11056163065185
828592.963466935676889.54166666666671.038214614451490.914337672656002
83107111.04143287891990.8751.221913979410380.963604280184987
84141150.42213436740091.8751.637247721005720.93736204843107
855861.585586526102491.20833333333330.675218856384860.941778803639668
866571.890635674411388.3750.8134725394558560.904151137213217
877079.109196380305686.58333333333330.9136769553067060.884852876819599
888675.801057371805587.29166666666670.8683653350469371.13454881741515
899378.904651774838287.45833333333330.9021970665060111.17863773438078
907482.100974635425687.66666666666670.9365130186550450.901329129509138
918789.343562687080688.54166666666671.009056707995260.973769092964327
927389.030669755724190.83333333333330.980154162448340.819942163754267
9310193.285456943061292.91666666666671.003969043333391.08269823946564
9410095.602262414074492.08333333333331.038214614451491.04600035056574
9596110.17591047683690.16666666666671.221913979410380.871333847703335
96157146.46545237497089.45833333333331.637247721005721.07192513629808
976360.43208764644589.50.675218856384861.04249253093122
9811572.670213524723189.33333333333330.8134725394558561.58249156596844
997081.81215737308889.54166666666670.9136769553067060.855618556552409
1006678.36997148798690.250.8683653350469370.842159295797596
1016782.175116140922591.08333333333330.9021970665060110.815331978175745
1028384.598342685172490.33333333333330.9365130186550450.981106690338834
1037990.562839542574989.751.009056707995260.872322471325129
1047786.049367511610487.79166666666670.980154162448340.894835165285911
10510286.634162030977586.29166666666671.003969043333391.17736465164317
10611690.757260879967487.41666666666671.038214614451491.27813465143486
107100107.528430188114881.221913979410380.929986607495866
108135145.03286061909088.58333333333331.637247721005720.930823534912961
1097160.235148813332789.20833333333330.675218856384861.17871378088610
1106072.704108213867189.3750.8134725394558560.825262856171806
1118980.974620164056888.6250.9136769553067061.09910981761549
1127475.36687470428286.79166666666660.8683653350469370.981863720505258
1137377.551356175079285.95833333333330.9021970665060110.941311713945993
1149180.930333362106886.41666666666670.9365130186550451.12442388681186
1158686.106172415595885.33333333333331.009056707995260.998766959294354
1167482.863866483653384.54166666666670.980154162448340.893030981297476
1178784.584391900838584.251.003969043333391.02855855607490
1188786.907215018043283.70833333333331.038214614451491.00106763266937
119109102.23346961066983.66666666666671.221913979410381.06618703654586
120137135.68690487834982.8751.637247721005721.00967739018609
1214355.311677985526481.91666666666670.675218856384860.77741268328999
1226966.230222587364381.41666666666670.8134725394558561.04182044547687
1237374.083973126118781.08333333333330.9136769553067060.985368318134431
1247769.469226803755800.8683653350469371.10840444816694
1256971.386342887288279.1250.9021970665060110.966571436625407
1267673.945507097971278.95833333333330.9365130186550451.02778387738023
1277879.925700079124879.20833333333331.009056707995260.975906372077837
1287077.513858346956179.08333333333330.980154162448340.903064322855357
1298378.518745597365978.20833333333331.003969043333391.05707241460037
1306580.375114735452677.41666666666671.038214614451490.808708021306615
13111093.527332507369876.54166666666671.221913979410381.17612677546783
132132123.95329621114175.70833333333331.637247721005721.06491722313824
1335451.3166330852494760.675218856384861.05229039306404
1345561.92559706607776.1250.8134725394558560.888162611356219
1356668.5257716480029750.9136769553067060.963141288492495
1366564.620853683076274.41666666666670.8683653350469371.00586724401357
1376065.710019677187872.83333333333330.9021970665060110.913102755025195
1386565.790039560516970.250.9365130186550450.987991501969076
1399668.952208379676368.33333333333331.009056707995261.39226867791367
1405565.833687911113467.16666666666670.980154162448340.835438538309737
1417166.680277294726366.41666666666671.003969043333391.06478261459803
1426368.003057246572465.51.038214614451490.926428936445728
1437479.06801708434764.70833333333331.221913979410380.935903070909941
144106104.783854144366641.637247721005721.01160623328436
1453442.116776167005662.3750.675218856384860.807279262429294
1464749.655719595951261.04166666666670.8134725394558560.946517347496707
1475654.70640769898959.8750.9136769553067061.02364608380299
1485350.654644544404658.33333333333330.8683653350469371.04630089652568
1495351.575598968593657.16666666666670.9021970665060111.02761773125066
1505552.327664917350655.8750.9365130186550451.05106925919340
1516755.708339087238555.20833333333331.009056707995261.20269247114115
1525253.785959664352654.8750.980154162448340.966795058124876
1534654.381656513892254.16666666666671.003969043333390.845873460810245
1545155.457963988616953.41666666666671.038214614451490.9196154408133
1555864.25231008399652.58333333333331.221913979410380.902691279491391
1569185.273318802381152.08333333333331.637247721005721.06715677632872
1573334.886307579884451.66666666666670.675218856384860.945929858711328
1584041.758257025400651.33333333333330.8134725394558560.957894386627988
1594646.978223452019851.41666666666670.9136769553067060.97917708716638
1604544.684632865957051.45833333333330.8683653350469371.00705761945027
1614146.087233480682151.08333333333330.9021970665060110.889617295366309
1625546.903693684306850.08333333333330.9365130186550451.17261553791876
1635749.822174957266149.3751.009056707995261.14406888195649
1645448.068393716737349.04166666666670.980154162448341.12339930304759
1654648.859826775558548.66666666666671.003969043333390.941468749189485
1665250.483185627703548.6251.038214614451491.03004593219379
1674859.721045743682548.8751.221913979410380.80373676318415
1687779.542951778861148.58333333333331.637247721005720.968030457482508
1693030.919396798623445.79166666666670.675218856384860.970264723965627
1703533.487952874266141.16666666666670.8134725394558561.04515197245442
1714235.55726151068638.91666666666670.9136769553067061.18119332635833
1724833.757702399949738.8750.8683653350469371.42189771778045
1734435.599192582549739.45833333333330.9021970665060111.23598308860433
1744537.811713128197440.3750.9365130186550451.19010741056432
175041.034972791807440.66666666666671.009056707995260
176040.022961633307240.83333333333330.980154162448340
1774641.288226907085841.1251.003969043333391.11411904665990
1785142.999388615199141.41666666666671.038214614451491.18606337537490
1796349.996646990874940.91666666666671.221913979410381.26008450149664
1808465.558127495270640.04166666666671.637247721005721.28130566276561
18130NA42.4166666666667NANA
18239NANANANA
18345NANANANA
18452NANANANA
18528NANANANA
18640NANANANA
18762NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243861552647aejdvu5uwkas/13v7c1243861518.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243861552647aejdvu5uwkas/13v7c1243861518.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243861552647aejdvu5uwkas/2sthn1243861518.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243861552647aejdvu5uwkas/2sthn1243861518.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243861552647aejdvu5uwkas/36liz1243861518.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243861552647aejdvu5uwkas/36liz1243861518.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243861552647aejdvu5uwkas/4hcke1243861518.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243861552647aejdvu5uwkas/4hcke1243861518.ps (open in new window)


 
Parameters (Session):
par1 = multiplicative ; par2 = 12 ;
 
Parameters (R input):
par1 = multiplicative ; 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