Home » date » 2009 » Dec » 04 »

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Fri, 04 Dec 2009 07:52:58 -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/04/t1259938469akt76117z9mdlil.htm/, Retrieved Fri, 04 Dec 2009 15:54:35 +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/04/t1259938469akt76117z9mdlil.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:
WS9
 
Dataseries X:
» Textbox « » Textfile « » CSV «
106370 109375 116476 123297 114813 117925 126466 131235 120546 123791 129813 133463 122987 125418 130199 133016 121454 122044 128313 131556 120027 123001 130111 132524 123742 124931 133646 136557 127509 128945 137191 139716 129083 131604 139413 143125 133948 137116 144864 149277 138796 143258 150034 154708 144888 148762 156500 161088 152772 158011 163318 169969 162269 165765 170600 174681 166364 170240 176150 182056 172218 177856 182253 188090 176863 183273 187969 194650 183036 189516 193805 200499 188142 193732 197126 205140 191751 196700 199784 207360 196101 200824 205743 212489 200810 203683 207286 210910 194915 217920
 
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
1106370NANA-5397.39880952381NA
2109375NANA-2732.01190476190NA
3116476117118.321428571114934.8752183.44642857143-642.321428571435
4123297123004.9642857141170595945.96428571429292.03571428571
5114813113979.101190476119376.5-5397.39880952381833.898809523816
6117925118885.488095238121617.5-2732.01190476190-960.488095238092
7126466125509.821428571123326.3752183.44642857143956.178571428565
8131235130722.214285714124776.255945.96428571429512.78571428571
9120546120530.476190476125927.875-5397.3988095238115.5238095238165
10123791123892.738095238126624.75-2732.01190476190-101.738095238092
11129813129391.821428571127208.3752183.44642857143421.178571428565
12133463133662.839285714127716.8755945.96428571429-199.83928571429
13122987122571.101190476127968.5-5397.39880952381415.898809523816
14125418125228.863095238127960.875-2732.01190476190189.136904761908
15130199129896.821428571127713.3752183.44642857143302.178571428565
16133016133045.9642857141271005945.96428571429-29.9642857142899
17121454121045.101190476126442.5-5397.39880952381408.898809523816
18122044123292.238095238126024.25-2732.01190476190-1248.23809523809
19128313127846.821428571125663.3752183.44642857143466.178571428565
20131556131550.589285714125604.6255945.964285714295.41071428571013
21120027120551.601190476125949-5397.39880952381-524.601190476184
22123001123562.738095238126294.75-2732.01190476190-561.738095238092
23130111129063.571428571126880.1252183.446428571431047.42857142857
24132524133531.714285714127585.755945.96428571429-1007.71428571429
25123742122871.476190476128268.875-5397.39880952381870.523809523816
26124931126482.863095238129214.875-2732.01190476190-1551.86309523809
27133646132373.321428571130189.8752183.446428571431272.67857142858
28136557137108.464285714131162.55945.96428571429-551.46428571429
29127509126709.976190476132107.375-5397.39880952381799.023809523816
30128945130213.363095238132945.375-2732.01190476190-1268.36309523811
31137191135720.4464285711335372183.446428571431470.55357142858
32139716140012.089285714134066.1255945.96428571429-296.08928571429
33129083129278.851190476134676.25-5397.39880952381-195.851190476184
34131604132648.113095238135380.125-2732.01190476190-1044.11309523811
35139413138597.821428571136414.3752183.44642857143815.17857142858
36143125143657.464285714137711.55945.96428571429-532.46428571429
37133948133684.476190476139081.875-5397.39880952381263.523809523816
38137116137800.238095238140532.25-2732.01190476190-684.238095238106
39144864144090.696428571141907.252183.44642857143773.30357142858
40149277149226.9642857141432815945.9642857142950.0357142857101
41138796139297.601190476144695-5397.39880952381-501.601190476184
42143258143288.113095238146020.125-2732.01190476190-30.1130952381063
43150034149643.946428571147460.52183.44642857143390.05357142858
44154708154855.9642857141489105945.96428571429-147.96428571429
45144888145008.851190476150406.25-5397.39880952381-120.851190476184
46148762149279.988095238152012-2732.01190476190-517.988095238106
47156500155978.4464285711537952183.44642857143521.55357142858
48161088161882.589285714155936.6255945.96428571429-794.58928571429
49152772152547.601190476157945-5397.39880952381224.398809523816
50158011157175.363095238159907.375-2732.01190476190835.636904761894
51163318164388.071428571162204.6252183.44642857143-1070.07142857142
52169969170306.9642857141643615945.96428571429-337.96428571429
53162269160843.101190476166240.5-5397.398809523811425.89880952382
54165765165007.738095238167739.75-2732.01190476190757.261904761894
55170600171024.071428571168840.6252183.44642857143-424.07142857142
56174681175857.839285714169911.8755945.96428571429-1176.83928571429
57166364165767.601190476171165-5397.39880952381596.398809523816
58170240170048.613095238172780.625-2732.01190476190191.386904761894
59176150176617.696428571174434.252183.44642857143-467.69642857142
60182056182063.9642857141761185945.96428571429-7.96428571428987
61172218172435.476190476177832.875-5397.39880952381-217.476190476184
62177856176617.988095238179350-2732.011904761901238.01190476189
63182253182868.321428571180684.8752183.44642857143-615.32142857142
64188090187888.589285714181942.6255945.96428571429201.41071428571
65176863177936.851190476183334.25-5397.39880952381-1073.85119047618
66183273182136.738095238184868.75-2732.011904761901136.26190476189
67187969188643.821428571186460.3752183.44642857143-674.82142857142
68194650193958.339285714188012.3755945.96428571429691.66071428571
69183036184124.851190476189522.25-5397.39880952381-1088.85119047618
70189516188250.863095238190982.875-2732.011904761901265.13690476189
71193805194535.696428571192352.252183.44642857143-730.69642857142
72200499199463.464285714193517.55945.964285714291035.53571428571
73188142189062.226190476194459.625-5397.39880952381-920.226190476184
74193732192722.863095238195454.875-2732.011904761901009.13690476189
75197126198669.571428571196486.1252183.44642857143-1543.57142857142
76205140203254.214285714197308.255945.964285714291885.78571428571
77191751192614.101190476198011.5-5397.39880952381-863.101190476184
78196700195889.238095238198621.25-2732.01190476190810.761904761894
79199784201625.946428571199442.52183.44642857143-1841.94642857142
80207360206447.714285714200501.755945.96428571429912.28571428571
81196101196364.726190476201762.125-5397.39880952381-263.726190476184
82200824200416.113095238203148.125-2732.01190476190407.886904761894
83205743206561.321428571204377.8752183.44642857143-818.32142857142
84212489211269.839285714205323.8755945.964285714291219.16071428571
85200810200476.726190476205874.125-5397.39880952381333.273809523816
86203683203137.613095238205869.625-2732.01190476190545.386904761894
87207286207118.821428571204935.3752183.44642857143167.178571428580
88210910211924.089285714205978.1255945.96428571429-1014.08928571429
89194915NANANANA
90217920NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259938469akt76117z9mdlil/1o5f61259938376.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259938469akt76117z9mdlil/1o5f61259938376.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259938469akt76117z9mdlil/24e1y1259938376.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259938469akt76117z9mdlil/24e1y1259938376.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259938469akt76117z9mdlil/3xzep1259938376.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259938469akt76117z9mdlil/3xzep1259938376.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259938469akt76117z9mdlil/4c7lx1259938376.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259938469akt76117z9mdlil/4c7lx1259938376.ps (open in new window)


 
Parameters (Session):
par1 = additive ; par2 = 4 ;
 
Parameters (R input):
par1 = additive ; par2 = 4 ;
 
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