Home » date » 2009 » Jun » 01 »

Opgave 9 - Aantal maandelijkse passagiers - William Baeyaert 202

*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 02:57:22 -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/t1243846678g0gtzc2iodeyg31.htm/, Retrieved Mon, 01 Jun 2009 10:57:58 +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/t1243846678g0gtzc2iodeyg31.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 «
29133 112 118 132 129 121 135 148 148 136 119 104 118 115 126 141 135 125 149 170 170 158 133 114 140 145 150 178 163 172 178 199 199 184 162 146 166 171 180 193 181 183 218 230 242 209 191 172 194 196 196 236 235 229 243 264 272 237 211 180 201 204 188 235 227 234 264 302 293 259 229 203 229 242 233 267 269 270 315 364 347 312 274 237 278 284 277 317 313 318 374 413 405 355 306 271 306 315 301 356 348 355 422 465 467 404 347 305 336 340 318 362 348 363 435 491 505 404 359 310 337 360 342 406 396 420 472 548 559 463 407 362 405 417 391 419 461 472 535 622 606 508 461 390 432
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
129133NANA0.903660146224586NA
2112NANA0.915127488798271NA
3118NANA0.888379304571098NA
4132NANA1.01278600903645NA
5129NANA0.981156474638859NA
6121NANA0.986657929746024NA
71351494.247379010221335.6251.118762660934180.0903464860613798
8148143.976272307550126.7916666666671.135534188426291.02794715843076
9148156.117826310737127.251.226859145860410.948001925836583
10136137.602999026133127.9583333333331.075373486365090.988350551677815
11119120.777617506361128.5833333333330.9392944977811580.985281896239865
12104105.3167181226691290.8164086676175850.987497539363742
13118117.24990397264129.750.9036601462245861.00639741272227
14115120.110482904773131.250.9151274887982710.95745181618473
15126118.228479116670133.0833333333330.8883793045710981.06573306991170
16141136.641712385834134.9166666666671.012786009036451.03189573328721
17135133.846095748651136.4166666666670.9811564746388591.00862112745908
18125135.583243845933137.4166666666670.9866579297460240.921942833452496
19149155.228319204618138.751.118762660934180.959876398607344
20170160.015692719072140.9166666666671.135534188426291.06239580075722
21170175.645334382349143.1666666666671.226859145860410.967859468614977
22158156.690878409113145.7083333333331.075373486365091.00835480408419
23133139.406958379020148.4166666666670.9392944977811580.95404133012069
24114123.719930171882151.5416666666670.8164086676175850.921436019577623
25140139.803755122162154.7083333333330.9036601462245861.00140371678620
26145143.789406677428157.1250.9151274887982711.00841921077877
27150141.733514883447159.5416666666670.8883793045710981.05832413824882
28178163.902535795731161.8333333333331.012786009036451.08601126355872
29163161.032306400103164.1250.9811564746388591.01221924745342
30172164.442988291004166.6666666666670.9866579297460241.04595520786586
31178189.164119919622169.0833333333331.118762660934180.940981831415147
32199194.460229768003171.251.135534188426291.02334549453846
33199212.962300068936173.5833333333331.226859145860410.934437691251379
34184188.683239628474175.4583333333331.075373486365090.9751793554229
35162166.098577024301176.8333333333330.9392944977811580.975324430240593
36146145.354759863748178.0416666666670.8164086676175851.00443907125475
37166162.809436344796180.1666666666670.9036601462245861.01959692095762
38171167.582721386183183.1250.9151274887982711.02039159279400
39180165.42362967201186.2083333333330.8883793045710981.08811540622637
40193191.458755124931189.0416666666671.012786009036451.00805000990455
41181187.687057294458191.2916666666670.9811564746388590.964371239067555
42183191.000530900001193.5833333333330.9866579297460240.958112520094565
43218219.091021099611195.8333333333331.118762660934180.995020238190798
44230224.883083232924198.0416666666671.135534188426291.02275367579239
45242245.065114385617199.751.226859145860410.987492653153424
46209217.449480388740202.2083333333331.075373486365090.96114278878186
47191193.729490167364206.250.9392944977811580.985910817372173
48172171.785990477867210.4166666666670.8164086676175851.00124579147309
49194192.818483700671213.3750.9036601462245861.00612760912052
50196197.515016332293215.8333333333330.9151274887982710.992329614424127
51196194.110878048785218.50.8883793045710981.00973217972225
52236223.741309162968220.9166666666671.012786009036451.05478957320350
53235218.716130804912222.9166666666670.9811564746388591.07445207235132
54229221.093597757255224.0833333333330.9866579297460241.03576043052782
55243251.395292934086224.7083333333331.118762660934180.966605210319961
56264255.873703792058225.3333333333331.135534188426291.03175901269849
57272276.452260867212225.3333333333331.226859145860410.983895010106823
58237241.914227203546224.9583333333331.075373486365090.979686076092535
59211210.949889293352224.5833333333330.9392944977811581.00023754791631
60180183.249728852331224.4583333333330.8164086676175850.982266119176911
61201203.813015479737225.5416666666670.9036601462245860.986198057699527
62204208.6490674460062280.9151274887982710.977718244788183
63188204.734413899281230.4583333333330.8883793045710980.91826281873885
64235235.219550598715232.251.012786009036450.999066614156197
65227229.508852025940233.9166666666670.9811564746388590.98906860452748
66234232.481274696407235.6250.9866579297460241.00653267797837
67264265.985822637102237.751.118762660934180.99253410344426
68302273.095972316524240.51.135534188426291.10583835213057
69293299.302512458862243.9583333333331.226859145860410.978942667714062
70259265.796480046571247.1666666666671.075373486365090.974429759019458
71229235.058448069735250.250.9392944977811580.974225780355968
72203206.959597241058253.50.8164086676175850.980867776639293
73229232.353615097997257.1250.9036601462245860.985566761693886
74242239.610880817014261.8333333333330.9151274887982711.00997082926635
75233236.901147885626266.6666666666670.8883793045710980.983532591882967
76267274.591606700006271.1251.012786009036450.9723530999682
77269270.022438124569275.2083333333330.9811564746388590.99621350680458
78270274.784233434268278.50.9866579297460240.982589126841544
79315315.444455272567281.9583333333331.118762660934180.998591018909546
80364324.478894342813285.751.135534188426291.12179869429484
81347354.971246202279289.3333333333331.226859145860410.977543966483031
82312315.353274876562293.251.075373486365090.989366608360499
83274279.127014923967297.1666666666670.9392944977811580.981631964482678
84237245.7390089528933010.8164086676175850.964437844076402
85278276.030522165518305.4583333333330.9036601462245861.00713500021313
86284283.651391215431309.9583333333330.9151274887982711.00122900431785
87277279.321259678896314.4166666666670.8883793045710980.991689641950045
88317322.698942129238318.6251.012786009036450.982339755774733
89313315.687095715053321.750.9811564746388590.991488104038696
90318320.170498202585324.50.9866579297460240.993220805118617
91374365.928620347223327.0833333333331.118762660934181.02205725161677
92413374.205829010982329.5416666666671.135534188426291.10367067528464
93405407.112759901346331.8333333333331.226859145860410.994810381522166
94355359.667623960523334.4583333333331.075373486365090.987022396096916
95306317.051030271882337.5416666666670.9392944977811580.965144316792142
96271278.021168351605340.5416666666670.8164086676175850.974745921710804
97306310.934395313443344.0833333333330.9036601462245860.984130429480249
98315318.693147973998348.250.9151274887982710.988411586513623
99301313.5978945135983530.8883793045710980.959827872782318
100356362.197596481659357.6251.012786009036450.982888907762333
101348354.565421022617361.3750.9811564746388590.981483188620927
102355359.636815392426364.50.9866579297460240.987106950139779
103422410.772357006334367.1666666666671.118762660934181.02733300525744
104465419.532568698998369.4583333333331.135534188426291.10837640434448
105467455.420338769600371.2083333333331.226859145860411.02542631552575
106404400.218165842206372.1666666666671.075373486365091.00944943153651
107347349.808925881999372.4166666666670.9392944977811580.99197011375591
108305304.316330854455372.750.8164086676175851.00224657396343
109336337.630022133161373.6250.9036601462245860.99517216471787
110340343.401590171551375.250.9151274887982710.990094425101957
111318335.733345519161377.9166666666670.8883793045710980.94718026744785
112362384.352290429331379.51.012786009036450.941844263749897
113348372.8394603627663800.9811564746388590.93337759812602
114363375.628896003726380.7083333333330.9866579297460240.966379327740535
115435426.201958705052380.9583333333331.118762660934181.02064289268327
116491433.584804280773381.8333333333331.135534188426291.13241975999243
117505470.704958961777383.6666666666671.226859145860411.07285889044778
118404415.631852480106386.51.075373486365090.97201404942692
119359366.637952300579390.3333333333330.9392944977811580.979167589572623
120310322.243304514224394.7083333333330.8164086676175850.962006023576871
121337360.221525788775398.6250.9036601462245860.935535429933213
122360368.376944553337402.5416666666670.9151274887982710.97725985657573
123342361.718440177865407.1666666666670.8883793045710980.945486770958734
124406417.141237471886411.8751.012786009036450.97329145030252
125396408.488145607978416.3333333333330.9811564746388590.96942837694986
126420414.889659458203420.50.9866579297460241.01231734854147
127472476.033512227495425.51.118762660934180.99152683135979
128548489.084037740108430.7083333333331.135534188426291.12046183828064
129559533.837085842511435.1251.226859145860411.04713594245289
130463470.699936427718437.7083333333331.075373486365090.983641518020684
131407414.18973625075440.9583333333330.9392944977811580.982641442745947
132362363.982197646173445.8333333333330.8164086676175850.994554135726989
133405407.211853392454450.6250.9036601462245860.994568298113066
134417417.603177388278456.3333333333330.9151274887982710.998555620692232
135391409.87600164649461.3750.8883793045710980.953947043567653
136419471.156491287163465.2083333333331.012786009036450.889301129769695
137461460.489438763838469.3333333333330.9811564746388591.00110873603862
138472466.442536287433472.750.9866579297460241.01191457313649
139535531.45887905461475.0416666666671.118762660934181.00666301963322
140622NANA1.13553418842629NA
141606NANA1.22685914586041NA
142508NANA1.07537348636509NA
143461NANA0.939294497781158NA
144390NANA0.816408667617585NA
145432NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243846678g0gtzc2iodeyg31/1mf3p1243846637.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243846678g0gtzc2iodeyg31/1mf3p1243846637.ps (open in new window)


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243846678g0gtzc2iodeyg31/3iaji1243846637.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243846678g0gtzc2iodeyg31/3iaji1243846637.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243846678g0gtzc2iodeyg31/4zfu01243846637.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243846678g0gtzc2iodeyg31/4zfu01243846637.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