Home » date » 2010 » Jun » 01 »

Decompositie van tijdreeksen voor witte wijn verkoop in Australiƫ

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Tue, 01 Jun 2010 18:47:17 +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/01/t1275418097o2gd4u25rg06gf3.htm/, Retrieved Tue, 01 Jun 2010 20:48:25 +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/01/t1275418097o2gd4u25rg06gf3.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 «
1954 2302 3054 2414 2226 2725 2589 3470 2400 3180 4009 3924 2072 2434 2956 2828 2687 2629 3150 4119 3030 3055 3821 4001 2529 2472 3134 2789 2758 2993 3282 3437 2804 3076 3782 3889 2271 2452 3084 2522 2769 3438 2839 3746 2632 2851 3871 3618 2389 2344 2678 2492 2858 2246 2800 3869 3007 3023 3907 4209 2353 2570 2903 2910 3782 2759 2931 3641 2794 3070 3576 4106 2452 2206 2488 2416 2534 2521 3093 3903 2907 3025 3812 4209
 
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
11954NANA0.779071606859315NA
22302NANA0.79920607921292NA
33054NANA0.949131913406112NA
42414NANA0.877488064859084NA
52226NANA0.956479894077186NA
62725NANA0.912968112749082NA
725892779.233819090222858.833333333330.9721566440005450.931551704004345
834703533.243928170902869.251.231417244287150.982100322124195
924002645.522832336762870.666666666670.9215708891094150.907193077551369
1031802919.819203435662883.833333333331.012478484691321.08910852982205
1140093716.541122581512920.291666666671.272660934866041.07869114528063
1239243861.26902213912935.51.315370131881831.0162462075295
1320722302.059214318422954.8750.7790716068593150.90006372864456
1424342401.847369807933005.291666666670.799206079212921.01338662506046
1529562902.999051478713058.583333333330.9491319134061121.01825730824621
1628282702.334181741663079.6250.8774880648590841.04650269352599
1726872933.125301845533066.583333333330.9564798940771860.91608769605217
1826292795.470320899663061.958333333330.9129681127490820.940449977359773
1931502998.333622731853084.208333333330.9721566440005451.05058355618544
2041193823.345307304223104.833333333331.231417244287151.07732879688658
2130302869.618153538533113.833333333330.9215708891094151.05588961244328
2230553158.553192805173119.6251.012478484691320.967214991648376
2338213971.921750177973120.958333333331.272660934866040.962002839010813
2440014129.056458154713139.083333333331.315370131881830.96898650830947
2525292461.671509773723159.750.7790716068593151.02735072082484
2624722506.976269477733136.833333333330.799206079212920.986048424189904
2731342941.3597996455430990.9491319134061121.06549358578222
2827892711.840302444303090.458333333330.8774880648590841.02845289137644
2927582955.243899396073089.708333333330.9564798940771860.933256304348898
3029932815.061094985733083.416666666670.9129681127490821.06320960682922
3132822982.5765837936730680.9721566440005451.10039085595766
3234373763.724189059983056.416666666671.231417244287150.913191250833504
3328042814.01670989563053.50.9215708891094150.99644042273794
3430763078.229899686323040.291666666671.012478484691320.99927559027136
3537823855.685384793533029.6251.272660934866040.980889160437171
3638894010.070268308233048.6251.315370131881830.969808442194878
3722712375.162100095383048.708333333330.7790716068593150.956145266846755
3824522432.083999804823043.1250.799206079212921.00818886197877
3930842893.7450153233048.833333333330.9491319134061121.06574697620888
4025222660.799746671663032.291666666670.8774880648590840.947835327763662
4127692894.905959411363026.6250.9564798940771860.956507754940349
4234382756.288772727513019.041666666670.9129681127490821.24732939234008
4328392928.783916158973012.666666666670.9721566440005450.969344301686578
4437463710.362775140873013.083333333331.231417244287151.00960478180136
4526322757.0329099192991.666666666670.9215708891094150.95464946774151
4628513010.604774229652973.51.012478484691320.946985809762928
4738713787.385914622392975.958333333331.272660934866041.02207699116554
4836183854.0344864137529301.315370131881830.938756519370593
4923892242.71992692932878.708333333330.7790716068593151.06522440511374
5023442303.478421558142882.208333333330.799206079212921.01759147299259
5126782755.290397454882902.958333333330.9491319134061120.971948366122758
5224922567.310705761462925.750.8774880648590840.97066552731913
5328582806.710542511662934.416666666670.9564798940771861.01827386782908
5422462702.880138131692960.541666666670.9129681127490820.830965446197145
5528002900.591373482962983.666666666670.9721566440005450.965320391419985
5638693683.88730438872991.583333333331.231417244287151.05024928297637
5730072774.273965302763010.3750.9215708891094151.08388718547912
5830233075.065904421663037.166666666671.012478484691320.983068361446564
5939073936.446326618583093.083333333331.272660934866040.99251956608186
6042094147.307218734573152.958333333331.315370131881831.01487538251007
6123532477.285403227863179.791666666670.7790716068593150.94983000220083
6225702538.078706060433175.750.799206079212921.01257695195320
6329032996.765375090623157.3750.9491319134061120.968711139060132
6429102764.489586335843150.458333333330.8774880648590841.05263554414651
6537823002.031707548013138.6250.9564798940771861.25981347581737
6627592848.955036171543120.541666666670.9129681127490820.968425252406783
6729313033.49328802323120.3750.9721566440005450.966212785626439
6836413828.886684903513109.333333333331.231417244287150.950929160258435
6927942835.558429428533076.8750.9215708891094150.985343828927233
7030703076.9221149769330391.012478484691320.997750311929173
7135763775.242608202212966.416666666671.272660934866040.947223892904438
7241063820.492548050762904.51.315370131881831.07473053496594
7324522260.346422034492901.333333333330.7790716068593151.08478947124972
7422062332.8825452225229190.799206079212920.94561125870552
7524882785.346241379412934.6250.9491319134061120.893246219460259
7624162577.584628520862937.458333333330.8774880648590840.93731161074871
7725342817.231821346512945.416666666670.9564798940771860.899464495892589
7825212701.967170018942959.541666666670.9129681127490820.933023919747451
793093NANA0.972156644000545NA
803903NANA1.23141724428715NA
812907NANA0.921570889109415NA
823025NANA1.01247848469132NA
833812NANA1.27266093486604NA
844209NANA1.31537013188183NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jun/01/t1275418097o2gd4u25rg06gf3/1v7d01275418035.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/01/t1275418097o2gd4u25rg06gf3/1v7d01275418035.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/01/t1275418097o2gd4u25rg06gf3/25yu21275418035.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/01/t1275418097o2gd4u25rg06gf3/25yu21275418035.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/01/t1275418097o2gd4u25rg06gf3/35yu21275418035.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/01/t1275418097o2gd4u25rg06gf3/35yu21275418035.ps (open in new window)


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