Home » date » 2010 » Dec » 13 »

opgave 9 decompositie oef 2

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 13 Dec 2010 12:26:26 +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/13/t1292243102z21n78q9arhlb6x.htm/, Retrieved Mon, 13 Dec 2010 13:25:04 +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/13/t1292243102z21n78q9arhlb6x.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:
opgave 9 decompositie oef 2 boeken
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W92
 
Dataseries X:
» Textbox « » Textfile « » CSV «
90 69,3 87,3 57,4 56,2 61,6 77,7 177,2 97,6 81,6 96,8 191,3 106 75,1 72 63,5 57,4 62,3 79,4 178,1 109,3 85,2 102,7 193,7 108,4 73,4 85,9 58,5 58,6 62,7 77,5 180,5 102,2 82,6 97,8 197,8 93,8 72,4 77,7 58,7 53,1 64,3 76,4 188,4 105,5 79,8 96,1 202,5 97,3 89,5 64,7 61,2 57,8 62 76,3 195 110,9 81,4 101,7 202,2 97,4 68,5 86,8 59,1 62,4 66,2 68 198,5 120,4 90,2 103,2 207,3 106,4 75,5 97,3 60 67,5 71,2 73,7 213,3 114,6 96,1 117 229,2 105,6 99,9 79,3 72,5 67,4 78,3 85,7 177,4 113,6 94,1 105,7 228,3 100,3 70,3 94,2 66,5 64,4 73,7 87,9 152,2 97,3 89,3 107,6 228,4
 
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
190NANA0.999031223454888NA
269.3NANA0.764165145223747NA
387.3NANA0.805903656286252NA
457.4NANA0.612591703228792NA
556.2NANA0.597377249099274NA
661.6NANA0.659589734874162NA
777.772.6982277541793960.7572732057727011.06880184566168
8177.2179.67433252795496.90833333333331.85406482959450.986228792431613
997.6103.61282044908896.51251.073568920596690.94196837396157
1081.681.455389682466196.12916666666660.8473535401062751.00177533148018
1196.897.0381491167196.43333333333331.006271853958280.997545819671153
12191.3195.22634760985196.51252.022808937804440.979888228930569
1310696.518904076035496.61250.9990312234548881.09823045562655
1475.173.910689650328596.72083333333330.7641651452237471.01609118187502
157278.370772641936897.24583333333330.8059036562862520.91870984006954
1663.559.962517884378297.88333333333330.6125917032287921.05899488948151
1757.458.709738227102498.27916666666670.5973772490992740.977691295061885
1862.365.052037601964298.6250.6595897348741620.95769482858011
1979.474.837524560487298.8250.7572732057727011.06096507689569
20178.1183.2820336755498.85416666666671.85406482959450.971726450369306
21109.3106.67249187278999.36251.073568920596691.02463154353181
2285.284.509393066599199.73333333333330.8473535401062751.00817195471818
23102.7100.19951985789699.5751.006271853958281.02495501121812
24193.7201.55605391106499.64166666666672.022808937804440.961022982150017
25108.499.482696705618299.57916666666670.9990312234548881.08963672668393
2673.476.110848464285299.60.7641651452237470.964382889969263
2785.980.110181366754699.40416666666670.8059036562862521.07227319342518
2858.560.6465786196504990.6125917032287920.964605115927267
2958.658.953667270484698.68750.5973772490992740.99400092840939
3062.765.07127563589898.65416666666670.6595897348741620.963558795909176
3177.574.376850026975498.21666666666670.7572732057727011.04199088791596
32180.5180.89492520743797.56666666666671.85406482959450.997816825391956
33102.2104.33300626665597.18333333333331.073568920596690.979555786390322
3482.682.066190359292796.850.8473535401062751.00650462313859
3597.897.235210688110196.62916666666661.006271853958281.00580848550533
36197.8195.13363553353596.46666666666672.022808937804441.01366429964355
3793.896.394025173103596.48750.9990312234548880.973089357266229
3872.473.948897907589796.77083333333330.7641651452237470.979054482873765
3977.778.364056778134497.23750.8059036562862520.991526003049912
4058.759.579648069860297.25833333333330.6125917032287920.985235762574012
4153.157.987907384440897.07083333333330.5973772490992740.915708160461188
4264.364.109373939206697.19583333333330.6595897348741621.00297345066845
4376.473.862535308054897.53750.7572732057727011.03435388023661
44188.4182.43225396197698.39583333333331.85406482959451.03271212139531
45105.5105.81810994014798.56666666666671.073568920596690.996993804365553
4679.883.150096762678798.12916666666670.8473535401062750.959710248176376
4796.199.04650002523598.42916666666671.006271853958280.970251346342533
48202.5199.30567896775698.52916666666672.022808937804441.01602724542917
4997.398.333810798645198.42916666666670.9990312234548880.989486720892349
5089.575.423099833583898.70.7641651452237471.18663910920495
5164.779.945642703596299.20.8059036562862520.809299891926313
5261.260.947769540404599.49166666666670.6125917032287921.00413846907766
5357.859.61327131636599.79166666666670.5973772490992740.969582757726176
546265.9672183591021100.01250.6595897348741620.939860760271776
5576.375.7304758822941100.0041666666670.7572732057727011.00752040854188
56195183.79962677380299.13333333333331.85406482959451.06093795413406
57110.9106.47567090401399.17916666666671.073568920596691.04155248854901
5881.484.7459459298788100.01250.8473535401062750.960517923386597
59101.7100.74458377879100.1166666666671.006271853958281.00948354924279
60202.2203.258584767049100.4833333333332.022808937804440.994791930838925
6197.4100.215319602818100.31250.9990312234548880.971907293076783
6268.576.5024831012123100.11250.7641651452237470.89539577309373
6386.881.1175609371124100.6541666666670.8059036562862521.07005189748362
6459.162.12700856912101.4166666666670.6125917032287920.95127709125489
6562.460.8403837488898101.8458333333330.5973772490992741.02563455644112
6666.267.3578533834618102.1208333333330.6595897348741620.98281041741532
676877.7782688429045102.7083333333330.7572732057727010.874280194347672
68198.5191.663951759332103.3751.85406482959451.03566684385832
69120.4111.762997837952104.1041666666671.073568920596691.07727962142328
7090.288.6155270963641104.5791666666670.8473535401062751.01788030783717
71103.2105.486639890568104.8291666666671.006271853958280.97832294314294
72207.3212.900640703917105.252.022808937804440.973693640914375
73106.4105.593437689084105.6958333333330.9990312234548881.00763837534384
7475.581.4217962235902106.550.7641651452237470.927270135292416
7597.386.1712484484075106.9250.8059036562862521.12914692257541
766065.5039203331687106.9291666666670.6125917032287920.915975710992954
7767.564.3673985904468107.750.5973772490992741.04866751613632
7871.272.0519336633163109.23750.6595897348741620.988176116587
7973.783.3884011756706110.1166666666670.7572732057727010.88381596194343
80213.3205.986602567949111.11.85406482959451.03550423833821
81114.6119.559792123785111.3666666666671.073568920596690.958516219912376
8296.194.172754063561111.13750.8473535401062751.02046500556985
83117112.354445293833111.6541666666671.006271853958281.0413473155781
84229.2226.445032216632111.9458333333332.022808937804441.0121661656977
85105.6112.632445184343112.7416666666670.9990312234548880.937562882765855
8699.985.3922709573153111.7458333333330.7641651452237471.16989510736793
8779.388.8172987865473110.2083333333330.8059036562862520.892844086494681
8872.567.4361366637695110.0833333333330.6125917032287921.07509124316357
8967.465.4302322794692109.5291666666670.5973772490992741.03010485599558
9078.371.9090225540935109.0208333333330.6595897348741621.08887587703058
9185.782.3629270428534108.76250.7572732057727011.04051668726404
92177.4198.956606755737107.3083333333331.85406482959450.891651716888184
93113.6114.545330623831106.6958333333331.073568920596690.991747104673032
9494.190.7233190273785107.0666666666670.8473535401062751.03721954850001
95105.7107.360821218565106.6916666666671.006271853958280.984530472105981
96228.3215.176300758947106.3752.022808937804441.06099044920265
97100.3106.172043272668106.2750.9990312234548880.94469313115141
9870.380.4793258778143105.3166666666670.7641651452237470.873516263129878
9994.283.4815449955521103.58750.8059036562862521.12839310778231
10066.562.9182728524572102.7083333333330.6125917032287921.0569266603351
10164.461.2834385419718102.58750.5973772490992741.0508548725753
10273.767.7206277376426102.6708333333330.6595897348741621.08829469634455
10387.9NANA0.757273205772701NA
104152.2NANA1.8540648295945NA
10597.3NANA1.07356892059669NA
10689.3NANA0.847353540106275NA
107107.6NANA1.00627185395828NA
108228.4NANA2.02280893780444NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292243102z21n78q9arhlb6x/17d8s1292243181.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292243102z21n78q9arhlb6x/17d8s1292243181.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292243102z21n78q9arhlb6x/27d8s1292243181.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292243102z21n78q9arhlb6x/27d8s1292243181.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292243102z21n78q9arhlb6x/3z47d1292243181.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292243102z21n78q9arhlb6x/3z47d1292243181.ps (open in new window)


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