Home » date » 2008 » Jun » 02 »

Vooruitzichten kledingprijs - Classical Decomposition

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 01 Jun 2008 17:01:00 -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/Jun/02/t1212362048f09cmk7m11ranaf.htm/, Retrieved Sun, 01 Jun 2008 23:14:12 +0000
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
8 5 2 5 -4 -4 -1 5 16 5 11 16 22 12 8 4 17 5 11 9 4 7 -5 9 11 11 -4 -7 9 -3 14 11 8 -14 -8 -2 15 -8 -4 -17 -13 0 9 -7 -14 -21 -10 -1 7 -14 -12 -16 -15 -15 -24 -14 -8 -14 -13 0 -6 -37 -12 -36 -32 -18 -22 -13 -17 -18 -19 -24 -14 -3 -6 -25 -19 -11 -13 -11 -22 -10 -4 5 -8 -7 5 -13 -15 3 3 7 16 16 18 10
 
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 time6 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
18NANA-0.718240503697147NA
25NANA1.94589916598654NA
32NANA0.570311509491777NA
45NANA1.33237082838800NA
5-4NANA2.18064709861232NA
6-4NANA0.493658414487135NA
7-111.79928786406645.916666666666671.99424583618023-0.0847508774699367
8515.15856744373486.791666666666672.231936310733960.329846472535012
91621.28175220242357.333333333333332.902057118512290.751817794315733
105-31.42956958079357.54166666666667-4.16745673999472-0.159085856621322
111120.26428540089198.3752.419616167270680.542826938250476
12167.843939892528589.6250.8149547940289432.03979125531547
1322-7.5415252888200510.5-0.718240503697147-2.91718175799449
141221.729207353516311.16666666666671.945899165986540.552252081945277
1586.1783746861609210.83333333333330.5703115094917771.29483891903147
16413.878862795708410.41666666666671.332370828388000.288208051255964
171721.44302980302119.833333333333332.180647098612320.792798413105076
1854.381218428573338.8750.4936584144871351.14123504260621
191116.20324741896448.1251.994245836180230.678876259528416
20917.01851436934647.6252.231936310733960.528835819900397
21420.55623792279547.083333333333332.902057118512290.194588134999366
227-25.52567253246776.125-4.16745673999472-0.274233714747232
23-512.90461955877705.333333333333332.41961616727068-0.387458148396114
2493.803122372135074.666666666666670.8149547940289432.36647657354959
2511-3.202155578983124.45833333333333-0.718240503697147-3.43518599539539
26119.080862774603834.666666666666671.945899165986541.21133864402878
27-42.804031588334574.916666666666670.570311509491777-1.42651745317026
28-75.607060569466184.208333333333331.33237082838800-1.24842596459885
2996.996242774714523.208333333333332.180647098612321.2864047589268
30-31.295853338028732.6250.493658414487135-2.31507680071546
31144.653240284420542.333333333333331.994245836180233.00865615018275
32113.812891197503851.708333333333332.231936310733962.88494987929403
3382.660219025302930.9166666666666672.902057118512293.00727117726293
34-14-2.083728369997360.5-4.167456739994726.71872601130719
35-8-2.0163468060589-0.8333333333333332.419616167270683.96757143957621
36-2-1.32430154029703-1.6250.8149547940289431.51023006403165
37151.22699419381596-1.70833333333333-0.71824050369714712.2249967241898
38-8-5.18906444263076-2.666666666666671.945899165986541.54170372876390
39-4-2.47134987446437-4.333333333333330.5703115094917771.61854864878934
40-17-7.38355500731685-5.541666666666671.332370828388002.30241394330422
41-13-12.9021620001229-5.916666666666672.180647098612321.00758307017663
420-2.94138138631918-5.958333333333330.4936584144871350
439-12.4640364761264-6.251.99424583618023-0.722077476043861
44-7-15.2515647900154-6.833333333333332.231936310733960.458969298978596
45-14-21.5235902956328-7.416666666666672.902057118512290.65044910294732
46-2132.124145704126-7.70833333333333-4.16745673999472-0.65371388218124
47-10-18.7520252963478-7.752.419616167270680.533275731125834
48-1-6.89315929949481-8.458333333333330.8149547940289430.145071360830626
4977.511598601166-10.4583333333333-0.7182405036971470.931892180569049
50-14-23.5940273875867-12.1251.945899165986540.593370507290572
51-12-6.93879003214996-12.16666666666670.5703115094917771.72940814528176
52-16-15.4888108800105-11.6251.332370828388001.03300376794252
53-15-24.9865813382661-11.45833333333332.180647098612320.600322220832507
54-15-5.69764086720569-11.54166666666670.4936584144871352.63266856399050
55-24-24.0140436106703-12.04166666666671.994245836180230.99941519175621
56-14-30.224137541189-13.54166666666672.231936310733960.463205938661476
57-8-42.0798282184282-14.52.902057118512290.190114844539611
58-1463.9010033465858-15.3333333333333-4.16745673999472-0.219088891673060
59-13-40.8310228226927-16.8752.419616167270680.318385362435128
600-14.4314911442625-17.70833333333330.8149547940289430
61-612.7487689406244-17.75-0.718240503697147-0.470633676705898
62-37-34.2964728005127-17.6251.945899165986541.07882814116812
63-12-10.2418441912898-17.95833333333330.5703115094917771.17166398705864
64-36-24.6488603251780-18.51.332370828388001.46051377325657
65-32-41.250574282083-18.91666666666672.180647098612320.775746775818805
66-18-9.95544469215723-20.16666666666670.4936584144871351.80805584849265
67-22-42.8762854778750-21.51.994245836180230.51310414964357
68-13-45.568699677485-20.41666666666672.231936310733960.285283540939466
69-17-54.4135709721054-18.752.902057118512290.312422061193427
70-1875.1878653507382-18.0416666666667-4.16745673999472-0.239400332966406
71-19-41.2342921839045-17.04166666666672.419616167270680.460781524156161
72-24-13.2090589532191-16.20833333333330.8149547940289431.81693488423345
73-1411.1626544949598-15.5416666666667-0.718240503697147-1.25418196955942
74-3-29.3506457536302-15.08333333333331.945899165986540.102212401906999
75-6-8.67348754018745-15.20833333333330.5703115094917770.691763258112703
76-25-20.0965933281857-15.08333333333331.332370828388001.24399193394321
77-19-30.801640267899-14.1252.180647098612320.616850266243825
78-11-6.06788467807104-12.29166666666670.4936584144871351.81282285072973
79-13-21.6043298919525-10.83333333333331.994245836180230.601731230036551
80-11-23.9933153403900-10.752.231936310733960.458461027329672
81-22-30.3506806977744-10.45833333333332.902057118512290.724860184160986
82-1039.5908390299499-9.5-4.16745673999472-0.252583684635608
83-4-21.3732761442243-8.833333333333332.419616167270680.187149596206425
845-6.58755125173396-8.083333333333330.814954794028943-0.75900737754168
85-84.90797677526384-6.83333333333333-0.718240503697147-1.62999956322530
86-7-10.5402871490937-5.416666666666671.945899165986540.664118529313679
875-1.75846048759965-3.083333333333330.570311509491777-2.84339627490019
88-13-0.555154511828334-0.4166666666666671.3323708283880023.4169041645470
89-153.45269123946951.583333333333332.18064709861232-4.34443712444578
9031.336991539235992.708333333333330.4936584144871352.24384366838575
913NANA1.99424583618023NA
927NANA2.23193631073396NA
9316NANA2.90205711851229NA
9416NANA-4.16745673999472NA
9518NANA2.41961616727068NA
9610NANA0.814954794028943NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/02/t1212362048f09cmk7m11ranaf/1rygh1212361253.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/02/t1212362048f09cmk7m11ranaf/1rygh1212361253.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/02/t1212362048f09cmk7m11ranaf/2zbv11212361253.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/02/t1212362048f09cmk7m11ranaf/2zbv11212361253.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/02/t1212362048f09cmk7m11ranaf/3t62l1212361253.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/02/t1212362048f09cmk7m11ranaf/3t62l1212361253.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/02/t1212362048f09cmk7m11ranaf/452k01212361253.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/02/t1212362048f09cmk7m11ranaf/452k01212361253.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