Home » date » 2009 » Aug » 17 »

Additieve decompositie

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 17 Aug 2009 15:01:30 -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/Aug/17/t125054297232joi204dkvuk8l.htm/, Retrieved Mon, 17 Aug 2009 23:02:57 +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/Aug/17/t125054297232joi204dkvuk8l.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 «
6430 5124 4836 4629 4597 4490 4517 4560 4135 4559 4739 4886 5605 4616 4997 4607 4882 4555 4462 4476 4277 4369 4492 5183 6039 4923 4953 4892 4614 4363 4675 4556 4217 4664 4601 5428 5607 4869 5174 5031 4671 4491 4504 4615 4582 4800 4775 5791 5818 4714 4915 4598 4407 4383 4412 4274 4236 4637 4534 5271 5467 5204 5752 4724 4623 4451 4138 4140 4169 4603 4434 5185
 
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
16430NANA915.523611111111NA
25124NANA80.1819444444444NA
34836NANA376.398611111111NA
44629NANA-12.0513888888888NA
54597NANA-140.876388888889NA
64490NANA-331.626388888889NA
745174486.565277777784757.45833333333-270.89305555555630.4347222222232
845604420.581944444444701.91666666667-281.334722222222139.418055555556
941354191.023611111114687.45833333333-496.434722222223-56.0236111111108
1045594504.790277777784693.25-188.45972222222254.2097222222228
1147394537.140277777784704.20833333333-167.068055555556201.859722222222
1248865235.431944444444718.79166666667516.640277777778-349.431944444444
1356055634.731944444444719.20833333333915.523611111111-29.7319444444429
1446164793.598611111114713.4166666666780.1819444444444-177.598611111111
1549975092.231944444444715.83333333333376.398611111111-95.2319444444438
1646074701.781944444444713.83333333333-12.0513888888888-94.781944444444
1748824554.748611111114695.625-140.876388888889327.25138888889
1845554366.081944444444697.70833333333-331.626388888889188.918055555556
1944624457.273611111114728.16666666667-270.8930555555564.72638888888832
2044764477.706944444454759.04166666667-281.334722222222-1.70694444444507
2142774273.565277777784770-496.4347222222233.43472222222226
2243694591.581944444444780.04166666667-188.459722222222-222.581944444444
2344924613.681944444444780.75-167.068055555556-121.681944444445
2451835278.223611111114761.58333333333516.640277777778-95.2236111111106
2560395677.981944444444762.45833333333915.523611111111361.018055555555
2649234854.848611111114774.6666666666780.181944444444468.1513888888885
2749535151.898611111114775.5376.398611111111-198.89861111111
2848924773.240277777784785.29166666667-12.0513888888888118.759722222223
2946144661.248611111114802.125-140.876388888889-47.2486111111111
3043634485.248611111114816.875-331.626388888889-122.248611111110
3146754538.190277777784809.08333333333-270.893055555556136.809722222223
3245564507.498611111114788.83333333333-281.33472222222248.5013888888889
3342174299.356944444444795.79166666667-496.434722222223-82.3569444444447
3446644622.331944444444810.79166666667-188.45972222222241.6680555555558
3546014651.890277777784818.95833333333-167.068055555556-50.8902777777766
3654285343.306944444444826.66666666667516.64027777777884.6930555555564
3756075740.398611111114824.875915.523611111111-133.398611111111
3848694900.390277777784820.2083333333380.1819444444444-31.3902777777776
3951745214.273611111114837.875376.398611111111-40.2736111111108
4050314846.698611111114858.75-12.0513888888888184.301388888889
4146714730.790277777784871.66666666667-140.876388888889-59.7902777777772
4244914562.415277777784894.04166666667-331.626388888889-71.4152777777781
4345044647.065277777784917.95833333333-270.893055555556-143.065277777777
4446154638.956944444454920.29166666667-281.334722222222-23.9569444444451
4545824406.606944444444903.04166666667-496.434722222223175.393055555555
4648004685.748611111114874.20833333333-188.459722222222114.251388888888
4747754678.098611111114845.16666666667-167.06805555555696.9013888888885
4857915346.306944444444829.66666666667516.640277777778444.693055555556
4958185736.856944444444821.33333333333915.52361111111181.1430555555562
5047144883.473611111114803.2916666666780.1819444444444-169.473611111111
5149155151.065277777784774.66666666667376.398611111111-236.065277777779
5245984741.406944444444753.45833333333-12.0513888888888-143.406944444445
5344074595.748611111114736.625-140.876388888889-188.748611111111
5443834373.290277777784704.91666666667-331.6263888888899.7097222222219
5544124397.731944444444668.625-270.89305555555614.2680555555562
5642744393.081944444444674.41666666667-281.334722222222-119.081944444444
5742364233.273611111114729.70833333333-496.4347222222232.72638888888832
5846374581.373611111114769.83333333333-188.45972222222255.6263888888889
5945344617.015277777784784.08333333333-167.068055555556-83.0152777777776
6052715312.556944444444795.91666666667516.640277777778-41.5569444444445
6154675702.856944444444787.33333333333915.523611111111-235.856944444445
6252044850.515277777784770.3333333333380.1819444444444353.484722222222
6357525138.356944444444761.95833333333376.398611111111613.643055555556
6447244745.698611111114757.75-12.0513888888888-21.6986111111100
6546234611.290277777784752.16666666667-140.87638888888911.7097222222219
6644514412.790277777784744.41666666667-331.62638888888938.2097222222228
674138NANA-270.893055555556NA
684140NANA-281.334722222222NA
694169NANA-496.434722222223NA
704603NANA-188.459722222222NA
714434NANA-167.068055555556NA
725185NANA516.640277777778NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/17/t125054297232joi204dkvuk8l/1ykuj1250542888.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/17/t125054297232joi204dkvuk8l/1ykuj1250542888.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/17/t125054297232joi204dkvuk8l/2k70a1250542888.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/17/t125054297232joi204dkvuk8l/2k70a1250542888.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/17/t125054297232joi204dkvuk8l/34r4b1250542888.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/17/t125054297232joi204dkvuk8l/34r4b1250542888.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/17/t125054297232joi204dkvuk8l/4ouew1250542888.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/17/t125054297232joi204dkvuk8l/4ouew1250542888.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