Home » date » 2010 » Dec » 06 »

opdracht 9

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 06 Dec 2010 17:52:56 +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/06/t129165820404nl4lsngisr0ai.htm/, Retrieved Mon, 06 Dec 2010 18:56:44 +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/06/t129165820404nl4lsngisr0ai.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 «
108 106,6 122,2 115,8 115,6 124,5 121,7 118,7 113,7 113,4 115,1 143,9 101 103,4 121,5 111,9 117,4 124,3 122 119,7 115 112,2 115,3 142,6 104,1 105,3 124,4 113,9 124,8 131,8 125,6 125 119,7 116,1 120 148,1 109,2 109,4 135,1 114,9 129 138,5 125,6 130,4 120,3 126,2 127,6 150,9 114,6 118,6 131,4 124,5 136,8 136,8 136,6 131 125,8 129,4 124,8 157,1 116,6 114,2 128,4 127,3 133,5 137,2 137,7 131,2 127,7 133,9 124,3 160,6
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1108NANA-14.8594444444444NA
2106.6NANA-14.0169444444444NA
3122.2NANA3.74222222222223NA
4115.8NANA-6.20527777777777NA
5115.6NANA3.34722222222222NA
6124.5NANA8.55138888888887NA
7121.7121.452222222222117.9753.477222222222200.247777777777799
8118.7119.552222222222117.552.00222222222222-0.852222222222224
9113.7113.214722222222117.3875-4.172777777777780.485277777777767
10113.4113.435555555556117.195833333333-3.76027777777778-0.0355555555555469
11115.1114.203055555556117.108333333333-2.905277777777770.896944444444443
12143.9141.974722222222117.17524.79972222222221.92527777777779
13101102.319722222222117.179166666667-14.8594444444444-1.31972222222221
14103.4103.216388888889117.233333333333-14.01694444444440.183611111111119
15121.5121.071388888889117.3291666666673.742222222222230.42861111111111
16111.9111.128055555556117.333333333333-6.205277777777770.771944444444458
17117.4120.638888888889117.2916666666673.34722222222222-3.23888888888888
18124.3125.797222222222117.2458333333338.55138888888887-1.49722222222223
19122120.798055555556117.3208333333333.477222222222201.20194444444445
20119.7119.531388888889117.5291666666672.002222222222220.168611111111119
21115113.556388888889117.729166666667-4.172777777777781.44361111111111
22112.2114.173055555556117.933333333333-3.76027777777778-1.97305555555553
23115.3115.419722222222118.325-2.90527777777777-0.119722222222222
24142.6143.745555555556118.94583333333324.7997222222222-1.14555555555555
25104.1104.548888888889119.408333333333-14.8594444444444-0.448888888888888
26105.3105.762222222222119.779166666667-14.0169444444444-0.462222222222223
27124.4123.938055555556120.1958333333333.742222222222230.461944444444441
28113.9114.348888888889120.554166666667-6.20527777777777-0.448888888888902
29124.8124.259722222222120.91253.347222222222220.540277777777774
30131.8129.888888888889121.33758.551388888888871.91111111111111
31125.6125.256388888889121.7791666666673.477222222222200.343611111111088
32125124.164722222222122.16252.002222222222220.835277777777776
33119.7118.606388888889122.779166666667-4.172777777777781.09361111111112
34116.1119.506388888889123.266666666667-3.76027777777778-3.4063888888889
35120120.578055555556123.483333333333-2.90527777777777-0.578055555555565
36148.1148.737222222222123.937524.7997222222222-0.637222222222235
37109.2109.357222222222124.216666666667-14.8594444444444-0.157222222222217
38109.4110.424722222222124.441666666667-14.0169444444444-1.02472222222221
39135.1128.433888888889124.6916666666673.742222222222236.66611111111109
40114.9118.932222222222125.1375-6.20527777777777-4.03222222222222
41129129.222222222222125.8753.34722222222222-0.222222222222214
42138.5134.859722222222126.3083333333338.551388888888873.64027777777777
43125.6130.127222222222126.653.47722222222220-4.52722222222224
44130.4129.260555555556127.2583333333332.002222222222221.13944444444445
45120.3123.314722222222127.4875-4.17277777777778-3.01472222222223
46126.2123.973055555556127.733333333333-3.760277777777782.22694444444444
47127.6125.553055555556128.458333333333-2.905277777777772.04694444444445
48150.9153.512222222222128.712524.7997222222222-2.61222222222223
49114.6114.240555555556129.1-14.85944444444440.359444444444449
50118.6115.566388888889129.583333333333-14.01694444444443.0336111111111
51131.4133.579722222222129.83753.74222222222223-2.17972222222221
52124.5123.994722222222130.2-6.205277777777770.505277777777792
53136.8133.563888888889130.2166666666673.347222222222223.23611111111111
54136.8138.909722222222130.3583333333338.55138888888887-2.10972222222222
55136.6134.177222222222130.73.477222222222202.42277777777778
56131132.602222222222130.62.00222222222222-1.60222222222225
57125.8126.118888888889130.291666666667-4.17277777777778-0.318888888888864
58129.4126.523055555556130.283333333333-3.760277777777782.87694444444443
59124.8127.357222222222130.2625-2.90527777777777-2.55722222222222
60157.1154.941388888889130.14166666666724.79972222222222.1586111111111
61116.6115.344722222222130.204166666667-14.85944444444441.25527777777779
62114.2116.241388888889130.258333333333-14.0169444444444-2.04138888888889
63128.4134.088055555556130.3458333333333.74222222222223-5.68805555555556
64127.3124.407222222222130.6125-6.205277777777772.89277777777775
65133.5134.126388888889130.7791666666673.34722222222222-0.626388888888897
66137.2139.455555555556130.9041666666678.55138888888887-2.25555555555556
67137.7NANA3.47722222222220NA
68131.2NANA2.00222222222222NA
69127.7NANA-4.17277777777778NA
70133.9NANA-3.76027777777778NA
71124.3NANA-2.90527777777777NA
72160.6NANA24.7997222222222NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/06/t129165820404nl4lsngisr0ai/1ajrg1291657972.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t129165820404nl4lsngisr0ai/1ajrg1291657972.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t129165820404nl4lsngisr0ai/2ajrg1291657972.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t129165820404nl4lsngisr0ai/2ajrg1291657972.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t129165820404nl4lsngisr0ai/3ls8j1291657972.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t129165820404nl4lsngisr0ai/3ls8j1291657972.ps (open in new window)


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