Home » date » 2010 » Dec » 11 »

Opgave9; Opdracht 2; Stap 1

*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 12:17:32 +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/t1292070092e1muzusocnn62l2.htm/, Retrieved Sat, 11 Dec 2010 13:21:36 +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/t1292070092e1muzusocnn62l2.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 «
13,81 13,9 13,91 13,94 13,96 14,01 14,01 14,06 14,09 14,13 14,12 14,13 14,14 14,16 14,21 14,26 14,29 14,32 14,33 14,39 14,48 14,44 14,46 14,48 14,53 14,58 14,62 14,62 14,61 14,65 14,68 14,7 14,78 14,84 14,89 14,89 15,13 15,25 15,33 15,36 15,4 15,4 15,41 15,47 15,54 15,55 15,59 15,65 15,75 15,86 15,89 15,94 15,93 15,95 15,99 15,99 16,06 16,08 16,07 16,11 16,15 16,18 16,3 16,42 16,49 16,5 16,58 16,64 16,66 16,81 16,91 16,92 16,95 17,11 17,16 17,16 17,27 17,34 17,39 17,43 17,45 17,5 17,56 17,65
 
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
113.81NANA-0.0121412037037041NA
213.9NANA0.0226504629629629NA
313.91NANA0.0375810185185185NA
413.94NANA0.0325115740740751NA
513.96NANA0.0235532407407401NA
614.01NANA0.00355324074074146NA
714.0114.004386574074114.0195833333333-0.01519675925926100.00561342592592418
814.0614.026539351851914.0441666666667-0.01762731481481410.0334606481481483
914.0914.065011574074114.0675-0.002488425925925930.0249884259259225
1014.1314.085914351851914.0933333333333-0.007418981481482040.0440856481481475
1114.1214.099317129629614.1204166666667-0.0210995370370370.0206828703703685
1214.1314.103206018518514.1470833333333-0.04387731481481390.0267939814814824
1314.1414.161192129629614.1733333333333-0.0121412037037041-0.0211921296296271
1414.1614.223067129629614.20041666666670.0226504629629629-0.0630671296296281
1514.2114.267997685185214.23041666666670.0375810185185185-0.0579976851851818
1614.2614.292094907407414.25958333333330.0325115740740751-0.0320949074074051
1714.2914.310219907407414.28666666666670.0235532407407401-0.0202199074074052
1814.3214.318969907407414.31541666666670.003553240740741460.00103009259259501
1914.3314.331053240740714.34625-0.0151967592592610-0.00105324074073998
2014.3914.362372685185214.38-0.01762731481481410.0276273148148167
2114.4814.412094907407414.4145833333333-0.002488425925925930.0679050925925946
2214.4414.439247685185214.4466666666667-0.007418981481482040.000752314814816302
2314.4614.453900462963014.475-0.0210995370370370.00609953703703781
2414.4814.458206018518514.5020833333333-0.04387731481481390.0217939814814834
2514.5314.518275462963014.5304166666667-0.01214120370370410.0117245370370362
2614.5814.580567129629614.55791666666670.0226504629629629-0.000567129629629903
2714.6214.620914351851914.58333333333330.0375810185185185-0.000914351851852402
2814.6214.645011574074114.61250.0325115740740751-0.0250115740740746
2914.6114.670636574074114.64708333333330.0235532407407401-0.060636574074076
3014.6514.685636574074114.68208333333330.00355324074074146-0.0356365740740738
3114.6814.708969907407414.7241666666667-0.0151967592592610-0.0289699074074043
3214.714.759456018518514.7770833333333-0.0176273148148141-0.0594560185185191
3314.7814.832094907407414.8345833333333-0.00248842592592593-0.0520949074074046
3414.8414.887581018518514.895-0.00741898148148204-0.0475810185185157
3514.8914.937650462963014.95875-0.021099537037037-0.0476504629629613
3614.8914.979039351851815.0229166666667-0.0438773148148139-0.0890393518518486
3715.1315.072442129629615.0845833333333-0.01214120370370410.0575578703703741
3815.2515.169733796296315.14708333333330.02265046296296290.0802662037037027
3915.3315.248414351851815.21083333333330.03758101851851850.0815856481481525
4015.3615.304594907407415.27208333333330.03251157407407510.0554050925925917
4115.415.354386574074115.33083333333330.02355324074074010.0456134259259269
4215.415.395219907407415.39166666666670.003553240740741460.00478009259259338
4315.4115.433969907407415.4491666666667-0.0151967592592610-0.0239699074074053
4415.4715.482789351851915.5004166666667-0.0176273148148141-0.0127893518518523
4515.5415.546678240740715.5491666666667-0.00248842592592593-0.0066782407407402
4615.5515.589247685185215.5966666666667-0.00741898148148204-0.0392476851851811
4715.5915.621817129629615.6429166666667-0.021099537037037-0.0318171296296281
4815.6515.644039351851815.6879166666667-0.04387731481481390.005960648148152
4915.7515.722858796296315.735-0.01214120370370410.0271412037037049
5015.8615.803483796296315.78083333333330.02265046296296290.0565162037037048
5115.8915.861747685185215.82416666666670.03758101851851850.0282523148148162
5215.9415.900428240740715.86791666666670.03251157407407510.0395717592592586
5315.9315.933553240740715.910.0235532407407401-0.00355324074074126
5415.9515.952719907407415.94916666666670.00355324074074146-0.00271990740741046
5515.9915.969803240740715.985-0.01519675925926100.0201967592592585
5615.9915.997372685185216.015-0.0176273148148141-0.00737268518518164
5716.0616.042928240740716.0454166666667-0.002488425925925930.0170717592592560
5816.0816.075081018518516.0825-0.007418981481482040.00491898148148096
5916.0716.104733796296316.1258333333333-0.021099537037037-0.0347337962962939
6016.1116.128206018518516.1720833333333-0.0438773148148139-0.0182060185185193
6116.1516.207442129629616.2195833333333-0.0121412037037041-0.0574421296296315
6216.1816.293900462963016.271250.0226504629629629-0.113900462962963
6316.316.360914351851916.32333333333330.0375810185185185-0.0609143518518493
6416.4216.411261574074116.378750.03251157407407510.00873842592593022
6516.4916.467719907407416.44416666666670.02355324074074010.0222800925925952
6616.516.516469907407416.51291666666670.00355324074074146-0.0164699074074051
6716.5816.564803240740716.58-0.01519675925926100.0151967592592612
6816.6416.634456018518516.6520833333333-0.01762731481481410.00554398148148039
6916.6616.724178240740716.7266666666667-0.00248842592592593-0.0641782407407376
7016.8116.785914351851916.7933333333333-0.007418981481482040.0240856481481480
7116.9116.835567129629616.8566666666667-0.0210995370370370.074432870370373
7216.9216.880289351851916.9241666666667-0.04387731481481390.0397106481481480
7316.9516.980775462963016.9929166666667-0.0121412037037041-0.0307754629629642
7417.1117.082233796296317.05958333333330.02265046296296290.0277662037037061
7517.1617.162997685185217.12541666666670.0375810185185185-0.00299768518518917
7617.1617.219594907407417.18708333333330.0325115740740751-0.0595949074074049
7717.2717.266469907407417.24291666666670.02355324074074010.00353009259259451
7817.3417.303969907407417.30041666666670.003553240740741460.0360300925925934
7917.39NANA-0.0151967592592610NA
8017.43NANA-0.0176273148148141NA
8117.45NANA-0.00248842592592593NA
8217.5NANA-0.00741898148148204NA
8317.56NANA-0.021099537037037NA
8417.65NANA-0.0438773148148139NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292070092e1muzusocnn62l2/1g9mw1292069848.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292070092e1muzusocnn62l2/1g9mw1292069848.ps (open in new window)


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


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


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