Home » date » 2009 » Dec » 04 »

Ad hoc techniek 1

*The author of this computation has been verified*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Fri, 04 Dec 2009 06:39:53 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/04/t1259934063y4e0plt36nuqbrm.htm/, Retrieved Fri, 04 Dec 2009 14:41:08 +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/2009/Dec/04/t1259934063y4e0plt36nuqbrm.htm/},
    year = {2009},
}
@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 = {2009},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
562 561 555 544 537 543 594 611 613 611 594 595 591 589 584 573 567 569 621 629 628 612 595 597 593 590 580 574 573 573 620 626 620 588 566 557 561 549 532 526 511 499 555 565 542 527 510 514 517 508 493 490 469 478 528 534 518 506 502 516 528
 
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
1562NANA0.99884113513149NA
2561NANA0.9897846687593NA
3555NANA0.97174729402293NA
4544NANA0.964130906071395NA
5537NANA0.947491984032662NA
6543NANA0.950243475305589NA
7594604.199808745448577.8751.045554503561230.983118483988556
8611612.201946500066580.251.055065827660610.998036682981919
9613612.243826200002582.6251.050836861102771.00123508603540
10611600.442639619416585.0416666666671.026324574522181.01758262935370
11594589.242605030293587.51.002966136221781.00807374573579
12595588.07128505649589.8333333333330.9970126336080641.01178210043506
13591591.355570378473592.0416666666670.998841135131490.99939871982901
14589587.849611187294593.9166666666670.98978466875931.00195694407347
15584578.473066237733595.2916666666670.971747294022931.00955434934631
16573574.581847897465595.9583333333330.9641309060713950.997246958108312
17567564.744701316135596.0416666666670.9474919840326621.00399348356631
18569566.503485194682596.1666666666670.9502434753055891.00440688340066
19621623.499002290349596.3333333333331.045554503561230.995991970666883
20629629.302805123398596.4583333333331.055065827660610.999518824449958
21628626.649048170952596.3333333333331.050836861102771.00215583480577
22612611.903264034914596.2083333333331.026324574522181.00015809029102
23595598.269300256289596.51.002966136221780.994535403613576
24597595.13345787788596.9166666666670.9970126336080641.00313634210514
25593596.349776054131597.0416666666670.998841135131490.994382866920325
26590590.777724165707596.8750.98978466875930.998683558749942
27580579.566281943509596.4166666666670.971747294022931.00074834936055
28574573.738233354653595.0833333333330.9641309060713951.00045624751869
29573561.744310033364592.8750.9474919840326621.02003703422642
30573560.6436504302975900.9502434753055891.02203957818878
31620613.7404935904445871.045554503561231.01019894641942
32626616.114482277641583.9583333333331.055065827660611.01604493646345
33620609.748088654883580.251.050836861102771.01681335544279
34588591.419536068409576.251.026324574522180.99421808739843
35566573.362307873449571.6666666666671.002966136221780.987159414261543
36557564.3091506221645660.9970126336080640.987047612795033
37561559.559127576787560.2083333333330.998841135131491.00257501370669
38549549.289250133547554.9583333333330.98978466875930.999473410168729
39532533.651222300926549.1666666666670.971747294022930.996905802456882
40526523.884631086544543.3750.9641309060713951.00403785258802
41511510.224433401588538.50.9474919840326621.00152004989891
42499507.786357116424534.3750.9502434753055890.982696744421573
43555554.928052765125530.751.045554503561231.00012965146476
44565556.239496557901527.2083333333331.055065827660611.01574951706290
45542550.507160610214523.8751.050836861102770.984546684913628
46527534.458522182428520.751.026324574522180.986044712783377
47510519.034975494769517.51.002966136221780.98259274245217
48514513.336879728952514.8750.9970126336080641.00129178381144
49517512.280647180563512.8750.998841135131491.00921243627963
50508505.243832373758510.4583333333330.98978466875931.00545512374351
51493493.809583245985508.1666666666670.971747294022930.998360535571903
52490488.13144331973506.2916666666670.9641309060713951.00382797852063
53469478.56240960183505.0833333333330.9474919840326620.980018469044014
54478479.714581116771504.8333333333330.9502434753055890.996425830724637
55528528.397107237258505.3751.045554503561230.999248468184592
56534NANA1.05506582766061NA
57518NANA1.05083686110277NA
58506NANA1.02632457452218NA
59502NANA1.00296613622178NA
60516NANA0.997012633608064NA
61528NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259934063y4e0plt36nuqbrm/1uig31259933988.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259934063y4e0plt36nuqbrm/1uig31259933988.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259934063y4e0plt36nuqbrm/2lmcg1259933988.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259934063y4e0plt36nuqbrm/2lmcg1259933988.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259934063y4e0plt36nuqbrm/3rs291259933988.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259934063y4e0plt36nuqbrm/3rs291259933988.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259934063y4e0plt36nuqbrm/4k3ex1259933988.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259934063y4e0plt36nuqbrm/4k3ex1259933988.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