Home » date » 2008 » May » 21 »

verbetering opgave 9 deel 2- Elke Van Buggenhout

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Wed, 21 May 2008 09:40:00 -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/21/t1211384496tag13k52prq5jfs.htm/, Retrieved Wed, 21 May 2008 17:41:36 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
10.893 10.756 10.940 10.997 10.827 10.166 10.186 10.457 10.368 10.244 10.511 10.812 10.738 10.171 9.721 9.897 9.828 9.924 10.371 10.846 10.413 10.709 10.662 10.570 10.297 10.635 10.872 10.296 10.383 10.431 10.574 10.653 10.805 10.872 10.625 10.407 10.463 10.556 10.646 10.702 11.353 11.346 11.451 11.964 12.574 13.031 13.812 14.544 14.931 14.886 16.005 17.064 15.168 16.050 15.839 15.137 14.954 15.648 15.305 15.579 16.348 15.928 16.171 15.937 15.713 15.594 15.683 16.438 17.032 17.696 17.745 19.394
 
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 time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
110.893NANA1.01012797708450NA
210.756NANA0.997519199631532NA
310.94NANA1.0055568496333NA
410.997NANA1.00662338252075NA
510.827NANA0.981907092822072NA
610.166NANA0.991580581953606NA
710.18610.551590597861110.58995833333330.9963769701197570.965352086543687
810.45710.560849451657610.5591251.000163313878530.990166562629928
910.36810.405611623509210.48395833333330.9925269914918440.996385448076478
1010.24410.499174565270510.38733333333331.010767078358630.975695749824504
1110.51110.331101137666310.2998751.003031700643581.01741332893140
1210.81210.287302999504410.24816666666671.003818861861911.05100433034011
1310.73810.349560809879210.24579166666671.010127977084501.03753194915769
1410.17110.244231237115910.26970833333330.9975191996315320.992851465822968
159.72110.344959378017010.28779166666671.00555684963330.939684695201128
169.89710.377322393047310.30904166666671.006623382520750.95371422657456
179.82810.147723414747410.33470833333330.9819070928220720.968493089367933
189.92410.243936360447510.33091666666670.9915805819536060.968768220614603
1910.37110.265132218951710.30245833333330.9963769701197571.01031333827857
2010.84610.305099357604610.30341666666671.000163313878531.05248863922852
2110.41310.293207941722710.37070833333330.9925269914918441.01163797126761
2210.70910.547649269736810.43529166666671.010767078358631.01529731659983
2310.66210.506798857229010.47504166666671.003031700643581.01477149652144
2410.5710.559463388426810.51929166666671.003818861861911.00099783589238
2510.29710.655713764267210.5488751.010127977084500.966336017257696
2610.63510.523120980012910.54929166666670.9975191996315321.01063173370330
2710.87210.616250236407710.55758333333331.00555684963331.02409040460588
2810.29610.650788411965510.58070833333331.006623382520750.966689000077507
2910.38310.394427571818910.58595833333330.9819070928220720.998900605950644
3010.43110.488567553187010.5776250.9915805819536060.994511399874664
3110.57410.539426495684310.577750.9963769701197571.00328039711932
3210.65310.583103085391410.5813751.000163313878531.00660457656366
3310.80510.489686930746810.56866666666670.9925269914918441.03005934031539
3410.87210.690041081900610.57616666666671.010767078358631.01702134881478
3510.62510.665737588793510.63351.003031700643580.996180518369747
3610.40710.752949474050610.71204166666671.003818861861910.96782748074047
3710.46310.895955868150510.78670833333331.010127977084500.960264535448786
3810.55610.850889163691910.8778750.9975191996315320.972823502365264
3910.64611.067368178074411.00620833333331.00555684963330.961926975655404
4010.70211.243857354833911.1698751.006623382520750.951808588660102
4111.35311.186499293362111.3926250.9819070928220721.01488407608775
4211.34611.599303068405411.69779166666670.9915805819536060.978162216564947
4311.45112.012652877420512.05633333333330.9963769701197570.953244892435358
4411.96412.424945501370212.42291666666671.000163313878530.962901607792218
4512.57412.730771522244112.8266250.9925269914918440.987685622825753
4613.03113.458363648345213.3151.010767078358630.968245497037249
4713.81213.780694328129713.73904166666671.003031700643581.00227170497545
4814.54414.147823039081714.0941.003818861861911.02800267997585
4914.93114.619413857681114.47283333333331.010127977084501.02131317611993
5014.88614.751189234251114.7878750.9975191996315321.00913897609257
5116.00515.102709713854915.019251.00555684963331.05974360252169
5217.06415.328315614693815.22745833333331.006623382520751.11323386267193
5315.16815.120100932798315.39870833333330.9819070928220721.00316790657778
5416.0515.373506658466315.50404166666670.9915805819536061.04400384092989
5515.83915.549666574224415.60620833333330.9963769701197571.01860705015085
5615.13715.711232109946515.70866666666671.000163313878530.9634508543997
5714.95415.641232858920015.7590.9925269914918440.956062743575354
5815.64815.888205589424415.71895833333331.010767078358630.984881515532235
5915.30515.742289990688315.69470833333331.003031700643580.97222195811747
6015.57915.758366751367315.69841666666671.003818861861910.988617681375405
6116.34815.831651607513915.67291666666671.010127977084501.03261494159213
6215.92815.681625267707515.7206250.9975191996315321.01571104576768
6316.17115.949556174054515.86141666666671.00555684963331.01388401178873
6415.93716.139528233082716.03333333333331.006623382520750.98745141554587
6515.71315.926860347938316.22033333333330.9819070928220720.986572347388858
6615.59416.342198255319816.48095833333330.9915805819536060.954216792402684
6715.683NANA0.996376970119757NA
6816.438NANA1.00016331387853NA
6917.032NANA0.992526991491844NA
7017.696NANA1.01076707835863NA
7117.745NANA1.00303170064358NA
7219.394NANA1.00381886186191NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211384496tag13k52prq5jfs/1xpla1211384395.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211384496tag13k52prq5jfs/1xpla1211384395.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211384496tag13k52prq5jfs/2l8nm1211384395.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211384496tag13k52prq5jfs/2l8nm1211384395.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211384496tag13k52prq5jfs/3xagr1211384396.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211384496tag13k52prq5jfs/3xagr1211384396.ps (open in new window)


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