Home » date » 2010 » Dec » 11 »

Opgave 9 Stap 2

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sat, 11 Dec 2010 13:22:36 +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/11/t1292073637w3xfx6vj0fpjao3.htm/, Retrieved Sat, 11 Dec 2010 14:20:42 +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/11/t1292073637w3xfx6vj0fpjao3.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 «
361.58 363.19 363.61 364.14 365.51 365.51 365.5 365.5 364.59 364.63 364.54 363.67 365.22 369.05 370.45 370.46 370.46 370.58 370.58 370.22 370.21 370.29 370.29 370.2 370.2 372.55 374.51 375.58 375.75 375.75 375.75 375.69 375.76 377.5 377.51 377.74 369.82 373.1 374.55 375.01 374.81 375.31 375.31 375.39 375.59 376.26 377.18 377.26 377.26 381.87 387.09 387.14 388.78 389.16 389.16 389.42 389.49 388.97 388.97 389.09 389.09 391.76 390.96 391.76 392.8 393.06 393.06 393.26 393.87 394.47 394.57 394.57 394.57 399.57 406.13 407.03 409.46 409.9 409.9 410.14 410.54 410.69 410.79 410.97
 
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'George Udny Yule' @ 72.249.76.132


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1361.58NANA0.991255293830792NA
2363.19NANA0.999143125683757NA
3363.61NANA1.00432002427416NA
4364.14NANA1.00408381099648NA
5365.51NANA1.00456443362750NA
6365.51NANA1.00361787067363NA
7365.5365.105895145224364.48251.001710356862741.00107942616106
8365.5365.055636278391364.8783333333331.00048592346781.00121724931065
9364.59365.055515664539365.40750.999036734781140.998724808571398
10364.63365.458719896930365.9558333333330.9986416026440270.99773238439306
11364.54365.504294510262366.4254166666670.9974861946947240.997361742324932
12363.67365.248847898123366.8429166666670.9956546284632430.995677336404459
13365.22364.054201534844367.2658333333330.9912552938307921.00320226620168
14369.05367.359116116504367.6741666666670.9991431256837571.00460280910236
15370.45369.69522253544368.1051.004320024274161.00204162082318
16370.46370.080190638029368.5751.004083810996481.00102628935993
17370.46370.734922798744369.0504166666671.004564433627500.999258438356256
18370.58370.899111156711369.5620833333331.003617870673630.99913962814385
19370.58370.67456997075370.0416666666671.001710356862740.99974487062666
20370.22370.574983622855370.3951.00048592346780.999042073430362
21370.21370.352907950716370.710.999036734781140.999614130339877
22370.29370.588408929179371.09250.9986416026440270.999194769933466
23370.29370.592305341701371.526250.9974861946947240.99918426438611
24370.2370.345769883664371.9620833333330.9956546284632430.999606395170357
25370.2369.136450030922372.3929166666670.9912552938307921.00288118382508
26372.55372.516776193211372.836250.9991431256837571.00008918741091
27374.51374.908061928100373.2954166666671.004320024274160.998938241215586
28375.58375.353722487033373.8270833333331.004083810996481.00060283806823
29375.75376.13738660909374.4283333333331.004564433627500.9989700927829
30375.75376.400191610340375.0433333333331.003617870673630.998272605527753
31375.75375.983634862122375.3416666666671.001710356862740.999378603640001
32375.69375.531140766234375.348751.00048592346781.00042302546053
33375.76375.011749257246375.3733333333330.999036734781141.00199527279942
34377.5374.841373854439375.351250.9986416026440271.00709266994255
35377.51374.344931529992375.2883333333330.9974861946947241.00845495211347
36377.74373.600315950453375.2308333333330.9956546284632431.01108051538719
37369.82371.913203922766375.1941666666670.9912552938307920.994371794545912
38373.1374.841865508604375.1633333333330.9991431256837570.995353065735492
39374.55376.764380106300375.143751.004320024274160.994122639444645
40375.01376.616776247616375.0851.004083810996480.995733657263958
41374.81376.731335330472375.0195833333331.004564433627500.994899985346887
42375.31376.342483582777374.9858333333331.003617870673630.997256531941471
43375.31375.917688930296375.2758333333331.001710356862740.998383452154048
44375.39376.133933535123375.951251.00048592346780.998022157883679
45375.59376.476170604313376.8391666666670.999036734781140.997646144235663
46376.26377.353789686424377.8670833333330.9986416026440270.99710142122242
47377.18378.001965291291378.9545833333330.9974861946947240.997825499953001
48377.26378.46201453002380.113750.9956546284632430.996823949342676
49377.26377.933840763671381.2679166666670.9912552938307920.998217040415569
50381.87382.101889245604382.4295833333330.9991431256837570.999393121960058
51387.09385.250465844739383.5933333333331.004320024274161.00477490442802
52387.14386.273133931620384.7020833333331.004083810996481.00224417903352
53388.78387.483523318399385.7229166666671.004564433627501.00334588854385
54389.16388.10613954941386.7070833333331.003617870673631.00271539237131
55389.16388.356009907323387.6929166666671.001710356862741.00207023986282
56389.42388.786745513913388.5979166666671.00048592346781.00162879648906
57389.49388.796374870695389.171250.999036734781141.00178403188439
58388.97388.995870269915389.5250.9986416026440270.999933494744053
59388.97388.904905018553389.8850.9974861946947241.00016738020171
60389.09388.519370845784390.2150.9956546284632431.00146872768010
61389.09387.124842452677390.540.9912552938307921.00507628891722
62391.76390.527579962568390.86250.9991431256837571.00315578233310
63390.96392.895015096173391.2051.004320024274160.995074981809837
64391.76393.215955116406391.6166666666671.004083810996480.996297314243073
65392.8393.868785999643392.0791666666671.004564433627500.997286441480934
66393.06393.960995302452392.5408333333331.003617870673630.997712983485178
67393.06393.669665971165392.99751.001710356862740.99845132601299
68393.26393.742485788157393.551251.00048592346780.998774615883295
69393.87394.128733442589394.508750.999036734781140.999343530626836
70394.47395.239460789779395.7770833333330.9986416026440270.99805317822203
71394.57396.109249059735397.10750.9974861946947240.996114079478354
72394.57396.771688291364398.5033333333330.9956546284632430.994450994472803
73394.57396.409600371559399.9066666666670.9912552938307920.995359344552113
74399.57400.967793006691401.3116666666670.9991431256837570.996513951915664
75406.13404.44929850877402.7095833333331.004320024274161.00415553073630
76407.03405.730186347459404.081.004083810996481.00320364048887
77409.46407.282232599655405.4316666666671.004564433627501.00534707194675
78409.9408.262549959552406.7908333333331.003617870673631.00401077698802
79409.9NANA1.00171035686274NA
80410.14NANA1.0004859234678NA
81410.54NANA0.99903673478114NA
82410.69NANA0.998641602644027NA
83410.79NANA0.997486194694724NA
84410.97NANA0.995654628463243NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292073637w3xfx6vj0fpjao3/1lv2h1292073753.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292073637w3xfx6vj0fpjao3/1lv2h1292073753.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t1292073637w3xfx6vj0fpjao3/2lv2h1292073753.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292073637w3xfx6vj0fpjao3/2lv2h1292073753.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t1292073637w3xfx6vj0fpjao3/3e5121292073753.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292073637w3xfx6vj0fpjao3/3e5121292073753.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t1292073637w3xfx6vj0fpjao3/4e5121292073753.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292073637w3xfx6vj0fpjao3/4e5121292073753.ps (open in new window)


 
Parameters (Session):
par1 = multiplicative ; par2 = 12 ;
 
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