Home » date » 2010 » May » 20 »

classical decomposition- Verkoopcijfers X - Lehaen Joni

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Thu, 20 May 2010 10:24:04 +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/May/20/t1274351248r6z2y163btlsyxz.htm/, Retrieved Thu, 20 May 2010 12:27:29 +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/May/20/t1274351248r6z2y163btlsyxz.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 «
154 96 73 49 36 59 95 169 210 278 298 245 200 118 90 79 78 91 167 169 289 347 375 203 223 104 107 85 75 99 135 211 335 460 488 326 346 261 224 141 148 145 223 272 445 560 612 467 518 404 300 210 196 186 247 343 464 680 711 610 613 392 273 322 189 257 324 404 677 858 895 664 628 308 324 248 272
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1154NANA1.32627607042365NA
296NANA0.851641354896029NA
373NANA0.668051351344534NA
449NANA0.529649653606985NA
536NANA0.442226831184652NA
659NANA0.488719413524296NA
795104.241412589297148.750.7007826056423330.911346053744423
8169131.275388780494151.5833333333330.8660278534172231.28737002091523
9210208.69219661221153.2083333333331.362146510387011.00626666166258
10278272.631695217002155.1666666666671.757024888616561.01969068482197
11298293.138209776579158.1666666666671.853350114498921.01658531730519
12245186.099165583822161.251.154103352457811.31650241005324
13200219.609212660983165.5833333333331.326276070423650.910708606331308
14118143.572538412889168.5833333333330.8516413548960290.82188419390241
1590114.821326012342171.8750.6680513513445340.783826516603076
167994.2997070776102178.0416666666670.5296496536069850.837754458080996
177881.425015291874184.1250.4422268311846520.957936571708377
189190.6981778265507185.5833333333330.4887194135242961.00332776446762
19167129.498785667656184.7916666666670.7007826056423331.28958738214416
20169160.359490857756185.1666666666670.8660278534172231.05388211883205
21289252.394397153793185.2916666666671.362146510387011.14503334170252
22347327.245885504833186.251.757024888616561.0603647451967
23375345.418127589736186.3751.853350114498921.08564076418537
24203215.336450512754186.5833333333331.154103352457810.942710811460956
25223246.134734069456185.5833333333331.326276070423650.906007845024717
26104158.4052920106611860.8516413548960290.656543721992573
27107126.70707297168189.6666666666670.6680513513445340.844467459396804
2885103.965813255938196.2916666666670.5296496536069850.817576444968033
297590.9697443982761205.7083333333330.4422268311846520.824449936581566
3099105.339396923383215.5416666666670.4887194135242960.939819316338087
31135158.230872498992225.7916666666670.7007826056423330.85318369208171
32211205.645530692698237.4583333333330.8660278534172231.0260373726055
33335339.004212772567248.8751.362146510387010.988188309697339
34460449.944790226556256.0833333333331.757024888616561.02234765240504
35488484.573832020029261.4583333333331.853350114498921.00707047668193
36326307.472368150636266.4166666666671.154103352457811.06025787605177
37346360.7470911552342721.326276070423650.959120692815544
38261236.933721943366278.2083333333330.8516413548960291.1015738825999
39224190.617318916974285.3333333333330.6680513513445341.17512931811598
40141155.761135631587294.0833333333330.5296496536069850.905232229004153
41148134.17899102861303.4166666666670.4422268311846521.10300426963595
42145153.681892244494314.4583333333330.4887194135242960.943507383220645
43223229.506303347864327.50.7007826056423330.971650872969696
44272294.990737570242340.6250.8660278534172230.922062849296184
45445476.410742007857349.751.362146510387010.934067939199955
46560625.134813495698355.7916666666671.757024888616560.895806773051927
47612668.44160796261360.6666666666671.853350114498920.915562395742177
48467420.526409051816364.3751.154103352457811.11051289514247
49518486.85384085135367.0833333333331.326276070423651.06397435233167
50404315.994427722881371.0416666666670.8516413548960291.27850355751937
51300250.380079389337374.7916666666670.6680513513445341.19817838835934
52210201.575830668592380.5833333333330.5296496536069851.04179156451181
53196172.339481336252389.7083333333330.4422268311846521.13729018145055
54186195.385948865234399.7916666666670.4887194135242960.95196200689074
55247287.116473386711409.7083333333330.7007826056423330.860278050529415
56343357.813841436883413.1666666666670.8660278534172230.958599026305426
57464560.580045128854411.5416666666671.362146510387010.827714086564294
58680729.311747516588415.0833333333331.757024888616560.932385913589762
59711777.403150110858419.4583333333331.853350114498920.91458337916255
60610487.175877656254422.1251.154103352457811.25211454010128
61613568.032988661864428.2916666666671.326276070423651.07916267582287
62392369.647833081331434.0416666666670.8516413548960291.06046881631185
63273297.589041551017445.4583333333330.6680513513445340.917372489850902
64322244.565727553025461.750.5296496536069851.31661947576112
65189210.868494003215476.8333333333330.4422268311846520.896293212949671
66257237.884174532951486.750.4887194135242961.08035770140901
67324343.120683287627489.6250.7007826056423330.94427417460113
68404421.539057650834486.750.8660278534172230.95839280528695
69677661.151862479095485.3751.362146510387011.023970495162
70858851.132139794003484.4166666666671.757024888616561.00806908808268
71895898.488690924788484.7916666666671.853350114498920.996117156554083
72664NANA1.15410335245781NA
73628NANANANA
74308NANANANA
75324NANANANA
76248NANANANA
77272NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/20/t1274351248r6z2y163btlsyxz/1n6sy1274351039.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/20/t1274351248r6z2y163btlsyxz/1n6sy1274351039.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/20/t1274351248r6z2y163btlsyxz/2n6sy1274351039.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/20/t1274351248r6z2y163btlsyxz/2n6sy1274351039.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/20/t1274351248r6z2y163btlsyxz/3xf911274351039.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/20/t1274351248r6z2y163btlsyxz/3xf911274351039.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/20/t1274351248r6z2y163btlsyxz/4xf911274351039.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/20/t1274351248r6z2y163btlsyxz/4xf911274351039.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