Home » date » 2008 » May » 05 » attachments

vraag 1: klassieke decompositie

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 05 May 2008 08:59:04 -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/05/t12099996060sx4tmozik95kj5.htm/, Retrieved Mon, 05 May 2008 17:00:06 +0200
 
User-defined keywords:
vraag 1
 
Dataseries X:
» Textbox « » Textfile « » CSV «
56421 53152 53536 52408 41454 38271 35306 26414 31917 38030 27534 18387 50556 43901 48572 43899 37532 40357 35489 29027 34485 42598 30306 26451 47460 50104 61465 53726 39477 43895 31481 29896 33842 39120 33702 25094 51442 45594 52518 48564 41745 49585 32747 33379 35645 37034 35681 20972 58552 54955 65540 51570 51145 46641 35704 33253 35193 41668 34865 21210 56126 49231 59723 48103 47472 50497 40059 34149 36860 46356 36577
 
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 time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
156421NANA1.27290607861445NA
253152NANA1.18369742267573NA
353536NANA1.37107436141492NA
452408NANA1.23211188309341NA
541454NANA0.999602689108356NA
638271NANA1.12129732166393NA
73530632697.894592311539158.1250.8350219677860331.07976371078956
82641429505.107258798738528.29166666670.765803672637930.895234840812961
93191732440.8642508675379360.8551472018891690.983851717179406
103803036273.388988305937374.6250.9705351956924231.04842698905968
112753429744.670694658736856.66666666670.807036375906450.92567842766349
121838721544.564837281136780.16666666670.5857658295172060.853440305658104
135055646938.040384634936874.70833333331.272906078614451.07707947723675
144390143786.397965827836991.20833333331.183697422675731.00261729759688
154857251013.678021361637207.08333333331.371074361414920.952136797108823
164389946209.637443486437504.41666666671.232111883093410.949996633357874
173753237795.227575859237810.250.9996026891083560.993035428207678
184035742902.797797174738261.751.121297321663930.940661263882834
193548932122.25132326938468.750.8350219677860331.10481048301531
202902729558.649698910638598.20833333330.765803672637930.982013735257662
213448533687.561977821739393.8750.8551472018891691.02367158605017
224259839151.915500796740340.54166666670.9705351956924231.08801828608190
233030632952.135891151940831.04166666670.807036375906450.919697591078992
242645124051.252077061741059.50.5857658295172061.09977642391545
254746052239.959390830541039.91666666671.272906078614450.908499940532697
265010448424.025826419440909.1251.183697422675731.03469298855082
276146556102.363385654740918.54166666671.371074361414921.09558664360505
285372650204.657548426540746.83333333331.232111883093411.07013975641955
293947740727.228863462240743.41666666670.9996026891083560.96930238323718
304389545780.747535390440828.3751.121297321663930.958809158065132
313148134183.920561732740937.750.8350219677860330.920930059591863
322989631333.431618735440915.750.765803672637930.954124666706601
333384234509.500963370840355.04166666670.8551472018891690.980657472732529
343912038595.434882966639767.16666666670.9705351956924231.01359137728657
353370231996.234930406439646.58333333330.807036375906451.05331143096379
362509423417.843960077139978.16666666670.5857658295172061.07157601881627
375144251257.3819736467402681.272906078614451.00360178415761
384559447899.351943818440465.8751.183697422675730.951870915779354
395251855783.702852822540686.1251.371074361414920.941457761213188
404856450115.329436902240674.33333333331.232111883093410.969044812149636
414174540653.716415700740669.8750.9996026891083561.0268433904822
424958545502.899403226440580.58333333331.121297321663931.08971077997909
433274733989.638783894540705.08333333330.8350219677860330.963440659319884
443337931697.666990533841391.3750.765803672637931.05304279996280
453564536193.2501727572423240.8551472018891690.984852143144363
463703441725.087377342742991.83333333330.9705351956924230.887571538558598
473568135113.143920219843508.750.807036375906451.01617217988428
482097225643.510043146943777.750.5857658295172060.817828759195339
495855255725.653573856343778.29166666671.272906078614451.05071894621025
505495551959.877990129743896.251.183697422675731.05764297619096
516554060152.002896388843872.16666666671.371074361414921.08957302906259
525157054270.113382683444046.41666666671.232111883093410.950246770931844
535114544187.936673379444205.50.9996026891083561.15744259294215
544664149540.504175651344181.41666666671.121297321663930.941472049509816
553570436816.327315178244090.250.8350219677860330.969787119023152
563325333504.421213691243750.66666666670.765803672637930.992495879511314
573519337002.041270077343269.79166666670.8551472018891690.951109689952694
584166841619.420357911742882.95833333330.9705351956924231.00116723495115
593486534368.013959648542585.45833333330.807036375906451.01446071457417
602121024949.572790445542593.08333333330.5857658295172060.850114756599057
6156126NA42935.2083333333NANA
6249231NA43154NANA
6359723NA43260.7916666667NANA
6448103NA43525.5833333333NANA
6547472NA43792.25NANA
6650497NANANANA
6740059NANANANA
6834149NANANANA
6936860NANANANA
7046356NANANANA
7136577NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/05/t12099996060sx4tmozik95kj5/1usfb1209999539.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/05/t12099996060sx4tmozik95kj5/1usfb1209999539.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/05/t12099996060sx4tmozik95kj5/2olpk1209999539.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/05/t12099996060sx4tmozik95kj5/2olpk1209999539.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/05/t12099996060sx4tmozik95kj5/3ixwr1209999539.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/05/t12099996060sx4tmozik95kj5/3ixwr1209999539.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/05/t12099996060sx4tmozik95kj5/41eo81209999539.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/05/t12099996060sx4tmozik95kj5/41eo81209999539.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