Home » date » 2008 » May » 24 »

decompositie van additieve tijdsreeks - prijsindex van ijzererts - Karen De Maere

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sat, 24 May 2008 10:16:31 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/24/t1211645847i6cfaxls6xlb8qj.htm/, Retrieved Sat, 24 May 2008 18:17:27 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
229,7 231,5 226,4 242,1 228,3 209,9 209,3 220,8 239,6 241,1 241,9 240,8 179,9 190,8 174,2 170 170,3 159,3 147,9 154,2 164,5 173,9 163,6 149,7 128,2 124,7 125,1 120,9 117,5 114 113,4 118,9 121,7 121,9 120,3 115,6 105,7 105,1 104,6 105 104,9 105,1 103,9 101,9 99 97 95,8 94,7 97,6 97,9 99,3 99,7 99,7 100 99,1 98,2 98,1 98,6 100,2 101,9 97,5 97,1 98,1 98,5 98,3 99,3 100,9 100,4 101,7 102 103,2 103,1
 
Text written by user:
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1229.7NANA-7.76536458333334NA
2231.5NANA-3.56536458333334NA
3226.4NANA-4.63932291666668NA
4242.1NANA-3.58098958333333NA
5228.3NANA-1.42057291666665NA
6209.9NANA-1.99765625NA
7209.3224.82421875228.041666666667-3.21744791666667-15.52421875
8220.8225.112760416667224.2708333333330.84192708333333-4.31276041666666
9239.6225.535677083333220.45.1356770833333314.0643229166666
10241.1223.919010416667215.2208333333338.6981770833333417.1809895833333
11241.9217.11796875209.87.3179687524.78203125
12240.8209.46796875205.2754.1929687531.33203125
13179.9192.84296875200.608333333333-7.76536458333334-12.9429687500000
14190.8191.709635416667195.275-3.56536458333334-0.909635416666646
15174.2184.731510416667189.370833333333-4.63932291666668-10.5315104166667
16170179.860677083333183.441666666667-3.58098958333333-9.86067708333334
17170.3175.95859375177.379166666667-1.42057291666665-5.65859374999999
18159.3168.323177083333170.320833333333-1.99765625-9.0231770833333
19147.9161.153385416667164.370833333333-3.21744791666667-13.2533854166667
20154.2160.304427083333159.46250.84192708333333-6.10442708333332
21164.5159.798177083333154.66255.135677083333334.70182291666671
22173.9159.269010416667150.5708333333338.6981770833333414.6309895833333
23163.6153.64296875146.3257.317968759.95703125
24149.7146.43046875142.23754.192968753.26953125
25128.2131.147135416667138.9125-7.76536458333334-2.94713541666667
26124.7132.438802083333136.004166666667-3.56536458333334-7.73880208333335
27125.1128.110677083333132.75-4.63932291666668-3.01067708333332
28120.9125.219010416667128.8-3.58098958333333-4.31901041666664
29117.5123.40859375124.829166666667-1.42057291666665-5.90859375
30114119.606510416667121.604166666667-1.99765625-5.60651041666667
31113.4116.028385416667119.245833333333-3.21744791666667-2.62838541666666
32118.9118.33359375117.4916666666670.841927083333330.56640625
33121.7120.956510416667115.8208333333335.135677083333330.743489583333329
34121.9123.00234375114.3041666666678.69817708333334-1.10234374999999
35120.3120.434635416667113.1166666666677.31796875-0.134635416666669
36115.6116.413802083333112.2208333333334.19296875-0.813802083333343
37105.7103.688802083333111.454166666667-7.765364583333342.01119791666667
38105.1106.784635416667110.35-3.56536458333334-1.68463541666667
39104.6104.056510416667108.695833333333-4.639322916666680.54348958333334
40105103.131510416667106.7125-3.580989583333331.86848958333334
41104.9103.23359375104.654166666667-1.420572916666651.66640625000001
42105.1100.76484375102.7625-1.997656254.33515625000001
43103.998.33671875101.554166666667-3.217447916666675.56328125000003
44101.9101.75859375100.9166666666670.841927083333330.141406250000017
4599105.531510416667100.3958333333335.13567708333333-6.53151041666669
4697108.6523437599.95416666666678.69817708333334-11.6523437500000
4795.8106.83463541666799.51666666666677.31796875-11.0346354166667
4894.7103.2804687599.08754.19296875-8.58046874999998
4997.690.909635416666798.675-7.765364583333346.69036458333333
5097.994.7554687598.3208333333333-3.565364583333343.14453125000001
5199.393.4898437598.1291666666667-4.639322916666685.81015625
5299.794.5773437598.1583333333333-3.580989583333335.12265624999999
5399.796.987760416666698.4083333333333-1.420572916666652.71223958333336
5410096.894010416666798.8916666666667-1.997656253.10598958333334
5599.195.970052083333399.1875-3.217447916666673.12994791666667
5698.299.991927083333499.150.84192708333333-1.79192708333335
5798.1104.2023437599.06666666666675.13567708333333-6.10234375
5898.6107.6648437598.96666666666678.69817708333334-9.06484375
59100.2106.17630208333398.85833333333337.31796875-5.97630208333334
60101.9102.96380208333398.77083333333334.19296875-1.06380208333333
6197.591.051302083333398.8166666666667-7.765364583333346.44869791666667
6297.195.4179687598.9833333333333-3.565364583333341.68203124999999
6398.194.585677083333399.225-4.639322916666683.51432291666667
6498.595.935677083333399.5166666666667-3.580989583333332.56432291666667
6598.398.362760416666799.7833333333333-1.42057291666665-0.0627604166666629
6699.397.960677083333399.9583333333333-1.997656251.33932291666667
67100.9NANA-3.21744791666667NA
68100.4NANA0.84192708333333NA
69101.7NANA5.13567708333333NA
70102NANA8.69817708333334NA
71103.2NANA7.31796875NA
72103.1NANA4.19296875NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211645847i6cfaxls6xlb8qj/1um3k1211645786.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211645847i6cfaxls6xlb8qj/1um3k1211645786.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211645847i6cfaxls6xlb8qj/2ts5f1211645786.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211645847i6cfaxls6xlb8qj/2ts5f1211645786.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211645847i6cfaxls6xlb8qj/3k5e51211645786.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211645847i6cfaxls6xlb8qj/3k5e51211645786.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211645847i6cfaxls6xlb8qj/4irs01211645786.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211645847i6cfaxls6xlb8qj/4irs01211645786.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