Home » date » 2010 » Jan » 13 »

classical decomposition grijze garnalen

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Wed, 13 Jan 2010 14:45:45 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Jan/13/t1263419337ez2n1uv5ci8clz1.htm/, Retrieved Wed, 13 Jan 2010 22:49:02 +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/2010/Jan/13/t1263419337ez2n1uv5ci8clz1.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 «
35,75 36,25 35,32 33,80 31,54 30,74 30,55 30,06 30,30 32,24 33,42 33,31 33,76 33,61 33,68 34,17 34,17 34,07 32,36 31,57 31,34 30,81 29,95 29,74 29,56 29,91 29,82 31,46 32,55 32,82 32,74 33,05 32,63 31,85 31,99 31,39 30,16 30,04 29,55 29,12 29,31 29,36 29,67 30,69 31,08 31,08 31,10 30,96 31,94 31,59 32,01 32,13 32,20 32,05 32,12 31,66 32,99 36,02 37,10 37,96 38,96 41,66 47,29 49,42 48,17 46,25 45,43 43,83 41,51 38,25 35,23 34,18
 
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
135.75NANA-0.530611111111112NA
236.25NANA-0.283361111111111NA
335.32NANA0.616472222222221NA
433.8NANA1.26297222222222NA
531.54NANA1.21780555555556NA
630.74NANA0.825472222222222NA
730.5532.008222222222232.6904166666667-0.682194444444444-1.45822222222222
830.0631.661472222222232.4975-0.836027777777776-1.60147222222223
930.331.600305555555632.3191666666667-0.71886111111111-1.30030555555556
1032.2432.049472222222232.26625-0.2167777777777780.190527777777781
1133.4232.217722222222232.39125-0.1735277777777791.20227777777778
1233.3132.158222222222232.6395833333333-0.4813611111111131.15177777777778
1333.7632.323138888888932.85375-0.5306111111111121.43686111111111
1433.6132.708722222222232.9920833333333-0.2833611111111110.901277777777779
1533.6833.714805555555633.09833333333330.616472222222221-0.0348055555555575
1634.1734.345055555555633.08208333333331.26297222222222-0.175055555555552
1734.1734.095722222222232.87791666666671.217805555555560.0742777777777803
1834.0733.410055555555632.58458333333330.8254722222222220.659944444444442
1932.3631.578638888888932.2608333333333-0.6821944444444440.781361111111103
2031.5731.095638888888931.9316666666667-0.8360277777777760.474361111111115
2131.3430.897805555555631.6166666666667-0.718861111111110.442194444444446
2230.8131.126138888888931.3429166666667-0.216777777777778-0.31613888888889
2329.9530.988972222222231.1625-0.173527777777779-1.03897222222222
2429.7430.561555555555531.0429166666667-0.481361111111113-0.821555555555548
2529.5630.476055555555631.0066666666667-0.530611111111112-0.916055555555552
2629.9130.800805555555531.0841666666667-0.283361111111111-0.890805555555545
2729.8231.816055555555631.19958333333330.616472222222221-1.99605555555555
2831.4632.559638888888931.29666666666671.26297222222222-1.09963888888889
2932.5532.642805555555531.4251.21780555555556-0.0928055555555538
3032.8232.404222222222231.578750.8254722222222220.41577777777778
3132.7430.990305555555531.6725-0.6821944444444441.74969444444445
3233.0530.866888888888931.7029166666667-0.8360277777777762.18311111111112
3332.6330.978222222222231.6970833333333-0.718861111111111.65177777777778
3431.8531.371555555555631.5883333333333-0.2167777777777780.478444444444449
3531.9931.182305555555631.3558333333333-0.1735277777777790.807694444444447
3631.3930.595305555555631.0766666666667-0.4813611111111130.794694444444445
3730.1630.273972222222230.8045833333333-0.530611111111112-0.113972222222213
3830.0430.294972222222230.5783333333333-0.283361111111111-0.254972222222214
3929.5531.031888888888930.41541666666670.616472222222221-1.48188888888889
4029.1231.581722222222230.318751.26297222222222-2.46172222222222
4129.3131.467388888888930.24958333333331.21780555555556-2.15738888888889
4229.3631.020055555555630.19458333333330.825472222222222-1.66005555555556
4329.6729.568638888888930.2508333333333-0.6821944444444440.101361111111114
4430.6929.553555555555630.3895833333333-0.8360277777777761.13644444444445
4531.0829.837805555555630.5566666666667-0.718861111111111.24219444444445
4631.0830.567805555555630.7845833333333-0.2167777777777780.512194444444443
4731.130.856888888888931.0304166666667-0.1735277777777790.243111111111112
4830.9630.781555555555631.2629166666667-0.4813611111111130.178444444444448
4931.9430.946472222222231.4770833333333-0.5306111111111120.993527777777771
5031.5931.336222222222231.6195833333333-0.2833611111111110.253777777777778
5132.0132.356055555555531.73958333333330.616472222222221-0.346055555555552
5232.1333.287972222222232.0251.26297222222222-1.15797222222222
5332.233.698638888888932.48083333333331.21780555555556-1.49863888888888
5432.0533.847972222222233.02250.825472222222222-1.79797222222223
5532.1232.924472222222233.6066666666667-0.682194444444444-0.804472222222223
5631.6633.482722222222234.31875-0.836027777777776-1.82272222222222
5732.9934.656138888888935.375-0.71886111111111-1.66613888888889
5836.0236.515305555555536.7320833333333-0.216777777777778-0.495305555555547
5937.137.944388888888938.1179166666667-0.173527777777779-0.844388888888886
6037.9638.893638888888939.375-0.481361111111113-0.933638888888893
6138.9639.990638888888940.52125-0.530611111111112-1.03063888888889
6241.6641.299555555555641.5829166666667-0.2833611111111110.36044444444444
6347.2943.061472222222242.4450.6164722222222214.22852777777778
6449.4244.155888888888942.89291666666671.262972222222225.26411111111111
6548.1744.125722222222242.90791666666671.217805555555564.04427777777777
6646.2543.497972222222242.67250.8254722222222222.75202777777778
6745.43NANA-0.682194444444444NA
6843.83NANA-0.836027777777776NA
6941.51NANA-0.71886111111111NA
7038.25NANA-0.216777777777778NA
7135.23NANA-0.173527777777779NA
7234.18NANA-0.481361111111113NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jan/13/t1263419337ez2n1uv5ci8clz1/1s9r51263419142.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/13/t1263419337ez2n1uv5ci8clz1/1s9r51263419142.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/13/t1263419337ez2n1uv5ci8clz1/2z1ca1263419142.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/13/t1263419337ez2n1uv5ci8clz1/2z1ca1263419142.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/13/t1263419337ez2n1uv5ci8clz1/3zh1t1263419142.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/13/t1263419337ez2n1uv5ci8clz1/3zh1t1263419142.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/13/t1263419337ez2n1uv5ci8clz1/4by231263419142.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/13/t1263419337ez2n1uv5ci8clz1/4by231263419142.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