Home » date » 2010 » Jul » 02 »

additieve decompositie

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Fri, 02 Jul 2010 18:26:49 +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/Jul/02/t1278095319ptyl3lnwf6tossu.htm/, Retrieved Fri, 02 Jul 2010 20:28:40 +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/Jul/02/t1278095319ptyl3lnwf6tossu.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:
thomas talboom
 
Dataseries X:
» Textbox « » Textfile « » CSV «
237 236 235 233 231 230 231 233 234 234 235 237 246 245 240 239 231 224 229 231 238 240 237 239 248 239 237 232 216 209 214 217 217 227 218 220 229 224 216 208 191 190 196 196 200 204 193 194 207 209 193 175 157 150 162 157 160 167 159 161 179 180 169 152 128 125 131 135 141 154 152 147 163 165 147 130 106 107 115 114 124 141 139 129
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1237NANA17.6921296296296NA
2236NANA17.6574074074074NA
3235NANA9.2476851851852NA
4233NANA-0.342592592592585NA
5231NANA-16.8634259259259NA
6230NANA-19.4467592592593NA
7231225.331018518519234.208333333333-8.877314814814815.6689814814815
8233228.087962962963234.958333333333-6.870370370370394.91203703703707
9234233.275462962963235.541666666667-2.26620370370370.724537037037067
10234241.0601851851852365.06018518518518-7.06018518518516
11235237.560185185185236.251.31018518518518-2.56018518518516
12237239.6990740740742363.69907407407406-2.69907407407408
13246253.358796296296235.66666666666717.6921296296296-7.3587962962963
14245253.157407407407235.517.6574074074074-8.15740740740742
15240244.831018518519235.5833333333339.2476851851852-4.8310185185185
16239235.657407407407236-0.3425925925925853.34259259259261
17231219.469907407407236.333333333333-16.863425925925911.5300925925926
18224217.053240740741236.5-19.44675925925936.9467592592593
19229227.789351851852236.666666666667-8.877314814814811.21064814814818
20231229.62962962963236.5-6.870370370370391.37037037037038
21238233.858796296296236.125-2.26620370370374.1412037037037
22240240.768518518519235.7083333333335.06018518518518-0.768518518518533
23237236.101851851852234.7916666666671.310185185185180.898148148148152
24239237.240740740741233.5416666666673.699074074074061.75925925925927
25248249.983796296296232.29166666666717.6921296296296-1.98379629629628
26239248.740740740741231.08333333333317.6574074074074-9.74074074074073
27237238.872685185185229.6259.2476851851852-1.87268518518516
28232227.865740740741228.208333333333-0.3425925925925854.1342592592593
29216210.011574074074226.875-16.86342592592595.98842592592592
30209205.844907407407225.291666666667-19.44675925925933.15509259259261
31214214.831018518519223.708333333333-8.87731481481481-0.831018518518505
32217215.421296296296222.291666666667-6.870370370370391.57870370370372
33217218.525462962963220.791666666667-2.2662037037037-1.52546296296296
34227223.976851851852218.9166666666675.060185185185183.02314814814815
35218218.185185185185216.8751.31018518518518-0.18518518518519
36220218.740740740741215.0416666666673.699074074074061.25925925925924
37229231.19212962963213.517.6921296296296-2.19212962962962
38224229.532407407407211.87517.6574074074074-5.53240740740742
39216219.539351851852210.2916666666679.2476851851852-3.53935185185185
40208208.282407407407208.625-0.342592592592585-0.282407407407419
41191189.761574074074206.625-16.86342592592591.2384259259259
42190185.053240740741204.5-19.44675925925934.9467592592593
43196193.622685185185202.5-8.877314814814812.37731481481484
44196194.087962962963200.958333333333-6.870370370370391.91203703703704
45200197.108796296296199.375-2.26620370370372.8912037037037
46204202.101851851852197.0416666666675.060185185185181.89814814814815
47193195.560185185185194.251.31018518518518-2.56018518518522
48194194.865740740741191.1666666666673.69907407407406-0.865740740740705
49207205.775462962963188.08333333333317.69212962962961.22453703703704
50209202.699074074074185.04166666666717.65740740740746.30092592592595
51193190.997685185185181.759.24768518518522.00231481481481
52175178.199074074074178.541666666667-0.342592592592585-3.19907407407408
53157158.719907407407175.583333333333-16.8634259259259-1.71990740740739
54150153.344907407407172.791666666667-19.4467592592593-3.34490740740739
55162161.372685185185170.25-8.877314814814810.62731481481481
56157161.00462962963167.875-6.87037037037039-4.00462962962965
57160163.400462962963165.666666666667-2.2662037037037-3.40046296296296
58167168.768518518519163.7083333333335.06018518518518-1.7685185185185
59159162.851851851852161.5416666666671.31018518518518-3.85185185185185
60161162.990740740741159.2916666666673.69907407407406-1.99074074074076
61179174.650462962963156.95833333333317.69212962962964.34953703703701
62180172.407407407407154.7517.65740740740747.59259259259258
63169162.289351851852153.0416666666679.24768518518526.71064814814818
64152151.365740740741151.708333333333-0.3425925925925850.634259259259238
65128134.011574074074150.875-16.8634259259259-6.01157407407408
66125130.553240740741150-19.4467592592593-5.55324074074073
67131139.872685185185148.75-8.87731481481481-8.87268518518522
68135140.587962962963147.458333333333-6.87037037037039-5.58796296296296
69141143.650462962963145.916666666667-2.2662037037037-2.65046296296296
70154149.143518518519144.0833333333335.060185185185184.85648148148147
71152143.560185185185142.251.310185185185188.4398148148148
72147144.282407407407140.5833333333333.699074074074062.71759259259258
73163156.858796296296139.16666666666717.69212962962966.1412037037037
74165155.282407407407137.62517.65740740740749.71759259259258
75147145.289351851852136.0416666666679.24768518518521.71064814814815
76130134.449074074074134.791666666667-0.342592592592585-4.44907407407405
77106116.844907407407133.708333333333-16.8634259259259-10.8449074074074
78107112.969907407407132.416666666667-19.4467592592593-5.9699074074074
79115NANA-8.87731481481481NA
80114NANA-6.87037037037039NA
81124NANA-2.2662037037037NA
82141NANA5.06018518518518NA
83139NANA1.31018518518518NA
84129NANA3.69907407407406NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jul/02/t1278095319ptyl3lnwf6tossu/1yn2s1278095206.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/02/t1278095319ptyl3lnwf6tossu/1yn2s1278095206.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/02/t1278095319ptyl3lnwf6tossu/2yn2s1278095206.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/02/t1278095319ptyl3lnwf6tossu/2yn2s1278095206.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/02/t1278095319ptyl3lnwf6tossu/39e1v1278095206.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/02/t1278095319ptyl3lnwf6tossu/39e1v1278095206.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/02/t1278095319ptyl3lnwf6tossu/49e1v1278095206.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/02/t1278095319ptyl3lnwf6tossu/49e1v1278095206.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = additive ; par2 = 12 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
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