Home » date » 2010 » Aug » 07 »

Tijdsreeks B - 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: Sat, 07 Aug 2010 13:15:29 +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/07/t1281186906gpe8u0z4mxf9o7x.htm/, Retrieved Sat, 07 Aug 2010 15:15:12 +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/07/t1281186906gpe8u0z4mxf9o7x.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:
Gosselin Claudia
 
Dataseries X:
» Textbox « » Textfile « » CSV «
166 165 164 162 160 159 160 162 163 163 164 166 163 166 170 171 176 172 169 180 172 170 161 167 158 163 165 169 168 165 156 157 146 150 146 159 146 151 156 152 152 143 127 126 122 122 114 127 125 123 124 123 127 117 104 110 106 107 100 115 117 123 130 129 125 112 90 96 99 108 101 113 113 120 131 135 137 120 102 114 121 134 122 131
 
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
1166NANA-2.25694444444445NA
2165NANA2.47916666666667NA
3164NANA8.10416666666667NA
4162NANA9.09722222222222NA
5160NANA10.5902777777778NA
6159NANA1.79166666666666NA
7160154.694444444444162.708333333333-8.013888888888895.30555555555557
8162159.458333333333162.625-3.166666666666652.54166666666669
9163156.458333333333162.916666666667-6.458333333333346.54166666666666
10163159.5163.541666666667-4.041666666666673.5
11164155.222222222222164.583333333333-9.361111111111128.7777777777778
12166167.027777777778165.7916666666671.23611111111111-1.02777777777777
13163164.451388888889166.708333333333-2.25694444444445-1.45138888888886
14166170.3125167.8333333333332.47916666666667-4.3125
15170177.0625168.9583333333338.10416666666667-7.0625
16171178.722222222222169.6259.09722222222222-7.72222222222223
17176180.381944444444169.79166666666710.5902777777778-4.38194444444446
18172171.5169.7083333333331.791666666666660.5
19169161.527777777778169.541666666667-8.013888888888897.47222222222223
20180166.041666666667169.208333333333-3.1666666666666513.9583333333334
21172162.416666666667168.875-6.458333333333349.58333333333334
22170164.541666666667168.583333333333-4.041666666666675.45833333333331
23161158.805555555556168.166666666667-9.361111111111122.19444444444443
24167168.777777777778167.5416666666671.23611111111111-1.7777777777778
25158164.451388888889166.708333333333-2.25694444444445-6.45138888888889
26163167.6875165.2083333333332.47916666666667-4.6875
27165171.270833333333163.1666666666678.10416666666667-6.27083333333331
28169170.347222222222161.259.09722222222222-1.34722222222223
29168170.381944444444159.79166666666710.5902777777778-2.38194444444443
30165160.625158.8333333333331.791666666666664.37500000000003
31156149.986111111111158-8.013888888888896.01388888888889
32157153.833333333333157-3.166666666666653.16666666666666
33146149.666666666667156.125-6.45833333333334-3.66666666666666
34150151155.041666666667-4.04166666666667-1
35146144.305555555556153.666666666667-9.361111111111121.69444444444443
36159153.319444444444152.0833333333331.236111111111115.68055555555554
37146147.701388888889149.958333333333-2.25694444444445-1.70138888888889
38151149.9375147.4583333333332.479166666666671.06250000000003
39156153.270833333333145.1666666666678.104166666666672.72916666666666
40152152.0972222222221439.09722222222222-0.0972222222222285
41152151.090277777778140.510.59027777777780.909722222222229
42143139.625137.8333333333331.791666666666663.375
43127127.611111111111135.625-8.01388888888889-0.611111111111143
44126130.416666666667133.583333333333-3.16666666666665-4.41666666666669
45122124.625131.083333333333-6.45833333333334-2.625
46122124.5128.541666666667-4.04166666666667-2.50000000000001
47114116.930555555556126.291666666667-9.36111111111112-2.93055555555556
48127125.402777777778124.1666666666671.236111111111111.59722222222224
49125119.868055555556122.125-2.256944444444455.13194444444443
50123122.979166666667120.52.479166666666670.0208333333333286
51124127.270833333333119.1666666666678.10416666666667-3.27083333333333
52123126.972222222222117.8759.09722222222222-3.97222222222221
53127127.256944444444116.66666666666710.5902777777778-0.256944444444429
54117117.375115.5833333333331.79166666666666-0.374999999999986
55104106.736111111111114.75-8.01388888888889-2.73611111111109
56110111.25114.416666666667-3.16666666666665-1.24999999999999
57106108.208333333333114.666666666667-6.45833333333334-2.20833333333333
58107111.125115.166666666667-4.04166666666667-4.12499999999999
59100105.972222222222115.333333333333-9.36111111111112-5.97222222222223
60115116.277777777778115.0416666666671.23611111111111-1.27777777777777
61117111.993055555556114.25-2.256944444444455.00694444444446
62123115.5625113.0833333333332.479166666666677.43750000000001
63130120.3125112.2083333333338.104166666666679.6875
64129121.055555555556111.9583333333339.097222222222227.94444444444446
65125122.631944444444112.04166666666710.59027777777782.36805555555559
66112113.7916666666671121.79166666666666-1.79166666666666
6790103.736111111111111.75-8.01388888888889-13.7361111111111
6896108.291666666667111.458333333333-3.16666666666665-12.2916666666667
6999104.916666666667111.375-6.45833333333334-5.91666666666666
70108107.625111.666666666667-4.041666666666670.375000000000014
71101103.055555555556112.416666666667-9.36111111111112-2.05555555555554
72113114.486111111111113.251.23611111111111-1.4861111111111
73113111.826388888889114.083333333333-2.256944444444451.1736111111111
74120117.8125115.3333333333332.479166666666672.18749999999999
75131125.1041666666671178.104166666666675.89583333333331
76135128.0972222222221199.097222222222226.90277777777776
77137131.548611111111120.95833333333310.59027777777785.45138888888889
78120124.375122.5833333333331.79166666666666-4.375
79102NANA-8.01388888888889NA
80114NANA-3.16666666666665NA
81121NANA-6.45833333333334NA
82134NANA-4.04166666666667NA
83122NANA-9.36111111111112NA
84131NANA1.23611111111111NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/07/t1281186906gpe8u0z4mxf9o7x/1q2cc1281186927.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/07/t1281186906gpe8u0z4mxf9o7x/1q2cc1281186927.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/07/t1281186906gpe8u0z4mxf9o7x/2q2cc1281186927.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/07/t1281186906gpe8u0z4mxf9o7x/2q2cc1281186927.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/07/t1281186906gpe8u0z4mxf9o7x/31btx1281186927.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/07/t1281186906gpe8u0z4mxf9o7x/31btx1281186927.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/07/t1281186906gpe8u0z4mxf9o7x/41btx1281186927.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/07/t1281186906gpe8u0z4mxf9o7x/41btx1281186927.ps (open in new window)


 
Parameters (Session):
 
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