Home » date » 2009 » May » 29 »

Vincent Van Roy, decompositie, eigen gegevens

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Fri, 29 May 2009 03:53:13 -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/May/29/t1243590871n6vuts7solmr957.htm/, Retrieved Fri, 29 May 2009 11:54:36 +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/May/29/t1243590871n6vuts7solmr957.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 «
4,73 4,73 4,73 4,73 4,74 4,74 4,74 4,74 4,74 4,76 4,76 4,76 4,76 4,76 4,76 4,77 4,77 4,78 4,78 4,79 4,83 4,84 4,85 4,85 4,86 4,87 4,87 4,9 4,9 4,92 4,92 4,95 4,96 4,95 4,95 4,95 4,96 4,96 4,96 4,96 4,97 4,97 4,97 5,03 5,08 5,1 5,11 5,13 5,13 5,13 5,15 5,15 5,15 5,17 5,17 5,18 5,2 5,22 5,23 5,23 5,26 5,27 5,28 5,31 5,31 5,32 5,33 5,34 5,38 5,39 5,41 5,44 5,44 5,44 5,46 5,47 5,47 5,49 5,49 5,5 5,52 5,59 5,6 5,6
 
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
14.73NANA0.00625578703703723NA
24.73NANA-0.000896990740740406NA
34.73NANA-0.00325810185185144NA
44.73NANA-0.00110532407407399NA
54.74NANA-0.0110358796296295NA
64.74NANA-0.00936921296296321NA
74.744.726811342592594.74291666666667-0.01610532407407430.0131886574074072
84.744.739450231481484.74541666666667-0.005966435185185570.000549768518518512
94.744.758616898148154.747916666666670.0107002314814813-0.0186168981481476
104.764.762991898148154.750833333333330.0121585648148148-0.0029918981481476
114.764.764033564814814.753750.0102835648148148-0.00403356481481332
124.764.765005787037044.756666666666670.0083391203703703-0.00500578703703614
134.764.766255787037044.760.00625578703703723-0.00625578703703589
144.764.762853009259264.76375-0.000896990740740406-0.00285300925925824
154.764.766325231481484.76958333333333-0.00325810185185144-0.00632523148148145
164.774.775561342592594.77666666666667-0.00110532407407399-0.00556134259259267
174.774.772714120370374.78375-0.0110358796296295-0.00271412037037067
184.784.781880787037044.79125-0.00936921296296321-0.00188078703703631
194.784.783061342592594.79916666666667-0.0161053240740743-0.00306134259259228
204.794.801950231481484.80791666666667-0.00596643518518557-0.0119502314814808
214.834.827783564814814.817083333333330.01070023148148130.00221643518518633
224.844.839241898148154.827083333333330.01215856481481480.000758101851852544
234.854.848200231481484.837916666666670.01028356481481480.00179976851851826
244.854.857505787037044.849166666666670.0083391203703703-0.00750578703703741
254.864.867089120370374.860833333333330.00625578703703723-0.00708912037037113
264.874.872436342592594.87333333333333-0.000896990740740406-0.00243634259259284
274.874.882158564814814.88541666666667-0.00325810185185144-0.0121585648148148
284.94.894311342592594.89541666666667-0.001105324074073990.00568865740740865
294.94.893130787037044.90416666666667-0.01103587962962950.00686921296296372
304.924.903130787037044.9125-0.009369212962963210.0168692129629626
314.924.904728009259264.92083333333333-0.01610532407407430.0152719907407404
324.954.922783564814824.92875-0.005966435185185570.0272164351851849
334.964.946950231481484.936250.01070023148148130.0130497685185178
344.954.954658564814814.94250.0121585648148148-0.00465856481481453
354.954.958200231481484.947916666666670.0102835648148148-0.00820023148148152
364.954.961255787037044.952916666666670.0083391203703703-0.0112557870370367
374.964.963339120370374.957083333333330.00625578703703723-0.00333912037037098
384.964.961603009259264.9625-0.000896990740740406-0.00160300925925849
394.964.967575231481484.97083333333333-0.00325810185185144-0.0075752314814812
404.964.980978009259264.98208333333333-0.00110532407407399-0.0209780092592577
414.974.983964120370374.995-0.0110358796296295-0.0139641203703693
424.974.99979745370375.00916666666667-0.00936921296296321-0.0297974537037025
434.975.007644675925935.02375-0.0161053240740743-0.0376446759259261
445.035.031950231481485.03791666666667-0.00596643518518557-0.00195023148148010
455.085.063616898148155.052916666666670.01070023148148130.0163831018518525
465.15.080908564814815.068750.01215856481481480.0190914351851852
475.115.094450231481485.084166666666670.01028356481481480.0155497685185191
485.135.108339120370375.10.00833912037037030.0216608796296311
495.135.12292245370375.116666666666670.006255787037037230.00707754629629598
505.135.130353009259265.13125-0.000896990740740406-0.000353009259260517
515.155.139241898148155.1425-0.003258101851851440.0107581018518514
525.155.151394675925935.1525-0.00110532407407399-0.00139467592592624
535.155.151464120370375.1625-0.0110358796296295-0.00146412037037091
545.175.16229745370375.17166666666667-0.009369212962963210.00770254629629541
555.175.165144675925935.18125-0.01610532407407430.0048553240740743
565.185.186533564814815.1925-0.00596643518518557-0.0065335648148146
575.25.214450231481485.203750.0107002314814813-0.0144502314814803
585.225.227991898148155.215833333333330.0121585648148148-0.0079918981481475
595.235.239450231481485.229166666666670.0102835648148148-0.00945023148148127
605.235.25042245370375.242083333333330.0083391203703703-0.020422453703703
615.265.261255787037045.2550.00625578703703723-0.00125578703703866
625.275.267436342592595.26833333333333-0.0008969907407404060.00256365740740705
635.285.279241898148155.2825-0.003258101851851440.000758101851852544
645.315.295978009259265.29708333333333-0.001105324074073990.0140219907407415
655.315.300630787037045.31166666666667-0.01103587962962950.00936921296296234
665.325.31854745370375.32791666666667-0.009369212962963210.00145254629629665
675.335.328061342592595.34416666666667-0.01610532407407430.00193865740740673
685.345.352783564814815.35875-0.00596643518518557-0.0127835648148151
695.385.384033564814815.373333333333330.0107002314814813-0.00403356481481421
705.395.399658564814815.38750.0121585648148148-0.0096585648148153
715.415.411116898148155.400833333333330.0102835648148148-0.00111689814814842
725.445.42292245370375.414583333333330.00833912037037030.0170775462962967
735.445.434589120370375.428333333333330.006255787037037230.00541087962963083
745.445.440769675925935.44166666666667-0.000896990740740406-0.000769675925925917
755.465.450908564814825.45416666666667-0.003258101851851440.00909143518518452
765.475.467228009259265.46833333333333-0.001105324074073990.00277199074074019
775.475.47354745370375.48458333333333-0.0110358796296295-0.00354745370370413
785.495.48979745370375.49916666666667-0.009369212962963210.000202546296296902
795.49NANA-0.0161053240740743NA
805.5NANA-0.00596643518518557NA
815.52NANA0.0107002314814813NA
825.59NANA0.0121585648148148NA
835.6NANA0.0102835648148148NA
845.6NANA0.0083391203703703NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/29/t1243590871n6vuts7solmr957/19y0m1243590791.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/29/t1243590871n6vuts7solmr957/19y0m1243590791.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/29/t1243590871n6vuts7solmr957/2vhs11243590791.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/29/t1243590871n6vuts7solmr957/2vhs11243590791.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/29/t1243590871n6vuts7solmr957/3qo0y1243590791.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/29/t1243590871n6vuts7solmr957/3qo0y1243590791.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/29/t1243590871n6vuts7solmr957/4iopf1243590791.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/29/t1243590871n6vuts7solmr957/4iopf1243590791.ps (open in new window)


 
Parameters (Session):
par1 = additive ; par2 = 12 ;
 
Parameters (R input):
par1 = additive ; 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