Home » date » 2010 » Aug » 19 »

Classical Decomposition aantal stuks product Y

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Thu, 19 Aug 2010 15:00:39 +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/19/t1282230022mziwvhqhi3374tu.htm/, Retrieved Thu, 19 Aug 2010 17:00:28 +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/19/t1282230022mziwvhqhi3374tu.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:
Sebastien Delforge
 
Dataseries X:
» Textbox « » Textfile « » CSV «
152 151 150 148 146 145 146 148 149 149 150 152 154 164 167 162 164 172 169 174 181 181 172 181 183 200 199 190 197 194 190 195 204 197 185 193 192 211 210 197 191 182 170 166 175 163 153 171 165 184 179 163 163 148 132 127 130 118 113 137 133 155 151 132 134 118 102 98 91 77 74 102 98 113 114 96 102 90 72 67 62 48 43 75
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'George Udny Yule' @ 72.249.76.132


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1152NANA0.992338069629766NA
2151NANA1.11800768650341NA
3150NANA1.12300300022508NA
4148NANA1.03591090228458NA
5146NANA1.06679100693656NA
6145NANA1.01386187855496NA
7146140.489950804234148.9166666666670.9434132118918881.03922023720717
8148141.196427263606149.5416666666670.9441945540057241.04818516210536
9149145.50526211366150.7916666666670.964942329573871.02401794846162
10149139.276136444749152.0833333333330.9157882944312271.06981715463588
11150135.394074634131153.4166666666670.8825252013088421.10787713868083
12152155.171139315239155.2916666666670.9992238646540750.979563601007036
13154156.169203707985157.3750.9923380696297660.986109913757128
14164178.229058690086159.4166666666671.118007686503410.92016420445317
15167181.739318869759161.8333333333331.123003000225080.918898568777392
16162170.407343425814164.51.035910902284580.950663256308116
17164177.887400406672166.751.066791006936560.921931511872545
18172171.215924740969168.8751.013861878554961.00457945287634
19169161.598821420315171.2916666666670.9434132118918881.04579970642506
20174164.2898523969961740.9441945540057241.05910375754395
21181170.633968612979176.8333333333330.964942329573871.06075010428042
22181164.231367468179.3333333333330.9157882944312271.10210371374559
23172160.509270988046181.8750.8825252013088421.07158919195895
24181184.023728407125184.1666666666670.9992238646540750.983568812384695
25183184.533533531569185.9583333333330.9923380696297660.991689675571588
26200209.859359487411187.7083333333331.118007686503410.953019205283514
27199212.855860334329189.5416666666671.123003000225080.93490496191852
28190198.031634153403191.1666666666671.035910902284580.959442670926093
29197205.223919959422192.3751.066791006936560.959927088611075
30194196.097785010505193.4166666666671.013861878554960.98930235234226
31190183.297325293828194.2916666666670.9434132118918881.03656722592884
32195184.235962350367195.1250.9441945540057241.05842527980049
33204189.168902526877196.0416666666670.964942329573871.07840135072420
34197180.219504774945196.7916666666670.9157882944312271.09311142679040
35185173.710377124290196.8333333333330.8825252013088421.06499106767601
36193195.931146127587196.0833333333330.9992238646540750.985039917412223
37192193.257839060397194.750.9923380696297660.993491394364583
38211215.449397919928192.7083333333331.118007686503410.979348292625157
39210213.698112584498190.2916666666671.123003000225080.982694687661146
40197194.405945995407187.6666666666671.035910902284581.01334349107128
41191197.267437032686184.9166666666671.066791006936560.96822872985546
42182185.198769816040182.6666666666671.013861878554960.982727910022205
43170170.404011397972180.6250.9434132118918880.997629096905303
44166168.420703570771178.3750.9441945540057240.985627042759895
45175169.789644074602175.9583333333330.964942329573871.03068712437555
46163158.66032201021173.250.9157882944312271.02735200543404
47153150.617634356709170.6666666666670.8825252013088421.01581730886603
48171167.952877917272168.0833333333330.9992238646540751.01814272027079
49165163.818476328047165.0833333333330.9923380696297661.00721239568598
50184180.97749425274161.8751.118007686503411.01670100340233
51179177.855600160648158.3751.123003000225081.00643443241775
52163160.177723265754154.6251.035910902284581.01761965819406
53163161.174341297999151.0833333333331.066791006936561.01132722918113
54148150.0515580261341481.013861878554960.986327645956352
55132137.030769027297145.250.9434132118918880.96328730355228
56127134.744431144567142.7083333333330.9441945540057240.942525037370503
57130135.413573583533140.3333333333330.964942329573870.960021928080987
58118126.264311094705137.8750.9157882944312270.934547529519195
59113119.471849127184135.3750.8825252013088420.9458295056579
60137132.813505343604132.9166666666670.9992238646540751.03152160351137
61133129.417423247549130.4166666666670.9923380696297661.02768233721976
62155143.058400218832127.9583333333331.118007686503411.08347360073160
63151140.515750403164125.1251.123003000225081.07461262930850
64132126.16531530741121.7916666666671.035910902284581.04624634495125
65134126.370284696694118.4583333333331.066791006936561.06037586543085
66118116.974314238279115.3751.013861878554961.00876846997053
67102106.094677454009112.4583333333330.9434132118918880.96140543944079
6898103.153255025125109.250.9441945540057240.950042729879245
6991102.243681004431105.9583333333330.964942329573870.890030553536663
707794.2498786352137102.9166666666670.9157882944312270.816977179334332
717488.3260638976599100.0833333333330.8825252013088420.837804796619727
7210297.507595459160297.58333333333330.9992238646540751.04607235487333
739894.437506293099495.16666666666670.9923380696297661.0377232928604
74113103.55546196237992.6251.118007686503411.09120270296368
75114101.21064539528690.1251.123003000225081.12636372937614
769690.858018721210487.70833333333331.035910902284581.05659358800864
7710290.899483716053185.20833333333331.066791006936561.12211858450838
789083.939314695362982.79166666666671.013861878554961.07220317829176
7972NANA0.943413211891888NA
8067NANA0.944194554005724NA
8162NANA0.96494232957387NA
8248NANA0.915788294431227NA
8343NANA0.882525201308842NA
8475NANA0.999223864654075NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282230022mziwvhqhi3374tu/1rqnh1282230037.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282230022mziwvhqhi3374tu/1rqnh1282230037.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/19/t1282230022mziwvhqhi3374tu/2j0421282230037.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282230022mziwvhqhi3374tu/2j0421282230037.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/19/t1282230022mziwvhqhi3374tu/3j0421282230037.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282230022mziwvhqhi3374tu/3j0421282230037.ps (open in new window)


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