Home » date » 2010 » Aug » 05 »

Omzet product X

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Thu, 05 Aug 2010 14:11:00 +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/05/t12810179409v3wyw1xi2wb7wy.htm/, Retrieved Thu, 05 Aug 2010 16:19:06 +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/05/t12810179409v3wyw1xi2wb7wy.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:
Philippe De Vocht
 
Dataseries X:
» Textbox « » Textfile « » CSV «
73 72 71 69 89 88 73 63 64 64 65 67 69 71 70 72 88 83 76 70 75 71 75 81 87 90 80 85 105 104 98 94 107 112 121 118 120 122 109 112 132 127 116 113 123 125 137 127 123 128 114 120 143 135 119 117 132 139 158 141 139 150 142 149 166 150 139 140 158 169 186 177 175 187 176 185 204 188 171 171 182 185 200 192 185 195 190 195 213 194 171 171 186 182 193 185 172 185 179 182 193 173 155 164 188 186 200 185 173 190 190 193 195 178 163 165 188 182 200 177
 
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
173NANA-2.59413580246913NA
272NANA4.85030864197531NA
371NANA-3.75154320987654NA
469NANA-0.0941358024691316NA
589NANA14.9567901234568NA
688NANA1.93364197530864NA
77360.887345679012371.3333333333333-10.445987654321012.1126543209877
86358.003086419753171.125-13.12191358024694.99691358024691
96469.26697530864271.0416666666667-1.77469135802469-5.26697530864196
106470.225308641975371.125-0.899691358024698-6.22530864197532
116580.577160493827271.20833333333339.36882716049383-15.5771604938272
126772.530864197530970.95833333333331.57253086419754-5.53086419753087
136968.280864197530970.875-2.594135802469130.719135802469111
147176.14197530864271.29166666666674.85030864197531-5.14197530864197
157068.290123456790172.0416666666667-3.751543209876541.70987654320989
167272.697530864197572.7916666666667-0.0941358024691316-0.697530864197546
178888.456790123456873.514.9567901234568-0.456790123456784
188376.433641975308674.51.933641975308646.56635802469137
197665.387345679012475.8333333333333-10.445987654321010.6126543209876
207064.253086419753177.375-13.12191358024695.74691358024691
217576.808641975308678.5833333333333-1.77469135802469-1.80864197530865
227178.64197530864279.5416666666667-0.899691358024698-7.64197530864196
237590.160493827160580.79166666666679.36882716049383-15.1604938271605
248183.947530864197582.3751.57253086419754-2.94753086419752
258781.572530864197584.1666666666667-2.594135802469135.42746913580245
269090.933641975308786.08333333333334.85030864197531-0.93364197530866
278084.665123456790188.4166666666667-3.75154320987654-4.66512345679013
288591.364197530864291.4583333333333-0.0941358024691316-6.3641975308642
29105110.0401234567995.083333333333314.9567901234568-5.04012345679011
30104100.47530864197598.54166666666671.933641975308643.52469135802471
319891.0123456790123101.458333333333-10.44598765432106.98765432098766
329491.0447530864198104.166666666667-13.12191358024692.95524691358024
33107104.933641975309106.708333333333-1.774691358024692.06635802469137
34112108.141975308642109.041666666667-0.8996913580246983.85802469135803
35121120.660493827160111.2916666666679.368827160493830.339506172839521
36118114.947530864198113.3751.572530864197543.05246913580248
37120112.489197530864115.083333333333-2.594135802469137.51080246913581
38122121.475308641975116.6254.850308641975310.524691358024697
39109114.331790123457118.083333333333-3.75154320987654-5.33179012345677
40112119.197530864198119.291666666667-0.0941358024691316-7.19753086419753
41132135.456790123457120.514.9567901234568-3.45679012345677
42127123.475308641975121.5416666666671.933641975308643.52469135802471
43116111.595679012346122.041666666667-10.44598765432104.40432098765433
44113109.294753086420122.416666666667-13.12191358024693.70524691358027
45123121.100308641975122.875-1.774691358024691.89969135802470
46125122.516975308642123.416666666667-0.8996913580246982.48302469135803
47137133.577160493827124.2083333333339.368827160493833.42283950617283
48127126.5725308641981251.572530864197540.427469135802454
49123122.864197530864125.458333333333-2.594135802469130.135802469135797
50128130.600308641975125.754.85030864197531-2.60030864197532
51114122.540123456790126.291666666667-3.75154320987654-8.54012345679013
52120127.155864197531127.25-0.0941358024691316-7.15586419753087
53143143.66512345679128.70833333333314.9567901234568-0.665123456790127
54135132.100308641975130.1666666666671.933641975308642.89969135802471
55119120.970679012346131.416666666667-10.4459876543210-1.9706790123457
56117119.878086419753133-13.1219135802469-2.87808641975309
57132133.308641975309135.083333333333-1.77469135802469-1.30864197530866
58139136.558641975309137.458333333333-0.8996913580246982.44135802469137
59158148.993827160494139.6259.368827160493839.00617283950615
60141142.780864197531141.2083333333331.57253086419754-1.78086419753086
61139140.072530864198142.666666666667-2.59413580246913-1.07253086419752
62150149.308641975309144.4583333333334.850308641975310.69135802469134
63142142.748456790123146.5-3.75154320987654-0.74845679012347
64149148.739197530864148.833333333333-0.09413580246913160.260802469135825
65166166.206790123457151.2514.9567901234568-0.206790123456784
66150155.850308641975153.9166666666671.93364197530864-5.85030864197529
67139146.470679012346156.916666666667-10.4459876543210-7.47067901234567
68140146.836419753086159.958333333333-13.1219135802469-6.83641975308643
69158161.141975308642162.916666666667-1.77469135802469-3.14197530864197
70169164.933641975309165.833333333333-0.8996913580246984.06635802469137
71186178.285493827160168.9166666666679.368827160493837.71450617283952
72177173.655864197531172.0833333333331.572530864197543.34413580246914
73175172.405864197531175-2.594135802469132.59413580246917
74187182.475308641975177.6254.850308641975314.52469135802468
75176176.16512345679179.916666666667-3.75154320987654-0.165123456790155
76185181.489197530864181.583333333333-0.09413580246913163.5108024691358
77204197.79012345679182.83333333333314.95679012345686.20987654320987
78188185.975308641975184.0416666666671.933641975308642.02469135802468
79171174.637345679012185.083333333333-10.4459876543210-3.63734567901233
80171172.711419753086185.833333333333-13.1219135802469-1.71141975308640
81182184.975308641975186.75-1.77469135802469-2.97530864197532
82185186.850308641975187.75-0.899691358024698-1.85030864197529
83200197.910493827160188.5416666666679.368827160493832.08950617283952
84192190.739197530864189.1666666666671.572530864197541.26080246913580
85185186.822530864198189.416666666667-2.59413580246913-1.82253086419752
86195194.266975308642189.4166666666674.850308641975310.733024691358054
87190185.831790123457189.583333333333-3.751543209876544.16820987654322
88195189.530864197531189.625-0.09413580246913165.46913580246917
89213204.16512345679189.20833333333314.95679012345688.83487654320987
90194190.558641975309188.6251.933641975308643.44135802469137
91171177.345679012346187.791666666667-10.4459876543210-6.3456790123457
92171173.711419753086186.833333333333-13.1219135802469-2.71141975308643
93186184.183641975309185.958333333333-1.774691358024691.81635802469137
94182184.058641975309184.958333333333-0.899691358024698-2.05864197530863
95193192.952160493827183.5833333333339.368827160493830.047839506172835
96185183.447530864198181.8751.572530864197541.55246913580245
97172177.739197530864180.333333333333-2.59413580246913-5.73919753086417
98185184.225308641975179.3754.850308641975310.774691358024683
99179175.41512345679179.166666666667-3.751543209876543.58487654320987
100182179.322530864198179.416666666667-0.09413580246913162.67746913580245
101193194.831790123457179.87514.9567901234568-1.83179012345678
102173182.100308641975180.1666666666671.93364197530864-9.10030864197532
103155169.762345679012180.208333333333-10.4459876543210-14.7623456790123
104164167.336419753086180.458333333333-13.1219135802469-3.33641975308643
105188179.350308641975181.125-1.774691358024698.64969135802468
106186181.141975308642182.041666666667-0.8996913580246984.85802469135805
107200191.952160493827182.5833333333339.368827160493838.0478395061729
108185184.447530864198182.8751.572530864197540.552469135802482
109173180.822530864198183.416666666667-2.59413580246913-7.82253086419752
110190188.641975308642183.7916666666674.850308641975311.35802469135803
111190180.081790123457183.833333333333-3.751543209876549.91820987654322
112193183.572530864197183.666666666667-0.09413580246913169.4274691358025
113195198.456790123457183.514.9567901234568-3.45679012345678
114178185.100308641975183.1666666666671.93364197530864-7.10030864197532
115163NANA-10.4459876543210NA
116165NANA-13.1219135802469NA
117188NANA-1.77469135802469NA
118182NANA-0.899691358024698NA
119200NANA9.36882716049383NA
120177NANA1.57253086419754NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/05/t12810179409v3wyw1xi2wb7wy/1dknc1281017457.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/05/t12810179409v3wyw1xi2wb7wy/1dknc1281017457.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/05/t12810179409v3wyw1xi2wb7wy/2dknc1281017457.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/05/t12810179409v3wyw1xi2wb7wy/2dknc1281017457.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/05/t12810179409v3wyw1xi2wb7wy/3obmf1281017457.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/05/t12810179409v3wyw1xi2wb7wy/3obmf1281017457.ps (open in new window)


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