Home » date » 2010 » Dec » 12 »

Eigen reeks (Opgave 9)

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 12 Dec 2010 21:01:00 +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/Dec/12/t1292188088qqcfjtrpk2jaxrm.htm/, Retrieved Sun, 12 Dec 2010 22:08:13 +0100
 
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/Dec/12/t1292188088qqcfjtrpk2jaxrm.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:
KDGP2W92
 
Dataseries X:
» Textbox « » Textfile « » CSV «
98.4 96.5 97.4 99.2 100.8 101.8 102.7 100 100.8 101.7 99 101.7 100.2 101.2 99.5 100.8 100.7 99.5 99.4 101.1 97.2 98.1 97.8 95.5 96.3 93.6 96.7 95.1 97.7 96.5 98.1 97.3 97 93.7 95.6 94.6 95.1 94.5 93.6 92.1 95.9 98.1 98.2 96.2 94.1 95 93.4 95.4 93.5 94.5 94.3 95.7 98.4 99.4 99.2 99 99.4 99.3 98.6 98.7 96 98.7 100.1 100 101.5 101.5 103.8 104.1 101 104.9 104.4 105.6 103.4 101.7 103.5 101.2 105.4 105.4 108.6 110.6 110.2 106.2 108.6 107.5 106.9 108.4 109.9 108.6 106.5 105.7 105.6 104.2 105.1 102.7 108.3 104.2 105.4 104.6 106.4 111 111.7 113.8 115.9 117.3 113.6 113.6 114.6 113.2 112.8 109.6 111.1 109.7 113 111 113.3 111.8 107.2 106.4 110 108.2 108.2
 
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'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
198.4NANA-1.24506172839507NA
296.5NANA-1.65987654320988NA
397.4NANA-0.821913580246914NA
499.2NANA-0.9733024691358NA
5100.8NANA0.798456790123467NA
6101.8NANA0.728549382716051NA
7102.7101.980864197531100.0751.905864197530870.71913580246914
8100102.207253086420100.3458333333331.86141975308642-2.20725308641973
9100.8100.712345679012100.6291666666670.08317901234568010.0876543209876388
10101.7100.373456790123100.783333333333-0.4098765432098831.32654320987656
1199101.287345679012100.8458333333330.441512345679011-2.28734567901235
12101.7100.036882716049100.745833333333-0.7089506172839481.66311728395064
13100.299.267438271605100.5125-1.245061728395070.932561728395072
14101.298.7609567901235100.420833333333-1.659876543209882.43904320987654
1599.599.4947530864197100.316666666667-0.8219135802469140.0052469135802653
16100.899.0433641975308100.016666666667-0.97330246913581.75663580246916
17100.7100.61512345679099.81666666666660.7984567901234670.0848765432098872
1899.5100.23688271604999.50833333333330.728549382716051-0.73688271604938
1999.4100.99336419753199.08751.90586419753087-1.59336419753086
20101.1100.46975308642098.60833333333331.861419753086420.630246913580251
2197.298.258179012345798.1750.0831790123456801-1.05817901234568
2298.197.410956790123497.8208333333333-0.4098765432098830.689043209876544
2397.897.899845679012397.45833333333330.441512345679011-0.0998456790123328
2495.596.499382716049497.2083333333333-0.708950617283948-0.999382716049368
2596.395.784104938271697.0291666666667-1.245061728395070.515895061728415
2693.695.156790123456896.8166666666666-1.65987654320988-1.55679012345678
2796.795.82808641975396.65-0.8219135802469140.87191358024694
2895.195.485030864197596.4583333333333-0.9733024691358-0.385030864197518
2997.796.981790123456896.18333333333330.7984567901234670.718209876543227
3096.596.782716049382796.05416666666670.728549382716051-0.282716049382714
3198.197.872530864197595.96666666666671.905864197530870.227469135802480
3297.397.81558641975395.95416666666671.86141975308642-0.515586419753078
339795.945679012345795.86250.08317901234568011.05432098765432
3493.795.198456790123495.6083333333333-0.409876543209883-1.49845679012344
3595.695.849845679012395.40833333333330.441512345679011-0.249845679012353
3694.694.69104938271695.4-0.708950617283948-0.0910493827160366
3795.194.225771604938395.4708333333333-1.245061728395070.874228395061735
3894.593.769290123456895.4291666666666-1.659876543209880.73070987654323
3993.694.440586419753195.2625-0.821913580246914-0.840586419753095
4092.194.222530864197595.1958333333333-0.9733024691358-2.12253086419753
4195.995.956790123456895.15833333333330.798456790123467-0.0567901234567785
4298.195.82854938271695.10.7285493827160512.27145061728395
4398.296.972530864197595.06666666666671.905864197530871.22746913580248
4496.296.8614197530864951.86141975308642-0.661419753086406
4594.195.112345679012395.02916666666670.0831790123456801-1.01234567901234
469594.798456790123595.2083333333333-0.4098765432098830.201543209876547
4793.495.90401234567995.46250.441512345679011-2.504012345679
4895.494.911882716049495.6208333333333-0.7089506172839480.488117283950615
4993.594.471604938271695.7166666666667-1.24506172839507-0.97160493827161
5094.594.215123456790195.875-1.659876543209880.284876543209876
5194.395.390586419753196.2125-0.821913580246914-1.09058641975309
5295.795.639197530864296.6125-0.97330246913580.0608024691358082
5398.497.806790123456897.00833333333330.7984567901234670.593209876543213
5499.498.09104938271697.36250.7285493827160511.30895061728397
5599.299.510030864197597.60416666666661.90586419753087-0.310030864197500
569999.744753086419797.88333333333331.86141975308642-0.744753086419735
5799.498.383179012345798.30.08317901234568011.01682098765434
5899.398.310956790123498.7208333333333-0.4098765432098830.98904320987657
5998.699.470679012345799.02916666666670.441512345679011-0.870679012345676
6098.798.536882716049499.2458333333333-0.7089506172839480.163117283950641
619698.27993827160599.525-1.24506172839507-2.27993827160491
6298.798.269290123456899.9291666666667-1.659876543209880.430709876543204
63100.199.3864197530864100.208333333333-0.8219135802469140.71358024691358
6410099.5350308641975100.508333333333-0.97330246913580.464969135802491
65101.5101.781790123457100.9833333333330.798456790123467-0.281790123456773
66101.5102.241049382716101.51250.728549382716051-0.741049382716028
67103.8104.014197530864102.1083333333331.90586419753087-0.214197530864169
68104.1104.403086419753102.5416666666671.86141975308642-0.303086419753058
69101102.891512345679102.8083333333330.0831790123456801-1.89151234567899
70104.9102.590123456790103-0.4098765432098832.30987654320991
71104.4103.654012345679103.21250.4415123456790110.745987654320984
72105.6102.828549382716103.5375-0.7089506172839482.77145061728393
73103.4102.654938271605103.9-1.245061728395070.745061728395058
74101.7102.710956790123104.370833333333-1.65987654320988-1.01095679012347
75103.5104.203086419753105.025-0.821913580246914-0.703086419753078
76101.2104.489197530864105.4625-0.9733024691358-3.2891975308642
77105.4106.490123456790105.6916666666670.798456790123467-1.09012345679011
78105.4106.674382716049105.9458333333330.728549382716051-1.27438271604937
79108.6108.076697530864106.1708333333331.905864197530870.5233024691358
80110.6108.457253086420106.5958333333331.861419753086422.14274691358025
81110.2107.224845679012107.1416666666670.08317901234568012.97515432098766
82106.2107.306790123457107.716666666667-0.409876543209883-1.10679012345676
83108.6108.512345679012108.0708333333330.4415123456790110.087654320987653
84107.5107.420216049383108.129166666667-0.7089506172839480.0797839506172977
85106.9106.771604938272108.016666666667-1.245061728395070.128395061728412
86108.4105.96512345679107.625-1.659876543209882.43487654320990
87109.9106.323919753086107.145833333333-0.8219135802469143.57608024691361
88108.6105.814197530864106.7875-0.97330246913582.78580246913582
89106.5107.427623456790106.6291666666670.798456790123467-0.92762345679013
90105.7107.207716049383106.4791666666670.728549382716051-1.50771604938271
91105.6108.185030864198106.2791666666671.90586419753087-2.58503086419752
92104.2107.919753086420106.0583333333331.86141975308642-3.71975308641973
93105.1105.837345679012105.7541666666670.0831790123456801-0.73734567901235
94102.7105.298456790123105.708333333333-0.409876543209883-2.59845679012344
95108.3106.466512345679106.0250.4415123456790111.83348765432099
96104.2105.870216049383106.579166666667-0.708950617283948-1.67021604938272
97105.4106.100771604938107.345833333333-1.24506172839507-0.700771604938254
98104.6106.660956790123108.320833333333-1.65987654320988-2.06095679012346
99106.4108.398919753086109.220833333333-0.821913580246914-1.99891975308641
100111109.055864197531110.029166666667-0.97330246913581.94413580246913
101111.7111.544290123457110.7458333333330.7984567901234670.155709876543213
102113.8112.111882716049111.3833333333330.7285493827160511.68811728395062
103115.9113.972530864198112.0666666666671.905864197530871.92746913580250
104117.3114.444753086420112.5833333333331.861419753086422.85524691358026
105113.6113.070679012346112.98750.08317901234568010.529320987654316
106113.6112.719290123457113.129166666667-0.4098765432098830.880709876543207
107114.6113.570679012346113.1291666666670.4415123456790111.02932098765433
108113.2112.357716049383113.066666666667-0.7089506172839480.8422839506173
109112.8111.596604938272112.841666666667-1.245061728395071.20339506172841
110109.6110.844290123457112.504166666667-1.65987654320988-1.24429012345679
111111.1111.186419753086112.008333333333-0.821913580246914-0.0864197530864175
112109.7110.468364197531111.441666666667-0.9733024691358-0.768364197530857
113113111.748456790123110.950.7984567901234671.25154320987654
114111111.278549382716110.550.728549382716051-0.278549382716065
115113.3112.055864197531110.151.905864197530871.24413580246915
116111.8NANA1.86141975308642NA
117107.2NANA0.0831790123456801NA
118106.4NANA-0.409876543209883NA
119110NANA0.441512345679011NA
120108.2NANA-0.708950617283948NA
121108.2NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292188088qqcfjtrpk2jaxrm/14wzt1292187656.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292188088qqcfjtrpk2jaxrm/14wzt1292187656.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292188088qqcfjtrpk2jaxrm/24wzt1292187656.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292188088qqcfjtrpk2jaxrm/24wzt1292187656.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292188088qqcfjtrpk2jaxrm/3f6hw1292187656.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292188088qqcfjtrpk2jaxrm/3f6hw1292187656.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292188088qqcfjtrpk2jaxrm/4f6hw1292187656.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292188088qqcfjtrpk2jaxrm/4f6hw1292187656.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