Home » date » 2010 » Aug » 05 »

Tijdreeks 2 - stap 24

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Thu, 05 Aug 2010 14:30:18 +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/05/t12810186039z9ci8ga2g153cr.htm/, Retrieved Thu, 05 Aug 2010 16:30:09 +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/05/t12810186039z9ci8ga2g153cr.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:
Ghielens Nick
 
Dataseries X:
» Textbox « » Textfile « » CSV «
80 79 78 76 74 73 74 76 77 77 78 80 90 90 89 82 78 76 74 78 81 82 88 99 117 113 106 100 97 96 100 104 104 111 117 118 140 147 134 126 116 114 120 122 117 119 132 134 154 152 132 130 123 129 124 128 128 129 141 138 155 160 142 133 131 140 134 134 134 136 145 137 152 168 160 157 147 161 159 164 163 158 175 163
 
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
180NANA1.14172484370715NA
279NANA1.15429284448547NA
378NANA1.05574572378660NA
476NANA0.994151779339418NA
574NANA0.935829420138376NA
673NANA0.95056944521912NA
77471.943246866579777.250.9313041665576661.02858855032265
87673.955487223595478.1250.946630236462021.02764518027206
97774.087437102730879.04166666666670.9373212917583241.03931250710199
107775.436178775806579.750.9459081978157551.02073038758818
117880.208454539356680.16666666666671.000521262445200.972466062935137
128080.941146757422480.45833333333331.006000788284900.988372455850631
139092.003993655401580.58333333333331.141724843707150.978218405791086
149093.112956121827680.66666666666671.154292844485470.966567959481872
158985.427424816399480.91666666666671.055745723786601.04182000325163
168280.816255062133581.29166666666670.9941517793394181.01464736193178
177876.660026666335381.91666666666670.9358294201383761.01747942691824
187679.016085133839483.1250.950569445219120.961829479039227
197479.199658497674885.04166666666670.9313041665576660.934347463154434
207882.475159351753687.1250.946630236462020.945739306393248
218183.226319697374588.79166666666670.9373212917583240.973249812012957
228285.36821485287290.250.9459081978157550.960544860183888
238891.83951421528291.79166666666671.000521262445200.958193221642247
249993.977240305614293.41666666666671.006000788284901.05344655448544
25117108.84443510008295.33333333333331.141724843707151.07492863454543
26113112.54355233733397.51.154292844485471.00405574244981
27106105.09068892192599.54166666666671.055745723786601.00865263219228
28100101.11352055698101.7083333333330.9941517793394180.988987421752836
299797.4432383719084104.1250.9358294201383760.995451317307244
3096100.879182373879106.1250.950569445219120.951633406823264
31100100.464436967408107.8750.9313041665576660.995377100778867
32104104.365983569938110.250.946630236462020.996493267658494
33104105.761085753398112.8333333333330.9373212917583240.98334845240239
34111108.858268431963115.0833333333330.9459081978157551.01967449601107
35117117.019299320153116.9583333333331.000521262445200.999835075750197
36118119.211093411760118.51.006000788284900.989840765845698
37140137.102124981834120.0833333333331.141724843707151.02113661636207
38147140.438962745732121.6666666666671.154292844485471.04671806972932
39134129.812734620595122.9583333333331.055745723786601.03225619883630
40126123.109128674865123.8333333333330.9941517793394181.02348218492205
41116116.783713054768124.7916666666670.9358294201383760.993289192180414
42114119.850964218044126.0833333333330.950569445219120.951181333782184
43120118.586063875009127.3333333333330.9313041665576661.01192329080490
44122121.286999046696128.1250.946630236462021.00587862638954
45117120.211455668005128.250.9373212917583240.973284944848565
46119121.391552053022128.3333333333330.9459081978157550.980298859248646
47132128.858800925754128.7916666666671.000521262445201.02437706273594
48134130.486685580454129.7083333333331.006000788284901.02692469659964
49154148.995092103784130.51.141724843707151.03359109233430
50152151.116171557222130.9166666666671.154292844485471.00584866883319
51132138.962530893412131.6251.055745723786600.949896343649985
52130131.725110762473132.50.9941517793394180.98690370611581
53123124.738263125944133.2916666666670.9358294201383760.986064715970998
54129127.217877418492133.8333333333330.950569445219121.01400842882833
55124124.833562659000134.0416666666670.9313041665576660.99332260778876
56128127.242880951103134.4166666666670.946630236462021.00595018788664
57128126.694594602667135.1666666666670.9373212917583241.01030356031705
58129128.367625011913135.7083333333330.9459081978157551.00492628096865
59141136.237645236288136.1666666666671.000521262445201.03495623221799
60138137.780191295519136.9583333333331.006000788284901.0015953578117
61155157.367740957636137.8333333333331.141724843707150.984954089426286
62160159.869558961237138.51.154292844485471.00081592167771
63142146.7486556063381391.055745723786600.967640891926965
64133138.725596208655139.5416666666670.9941517793394180.95872718254501
65131131.0161188193731400.9358294201383760.999876970715375
66140133.198543511329140.1250.950569445219121.05106254399916
67134130.3437789778139.9583333333330.9313041665576661.02805059858532
68134132.68600481076140.1666666666670.946630236462021.00990304283496
69134132.396632460863141.250.9373212917583241.01211033475199
70136135.2648722876531430.9459081978157551.00543472743451
71145144.742075967072144.6666666666671.000521262445201.00178195615342
72137147.085698587154146.2083333333331.006000788284900.931429780841825
73152169.117992474122148.1251.141724843707150.898780772975758
74168173.624882024689150.4166666666671.154292844485470.967603249263035
75160161.397127523877152.8751.055745723786600.991343541577774
76157154.0935257976101550.9941517793394181.01886175416745
77147147.081190531748157.1666666666670.9358294201383760.999447988342666
78161151.615826512450159.50.950569445219121.06189441896278
79159NANA0.931304166557666NA
80164NANA0.94663023646202NA
81163NANA0.937321291758324NA
82158NANA0.945908197815755NA
83175NANA1.00052126244520NA
84163NANA1.00600078828490NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/05/t12810186039z9ci8ga2g153cr/14vea1281018615.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/05/t12810186039z9ci8ga2g153cr/14vea1281018615.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/05/t12810186039z9ci8ga2g153cr/24vea1281018615.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/05/t12810186039z9ci8ga2g153cr/24vea1281018615.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/05/t12810186039z9ci8ga2g153cr/34vea1281018615.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/05/t12810186039z9ci8ga2g153cr/34vea1281018615.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/05/t12810186039z9ci8ga2g153cr/4xmvu1281018615.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/05/t12810186039z9ci8ga2g153cr/4xmvu1281018615.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