Home » date » 2010 » Jun » 02 »

Jeroen Cornelissen - aantal liter rose wijn australie - opgave 9

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Wed, 02 Jun 2010 17:24:35 +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/Jun/02/t1275499513i1hgxl2v2239k9g.htm/, Retrieved Wed, 02 Jun 2010 19:25:14 +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/2010/Jun/02/t1275499513i1hgxl2v2239k9g.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:
KDGP2W52
 
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
 
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
1112NANA0.676922153520202NA
2118NANA0.810835078416293NA
3129NANA0.90114617724239NA
499NANA0.840365709528715NA
5116NANA0.886018527075763NA
6168NANA0.923026411596705NA
7118159.87508855117147.0833333333331.086969440574520.738076213557392
8129156.39559348251148.1251.055835230261670.82483142349165
9205147.690071580139148.3750.9953838017195541.38804184876276
10147151.576118831304148.0833333333331.02358662125810.969809763790052
11150176.566117390188147.4166666666671.197735109486860.849540116853334
12267232.515754168701145.1251.602175739319221.14830928749146
13126100.01524818261147.750.6769221535202021.25980790219054
14129126.186209078536155.6250.8108350784162931.02229871982059
15124140.165778318577155.5416666666670.901146177242390.884666724556444
1697127.455465945188151.6666666666670.8403657095287150.761050138420226
17102134.305641729234151.5833333333330.8860185270757630.759461767106077
18127138.492421173322150.0416666666670.9230264115967050.91701768893953
19222159.558055797669146.7916666666671.086969440574521.3913431001034
20214151.072424196607143.0833333333331.055835230261671.41653912775966
21118138.524245739305139.1666666666670.9953838017195540.851836437514844
22141140.657861537884137.4166666666671.02358662125811.00243241620749
23154165.836407034369138.4583333333331.197735109486860.92862600410828
24226223.102971700201139.251.602175739319221.01298516231192
258991.1306449176572134.6250.6769221535202020.976619885444876
2677102.334143855123126.2083333333330.8108350784162930.752437037134066
2782109.639451564491121.6666666666670.901146177242390.74790596660151
2897100.808869905549119.9583333333330.8403657095287150.962216916932831
29127104.476351317684117.9166666666670.8860185270757631.2155860957838
30121105.878821296905114.7083333333330.9230264115967051.14281589573699
31117121.468834984203111.751.086969440574520.963210028442405
32117118.737470269844112.4583333333331.055835230261670.985367127445994
33106114.593560172964115.1250.9953838017195540.925008349858466
34112118.736048065941161.02358662125810.943268719351354
35134137.040858777122114.4166666666671.197735109486860.977810568291407
36169180.712071930713112.7916666666671.602175739319220.935189321855577
377575.7588710148026111.9166666666670.6769221535202020.989983073867953
3810890.7121743978228111.8750.8108350784162931.19057889105778
39115101.041015123303112.1250.901146177242391.13815166899959
408593.5957308987606111.3750.8403657095287150.908161079397325
4110198.0896344350125110.7083333333330.8860185270757631.02967047009351
42108102.032877915252110.5416666666670.9230264115967051.05848234614831
43109120.5177367237110.8751.086969440574520.90443118965878
44124116.62579980932110.4583333333331.055835230261671.06322957872732
45105108.870103313076109.3750.9953838017195540.96445210213545
4695111.912137257553109.3333333333331.02358662125810.848880222717654
47135130.5531269340681091.197735109486861.03406178902308
48164172.567678589174107.7083333333331.602175739319220.95035177700008
498871.6973380936814105.9166666666670.6769221535202021.22738169002895
508585.745809542523105.750.8108350784162930.991302087571368
5111295.5965903024636106.0833333333330.901146177242391.17158990342267
528789.253841399529106.2083333333330.8403657095287150.974747961945526
539194.7301475198503106.9166666666670.8860185270757630.960623438076367
548798.6484477393978106.8750.9230264115967050.881919604349277
5587114.72056637397105.5416666666671.086969440574520.758364456782708
56142110.114815889373104.2916666666671.055835230261671.28956306972043
5795104.18350457998104.6666666666670.9953838017195540.911852604526948
58108107.903089657625105.4166666666671.02358662125811.00089812388767
59139127.409072271665106.3751.197735109486861.09097411606311
60159170.76523088244106.5833333333331.602175739319220.931102890081065
616171.8101584526014106.0833333333330.6769221535202020.849461988588471
628284.6984808995687104.4583333333330.8108350784162930.96814014996599
6312492.4801264395004102.6250.901146177242391.34082861663386
649386.0674547508992102.4166666666670.8403657095287151.08054781298187
6510890.1523851299588101.750.8860185270757631.19797163263416
667592.148803424404399.83333333333330.9230264115967050.813900964666648
6787106.97590910987698.41666666666671.086969440574520.813267218048518
68103102.98792808510797.54166666666671.055835230261671.00011721679538
699094.022294937426294.45833333333330.9953838017195540.957219774946962
7010893.316980304697191.16666666666671.02358662125811.15734563685366
71123106.49861348520788.91666666666671.197735109486861.15494461359429
72129139.78983325560287.251.602175739319220.922813891365957
735759.484534240587787.8750.6769221535202020.958232265372728
746572.535954723324289.45833333333330.8108350784162930.896107320127393
756781.516181283051390.45833333333330.901146177242390.821922702283535
767175.527868143893389.8750.8403657095287150.940050364783673
777678.19113501443688.250.8860185270757630.97197719391039
786781.30324308814388.08333333333330.9230264115967050.824075368400292
7911096.332666670917288.6251.086969440574521.14187641431927
8011893.617390416534888.66666666666671.055835230261671.26044957539383
819988.381786727682188.79166666666670.9953838017195541.1201402875576
828591.653652045152789.54166666666671.02358662125810.92740439800615
83107108.84417807461990.8751.197735109486860.98305671366865
84141147.19989604995391.8751.602175739319220.957881111221376
855861.740941418988491.20833333333330.6769221535202020.939409064179934
866571.657550055039988.3750.8108350784162930.907092134046918
877078.02423984623786.58333333333330.901146177242390.897157090385623
888673.356923394277487.29166666666670.8403657095287151.17235014802582
899377.489703680501187.45833333333330.8860185270757631.20015944806615
907480.918648749977887.66666666666670.9230264115967050.914498711275382
918796.242085884202788.54166666666671.086969440574520.903970432484987
927395.90503341543590.83333333333331.055835230261670.761169642512749
9310192.487744909775392.91666666666670.9953838017195541.09203657304574
9410094.255268040850492.08333333333331.02358662125811.06094865654257
9596107.99578237206590.16666666666671.197735109486860.888923603231673
96157143.32797134659889.45833333333331.602175739319221.09538981487668
976360.58453274005889.50.6769221535202021.03986937178018
9811572.434600338522289.33333333333330.8108350784162931.5876390490532
997080.69013062057989.54166666666670.901146177242390.867516255849849
1006675.843005284966590.250.8403657095287150.870218680707823
1016780.701520841150791.08333333333330.8860185270757630.830219793898058
1028383.380052514235790.33333333333330.9230264115967050.995441925223413
1037997.555507291563589.751.086969440574520.809795389243307
1047792.693534590055887.79166666666671.055835230261670.830694398919389
10510285.893327223383286.29166666666670.9953838017195541.18751948838503
10611689.478530474979287.41666666666671.02358662125811.29640036983438
107100105.400689634844881.197735109486860.948760395652492
108135141.92606757469488.58333333333331.602175739319220.951199468194602
1097160.38709711194889.20833333333330.6769221535202021.17574785667172
1106072.468385133456289.3750.8108350784162930.827947247472195
1118979.864079958106988.6250.901146177242391.11439335489353
1127472.93674053951386.79166666666660.8403657095287151.01457783076982
1137376.160675889887485.95833333333330.8860185270757630.958499897053735
1149179.76486573548286.41666666666670.9230264115967051.14085317089076
1158692.754725595692785.33333333333331.086969440574520.927176480202898
1167489.262070091705484.54166666666671.055835230261670.829019536786167
1178783.861085294872584.250.9953838017195541.03742993182226
1188785.682730087813783.70833333333331.02358662125811.01537380882748
119109100.21050416040183.66666666666671.197735109486861.08771032451379
120137132.7803143960882.8751.602175739319221.03177945181944
1214355.451206409196581.91666666666670.6769221535202020.775456528081389
1226966.015489301059981.41666666666670.8108350784162931.04520924907986
1237373.067935871403981.08333333333330.901146177242390.999070236888539
1247767.2292567622972800.8403657095287151.14533469070243
1256970.106215954869779.1250.8860185270757630.984220857739892
1267672.880627082323178.95833333333330.9230264115967051.04280112620537
1277886.097037772173879.20833333333331.086969440574520.905954513863766
1287083.498969459860479.08333333333331.055835230261670.838333699838659
1298377.847308159483578.20833333333330.9953838017195541.06618972399097
1306579.242664262398277.41666666666671.02358662125810.82026520189634
13111091.67664150530776.54166666666671.197735109486861.19986943450183
132132121.29805493095975.70833333333331.602175739319221.08822849694608
1335451.4460836675353760.6769221535202021.04964258016157
1345561.724820344440376.1250.8108350784162930.891051601172525
1356667.5859632931793750.901146177242390.976534132001646
1366562.537214884095274.41666666666670.8403657095287151.03938111283768
1376064.53168272201872.83333333333330.8860185270757630.929775847601262
1386564.842605414668570.250.9230264115967051.00242733283657
1399674.276245105925868.33333333333331.086969440574521.2924724434184
1405570.916932965908967.16666666666671.055835230261670.775555254574243
1417166.110074164207166.41666666666670.9953838017195541.07396642489989
1426367.044923692405865.51.02358662125810.939668457063753
1437477.503442709712464.70833333333331.197735109486860.954796295658317
144106102.53924731643641.602175739319221.03375051772021
1453442.223019325822662.3750.6769221535202020.805247955804203
1464749.494724578327961.04166666666670.8108350784162930.949596151921608
1475653.956127362388159.8750.901146177242391.03788026935077
1485349.021333055841758.33333333333330.8403657095287151.08116194921966
1495350.650725797831157.16666666666670.8860185270757631.04638184675864
1505551.574100747965955.8750.9230264115967051.0664267374971
1516760.009771198385255.20833333333331.086969440574521.11648484341835
1525257.938958260609254.8751.055835230261670.897496288526698
1534653.916622593142554.16666666666670.9953838017195540.853169167273667
1545154.676585352203753.41666666666671.02358662125810.932757590319134
1555862.980904507184252.58333333333331.197735109486860.920914052502754
1569183.446653089542552.08333333333331.602175739319221.09051707445177
1573334.974311265210451.66666666666670.6769221535202020.943549674209759
1584041.622867358703151.33333333333330.8108350784162930.961010197958797
1594646.333932613212951.41666666666670.901146177242390.992792914514713
1604543.243818802831851.45833333333330.8403657095287151.04061114965761
1614145.260779758120251.08333333333330.8860185270757630.90586154766024
1625546.228239447468350.08333333333330.9230264115967051.18974896421265
1635753.669116128367149.3751.086969440574521.0620633263955
1645451.779919417416149.04166666666671.055835230261671.04287531938177
1654648.44201168368548.66666666666670.9953838017195540.949588970424458
1665249.771899458675348.6251.02358662125811.04476623487465
1674858.539303476170448.8751.197735109486860.819961925572609
1687777.839038001925248.58333333333331.602175739319220.989220858537531
16930NANANANA
17035NANANANA
17142NANANANA
17248NANANANA
17344NANANANA
17445NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jun/02/t1275499513i1hgxl2v2239k9g/1fhb41275499472.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/02/t1275499513i1hgxl2v2239k9g/1fhb41275499472.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/02/t1275499513i1hgxl2v2239k9g/2fhb41275499472.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/02/t1275499513i1hgxl2v2239k9g/2fhb41275499472.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/02/t1275499513i1hgxl2v2239k9g/3p8ap1275499472.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/02/t1275499513i1hgxl2v2239k9g/3p8ap1275499472.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/02/t1275499513i1hgxl2v2239k9g/4p8ap1275499472.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/02/t1275499513i1hgxl2v2239k9g/4p8ap1275499472.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