Home » date » 2010 » Jul » 24 »

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: Sat, 24 Jul 2010 10:08:07 +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/Jul/24/t12799660840p52lvwyboghj0h.htm/, Retrieved Sat, 24 Jul 2010 12:08:10 +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/Jul/24/t12799660840p52lvwyboghj0h.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:
Febiri Lordina
 
Dataseries X:
» Textbox « » Textfile « » CSV «
213 212 211 209 229 228 213 203 204 204 205 207 205 208 201 201 220 218 203 185 179 182 182 185 183 192 177 172 188 182 162 150 141 135 139 148 142 156 143 134 146 142 117 106 104 99 105 106 96 104 96 85 91 98 73 70 62 60 70 82 72 73 68 53 61 73 46 50 52 45 58 73 58 49 44 35 46 61 29 33 37 31 44 57 42 34 27 22 30 47 12 13 18 11 26 41 21 24 30 34 48 64 35 44 55 53 73 94 73 78 87 87 91 104 73 84 103 111 131 155
 
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
1213NANA0.653163580246913NA
2212NANA4.74112654320987NA
3211NANA0.759645061728397NA
4209NANA-3.89776234567901NA
5229NANA7.76427469135803NA
6228NANA15.9031635802469NA
7213204.356867283951211.166666666667-6.809799382716058.6431327160494
8203201.125385802469210.666666666667-9.541280864197531.87461419753086
9204201.514274691358210.083333333333-8.569058641975312.48572530864200
10204198.347608024691209.333333333333-10.98572530864205.65239197530863
11205207.954089506173208.625-0.670910493827154-2.95408950617281
12207218.486496913580207.83333333333310.6531635802469-11.4864969135802
13205207.6531635802472070.653163580246913-2.65316358024691
14208210.574459876543205.8333333333334.74112654320987-2.57445987654322
15201204.801311728395204.0416666666670.759645061728397-3.80131172839506
16201198.185570987654202.083333333333-3.897762345679012.81442901234567
17220207.972608024691200.2083333333337.7642746913580312.0273919753086
18218214.236496913580198.33333333333315.90316358024693.76350308641977
19203189.690200617284196.5-6.8097993827160513.3097993827161
20185185.375385802469194.916666666667-9.54128086419753-0.375385802469111
21179184.680941358025193.25-8.56905864197531-5.68094135802468
22182180.055941358025191.041666666667-10.98572530864201.94405864197532
23182187.829089506173188.5-0.670910493827154-5.82908950617281
24185196.319830246914185.66666666666710.6531635802469-11.3198302469136
25183183.111496913580182.4583333333330.653163580246913-0.111496913580226
26192184.032793209877179.2916666666674.741126543209877.96720679012347
27177177.009645061728176.250.759645061728397-0.00964506172837787
28172168.810570987654172.708333333333-3.897762345679013.1894290123457
29188176.722608024691168.9583333333337.7642746913580311.2773919753087
30182181.528163580247165.62515.90316358024690.47183641975306
31162155.565200617284162.375-6.809799382716056.43479938271605
32150149.625385802469159.166666666667-9.541280864197530.37461419753086
33141147.680941358025156.25-8.56905864197531-6.68094135802468
34135142.264274691358153.25-10.9857253086420-7.264274691358
35139149.245756172839149.916666666667-0.670910493827154-10.2457561728395
36148157.153163580247146.510.6531635802469-9.15316358024691
37142143.611496913580142.9583333333330.653163580246913-1.61149691358023
38156143.99112654321139.254.7411265432098712.0088734567901
39143136.634645061728135.8750.7596450617283976.3653549382716
40134128.935570987654132.833333333333-3.897762345679015.0644290123457
41146137.680941358025129.9166666666677.764274691358038.31905864197532
42142142.653163580247126.7515.9031635802469-0.653163580246911
43117116.273533950617123.083333333333-6.809799382716050.726466049382708
44106109.458719135802119-9.54128086419753-3.45871913580247
45104106.305941358025114.875-8.56905864197531-2.30594135802470
469999.889274691358110.875-10.9857253086420-0.889274691358011
47105105.870756172840106.541666666667-0.670910493827154-0.870756172839506
48106113.069830246914102.41666666666710.6531635802469-7.06983024691358
499699.403163580246998.750.653163580246913-3.40316358024691
50104100.15779320987795.41666666666674.741126543209873.84220679012346
519692.92631172839592.16666666666670.7596450617283973.07368827160495
528584.893904320987788.7916666666667-3.897762345679010.106095679012341
539193.472608024691485.70833333333337.76427469135803-2.47260802469135
549899.153163580246983.2515.9031635802469-1.15316358024691
557374.44020061728481.25-6.80979938271605-1.44020061728395
567069.417052469135878.9583333333333-9.541280864197530.582947530864203
576267.930941358024776.5-8.56905864197531-5.93094135802468
586063.01427469135874-10.9857253086420-3.01427469135803
597070.745756172839571.4166666666667-0.670910493827154-0.74575617283952
608279.77816358024769.12510.65316358024692.22183641975309
617267.611496913580366.95833333333330.6531635802469134.38850308641975
627369.7411265432099654.741126543209873.25887345679013
636864.509645061728463.750.7596450617283973.49035493827161
645358.810570987654362.7083333333333-3.89776234567901-5.81057098765432
656169.347608024691461.58333333333337.76427469135803-8.34760802469135
667376.611496913580260.708333333333315.9031635802469-3.61149691358024
674652.940200617283959.75-6.80979938271605-6.94020061728394
685048.625385802469158.1666666666667-9.541280864197531.37461419753087
695247.597608024691456.1666666666667-8.569058641975314.40239197530864
704543.430941358024754.4166666666667-10.98572530864201.56905864197530
715852.370756172839553.0416666666667-0.6709104938271545.62924382716049
727362.569830246913651.916666666666710.653163580246910.4301697530864
735851.361496913580250.70833333333330.6531635802469136.63850308641976
744954.032793209876549.29166666666674.74112654320987-5.03279320987654
754448.717978395061747.95833333333330.759645061728397-4.71797839506173
763542.85223765432146.75-3.89776234567901-7.852237654321
774653.347608024691445.58333333333337.76427469135803-7.34760802469136
786160.236496913580244.333333333333315.90316358024690.763503086419753
792936.190200617283943-6.80979938271605-7.19020061728394
803332.167052469135841.7083333333333-9.541280864197530.83294753086421
813731.805941358024740.375-8.569058641975315.19405864197531
823128.139274691358039.125-10.98572530864202.86072530864197
834437.245756172839537.9166666666667-0.6709104938271546.75424382716049
845747.319830246913636.666666666666710.65316358024699.68016975308642
854236.028163580246935.3750.6531635802469135.97183641975309
863438.574459876543233.83333333333334.74112654320987-4.57445987654321
872732.967978395061732.20833333333330.759645061728397-5.96797839506173
882226.685570987654330.5833333333333-3.89776234567901-4.68557098765432
893036.764274691358297.76427469135803-6.76427469135803
904743.486496913580227.583333333333315.90316358024693.51350308641976
911219.231867283950626.0416666666667-6.80979938271605-7.23186728395061
921315.208719135802524.75-9.54128086419753-2.20871913580247
931815.889274691358024.4583333333333-8.569058641975312.11072530864198
941114.097608024691425.0833333333333-10.9857253086420-3.09760802469136
952625.662422839506226.3333333333333-0.6709104938271540.337577160493822
964138.444830246913627.791666666666710.65316358024692.55516975308642
972130.111496913580329.45833333333330.653163580246913-9.11149691358025
982436.449459876543231.70833333333334.74112654320987-12.4494598765432
993035.301311728395134.54166666666670.759645061728397-5.30131172839506
1003433.935570987654337.8333333333333-3.897762345679010.0644290123456841
1014849.305941358024741.54166666666677.76427469135803-1.30594135802468
1026461.611496913580345.708333333333315.90316358024692.38850308641975
1033543.273533950617350.0833333333333-6.80979938271605-8.27353395061728
1044444.958719135802554.5-9.54128086419753-0.958719135802468
1055550.555941358024759.125-8.569058641975314.44405864197531
1065352.722608024691463.7083333333333-10.98572530864200.277391975308646
1077367.037422839506267.7083333333333-0.6709104938271545.96257716049382
1089481.819830246913671.166666666666710.653163580246912.1801697530864
1097375.069830246913674.41666666666670.653163580246913-2.06983024691358
1107882.407793209876577.66666666666674.74112654320987-4.40779320987653
1118782.092978395061781.33333333333330.7596450617283974.90702160493827
1128781.85223765432185.75-3.897762345679015.14776234567903
1139198.347608024691490.58333333333337.76427469135803-7.34760802469135
114104111.44483024691495.541666666666715.9031635802469-7.44483024691357
11573NANA-6.80979938271605NA
11684NANA-9.54128086419753NA
117103NANA-8.56905864197531NA
118111NANA-10.9857253086420NA
119131NANA-0.670910493827154NA
120155NANA10.6531635802469NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jul/24/t12799660840p52lvwyboghj0h/1rko01279966085.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/24/t12799660840p52lvwyboghj0h/1rko01279966085.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/24/t12799660840p52lvwyboghj0h/2rko01279966085.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/24/t12799660840p52lvwyboghj0h/2rko01279966085.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/24/t12799660840p52lvwyboghj0h/32bn31279966085.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/24/t12799660840p52lvwyboghj0h/32bn31279966085.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/24/t12799660840p52lvwyboghj0h/4uk4o1279966085.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/24/t12799660840p52lvwyboghj0h/4uk4o1279966085.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = additive ; par2 = 12 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
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