Home » date » 2010 » Aug » 15 »

Classical Decomposition omzet product A

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 15 Aug 2010 13:23:32 +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/Aug/15/t1281878579hdz3zrcxjxulmfo.htm/, Retrieved Sun, 15 Aug 2010 15:23:05 +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/Aug/15/t1281878579hdz3zrcxjxulmfo.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:
Sebastien Delforge
 
Dataseries X:
» Textbox « » Textfile « » CSV «
75 74 73 71 91 90 75 65 66 66 67 69 75 79 75 77 100 100 94 83 83 83 84 88 89 98 94 84 111 98 98 83 79 78 80 94 98 104 94 90 115 104 114 99 96 98 104 111 117 125 117 118 151 145 155 133 124 125 131 133 136 141 130 137 177 183 191 166 156 153 164 164 168 173 164 165 205 207 215 190 169 175 188 188 196 201 194 197 237 236 244 222 195 199 207 204 212 222 214 217 258 256 251 223 198 206 214 212 227 238 228 235 275 278 278 251 225 232 238 239
 
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
175NANA0.982705774643998NA
274NANA1.02106199604345NA
373NANA0.954079594210181NA
471NANA0.943324478234067NA
591NANA1.16817539239470NA
690NANA1.12759139926081NA
77582.82433811151273.51.126861743013770.905530931005116
86571.917294150118873.70833333333330.9757009946878760.903815984293294
96667.0531287247342740.9061233611450570.984294115058262
106667.34502408962874.33333333333330.9059868711609150.980027862372757
116770.045867672588274.95833333333330.9344640489950620.956516097611563
126972.259769225416875.750.9539243462101220.954888186602869
137575.627398573644376.95833333333330.9827057746439980.991704083632688
147980.153366689410478.51.021061996043450.985610502252767
157576.28661422038979.95833333333330.9540795942101810.983134469480162
167776.763029416297281.3750.9433244782340671.00308704053898
1710096.715187695344382.79166666666671.168175392394701.03396376911352
1810095.046558362692484.29166666666661.127591399260811.05211594951608
199496.534489318179685.66666666666671.126861743013770.973745245496396
208384.926640745957287.04166666666670.9757009946878760.977314059180553
218380.305182881480688.6250.9061233611450571.03355720044242
228381.274572233727189.70833333333330.9059868711609151.02122961362763
238484.530060432011790.45833333333330.9344640489950620.993729326238469
248886.648128114086190.83333333333330.9539243462101221.01560185909768
258989.344333344716890.91666666666670.9827057746439980.996145996821217
269893.001730139623891.08333333333331.021061996043451.05374383737671
279486.741736440275690.91666666666670.9540795942101811.08367671501160
288485.410170466776190.54166666666670.9433244782340670.98348943153878
29111105.33048121425590.16666666666671.168175392394701.05382600288526
3098101.76512378328890.251.127591399260810.963001825740358
3198102.40356089637690.8751.126861743013770.956997970990166
328389.276641013940691.50.9757009946878760.929694476151264
337983.13681838505991.750.9061233611450570.95024083835036
347883.3507921468042920.9059868711609150.935803943682023
358086.360052527960392.41666666666670.9344640489950620.926354230436565
369488.555976806506492.83333333333330.9539243462101221.06147550272512
379892.128666372874893.750.9827057746439981.06372971473789
3810497.085978123797695.08333333333331.021061996043451.07121545263093
399492.02892752485796.45833333333330.9540795942101811.02141796637379
409092.4457988669386980.9433244782340670.973543428723474
41115116.62284334073799.83333333333331.168175392394700.98608468723408
42104114.497509999941101.5416666666671.127591399260810.90831669614521
43114116.113712103044103.0416666666671.126861743013770.981796188712251
4499102.164024985443104.7083333333330.9757009946878760.96902994977054
459696.5398931019963106.5416666666670.9061233611450570.994407564741906
469898.4505733328195108.6666666666670.9059868711609150.995423354912355
47104104.036997454784111.3333333333330.9344640489950620.999644381751793
48111109.264084488818114.5416666666670.9539243462101221.01588733863743
49117115.918335334048117.9583333333330.9827057746439981.00933126466003
50125123.633590020927121.0833333333331.021061996043451.01105209335781
51117117.987843150659123.6666666666670.9540795942101810.99162758531489
52118118.819579070899125.9583333333330.9433244782340670.993102323057294
53151149.769820099937128.2083333333331.168175392394701.00821380368383
54145146.868779753721130.251.127591399260810.987275854290788
55155148.698797505192131.9583333333331.126861743013771.04237561164264
56133130.174774374607133.4166666666670.9757009946878761.02170332646218
57124121.986857494153134.6250.9061233611450571.01650294586811
58125123.176465024919135.9583333333330.9059868711609151.01480424831734
59131128.800294753153137.8333333333330.9344640489950621.01707841780225
60133134.026370642522140.50.9539243462101220.992342024650807
61136141.100170809301143.5833333333330.9827057746439980.963854254888226
62141149.543038170530146.4583333333331.021061996043450.942872377911785
63130142.316872803019149.1666666666670.9540795942101810.91345458510695
64137143.070879198833151.6666666666670.9433244782340670.957567331431601
65177180.142380302199154.2083333333331.168175392394700.982556129785077
66183176.890900759040156.8751.127591399260811.03453597225604
67191179.734448010696159.51.126861743013771.06267886937641
68166158.226177971884162.1666666666670.9757009946878761.04913107380687
69156149.434844308839164.9166666666670.9061233611450571.04393323204856
70153151.752800919453167.50.9059868711609151.00821862313572
71164158.703144320995169.8333333333330.9344640489950621.03337587104318
72164164.0749875481411720.9539243462101220.999542967826714
73168170.9908047880561740.9827057746439980.982508972972185
74173179.7069113036461761.021061996043450.962678612330531
75164169.388881288733177.5416666666670.9540795942101810.968186334027752
76165168.8550816038981790.9433244782340670.977169288793208
77205211.342398074074180.9166666666671.168175392394700.969989939870698
78207206.25526011479182.9166666666671.127591399260811.00361076796197
79215208.563327602798185.0833333333331.126861743013771.03086195675522
80190182.862628087753187.4166666666670.9757009946878761.03903133180839
81169172.01241805737189.8333333333330.9061233611450570.982487205915766
82175174.326973792546192.4166666666670.9059868711609151.00386071181534
83188182.29836155812195.0833333333330.9344640489950621.03127641078695
84188188.519298919775197.6250.9539243462101220.997245380591
85196196.582101002743200.0416666666670.9827057746439980.997038891131116
86201206.850142698468202.5833333333331.021061996043450.971717966339546
87194195.5863168130872050.9540795942101810.991889428468541
88197195.346777367638207.0833333333330.9433244782340671.00846301461759
89237244.002635086442208.8751.168175392394700.971300985811233
90236237.170057644524210.3333333333331.127591399260810.99506658784779
91244238.519068937915211.6666666666671.126861743013771.02297900577296
92222208.027582909078213.2083333333330.9757009946878761.06716617525201
93195194.741012366092214.9166666666670.9061233611450571.00132990801866
94199196.221656512268216.5833333333330.9059868711609151.01415920921837
95207203.985714695214218.2916666666670.9344640489950621.01477694312707
96204209.8633561662272200.9539243462101220.972061076915292
97212217.300814418154221.1250.9827057746439980.975606099625777
98222226.122687873788221.4583333333331.021061996043450.9817679158489
99214211.447890066831221.6250.9540795942101811.01206968739372
100217209.457339354556222.0416666666670.9433244782340671.03601048628177
101258260.065046731869222.6251.168175392394700.992059499122162
102256251.734779884976223.251.127591399260811.01694330881483
103251252.651793298212224.2083333333331.126861743013770.993462174652912
104223220.020574302116225.50.9757009946878761.01354157767897
105198205.463472139642226.750.9061233611450570.963674943960019
106206206.640505530619228.0833333333330.9059868711609150.996900387322543
107214214.498435246408229.5416666666670.9344640489950620.997676275606227
108212220.515511365573231.1666666666670.9539243462101220.961383617357166
109227229.175175861769233.2083333333330.9827057746439980.99050867593495
110238240.460100068231235.51.021061996043450.9897691963551
111228226.872176839896237.7916666666670.9540795942101811.00497118322667
112235226.3978747761762400.9433244782340671.03799560942137
113275282.795792908883242.0833333333331.168175392394700.972433136898205
114278275.367216294484244.2083333333331.127591399260811.00956099183100
115278NANA1.12686174301377NA
116251NANA0.975700994687876NA
117225NANA0.906123361145057NA
118232NANA0.905986871160915NA
119238NANA0.934464048995062NA
120239NANA0.953924346210122NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/15/t1281878579hdz3zrcxjxulmfo/1cwvt1281878610.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/15/t1281878579hdz3zrcxjxulmfo/1cwvt1281878610.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/15/t1281878579hdz3zrcxjxulmfo/2cwvt1281878610.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/15/t1281878579hdz3zrcxjxulmfo/2cwvt1281878610.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/15/t1281878579hdz3zrcxjxulmfo/3n5cw1281878610.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/15/t1281878579hdz3zrcxjxulmfo/3n5cw1281878610.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/15/t1281878579hdz3zrcxjxulmfo/4n5cw1281878610.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/15/t1281878579hdz3zrcxjxulmfo/4n5cw1281878610.ps (open in new window)


 
Parameters (Session):
 
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