Home » date » 2011 » May » 18 »

Ann-Sophie Coeman additief decompositie model verkochte ton koffie per maand

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Wed, 18 May 2011 18:27:04 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/18/t1305743098obl2hah0xeqwqh3.htm/, Retrieved Wed, 18 May 2011 20:24:58 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W92
 
Dataseries X:
» Textbox « » Textfile « » CSV «
600 425 398 582 458 455 621 635 589 220 351 379 683 524 536 598 581 632 645 722 689 645 354 486 423 479 684 601 608 463 602 485 563 645 486 435 479 579 563 202 389 467 466 706 546 689 531 528 579 684 651 637 548 496 582 467 693 615 708 648 899 852 745 689 582 674 684 542 489 472 398 486 549 766 654 628 689 648 578 536 548 496 475 687 642 584 596 609 678 694 485 489 537 706 489 598
 
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
1600NANA29.3164682539683NA
2425NANA61.5664682539683NA
3398NANA57.1736111111111NA
4582NANA-11.8382936507936NA
5458NANA0.304563492063487NA
6455NANA-1.96329365079364NA
7621507.477182539683479.54166666666727.9355158730159113.522817460317
8635501.72123015873487.12514.5962301587302133.27876984127
9589512.89980158730249715.899801587301576.1001984126984
10220470.12003968254503.416666666667-33.296626984127-250.12003968254
11351406.012896825397509.208333333333-103.195436507937-55.0128968253968
12379465.209325396825521.708333333333-56.499007936508-86.2093253968253
13683559.399801587302530.08333333333329.3164682539683123.600198412698
14524596.274801587302534.70833333333361.5664682539683-72.2748015873016
15536599.673611111111542.557.1736111111111-63.6736111111111
16598552.536706349206564.375-11.838293650793645.4632936507936
17581582.512896825397582.2083333333330.304563492063487-1.51289682539687
18632584.828373015873586.791666666667-1.9632936507936447.171626984127
19645608.352182539683580.41666666666727.935515873015936.6478174603174
20722582.304563492063567.70833333333314.5962301587302139.695436507937
21689587.89980158730257215.8998015873015101.100198412698
22645544.99503968254578.291666666667-33.296626984127100.00496031746
23354476.34623015873579.541666666667-103.195436507937-122.34623015873
24486517.125992063492573.625-56.499007936508-31.1259920634922
25423594.108134920635564.79166666666729.3164682539683-171.108134920635
26479614.691468253968553.12561.5664682539683-135.691468253968
27684595.17361111111153857.173611111111188.826388888889
28601520.911706349206532.75-11.838293650793680.0882936507936
29608538.554563492063538.250.30456349206348769.4454365079365
30463539.661706349206541.625-1.96329365079364-76.6617063492064
31602569.768849206349541.83333333333327.935515873015932.2311507936508
32485562.929563492063548.33333333333314.5962301587302-77.9295634920636
33563563.358134920635547.45833333333315.8998015873015-0.358134920634939
34645492.49503968254525.791666666667-33.296626984127152.50496031746
35486396.84623015873500.041666666667-103.19543650793789.1537698412698
36435434.584325396825491.083333333333-56.4990079365080.41567460317458
37479514.899801587302485.58333333333329.3164682539683-35.8998015873016
38579550.691468253968489.12561.566468253968328.3085317460317
39563554.798611111111497.62557.17361111111118.20138888888891
40202486.911706349206498.75-11.8382936507936-284.911706349206
41389502.762896825397502.4583333333330.304563492063487-113.762896825397
42467506.24503968254508.208333333333-1.96329365079364-39.2450396825398
43466544.185515873016516.2527.9355158730159-78.1855158730159
44706539.387896825397524.79166666666714.5962301587302166.612103174603
45546548.733134920635532.83333333333315.8998015873015-2.73313492063494
46689521.328373015873554.625-33.296626984127167.671626984127
47531476.179563492063579.375-103.19543650793754.8204365079365
48528530.709325396825587.208333333333-56.499007936508-2.70932539682542
49579622.566468253968593.2529.3164682539683-43.5664682539683
50684649.691468253968588.12561.566468253968334.3085317460318
51651641.465277777778584.29166666666757.17361111111119.53472222222229
52637575.49503968254587.333333333333-11.838293650793661.5049603174602
53548591.929563492063591.6250.304563492063487-43.9295634920635
54496602.036706349206604-1.96329365079364-106.036706349206
55582650.268849206349622.33333333333327.9355158730159-68.2688492063492
56467657.262896825397642.66666666666714.5962301587302-190.262896825397
57693669.483134920635653.58333333333315.899801587301523.5168650793651
58615626.37003968254659.666666666667-33.296626984127-11.3700396825396
59708560.054563492063663.25-103.195436507937147.945436507937
60648615.584325396825672.083333333333-56.49900793650832.4156746031747
61899713.066468253968683.7529.3164682539683185.933531746032
62852752.691468253968691.12561.566468253968399.3085317460317
63745742.923611111111685.7557.17361111111112.07638888888891
64689659.453373015873671.291666666667-11.838293650793629.546626984127
65582652.72123015873652.4166666666670.304563492063487-70.7212301587301
66674630.786706349206632.75-1.9632936507936443.2132936507937
67684639.352182539683611.41666666666727.935515873015944.6478174603175
68542607.84623015873593.2514.5962301587302-65.8462301587301
69489601.774801587302585.87515.8998015873015-112.774801587302
70472546.24503968254579.541666666667-33.296626984127-74.2450396825398
71398478.262896825397581.458333333333-103.195436507937-80.2628968253969
72486528.334325396825584.833333333333-56.499007936508-42.3343253968254
73549608.649801587302579.33333333333329.3164682539683-59.6498015873016
74766636.233134920635574.66666666666761.5664682539683129.766865079365
75654634.048611111111576.87557.173611111111119.9513888888889
76628568.49503968254580.333333333333-11.838293650793659.5049603174604
77689584.84623015873584.5416666666670.304563492063487104.15376984127
78648594.161706349206596.125-1.9632936507936453.8382936507936
79578636.310515873016608.37527.9355158730159-58.3105158730159
80536619.262896825397604.66666666666714.5962301587302-83.2628968253968
81548610.566468253968594.66666666666715.8998015873015-62.5664682539683
82496558.161706349206591.458333333333-33.296626984127-62.1617063492063
83475487.012896825397590.208333333333-103.195436507937-12.0128968253969
84687535.167658730159591.666666666667-56.499007936508151.832341269841
85642619.024801587302589.70833333333329.316468253968322.9751984126984
86584645.441468253968583.87561.5664682539683-61.4414682539683
87596638.631944444445581.45833333333357.1736111111111-42.6319444444446
88609577.911706349206589.75-11.838293650793631.0882936507936
89678599.387896825397599.0833333333330.30456349206348778.6121031746031
90694593.99503968254595.958333333333-1.96329365079364100.00496031746
91485NANA27.9355158730159NA
92489NANA14.5962301587302NA
93537NANA15.8998015873015NA
94706NANA-33.296626984127NA
95489NANA-103.195436507937NA
96598NANA-56.499007936508NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/18/t1305743098obl2hah0xeqwqh3/1g68a1305743221.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/18/t1305743098obl2hah0xeqwqh3/1g68a1305743221.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/18/t1305743098obl2hah0xeqwqh3/221ec1305743221.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/18/t1305743098obl2hah0xeqwqh3/221ec1305743221.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/18/t1305743098obl2hah0xeqwqh3/3cw201305743221.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/18/t1305743098obl2hah0xeqwqh3/3cw201305743221.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/18/t1305743098obl2hah0xeqwqh3/4gw4v1305743221.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/18/t1305743098obl2hah0xeqwqh3/4gw4v1305743221.ps (open in new window)


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