Home » date » 2009 » Dec » 03 »

*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: Thu, 03 Dec 2009 10:45:37 -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/Dec/03/t12598623685nwny0iqri97lj9.htm/, Retrieved Thu, 03 Dec 2009 18:46:14 +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/Dec/03/t12598623685nwny0iqri97lj9.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 «
115.47 103.34 102.60 100.69 105.67 123.61 113.08 106.46 123.38 109.87 95.74 123.06 123.39 120.28 115.33 110.4 114.49 132.03 123.16 118.82 128.32 112.24 104.53 132.57 122.52 131.8 124.55 120.96 122.6 145.52 118.57 134.25 136.7 121.37 111.63 134.42 137.65 137.86 119.77 130.69 128.28 147.45 128.42 136.9 143.95 135.64 122.48 136.83 153.04 142.71 123.46 144.37 146.15 147.61 158.51 147.4 165.05 154.64 126.2 157.36 154.15 123.21 113.07 110.45 113.57 122.44 114.93 111.85 126.04 121.34
 
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
1115.47NANA5.81928819444444NA
2103.34NANA3.93210069444445NA
3102.6NANA-9.31342013888889NA
4100.69NANA-4.38633680555555NA
5105.67NANA-3.89498263888889NA
6123.61NANA10.7029340277778NA
7113.08109.615225694444110.5775-0.9622743055555663.46477430555557
8106.46112.477621527778111.6133333333330.864288194444442-6.01762152777776
9123.38122.869392361111112.84958333333310.01980902777780.510607638888914
10109.87111.294913194444113.784583333333-2.48967013888889-1.42491319444444
1195.7497.3135590277778114.556666666667-17.2431076388889-1.57355902777779
12123.06122.226371527778115.2756.951371527777770.833628472222216
13123.39121.865121527778116.0458333333335.819288194444441.52487847222224
14120.28120.912934027778116.9808333333333.93210069444445-0.632934027777793
15115.33108.388246527778117.701666666667-9.313420138888896.94175347222223
16110.4113.619913194444118.00625-4.38633680555555-3.21991319444444
17114.49114.576267361111118.47125-3.89498263888889-0.0862673611110978
18132.03129.936684027778119.2337510.70293402777782.09331597222223
19123.16118.631475694444119.59375-0.9622743055555664.52852430555558
20118.82120.901788194444120.03750.864288194444442-2.08178819444446
21128.32130.921475694444120.90166666666710.0198090277778-2.60147569444445
22112.24119.236163194444121.725833333333-2.48967013888889-6.99616319444445
23104.53105.260642361111122.50375-17.2431076388889-0.730642361111109
24132.57130.355121527778123.403756.951371527777772.21487847222222
25122.52129.593871527778123.7745833333335.81928819444444-7.07387152777775
26131.8128.158350694444124.226253.932100694444453.64164930555557
27124.55115.904913194444125.218333333333-9.313420138888898.6450868055556
28120.96121.561579861111125.947916666667-4.38633680555555-0.601579861111105
29122.6122.729184027778126.624166666667-3.89498263888889-0.129184027777768
30145.52137.700017361111126.99708333333310.70293402777787.81998263888892
31118.57126.742309027778127.704583333333-0.962274305555566-8.17230902777776
32134.25129.451788194444128.58750.8642881944444424.79821180555558
33136.7138.660642361111128.64083333333310.0198090277778-1.9606423611111
34121.37126.357413194444128.847083333333-2.48967013888889-4.98741319444441
35111.63112.246059027778129.489166666667-17.2431076388889-0.616059027777766
36134.42136.757621527778129.806256.95137152777777-2.33762152777777
37137.65136.116371527778130.2970833333335.819288194444441.53362847222223
38137.86134.750017361111130.8179166666673.932100694444453.10998263888894
39119.77121.916996527778131.230416666667-9.31342013888889-2.14699652777776
40130.69127.740746527778132.127083333333-4.386336805555552.94925347222224
41128.28129.278767361111133.17375-3.89498263888889-0.998767361111106
42147.45144.429184027778133.7262510.70293402777783.02081597222221
43128.42133.505642361111134.467916666667-0.962274305555566-5.08564236111113
44136.9136.175538194444135.311250.8642881944444420.724461805555563
45143.95145.686892361111135.66708333333310.0198090277778-1.73689236111110
46135.64133.901163194444136.390833333333-2.489670138888891.73883680555556
47122.48120.462309027778137.705416666667-17.24310763888892.01769097222225
48136.83145.408038194444138.4566666666676.95137152777777-8.57803819444445
49153.04145.536371527778139.7170833333335.819288194444447.5036284722222
50142.71145.340434027778141.4083333333333.93210069444445-2.63043402777777
51123.46133.411579861111142.725-9.31342013888889-9.9515798611111
52144.37140.009496527778144.395833333333-4.386336805555554.36050347222223
53146.15141.447517361111145.3425-3.894982638888894.70248263888888
54147.61157.055850694444146.35291666666710.7029340277778-9.4458506944444
55158.51146.292309027778147.254583333333-0.96227430555556612.2176909722222
56147.4147.352621527778146.4883333333330.8642881944444420.047378472222249
57165.05155.262725694444145.24291666666710.01980902777789.78727430555557
58154.64140.906996527778143.396666666667-2.4896701388888913.7330034722222
59126.2123.382725694444140.625833333333-17.24310763888892.81727430555557
60157.36145.170954861111138.2195833333336.9513715277777712.1890451388889
61154.15NA135.355NANA
62123.21NA132.057916666667NANA
63113.07NA128.95125NANA
64110.45NA125.938333333333NANA
65113.57NANANANA
66122.44NANANANA
67114.93NANANANA
68111.85NANANANA
69126.04NANANANA
70121.34NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/03/t12598623685nwny0iqri97lj9/1and01259862335.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t12598623685nwny0iqri97lj9/1and01259862335.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/03/t12598623685nwny0iqri97lj9/2gxvv1259862335.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t12598623685nwny0iqri97lj9/2gxvv1259862335.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/03/t12598623685nwny0iqri97lj9/30mml1259862335.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t12598623685nwny0iqri97lj9/30mml1259862335.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/03/t12598623685nwny0iqri97lj9/4ezm71259862335.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t12598623685nwny0iqri97lj9/4ezm71259862335.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