Home » date » 2009 » Jun » 05 »

Classical Decomposition - Verkoop vrouwenkleding VS 2000-2008 - Amelie Barratt

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Fri, 05 Jun 2009 06:08: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/2009/Jun/05/t1244204146o8yzemp1kqy7rje.htm/, Retrieved Fri, 05 Jun 2009 14:15:46 +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/2009/Jun/05/t1244204146o8yzemp1kqy7rje.htm/},
    year = {2009},
}
@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 = {2009},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
461683 731993 522673 572709 382812 942567 802385 272643 992660 672651 122826 493878 801948 742156 612673 662804 572750 202510 652313 492663 292397 382618 872790 913865 221989 842162 142783 112683 862759 392482 602262 542540 982375 112533 622742 883970 562056 322091 832619 82723 872811 562534 112447 342593 422622 682787 602944 84298 942258 722391 662901 3007 452988 12759 942577 52626 882755 22968 433067 904437 812315 32428 53073 403145 243133 313018 32720 922852 192947 693108 33335 944749 962536 292541 953227 193417 73378 433219 962953 632986 333186 733212 463421 495024 752596 22640 123421 243440 623653 413304 852981 613232 493203 253344 803665 574904 132570 132785 393406 333452 583642 893230 272991 373159 133072 653091 373307
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1461683NANA1.46290700644046NA
2731993NANA0.801189422137117NA
3522673NANA0.91959859576183NA
4572709NANA0.499704797449402NA
5382812NANA1.04383763885848NA
6942567NANA0.659504091026777NA
7802385678215.931793363595134.3751.139601340946511.18308191003167
8272643646709.923142663609735.5416666671.060640029897110.421584686183724
9992660650329.8296504686139091.059326104765481.52639469195735
10672651523571.288003282621412.9583333330.8425496780877111.28473622487065
11122826708807.9137149546330811.119616468848310.173285311328217
12493878849051.917995406610159.3751.391524825780820.581681743521687
13801948838349.093452173573070.6666666671.462907006440460.956580028848985
14742156461473.222841218575985.1666666670.8011894221371171.60823199107992
15612673511273.867595292555975.0416666670.919598595761831.19832645247766
16662804257204.409662341514712.7083333330.4997047974494022.5769542632264
17572750557280.385202032533876.51.043837638858481.02775912307116
18202510384243.213803093582624.4583333330.6595040910267770.527035983265997
19652313656363.601246822575958.9583333331.139601340946510.993828723532006
20492663589674.403274957555960.9166666671.060640029897110.835483102647543
21292397572617.754882048540549.0833333331.059326104765480.510632088347016
22382618419630.708665777498048.6250.8425496780877110.911796949314173
23872790545489.039547876487210.6251.119616468848311.60001381645249
24913865705795.074963483507209.8333333331.391524825780821.29480217759706
25221989750529.627720839513039.8751.462907006440460.295776464780108
26842162411036.312361238513032.6250.8011894221371172.048874940421
27142783500132.815657813543859.9166666670.919598595761830.285490164871907
28112683280512.015603575561355.4583333330.4997047974494020.401704717559215
29862759563341.689411473539683.251.043837638858481.53150213487898
30392482348230.663160531528018.9583333330.6595040910267771.12707478553969
31602262616459.130758682540942.7916666671.139601340946510.976969875129906
32542540565790.601728392533442.6251.060640029897110.958905995155512
33982375572582.885397766540516.1666666671.059326104765481.71569047041557
34112533478577.4852002795680110.8425496780877110.235140606234132
35622742635025.748226086567181.51.119616468848310.980656298960476
36883970799689.60410787574685.8333333331.391524825780821.10539138618183
37562056821220.951539558561362.3751.462907006440460.684415076047808
38322091426731.346077763532622.2916666670.8011894221371170.754786361396815
39832619460689.584271437500968.1250.919598595761831.80733193982832
4082723250554.817101649501405.6666666670.4997047974494020.330159287923168
41872811547327.219342576524341.3333333331.043837638858481.59467859290532
42562534323286.762033030490196.750.6595040910267771.74004650379877
43112447538711.016357337472718.8333333331.139601340946510.208733433298516
44342593535877.503545208505239.751.060640029897110.639312152000235
45422622545391.220168892514847.3333333331.059326104765480.774896962714446
46682787425027.765947478504454.250.8425496780877111.60645269486788
47602944541491.448945853483640.1251.119616468848311.11348757431679
4884298616779.753680094443240.2083333331.391524825780820.136674395514810
49942258665508.093548239454921.6666666671.462907006440461.41584754435703
50722391382510.630643898477428.4583333330.8011894221371171.88855143394045
51662901445562.723803669484518.7083333330.919598595761831.48778379470563
523007237958.654167176476198.4583333330.4997047974494020.0126366490452894
53452988460987.71130762441627.7916666671.043837638858480.982646584472006
5412759309124.10403359468722.0416666670.6595040910267770.0412746849356451
55942577566929.112511016497480.2083333331.139601340946511.66260115982611
5652626491413.042858519463317.4583333331.060640029897110.107091174653969
57882755433433.339362789409159.51.059326104765482.03665689699316
5822968337375.778261603400422.4166666670.8425496780877110.0680783905659951
59433067457196.364718616408350.8751.119616468848310.947223192088444
60904437573472.022289731412117.7083333331.391524825780821.57712488987485
61812315565732.16694435386717.7916666671.462907006440461.43586496837806
6232428308511.206619362385066.50.8011894221371170.105111254645635
6353073361019.618485346392583.9166666670.919598595761830.147008631338837
64403145195766.5584783391764.4166666670.4997047974494022.05931494701475
65243133420699.362359123403031.4166666671.043837638858480.577925763035631
66313018255924.244754116388055.5833333330.6595040910267771.22308849753855
6732720451275.815724054395994.4583333331.139601340946510.0725055472948447
68922852438141.601876914413091.7083333331.060640029897112.10628709085528
69192947488811.377032913461436.1666666671.059326104765480.39472690093915
70693108413021.152184835490203.9166666670.8425496780877111.67814165529668
7133335531137.235841944474392.1251.119616468848310.0627615571842902
72944749657255.268208385472327.3751.391524825780821.43741563696446
73962536754999.661987935516095.4583333331.462907006440461.27488268996786
74292541434867.524808244542777.4166666670.8011894221371170.67271291441916
75953227493404.151049232536542.9583333330.919598595761831.93193956308018
76193417271868.017912129544057.250.4997047974494020.711437121164119
7773378588357.519386127563648.51.043837638858480.124716685998269
78433219371188.824949287562830.2083333330.6595040910267771.16711218356099
79962953610078.930201225535344.1666666671.139601340946511.57840723934259
80632986546601.679080832515350.7916666671.060640029897111.15803888686261
81333186497385.032861832469529.6666666671.059326104765480.669875404338022
82733212368226.823018119437038.7083333330.8425496780877111.99119660537038
83463421517320.048999887462051.1251.119616468848310.895811018528882
84495024673705.990659168484149.4583333331.391524825780820.734777494728314
85752596700348.44299579478737.51.462907006440461.07460223197001
8622640379228.791856361473332.250.8011894221371170.0597001084468693
87123421440650.074838677479176.5416666670.919598595761830.280088458047317
88243440232787.188397339465849.4166666670.4997047974494021.04576201841692
89623653480198.455719937460031.751.043837638858481.29874011998849
90413304314937.55015798477536.9166666670.6595040910267771.31233636571021
91852981518553.747838675455030.8333333331.139601340946511.64492302592588
92613232460090.575042274433785.7916666671.060640029897111.33285060217470
93493203476299.014330712449624.5416666671.059326104765481.03549028060249
94253344391469.152694191464624.4166666670.8425496780877110.647162102700614
95803665522533.729689824466707.7916666671.119616468848311.53801554681849
96574904674941.838645065485037.5833333331.391524825780820.851783023488529
97132570NA480868.25NANA
98132785NA446698.958333333NANA
99393406NA421690.458333333NANA
100333452NA423341.125NANA
101583642NA422065.666666667NANA
102893230NANANANA
103272991NANANANA
104373159NANANANA
105133072NANANANA
106653091NANANANA
107373307NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244204146o8yzemp1kqy7rje/1gmx01244203687.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244204146o8yzemp1kqy7rje/1gmx01244203687.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244204146o8yzemp1kqy7rje/20ui31244203687.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244204146o8yzemp1kqy7rje/20ui31244203687.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244204146o8yzemp1kqy7rje/38pa01244203687.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244204146o8yzemp1kqy7rje/38pa01244203687.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244204146o8yzemp1kqy7rje/4216d1244203687.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244204146o8yzemp1kqy7rje/4216d1244203687.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