Home » date » 2008 » May » 25 »

Classical Decompostion - Blue Jeans - Raf Pleysier

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 25 May 2008 12:12:36 -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/25/t1211739203b7un89jlp86jju7.htm/, Retrieved Sun, 25 May 2008 20:13:23 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
48,04 48,06 48,04 48,09 48,12 48,16 48,16 48,16 48,08 48,13 48,16 48,15 48,15 48,15 48,27 48,47 48,51 48,53 48,53 48,53 48,68 48,64 48,67 48,66 48,66 48,67 48,71 48,96 49,01 49,04 49,04 49,04 49,06 49,13 49,19 49,26 49,26 49,26 49,29 49,43 49,43 49,45 49,45 49,46 49,57 49,68 49,71 49,7 49,7 49,8 49,84 50,09 50,2 50,16 50,16 50,29 50,36 51,02 51,03 51,04
 
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 time5 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
148.04NANA0.998743086385678NA
248.06NANA0.998075285228142NA
348.04NANA0.998586591685917NA
448.09NANA1.00175252991468NA
548.12NANA1.00148704763172NA
648.16NANA1.00108268941237NA
748.1648.126828602963348.11708333333331.000202532426221.00068924959320
848.1648.094771421302448.12541666666670.9993632211939781.00135625093477
948.0848.15596743423448.138751.000357662677860.998422471019033
1048.1348.183233180059948.16416666666671.000395865115350.998895192859703
1148.1648.209516033765948.196251.000275250331010.998972899173449
1248.1548.212398755602848.22791666666670.999678237997070.998705752934651
1348.1548.198092920114848.258750.9987430863856780.999002182094745
1448.1548.196639658964848.28958333333330.9980752852281420.999032304756207
1548.2748.261689976180448.330.9985865916859171.00017218675566
1648.4748.461030825285248.376251.001752529914681.00018508014712
1748.5148.490750987518348.418751.001487047631721.00039696255656
1848.5348.513718482285348.461251.001082689412371.00033560646811
1948.5348.513573582168148.503751.000202532426221.00033859426587
2048.5348.515753178230348.54666666666670.9993632211939781.00029365352151
2148.6848.604044303975248.58666666666671.000357662677861.00156274435826
2248.6448.644665772844448.62541666666671.000395865115350.999904084594472
2348.6748.680062182775848.66666666666671.000275250331010.999793299713998
2448.6648.693077375039848.708750.999678237997070.999320696558465
2548.6648.689973890159848.751250.9987430863856780.999384392971182
2648.6748.699835948600648.793750.9980752852281420.999387350121012
2748.7148.761815427516448.83083333333330.9985865916859170.998937376981105
2848.9648.952724358718348.86708333333331.001752529914681.00014862587072
2949.0148.981896927127748.90916666666671.001487047631721.00057374406945
3049.0449.008837295757248.95583333333331.001082689412371.00063585887694
3149.0449.015758603657149.00583333333331.000202532426221.00049456332073
3249.0449.024179217012849.05541666666670.9993632211939781.00032271387793
3349.0649.121729394410949.10416666666671.000357662677860.998743338331692
3449.1349.167372612367249.14791666666671.000395865115350.999239889984324
3549.1949.198538187530749.1851.000275250331010.999826454446713
3649.2649.203746341616649.21958333333330.999678237997071.00114327998508
3749.2649.191842291068649.253750.9987430863856781.00138554902108
3849.2649.193467350086449.28833333333330.9980752852281421.00135246920979
3949.2949.257364023640549.32708333333330.9985865916859171.00066256035024
4049.4349.457774592550349.371251.001752529914680.999438418069169
4149.4349.489317031261149.41583333333331.001487047631720.998801417460992
4249.4549.509378640463449.45583333333331.001082689412370.998800658741961
4349.4549.502523836104549.49251.000202532426220.998938966500407
4449.4649.501791556475149.53333333333330.9993632211939780.999155756687566
4549.5749.596482468490149.578751.000357662677860.99946604139705
4649.6849.648813122453949.62916666666671.000395865115351.00062814950821
4749.7149.70242684488549.688751.000275250331011.00015236992630
4849.749.734408872953449.75041666666670.999678237997070.999308147543459
4949.749.746976989917949.80958333333330.9987430863856780.999055681515533
5049.849.77775725664749.873750.9980752852281421.0004468410105
5149.8449.870662622034349.941250.9985865916859170.999385157115984
5250.0950.117679071631650.031.001752529914680.99944771840707
5350.250.215395140794150.14083333333331.001487047631720.999693417909967
5450.1650.306073614120750.25166666666671.001082689412370.99709630262061
5550.16NANA1.00020253242622NA
5650.29NANA0.999363221193978NA
5750.36NANA1.00035766267786NA
5851.02NANA1.00039586511535NA
5951.03NANA1.00027525033101NA
6051.04NANA0.99967823799707NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211739203b7un89jlp86jju7/1ymjl1211739148.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211739203b7un89jlp86jju7/1ymjl1211739148.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211739203b7un89jlp86jju7/2hyay1211739148.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211739203b7un89jlp86jju7/2hyay1211739148.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211739203b7un89jlp86jju7/342hy1211739148.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211739203b7un89jlp86jju7/342hy1211739148.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211739203b7un89jlp86jju7/4qy6v1211739148.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211739203b7un89jlp86jju7/4qy6v1211739148.ps (open in new window)


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