Home » date » 2010 » Jun » 05 »

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: Sat, 05 Jun 2010 20:08:05 +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/Jun/05/t1275768513ewozxykw8wltn7w.htm/, Retrieved Sat, 05 Jun 2010 22:08:38 +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/Jun/05/t1275768513ewozxykw8wltn7w.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:
KDGP2W52
 
Dataseries X:
» Textbox « » Textfile « » CSV «
103,6 104,7 105,5 106,6 107,2 107,5 108,3 108,7 108,8 109,8 109,5 109,2 110,6 110,1 109,9 109,7 109,4 109,4 109,4 109,5 109,5 109,9 110 110,8 112,4 112,8 113,7 114,5 114,8 115,6 115,8 115,8 116,3 116,3 116,8 116,7 116,8 117 117,2 117,1 117,3 117,4 117,7 117,9 118,8 119,9 122,4 123,5 125,6 127,4 128,9 129,5 130,8 132,7 134 132,9 133,1 131,7 128,8 125,1 123,9 121,8 119,2 118,9 119,6 120,2 119,6 121 120,4 120,4 121,4 121,7
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1103.6NANA1.0007472369393NA
2104.7NANA0.99865641622814NA
3105.5NANA0.996650073755185NA
4106.6NANA0.996381252604108NA
5107.2NANA0.998271956179898NA
6107.5NANA1.00201337185898NA
7108.3108.262910608017107.7416666666671.004837904939441.00034258631857
8108.7108.435605755290108.2583333333331.001637494468081.00243826041150
9108.8108.905624568176108.6666666666671.002198999093640.999030127520093
10109.8109.247473395573108.9791666666671.002462000188771.00505756872222
11109.5109.273174678851109.21.000670097791681.00207576399071
12109.2108.875733002351109.3708333333330.9954731959527731.00297832206229
13110.6109.577652664699109.4958333333331.00074723693931.00932988899141
14110.1109.427776808199109.5750.998656416228141.00614307638708
15109.9109.270222461334109.63750.9966500737551851.00576348729306
16109.7109.273962290803109.6708333333330.9963812526041081.00389880352342
17109.4109.506274126451109.6958333333330.9982719561798980.999029515639186
18109.4110.004368007251109.7833333333331.002013371858980.99450596355218
19109.4110.456806700468109.9251.004837904939440.990432398581522
20109.5110.292808609616110.11251.001637494468080.992811783292031
21109.5110.626066183287110.3833333333331.002198999093640.989820968763177
22109.9111.014312670905110.7416666666671.002462000188770.989962441381693
23110111.241159204508111.1666666666671.000670097791680.988842626116232
24110.8111.144582328127111.650.9954731959527730.996899692986296
25112.4112.258821303666112.1751.00074723693931.00125761783969
26112.8112.552739177312112.7041666666670.998656416228141.00219684411499
27113.7112.870620852775113.250.9966500737551851.00734805160952
28114.5113.388186546347113.80.9963812526041081.00980537291862
29114.8114.152398189171114.350.9982719561798981.00567313364504
30115.6115.110461148016114.8791666666671.002013371858981.00425277465751
31115.8115.866184088725115.3083333333331.004837904939440.999428788569799
32115.8115.856070193475115.6666666666671.001637494468080.999516035772826
33116.3116.242556407374115.98751.002198999093641.00049417007335
34116.3116.527853671943116.2416666666671.002462000188770.998044641991047
35116.8116.532202346582116.4541666666671.000670097791681.00229805708659
36116.7116.105357087958116.6333333333330.9954731959527731.00512158032115
37116.8116.874767934049116.78751.00074723693930.999360273090846
38117116.797028946282116.9541666666670.998656416228141.00173781007573
39117.2116.753403431779117.1458333333330.9966500737551851.00382512676371
40117.1116.975159055722117.40.9963812526041081.00106724321032
41117.3117.579798572056117.7833333333330.9982719561798980.99762035166369
42117.4118.538181890917118.31.002013371858980.990398183329957
43117.7119.525468792546118.951.004837904939440.984727365548218
44117.9119.946089962553119.751.001637494468080.982941586814615
45118.8120.936188386462120.6708333333331.002198999093640.982336235208307
46119.9121.974563872969121.6751.002462000188770.982991832009092
47122.4122.836423962670122.7541666666671.000670097791680.996447112765167
48123.5123.393050443329123.9541666666670.9954731959527731.00086673889888
49125.6125.364440327417125.2708333333331.00074723693931.00187899911624
50127.4126.404935884077126.5750.998656416228141.00787203528852
51128.9127.367726717272127.7958333333330.9966500737551851.01203031036370
52129.5128.416937106459128.8833333333330.9963812526041081.00843395675013
53130.8129.417640185756129.6416666666670.9982719561798981.01068138634162
54132.7130.236688007370129.9751.002013371858981.01891411729151
55134130.5996198699129.9708333333331.004837904939441.02603667708595
56132.9129.878995116028129.6666666666671.001637494468081.02326014981309
57133.1129.31290168722129.0291666666671.002198999093641.02928631453913
58131.7128.498920724198128.1833333333331.002462000188771.024911332
59128.8127.360286696436127.2751.000670097791681.01130425614537
60125.1125.715821233886126.28750.9954731959527730.995101481835448
61123.9125.260195823569125.1666666666671.00074723693930.989141037065877
62121.8123.904133775106124.0708333333330.998656416228140.983018050237736
63119.2122.633638866935123.0458333333330.9966500737551850.972000840074063
64118.9121.604180291779122.0458333333330.9963812526041080.977762439701576
65119.6121.057112552749121.2666666666670.9982719561798980.987963428814527
66120.2121.059915543429120.8166666666671.002013371858980.992896777272903
67119.6NANA1.00483790493944NA
68121NANA1.00163749446808NA
69120.4NANA1.00219899909364NA
70120.4NANA1.00246200018877NA
71121.4NANA1.00067009779168NA
72121.7NANA0.995473195952773NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jun/05/t1275768513ewozxykw8wltn7w/15if11275768483.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/05/t1275768513ewozxykw8wltn7w/15if11275768483.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/05/t1275768513ewozxykw8wltn7w/25if11275768483.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/05/t1275768513ewozxykw8wltn7w/25if11275768483.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/05/t1275768513ewozxykw8wltn7w/3yrem1275768483.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/05/t1275768513ewozxykw8wltn7w/3yrem1275768483.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/05/t1275768513ewozxykw8wltn7w/4yrem1275768483.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/05/t1275768513ewozxykw8wltn7w/4yrem1275768483.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