Home » date » 2009 » Nov » 29 »

ws 9 classical

*The author of this computation has been verified*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 29 Nov 2009 06:41:35 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Nov/29/t1259502133cak2eqea4d0xny6.htm/, Retrieved Sun, 29 Nov 2009 14:42:18 +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/2009/Nov/29/t1259502133cak2eqea4d0xny6.htm/},
    year = {2009},
}
@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 = {2009},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
103,63 103,64 103,66 103,77 103,88 103,91 103,91 103,92 104,05 104,23 104,30 104,31 104,31 104,34 104,55 104,65 104,73 104,75 104,75 104,76 104,94 105,29 105,38 105,43 105,43 105,42 105,52 105,69 105,72 105,74 105,74 105,74 105,95 106,17 106,34 106,37 106,37 106,36 106,44 106,29 106,23 106,23 106,23 106,23 106,34 106,44 106,44 106,48 106,50 106,57 106,40 106,37 106,25 106,21 106,21 106,24 106,19 106,08 106,13 106,09
 
Output produced by software:


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


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1103.63NANA1.00055541275226NA
2103.64NANA1.00028715838792NA
3103.66NANA1.00037376459922NA
4103.77NANA1.00019650002369NA
5103.88NANA0.999670231989992NA
6103.91NANA0.99931323068568NA
7103.91103.851834036343103.96250.9989355203688161.00056008605141
8103.92103.854535605669104.020.9984093021117911.00063034699399
9104.05104.017831576674104.086250.99934267568171.00030925873803
10104.23104.246596397299104.161.000831378622310.99984079674663
11104.3104.348868191934104.2320833333331.001120431011890.999531684504293
12104.31104.403088680647104.30251.000964393764740.999108372349674
13104.31104.430469817485104.37251.000555412752260.99884641122753
14104.34104.47249153993104.44251.000287158387920.998731804535557
15104.55104.553647184686104.5145833333331.000373764599220.99996511661923
16104.65104.616386417061104.5958333333331.000196500023691.00032130323069
17104.73104.650478235872104.6850.9996702319899921.0007598796056
18104.75104.704709267143104.7766666666670.999313230685681.00043255678922
19104.75104.758368021078104.870.9989355203688160.99992012073846
20104.76104.794704365157104.9616666666670.9984093021117910.99966883474344
21104.94104.978033330892105.0470833333330.99934267568170.999637702005981
22105.29105.218236860712105.1308333333331.000831378622311.00068204088406
23105.38105.333303282429105.2154166666671.001120431011891.00044332339456
24105.43105.399465320940105.2979166666671.000964393764741.00028970430701
25105.43105.438946293922105.3804166666671.000555412752260.999915151903199
26105.42105.492784441486105.46251.000287158387920.999310052892518
27105.52105.584865807027105.5454166666671.000373764599220.999385652417788
28105.69105.644921817919105.6241666666671.000196500023691.00042669520982
29105.72105.665976579869105.7008333333330.9996702319899921.00051126599006
30105.74105.707353541931105.780.999313230685681.00030883809853
31105.74105.745649293709105.8583333333330.9989355203688160.999946576584978
32105.74105.768153434716105.9366666666670.9984093021117910.999733819360536
33105.95105.944480976832106.0141666666670.99934267568171.00005209354104
34106.17106.165690565808106.07751.000831378622311.00004059159008
35106.34106.242654340598106.123751.001120431011891.00091625778748
36106.37106.267801932531106.1654166666671.000964393764741.00096170303338
37106.37106.265238305620106.206251.000555412752261.00098585102759
38106.36106.277593074504106.2470833333331.000287158387921.00077539322365
39106.44106.323475103222106.283751.000373764599221.00109594703018
40106.29106.332140163143106.311251.000196500023690.999603693078324
41106.23106.291603533389106.3266666666670.9996702319899920.999420428977066
42106.23106.262388765475106.3354166666670.999313230685680.999695200099952
43106.23106.232214136755106.3454166666670.9989355203688160.999979157576887
44106.23106.190397368734106.3595833333330.9984093021117911.00037293985376
45106.34106.29674927001106.3666666666670.99934267568171.00040688666669
46106.44106.456765691757106.3683333333331.000831378622310.999842511730956
47106.44106.491683047812106.37251.001120431011890.999514675265402
48106.48106.475084975740106.37251.000964393764741.00004616126168
49106.5106.429913050635106.3708333333331.000555412752261.00065852679342
50106.57106.400961824039106.3704166666671.000287158387921.00158869030001
51106.4106.404338649194106.3645833333331.000373764599220.999959224884537
52106.37106.364229800852106.3433333333331.000196500023691.0000542494329
53106.25106.280357243279106.3154166666670.9996702319899920.999714366379012
54106.21106.213255864966106.286250.999313230685680.99996934596403
55106.21NANA0.998935520368816NA
56106.24NANA0.998409302111791NA
57106.19NANA0.9993426756817NA
58106.08NANA1.00083137862231NA
59106.13NANA1.00112043101189NA
60106.09NANA1.00096439376474NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/29/t1259502133cak2eqea4d0xny6/147yu1259502093.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/29/t1259502133cak2eqea4d0xny6/147yu1259502093.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/29/t1259502133cak2eqea4d0xny6/2c8c91259502093.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/29/t1259502133cak2eqea4d0xny6/2c8c91259502093.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/29/t1259502133cak2eqea4d0xny6/3mh7i1259502093.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/29/t1259502133cak2eqea4d0xny6/3mh7i1259502093.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/29/t1259502133cak2eqea4d0xny6/4uc8t1259502093.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/29/t1259502133cak2eqea4d0xny6/4uc8t1259502093.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