Home » date » 2010 » May » 24 »

Paper : Opgave9 (oef2) - Ishia Opgenhaffen

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 24 May 2010 10:03:40 +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/May/24/t1274695683rnn98l0uwg9o2kx.htm/, Retrieved Mon, 24 May 2010 12:08:08 +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/May/24/t1274695683rnn98l0uwg9o2kx.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 «
121,67 121,65 121,61 121,5 121,41 121,41 121,4 121,38 121,34 121,19 120,96 120,96 120,96 120,9 120,86 120,73 120,53 120,53 120,53 120,52 120,51 120,43 120,29 120,27 120,27 120,24 120,21 120,06 119,86 119,85 119,85 119,83 119,71 119,57 119,2 119,13 119,13 119,09 118,9 118,54 118,12 118,11 118,1 118,08 117,91 117,63 117,28 117,2 117,17 117,14 116,96 116,34 115,99 115,99 115,97 115,92 115,63 115,31 115,13 115,09 115,07 115,01 114,64 113,86 113,34 113,33 113,32 113,26 113,2 112,61 112,28 112,16
 
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
1121.67NANA0.105722222222220NA
2121.65NANA0.196722222222226NA
3121.61NANA0.170222222222224NA
4121.5NANA-0.0984444444444397NA
5121.41NANA-0.292611111111109NA
6121.41NANA-0.152944444444444NA
7121.4121.353805555556121.343750.01005555555554970.0461944444444669
8121.38121.379305555556121.2829166666670.09638888888888980.000694444444434339
9121.34121.304222222222121.2204166666670.08380555555555650.0357777777777812
10121.19121.168638888889121.1570833333330.01155555555555400.0213611111111049
11120.96120.976805555556121.088333333333-0.111527777777781-0.0168055555555640
12120.96120.996055555556121.015-0.0189444444444466-0.0360555555555493
13120.96121.047805555556120.9420833333330.105722222222220-0.0878055555555477
14120.9121.066722222222120.870.196722222222226-0.166722222222205
15120.86120.969805555556120.7995833333330.170222222222224-0.109805555555567
16120.73120.634888888889120.733333333333-0.09844444444443970.095111111111109
17120.53120.381138888889120.67375-0.2926111111111090.148861111111103
18120.53120.464138888889120.617083333333-0.1529444444444440.0658611111111043
19120.53120.569638888889120.5595833333330.0100555555555497-0.0396388888889163
20120.52120.599722222222120.5033333333330.0963888888888898-0.0797222222222302
21120.51120.532555555556120.448750.0838055555555565-0.0225555555555559
22120.43120.405305555556120.393750.01155555555555400.0246944444444352
23120.29120.226388888889120.337916666667-0.1115277777777810.063611111111129
24120.27120.262722222222120.281666666667-0.01894444444444660.00727777777777305
25120.27120.330722222222120.2250.105722222222220-0.0607222222222106
26120.24120.364638888889120.1679166666670.196722222222226-0.124638888888853
27120.21120.276055555556120.1058333333330.170222222222224-0.0660555555555362
28120.06119.938222222222120.036666666667-0.09844444444443970.121777777777794
29119.86119.662805555556119.955416666667-0.2926111111111090.197194444444477
30119.85119.709555555556119.8625-0.1529444444444440.140444444444455
31119.85119.777555555556119.76750.01005555555554970.0724444444444572
32119.83119.768472222222119.6720833333330.09638888888888980.0615277777777834
33119.71119.653388888889119.5695833333330.08380555555555650.0566111111111098
34119.57119.463222222222119.4516666666670.01155555555555400.106777777777779
35119.2119.204305555556119.315833333333-0.111527777777781-0.0043055555555469
36119.13119.151888888889119.170833333333-0.0189444444444466-0.0218888888888955
37119.13119.131138888889119.0254166666670.105722222222220-0.0011388888888888
38119.09119.076305555556118.8795833333330.1967222222222260.0136944444444538
39118.9118.901888888889118.7316666666670.170222222222224-0.00188888888887107
40118.54118.477388888889118.575833333333-0.09844444444443970.0626111111111243
41118.12118.122388888889118.415-0.292611111111109-0.00238888888885924
42118.11118.101638888889118.254583333333-0.1529444444444440.00836111111111393
43118.1118.102555555556118.09250.0100555555555497-0.00255555555555986
44118.08118.025972222222117.9295833333330.09638888888888980.0540277777777618
45117.91117.851305555556117.76750.08380555555555650.0586944444444413
46117.63117.606555555556117.5950.01155555555555400.0234444444444364
47117.28117.303055555556117.414583333333-0.111527777777781-0.0230555555555583
48117.2117.218555555556117.2375-0.0189444444444466-0.018555555555551
49117.17117.166138888889117.0604166666670.1057222222222200.00386111111109244
50117.14117.078388888889116.8816666666670.1967222222222260.0616111111111053
51116.96116.866888888889116.6966666666670.1702222222222240.0931111111111278
52116.34116.406555555556116.505-0.0984444444444397-0.0665555555555528
53115.99116.026138888889116.31875-0.292611111111109-0.0361388888888996
54115.99115.988305555556116.14125-0.1529444444444440.00169444444445332
55115.97115.975888888889115.9658333333330.0100555555555497-0.00588888888887595
56115.92115.885972222222115.7895833333330.09638888888888980.0340277777778084
57115.63115.687972222222115.6041666666670.0838055555555565-0.0579722222221903
58115.31115.415722222222115.4041666666670.0115555555555540-0.105722222222198
59115.13115.078888888889115.190416666667-0.1115277777777810.0511111111111262
60115.09114.950222222222114.969166666667-0.01894444444444660.139777777777795
61115.07114.853638888889114.7479166666670.1057222222222200.216361111111112
62115.01114.723388888889114.5266666666670.1967222222222260.286611111111114
63114.64114.484805555556114.3145833333330.1702222222222240.155194444444447
64113.86114.002388888889114.100833333333-0.0984444444444397-0.142388888888888
65113.34113.576972222222113.869583333333-0.292611111111109-0.236972222222207
66113.33113.475805555556113.62875-0.152944444444444-0.145805555555540
67113.32NANA0.0100555555555497NA
68113.26NANA0.0963888888888898NA
69113.2NANA0.0838055555555565NA
70112.61NANA0.0115555555555540NA
71112.28NANA-0.111527777777781NA
72112.16NANA-0.0189444444444466NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/24/t1274695683rnn98l0uwg9o2kx/1bqxx1274695415.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/24/t1274695683rnn98l0uwg9o2kx/1bqxx1274695415.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/24/t1274695683rnn98l0uwg9o2kx/2l0e01274695415.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/24/t1274695683rnn98l0uwg9o2kx/2l0e01274695415.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/24/t1274695683rnn98l0uwg9o2kx/3l0e01274695415.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/24/t1274695683rnn98l0uwg9o2kx/3l0e01274695415.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/24/t1274695683rnn98l0uwg9o2kx/4cm5m1274695416.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/24/t1274695683rnn98l0uwg9o2kx/4cm5m1274695416.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