Home » date » 2010 » Aug » 17 »

classical decomposition - aantal bezoekers per maand - mattias debbaut

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Tue, 17 Aug 2010 11:33:35 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Aug/17/t128204478101nwiutcvdtp0iu.htm/, Retrieved Tue, 17 Aug 2010 13:33:03 +0200
 
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/2010/Aug/17/t128204478101nwiutcvdtp0iu.htm/},
    year = {2010},
}
@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 = {2010},
    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:
mattias debbaut
 
Dataseries X:
» Textbox « » Textfile « » CSV «
900 899 898 896 916 915 900 890 891 891 892 894 896 889 878 883 901 897 881 866 867 866 862 871 865 856 847 859 870 872 856 839 829 825 822 827 822 812 810 816 820 823 810 793 777 772 765 765 753 742 736 740 742 742 728 707 699 696 689 692 673 653 642 648 654 653 630 609 598 601 592 591 568 538 523 530 529 534 513 491 480 478 462 461 437 411 400 405 395 407 385 366 349 343 332 327 306 276 269 268 260 274 247 226 212 199 188 179 155 124 117 116 105 112 86 64 53 42 32 24
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1900NANA0.995494342689627NA
2899NANA0.961933563390962NA
3898NANA0.96381096100501NA
4896NANA0.993884295459766NA
5916NANA1.00895488988833NA
6915NANA1.05853792771877NA
7900912.31740907176898.3333333333331.015566689133680.986498767918622
8890894.669519928189897.750.9965686660297280.994780732075724
9891889.424509973322896.50.9921076519501641.00177135890569
10891894.32303122705895.1250.9991040706348830.996284305434368
11892893.530529037167893.9583333333330.99952144940070.998287099335244
12894905.53962019102892.5833333333331.014515492698370.98725663688952
13896887.026938267403891.0416666666670.9954943426896271.01011588413552
14889855.399421245413889.250.9619335633909621.03928057223334
15878855.141275151696887.250.963810961005011.0267309338381
16883879.794660710113885.2083333333330.9938842954597661.00364328113483
17901890.823088197241882.9166666666671.008954889888331.01142416708502
18897932.263174091319880.7083333333331.058537927718770.962174657252025
19881892.133021125228878.4583333333331.015566689133680.987520895582157
20866872.786532969952875.7916666666670.9965686660297280.992224292294178
21867866.233993608987873.1250.9921076519501641.00088429500189
22866870.053128177877870.8333333333330.9991040706348830.995341516458465
23862868.126025531566868.5416666666670.99952144940070.992943391453084
24871878.7817740711866.2083333333331.014515492698370.991144816266443
25865860.231548876674864.1250.9954943426896271.0055432181365
26856829.146651077868861.9583333333330.9619335633909621.03238673024515
27847828.154568243555859.250.963810961005011.02275593527959
28859850.723545067915855.9583333333330.9938842954597661.00972872442531
29870860.218123203962852.5833333333331.008954889888331.01137139119972
30872898.786912127213849.0833333333331.058537927718770.970196593023574
31856858.619320383816845.4583333333331.015566689133680.996949381033442
32839838.94472201936841.8333333333330.9965686660297281.00006588989619
33829831.840928341381838.4583333333330.9921076519501640.996584769702248
34825834.376786988957835.1250.9991040706348830.988761927302897
35822830.852204814332831.250.99952144940070.989345632396426
36827839.13112689814827.1251.014515492698370.985543228573844
37822819.457759757345823.1666666666670.9954943426896271.00310234446179
38812788.144232938328819.3333333333330.9619335633909621.03026827586206
39810785.746885959335815.250.963810961005011.03086631900686
40816805.915928080937810.8750.9938842954597661.01251256063778
41820813.511919759547806.2916666666671.008954889888331.00797539665107
42823848.241726078641801.3333333333331.058537927718770.97024229614908
43810808.26413871427795.8751.015566689133681.00214764110219
44793787.372293552321790.0833333333330.9965686660297281.00714745298223
45777777.895074766591784.0833333333330.9921076519501640.998849363113837
46772777.136449608833777.8333333333330.9991040706348830.993390543434916
47765771.047504758523771.4166666666670.99952144940070.99215676761652
48765775.892994519941764.7916666666671.014515492698370.985960699997452
49753754.5847117587387580.9954943426896270.997899888860663
50742722.4121061066127510.9619335633909621.02711457037861
51736717.235990147895744.1666666666670.963810961005011.02616155646099
52740733.238138975442737.750.9938842954597661.00922191668045
53742737.966422379159731.4166666666671.008954889888331.0054658010155
54742767.66052633105725.2083333333331.058537927718770.96657308087249
55728730.023188372263718.8333333333331.015566689133680.997228597112409
56707709.349271741077711.7916666666670.9965686660297280.996688131172235
57699698.60913824824704.1666666666670.9921076519501641.0005594855984
58696695.792726524643696.4166666666670.9991040706348831.00029789543273
59689688.586985182965688.9166666666670.99952144940071.00059980049859
60692691.434579752802681.5416666666671.014515492698371.00081774944985
61673670.714313387136673.750.9954943426896271.00340783932479
62653640.246947566968665.5833333333330.9619335633909621.01991895858543
63642633.504912910585657.2916666666670.963810961005011.01340966252398
64648645.15514329032649.1250.9938842954597661.00440956991395
65654646.866203779658641.1251.008954889888331.01102824073767
66653669.922191005017632.8751.058537927718770.974740064992279
67630634.009820970416624.2916666666671.015566689133680.993675459215634
68609613.014300691537615.1250.9965686660297280.993451538264265
69598600.597169799331605.3750.9921076519501640.995675687582413
70601594.966474063073595.50.9991040706348831.0101409511291
71592585.094868442935585.3750.99952144940071.01180172982108
72591583.557765695875575.2083333333331.014515492698371.01275320926498
73568562.827613998148565.3750.9954943426896271.00919000040725
74538534.434255593962555.5833333333330.9619335633909621.0066719982275
75523525.999831968484545.750.963810961005010.994296895576453
76530532.432099446925535.7083333333330.9938842954597660.995432094628683
77529529.86947633969525.1666666666671.008954889888330.9983590744919
78534544.441340823354514.3333333333331.058537927718770.98082191773394
79513511.295512700096503.4583333333331.015566689133681.00333366371808
80491491.017686491731492.7083333333330.9965686660297280.999963979929405
81480478.485252971798482.2916666666670.9921076519501641.00316571308895
82478471.535492003388471.9583333333330.9991040706348831.01370948339254
83462460.945975081956461.1666666666670.99952144940071.00228665608341
84461456.827872066304450.2916666666671.014515492698371.00913282264242
85437437.685679335873439.6666666666670.9954943426896270.998433397828064
86411412.789740390147429.1250.9619335633909620.995664280831072
87400403.314728390555418.4583333333330.963810961005010.991781286034897
88405404.883614862922407.3750.9938842954597661.0002874533145
89395399.88245469241396.3333333333331.008954889888330.987790275279356
90407407.889948147633385.3333333333331.058537927718770.997818166023276
91385380.118148686995374.2916666666671.015566689133681.01284298402975
92366361.962044240881363.2083333333330.9965686660297281.01115574360176
93349349.345906942952352.1250.9921076519501640.999009844008254
94343340.652858750219340.9583333333330.9991040706348831.00689012638377
95332329.467257758706329.6250.99952144940071.00768738677866
96327323.080912945568318.4583333333331.014515492698371.01213035774444
97306305.782678929497307.1666666666670.9954943426896271.00071070431871
98276284.331529112312295.5833333333330.9619335633909620.970697835944107
99269273.762471715465284.0416666666670.963810961005010.982603635605633
100268270.667823130209272.3333333333330.9938842954597660.99014355271581
101260262.664589667596260.3333333333331.008954889888330.989855542877065
102274262.693829062208248.1666666666671.058537927718771.04303934728179
103247239.377531684552235.7083333333331.015566689133681.03184287289541
104226222.317859913465223.0833333333330.9965686660297281.0165625023917
105212208.755985097847210.4166666666670.9921076519501641.01553974560601
106199197.572829968048197.750.9991040706348831.00722351363891
107188184.869821412071184.9583333333330.99952144940071.01693179862468
108179174.243035870945171.751.014515492698371.02730074177873
109155157.578458661579158.2916666666670.9954943426896270.983636985134392
110124139.320044431124144.8333333333330.9619335633909620.890037040300414
111117126.700982582117131.4583333333330.963810961005010.923434038281198
112116117.568229783761118.2916666666670.9938842954597660.986661109156395
113105106.192502160747105.251.008954889888330.988770373270403
11411297.694229579044992.29166666666671.058537927718771.14643413927923
11586NANA1.01556668913368NA
11664NANA0.996568666029728NA
11753NANA0.992107651950164NA
11842NANA0.999104070634883NA
11932NANA0.9995214494007NA
12024NANA1.01451549269837NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/17/t128204478101nwiutcvdtp0iu/1qkjj1282044810.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/17/t128204478101nwiutcvdtp0iu/1qkjj1282044810.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/17/t128204478101nwiutcvdtp0iu/2jbi31282044810.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/17/t128204478101nwiutcvdtp0iu/2jbi31282044810.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/17/t128204478101nwiutcvdtp0iu/3jbi31282044810.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/17/t128204478101nwiutcvdtp0iu/3jbi31282044810.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/17/t128204478101nwiutcvdtp0iu/4ukhp1282044810.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/17/t128204478101nwiutcvdtp0iu/4ukhp1282044810.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