Home » date » 2008 » Aug » 18 »

Additief decompositiemodel - consumptieprijs bloemkool

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 18 Aug 2008 07:25:11 -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/Aug/18/t1219065958rqtvum1nexie59t.htm/, Retrieved Mon, 18 Aug 2008 13:26:03 +0000
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
100.58 118.48 79.58 81.97 127.13 120.76 120.26 74.9 67.59 87.73 102.87 144.94 110.48 96.34 100.43 90.88 128.28 101.21 73.76 73.64 66.4 57.34 113.59 123.53 102.87 102.99 95.8 98.43 102.65 129.55 100.37 101.93 101.94 93.87 100.91 92.64 101.67 88.67 129.86 98.07 166.45 176.52 82.07 92.18 95.02 84.69 103.01 107.9 204.13 101.99 119.23 95.65 160.95 111.06 150.41 94.79 160.34 104.08 101.07 111.5 136.9 141.71 153.98 134.27 124.71 72.89 101.2 73.28 174.05 111.9 97.06 105.23 109.13 84.04 118.82 90.84 144.28 110.16 86.09 59.87 108.97 94.93 87.36 143.52 108.7 121.13 210.25 110.2 161.46 99.41 132.72 174.29 69.93 83.43 127.53 187.58
 
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'George Udny Yule' @ 72.249.76.132


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1100.58NANA18.9308680555555NA
2118.48NANA-5.63413194444445NA
379.58NANA11.2462152777778NA
481.97NANA-7.42114583333333NA
5127.13NANA29.1665625NA
6120.76NANA8.29579861111112NA
7120.2693.0480208333333102.645-9.5969791666666727.2119791666667
874.976.0098958333333102.135-26.1251041666667-1.10989583333333
967.59110.193020833333102.081258.11177083333333-42.6030208333333
1087.7383.8845486111111103.32125-19.43670138888893.84545138888890
11102.8793.3041319444444103.740416666667-10.43628472222229.56586805555555
12144.94105.872881944444102.973752.8991319444444539.0671180555556
13110.48119.152534722222100.22166666666718.9308680555555-8.67253472222222
1496.3492.597534722222298.2316666666667-5.634131944444453.74246527777780
15100.43109.37579861111198.129583333333311.2462152777778-8.9457986111111
1690.8889.392604166666796.81375-7.421145833333331.48739583333332
17128.28125.16072916666795.994166666666729.16656253.11927083333335
18101.21103.84454861111195.548758.29579861111112-2.63454861111111
1973.7684.742604166666794.3395833333333-9.59697916666667-10.9826041666667
2073.6468.174479166666794.2995833333333-26.12510416666675.46552083333333
2166.4102.49552083333394.383758.11177083333333-36.0955208333333
2257.3475.068715277777894.5054166666667-19.4367013888889-17.7287152777778
23113.5983.315798611111193.7520833333333-10.436284722222230.2742013888889
24123.5396.764131944444493.8652.8991319444444526.7658680555556
25102.87115.08545138888996.154583333333318.9308680555555-12.2154513888889
26102.9992.807951388888998.4420833333333-5.6341319444444510.1820486111111
2795.8112.347881944444101.10166666666711.2462152777778-16.5478819444445
2898.4396.6834375104.104583333333-7.421145833333331.74656250000000
29102.65134.264895833333105.09833333333329.1665625-31.6148958333333
30129.55111.578715277778103.2829166666678.2957986111111217.9712847222222
31100.3792.3488541666666101.945833333333-9.596979166666678.02114583333336
32101.9375.1740625101.299166666667-26.125104166666726.7559375
33101.94110.2334375102.1216666666678.11177083333333-8.29343749999997
3493.8784.0891319444444103.525833333333-19.43670138888899.78086805555557
35100.9195.7328819444445106.169166666667-10.43628472222225.17711805555554
3692.64113.683715277778110.7845833333332.89913194444445-21.0437152777778
37101.67130.910034722222111.97916666666718.9308680555555-29.2400347222222
3888.67105.176284722222110.810416666667-5.63413194444445-16.5062847222222
39129.86121.362048611111110.11583333333311.24621527777788.4979513888889
4098.07102.023854166667109.445-7.42114583333333-3.95385416666666
41166.45138.3165625109.1529.166562528.1334375
42176.52118.169131944444109.8733333333338.2957986111111258.3508680555556
4382.07105.181354166667114.778333333333-9.59697916666667-23.1113541666667
4492.1893.4773958333333119.6025-26.1251041666667-1.29739583333333
4595.02127.826354166667119.7145833333338.11177083333333-32.8063541666667
4684.6999.7341319444445119.170833333333-19.4367013888889-15.0441319444445
47103.01108.404548611111118.840833333333-10.4362847222222-5.39454861111111
48107.9118.783298611111115.8841666666672.89913194444445-10.8832986111111
49204.13134.935034722222116.00416666666718.930868055555569.1949652777778
50101.99113.326284722222118.960416666667-5.63413194444445-11.3362847222222
51119.23133.037048611111121.79083333333311.2462152777778-13.8070486111111
5295.65117.899270833333125.320416666667-7.42114583333333-22.2492708333333
53160.95155.2140625126.047529.16656255.73593749999999
54111.06134.412465277778126.1166666666678.29579861111112-23.3524652777778
55150.41113.8684375123.465416666667-9.5969791666666736.5415625
5694.7996.1940625122.319166666667-26.1251041666667-1.40406249999997
57160.34133.533854166667125.4220833333338.1117708333333326.8061458333333
58104.08109.042465277778128.479166666667-19.4367013888889-4.96246527777777
59101.07118.142048611111128.578333333333-10.4362847222222-17.0720486111111
60111.5128.377048611111125.4779166666672.89913194444445-16.8770486111111
61136.9140.767951388889121.83708333333318.9308680555555-3.86795138888887
62141.71113.256284722222118.890416666667-5.6341319444444528.4537152777778
63153.98129.811631944444118.56541666666711.246215277777824.1683680555556
64134.27112.041354166667119.4625-7.4211458333333322.2286458333333
65124.71148.7878125119.6212529.1665625-24.0778125
6672.89127.488715277778119.1929166666678.29579861111112-54.5987152777778
67101.2108.177604166667117.774583333333-9.59697916666667-6.97760416666667
6873.2888.0894791666667114.214583333333-26.1251041666667-14.8094791666667
69174.05118.4584375110.3466666666678.1117708333333355.5915625
70111.987.6353819444444107.072083333333-19.436701388888924.2646180555556
7197.0695.6416319444444106.077916666667-10.43628472222221.41836805555558
72105.23111.345381944444108.446252.89913194444445-6.11538194444445
73109.13128.300451388889109.36958333333318.9308680555555-19.1704513888889
7484.04102.547118055556108.18125-5.63413194444445-18.5071180555555
75118.82116.157048611111104.91083333333311.24621527777782.66295138888889
7690.8494.0709375101.492083333333-7.42114583333333-3.23093750000000
77144.28129.547395833333100.38083333333329.166562514.7326041666667
78110.16109.867881944444101.5720833333338.295798611111120.292118055555534
7986.0993.5526041666667103.149583333333-9.59697916666667-7.46260416666665
8059.8778.5519791666667104.677083333333-26.1251041666667-18.6819791666667
81108.97118.143854166667110.0320833333338.11177083333333-9.17385416666667
8294.9395.2116319444445114.648333333333-19.4367013888889-0.281631944444456
8387.36105.734548611111116.170833333333-10.4362847222222-18.3745486111111
84143.52119.337881944444116.438752.8991319444444524.1821180555556
85108.7136.864618055556117.9337518.9308680555555-28.1646180555556
86121.13119.010034722222124.644166666667-5.634131944444452.11996527777778
87210.25139.031215277778127.78511.246215277777871.2187847222222
88110.2118.258020833333125.679166666667-7.42114583333333-8.05802083333333
89161.46156.0403125126.8737529.16656255.41968750000002
9099.41138.679131944444130.3833333333338.29579861111112-39.2691319444445
91132.72NANA-9.59697916666667NA
92174.29NANA-26.1251041666667NA
9369.93NANA8.11177083333333NA
9483.43NANA-19.4367013888889NA
95127.53NANA-10.4362847222222NA
96187.58NANA2.89913194444445NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/18/t1219065958rqtvum1nexie59t/1qoix1219065909.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/18/t1219065958rqtvum1nexie59t/1qoix1219065909.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/18/t1219065958rqtvum1nexie59t/2ge4h1219065909.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/18/t1219065958rqtvum1nexie59t/2ge4h1219065909.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/18/t1219065958rqtvum1nexie59t/3ha5u1219065909.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/18/t1219065958rqtvum1nexie59t/3ha5u1219065909.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/18/t1219065958rqtvum1nexie59t/4uj0t1219065909.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/18/t1219065958rqtvum1nexie59t/4uj0t1219065909.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