Home » date » 2008 » May » 25 »

Classic decomposition - eigen gegevensreeks - Manuella Loeckx

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 25 May 2008 04:58:48 -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/25/t1211713198el2mzrcqazw9eb2.htm/, Retrieved Sun, 25 May 2008 13:00:03 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
113000 110000 107000 103000 98000 98000 137000 148000 147000 139000 130000 128000 127000 123000 118000 114000 108000 111000 151000 159000 158000 148000 138000 137000 136000 133000 126000 120000 114000 116000 153000 162000 161000 149000 139000 135000 130000 127000 122000 117000 112000 113000 149000 157000 157000 147000 137000 132000 125000 123000 117000 114000 111000 112000 144000 150000 149000 134000 123000 116000 117000 111000 105000 102000 95000 93000 124000 130000 124000 115000 106000 105000
 
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 time6 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1113000NANA-3408.85416666666NA
2110000NANA-6502.60416666667NA
3107000NANA-12294.2708333333NA
4103000NANA-16763.0208333333NA
598000NANA-21638.0208333333NA
698000NANA-19690.1041666667NA
7137000138872.395833333122083.33333333316789.0625-1872.39583333334
8148000147976.5625123208.33333333324768.229166666723.4375000000146
9147000148486.979166667124208.33333333324278.6458333333-1486.97916666667
10139000137914.062512512512789.06251085.9375
11130000128799.4791666671260002799.479166666671200.52083333334
12128000125830.729166667126958.333333333-1127.604166666672169.27083333336
13127000124674.479166667128083.333333333-3408.854166666662325.52083333334
14123000122622.395833333129125-6502.60416666667377.604166666686
15118000117747.395833333130041.666666667-12294.2708333333252.604166666672
16114000114111.979166667130875-16763.0208333333-111.979166666657
17108000109945.3125131583.333333333-21638.0208333333-1945.31249999999
18111000112601.5625132291.666666667-19690.1041666667-1601.56249999999
19151000149830.729166667133041.66666666716789.06251169.27083333334
20159000158601.5625133833.33333333324768.2291666667398.437500000029
21158000158861.979166667134583.33333333324278.6458333333-861.979166666657
22148000147955.729166667135166.66666666712789.062544.2708333333430
23138000138466.145833333135666.6666666672799.47916666667-466.145833333285
24137000134997.395833333136125-1127.604166666672002.60416666669
25136000133007.8125136416.666666667-3408.854166666662992.1875
26133000130122.395833333136625-6502.604166666672877.60416666666
27126000124580.729166667136875-12294.27083333331419.27083333334
28120000120278.645833333137041.666666667-16763.0208333333-278.645833333314
29114000115486.979166667137125-21638.0208333333-1486.97916666666
30116000117393.229166667137083.333333333-19690.1041666667-1393.22916666666
31153000153539.062513675016789.0625-539.0625
32162000161018.22916666713625024768.2291666667981.770833333343
33161000160111.979166667135833.33333333324278.6458333333888.020833333343
34149000148330.729166667135541.66666666712789.0625669.270833333314
35139000138132.8125135333.3333333332799.47916666667867.1875
36135000133997.395833333135125-1127.604166666671002.60416666669
37130000131424.479166667134833.333333333-3408.85416666666-1424.47916666666
38127000127955.729166667134458.333333333-6502.60416666667-955.729166666657
39122000121789.0625134083.333333333-12294.2708333333210.937500000029
40117000117070.3125133833.333333333-16763.0208333333-70.3124999999709
41112000112028.645833333133666.666666667-21638.0208333333-28.6458333333139
42113000113768.229166667133458.333333333-19690.1041666667-768.229166666628
43149000149914.062513312516789.0625-914.0625
44157000157518.22916666713275024768.2291666667-518.229166666657
45157000156653.64583333313237524278.6458333333346.354166666657
46147000144830.729166667132041.66666666712789.06252169.27083333334
47137000134674.4791666671318752799.479166666672325.52083333334
48132000130664.0625131791.666666667-1127.604166666671335.93750000003
49125000128132.8125131541.666666667-3408.85416666666-3132.8125
50123000124539.0625131041.666666667-6502.60416666667-1539.0625
51117000118122.395833333130416.666666667-12294.2708333333-1122.39583333334
52114000112778.645833333129541.666666667-16763.02083333331221.35416666666
53111000106778.645833333128416.666666667-21638.02083333334221.35416666669
54112000107476.5625127166.666666667-19690.10416666674523.43750000001
55144000142955.729166667126166.66666666716789.06251044.27083333334
56150000150101.5625125333.33333333324768.2291666667-101.562499999985
57149000148611.979166667124333.33333333324278.6458333333388.020833333328
58134000136122.395833333123333.33333333312789.0625-2122.39583333333
59123000124966.145833333122166.6666666672799.47916666667-1966.14583333333
60116000119580.729166667120708.333333333-1127.60416666667-3580.72916666667
61117000115674.479166667119083.333333333-3408.854166666661325.52083333331
62111000110914.0625117416.666666667-6502.6041666666785.9375
63105000103247.395833333115541.666666667-12294.27083333331752.60416666666
6410200096945.3125113708.333333333-16763.02083333335054.68750000001
659500090570.3125112208.333333333-21638.02083333334429.6875
669300091351.5625111041.666666667-19690.10416666671648.43750000001
67124000NANA16789.0625NA
68130000NANA24768.2291666667NA
69124000NANA24278.6458333333NA
70115000NANA12789.0625NA
71106000NANA2799.47916666667NA
72105000NANA-1127.60416666667NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211713198el2mzrcqazw9eb2/1fleq1211713122.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211713198el2mzrcqazw9eb2/1fleq1211713122.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211713198el2mzrcqazw9eb2/2t10h1211713122.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211713198el2mzrcqazw9eb2/2t10h1211713122.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211713198el2mzrcqazw9eb2/3h9a01211713122.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211713198el2mzrcqazw9eb2/3h9a01211713122.ps (open in new window)


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