Home » date » 2008 » May » 18 » attachments

Van Passen Glenn 2mar01-A oefening 9 eigen reeks

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 18 May 2008 09:32:38 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/18/t1211124844f3y0m73i15emrrr.htm/, Retrieved Sun, 18 May 2008 17:34:09 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
11835.70 11542.20 13093.70 11180.20 12035.70 12112.00 10875.20 9897.30 11672.10 12385.70 11405.60 9830.90 11025.10 10853.80 12252.60 11839.40 11669.10 11601.40 11178.40 9516.40 12102.80 12989.00 11610.20 10205.50 11356.20 11307.10 12648.60 11947.20 11714.10 12192.50 11268.80 9097.40 12639.80 13040.10 11687.30 11191.70 11391.90 11793.10 13933.20 12778.10 11810.30 13698.40 11956.60 10723.80 13938.90 13979.80 13807.40 12973.90 12509.80 12934.10 14908.30 13772.10 13012.60 14049.90 11816.50 11593.20 14466.20 13615.90 14733.90 13880.70 13527.50 13584.00 16170.20 13260.60 14741.90 15486.50 13154.50 12621.20 15031.60 15452.40 15428.00 13105.90 14716.80 14180.00 16202.20 14392.40 15140.60 15960.10 14729.90 13705.20 15728.50 17315.60 16152.80
 
Text written by user:
 
Output produced by software:


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


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
111835.7NANA-462.27265625NA
211542.2NANA-338.468489583334NA
313093.7NANA1328.41067708333NA
411180.2NANA435.015885416665NA
512035.7NANA-145.143489583333NA
612112NANA612.026302083333NA
710875.210668.382552083311455.0833333333-786.70078125206.817447916666
89897.39229.0429687511392.625-2163.58203125668.257031249999
911672.112150.290885416711328.8958333333821.395052083334-478.190885416667
1012385.712206.3742187511321.3166666667885.057552083335179.325781249998
1111405.611725.253385416711333.5083333333391.745052083335-319.653385416668
129830.910719.475260416711296.9583333333-577.483072916667-888.575260416666
1311025.110826.044010416711288.3166666667-462.27265625199.055989583334
1410853.810946.610677083311285.0791666667-338.468489583334-92.8106770833328
1512252.612615.5648437511287.15416666671328.41067708333-362.96484375
1611839.411765.253385416711330.2375435.01588541666574.1466145833328
1711669.111218.756510416711363.9-145.143489583333450.343489583334
1811601.412000.059635416711388.0333333333612.026302083333-398.659635416667
1911178.410630.7367187511417.4375-786.70078125547.663281250001
209516.49286.5388020833311450.1208333333-2163.58203125229.861197916671
2112102.812306.903385416711485.5083333333821.395052083334-204.103385416665
221298912391.557552083311506.5885.057552083335597.442447916668
2311610.211904.6117187511512.8666666667391.745052083335-294.411718749998
2410205.510961.887760416711539.3708333333-577.483072916667-756.387760416665
2511356.211105.494010416711567.7666666667-462.27265625250.705989583334
2611307.111215.606510416711554.075-338.46848958333491.493489583334
2712648.612887.4023437511558.99166666671328.41067708333-238.802343749998
2811947.212018.5117187511583.4958333333435.015885416665-71.3117187500011
2911714.111443.694010416711588.8375-145.143489583333270.405989583332
3012192.512245.1679687511633.1416666667612.026302083333-52.66796875
3111268.810889.020052083311675.7208333333-786.70078125379.779947916666
329097.49533.8763020833311697.4583333333-2163.58203125-436.476302083331
3312639.812592.628385416711771.2333333333821.39505208333447.1716145833343
3413040.112744.4367187511859.3791666667885.057552083335295.663281250001
3511687.312289.753385416711898.0083333333391.745052083335-602.453385416668
3611191.711387.279427083311964.7625-577.483072916667-195.579427083336
3711391.911593.894010416712056.1666666667-462.27265625-201.994010416667
3811793.111814.123177083312152.5916666667-338.468489583334-21.0231770833307
3913933.213602.898177083312274.48751328.41067708333330.301822916668
4012778.112802.7867187512367.7708333333435.015885416665-24.6867187499993
4111810.312350.119010416712495.2625-145.143489583333-539.819010416666
4213698.413269.884635416712657.8583333333612.026302083333428.515364583332
4311956.611991.995052083312778.6958333333-786.70078125-35.3950520833332
4410723.810709.234635416712872.8166666667-2163.5820312514.5653645833299
4513938.913782.382552083312960.9875821.395052083334156.517447916667
4613979.813928.090885416713043.0333333333885.05755208333551.709114583331
4713807.413526.290885416713134.5458333333391.745052083335281.109114583334
4812973.912621.804427083313199.2875-577.483072916667352.095572916667
4912509.812745.823177083313208.0958333333-462.27265625-236.023177083334
5012934.112900.0148437513238.4833333333-338.46848958333434.0851562500011
5114908.314625.0898437513296.67916666671328.41067708333283.210156249999
5213772.113738.503385416713303.4875435.01588541666533.5966145833354
5313012.613181.785677083313326.9291666667-145.143489583333-169.185677083331
5414049.914015.3429687513403.3166666667612.02630208333334.5570312500004
5511816.512696.803385416713483.5041666667-786.70078125-880.303385416666
5611593.211389.4054687513552.9875-2163.58203125203.794531250000
5714466.214454.040885416713632.6458333333821.39505208333412.1591145833354
5813615.914548.970052083313663.9125885.057552083335-933.070052083334
5914733.914106.3992187513714.6541666667391.745052083335627.500781249997
6013880.713269.0835937513846.5666666667-577.483072916667611.616406249999
6113527.513499.9023437513962.175-462.2726562527.59765625
621358413722.2898437514060.7583333333-338.468489583334-138.289843749997
6316170.215455.560677083314127.151328.41067708333714.639322916668
6413260.614662.245052083314227.2291666667435.015885416665-1401.64505208333
6514741.914187.5273437514332.6708333333-145.143489583333554.372656250001
6615486.514941.334635416714329.3083333333612.026302083333545.165364583336
6713154.513559.878385416714346.5791666667-786.70078125-405.378385416665
6812621.212257.384635416714420.9666666667-2163.58203125363.815364583337
6915031.615268.528385416714447.1333333333821.395052083334-236.928385416664
7015452.415380.682552083314495.625885.05755208333571.7174479166642
711542814951.140885416714559.3958333333391.745052083335476.859114583332
7213105.914018.2585937514595.7416666667-577.483072916667-912.358593750001
7314716.8NA14681.1166666667NANA
7414180NA14791.925NANA
7516202.2NA14866.1291666667NANA
7614392.4NA14972.8NANA
7715140.6NA15080.6333333333NANA
7815960.1NANANANA
7914729.9NANANANA
8013705.2NANANANA
8115728.5NANANANA
8217315.6NANANANA
8316152.8NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/18/t1211124844f3y0m73i15emrrr/1eig01211124755.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/18/t1211124844f3y0m73i15emrrr/1eig01211124755.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/18/t1211124844f3y0m73i15emrrr/26ckc1211124755.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/18/t1211124844f3y0m73i15emrrr/26ckc1211124755.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/18/t1211124844f3y0m73i15emrrr/3hzu91211124755.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/18/t1211124844f3y0m73i15emrrr/3hzu91211124755.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/18/t1211124844f3y0m73i15emrrr/4wyrf1211124755.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/18/t1211124844f3y0m73i15emrrr/4wyrf1211124755.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