Home » date » 2010 » Dec » 19 »

statistiek classical Decomposition

*The author of this computation has been verified*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 19 Dec 2010 09:09:14 +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/Dec/19/t12927496504h8ycnvj5h9z7c3.htm/, Retrieved Sun, 19 Dec 2010 10:07:30 +0100
 
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/Dec/19/t12927496504h8ycnvj5h9z7c3.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
6.5 6.3 5.9 5.5 5.2 4.9 5.4 5.8 5.7 5.6 5.5 5.4 5.4 5.4 5.5 5.8 5.7 5.4 5.6 5.8 6.2 6.8 6.7 6.7 6.4 6.3 6.3 6.4 6.3 6 6.3 6.3 6.6 7.5 7.8 7.9 7.8 7.6 7.5 7.6 7.5 7.3 7.6 7.5 7.6 7.9 7.9 8.1 8.2 8 7.5 6.8 6.5 6.6 7.6 8 8.1 7.7 7.5 7.6 7.8 7.8 7.8 7.5 7.5 7.1 7.5 7.5 7.6 7.7 7.7 7.9 8.1 8.2 8.2 8.2 7.9 7.3 6.9 6.6 6.7 6.9 7 7.1 7.2 7.1 6.9 7 6.8 6.4 6.7 6.6 6.4 6.3 6.2 6.5 6.8 6.8 6.4 6.1 5.8 6.1 7.2 7.3 6.9 6.1 5.8 6.2 7.1 7.7 8 7.8 7.4 7.4 7.7 7.8 7.8 8 8.1 8.4
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
16.5NANA0.245717592592593NA
26.3NANA0.236921296296296NA
35.9NANA0.129050925925926NA
45.5NANA0.00821759259259251NA
55.2NANA-0.214930555555556NA
64.9NANA-0.440856481481482NA
75.45.507754629629635.59583333333333-0.0880787037037038-0.107754629629628
85.85.48182870370375.5125-0.03067129629629630.318171296296296
95.75.455902777777785.45833333333333-0.002430555555555620.244097222222222
105.65.509143518518525.454166666666670.05497685185185220.09085648148148
115.55.477199074074075.4875-0.01030092592592580.0228009259259254
125.45.641550925925935.529166666666670.112384259259260-0.241550925925926
135.45.804050925925935.558333333333330.245717592592593-0.404050925925926
145.45.803587962962965.566666666666670.236921296296296-0.403587962962963
155.55.716550925925935.58750.129050925925926-0.216550925925926
165.85.666550925925935.658333333333330.008217592592592510.133449074074074
175.75.543402777777785.75833333333333-0.2149305555555560.156597222222222
185.45.421643518518525.8625-0.440856481481482-0.021643518518518
195.65.870254629629635.95833333333333-0.0880787037037038-0.27025462962963
205.86.00682870370376.0375-0.0306712962962963-0.206828703703702
216.26.105902777777786.10833333333333-0.002430555555555620.0940972222222225
226.86.221643518518526.166666666666670.05497685185185220.578356481481482
236.76.206365740740746.21666666666667-0.01030092592592580.49363425925926
246.76.379050925925936.266666666666670.1123842592592600.320949074074075
256.46.566550925925936.320833333333330.245717592592593-0.166550925925925
266.36.607754629629636.370833333333330.236921296296296-0.307754629629629
276.36.537384259259266.408333333333330.129050925925926-0.237384259259259
286.46.462384259259266.454166666666670.00821759259259251-0.0623842592592583
296.36.314236111111116.52916666666667-0.214930555555556-0.0142361111111109
3066.184143518518526.625-0.440856481481482-0.184143518518519
316.36.645254629629636.73333333333333-0.0880787037037038-0.34525462962963
326.36.815162037037046.84583333333333-0.0306712962962963-0.515162037037038
336.66.947569444444446.95-0.00243055555555562-0.347569444444445
347.57.104976851851857.050.05497685185185220.395023148148148
357.87.139699074074077.15-0.01030092592592580.660300925925926
367.97.366550925925937.254166666666670.1123842592592600.533449074074074
377.87.60821759259267.36250.2457175925925930.191782407407407
387.67.703587962962967.466666666666670.236921296296296-0.103587962962964
397.57.687384259259267.558333333333330.129050925925926-0.187384259259259
407.67.624884259259267.616666666666670.00821759259259251-0.0248842592592604
417.57.422569444444447.6375-0.2149305555555560.0774305555555559
427.37.209143518518527.65-0.4408564814814820.0908564814814818
437.67.58692129629637.675-0.08807870370370380.0130787037037035
447.57.677662037037047.70833333333333-0.0306712962962963-0.177662037037035
457.67.722569444444447.725-0.00243055555555562-0.122569444444444
467.97.746643518518527.691666666666670.05497685185185220.153356481481483
477.97.606365740740747.61666666666667-0.01030092592592580.29363425925926
488.17.658217592592597.545833333333330.1123842592592600.441782407407408
498.27.762384259259267.516666666666670.2457175925925930.437615740740741
5087.77442129629637.53750.2369212962962960.225578703703704
517.57.708217592592597.579166666666670.129050925925926-0.208217592592592
526.87.599884259259267.591666666666670.00821759259259251-0.79988425925926
536.57.351736111111117.56666666666667-0.214930555555556-0.85173611111111
546.67.088310185185197.52916666666667-0.440856481481482-0.488310185185187
557.67.403587962962967.49166666666667-0.08807870370370380.196412037037037
5687.435995370370377.46666666666667-0.03067129629629630.56400462962963
578.17.468402777777787.47083333333333-0.002430555555555620.631597222222222
587.77.567476851851857.51250.05497685185185220.132523148148149
597.57.57303240740747.58333333333333-0.0103009259259258-0.073032407407406
607.67.75821759259267.645833333333330.112384259259260-0.158217592592594
617.87.908217592592597.66250.245717592592593-0.108217592592592
627.87.87442129629637.63750.236921296296296-0.0744212962962951
637.87.724884259259267.595833333333330.1290509259259260.0751157407407401
647.57.583217592592597.5750.00821759259259251-0.0832175925925922
657.57.368402777777787.58333333333333-0.2149305555555560.131597222222222
667.17.163310185185187.60416666666667-0.440856481481482-0.063310185185185
677.57.541087962962967.62916666666667-0.0880787037037038-0.0410879629629637
687.57.627662037037047.65833333333333-0.0306712962962963-0.127662037037037
697.67.689236111111117.69166666666667-0.00243055555555562-0.089236111111111
707.77.792476851851857.73750.0549768518518522-0.0924768518518508
717.77.77303240740747.78333333333333-0.0103009259259258-0.0730324074074069
727.97.92071759259267.808333333333330.112384259259260-0.0207175925925922
738.18.037384259259267.791666666666670.2457175925925930.0626157407407408
748.27.966087962962967.729166666666670.2369212962962960.233912037037037
758.27.783217592592597.654166666666670.1290509259259260.416782407407408
768.27.591550925925937.583333333333330.008217592592592510.608449074074075
777.97.305902777777787.52083333333333-0.2149305555555560.594097222222222
787.37.017476851851857.45833333333333-0.4408564814814820.282523148148147
796.97.29942129629637.3875-0.0880787037037038-0.399421296296297
806.67.273495370370377.30416666666667-0.0306712962962963-0.673495370370371
816.77.201736111111117.20416666666667-0.00243055555555562-0.501736111111111
826.97.154976851851857.10.0549768518518522-0.254976851851851
8376.993865740740747.00416666666667-0.01030092592592580.0061342592592597
847.17.033217592592596.920833333333330.1123842592592600.0667824074074073
857.27.120717592592596.8750.2457175925925930.0792824074074083
867.17.103587962962966.866666666666670.236921296296296-0.00358796296296404
876.96.983217592592596.854166666666670.129050925925926-0.0832175925925913
8876.824884259259266.816666666666670.008217592592592510.175115740740742
896.86.543402777777786.75833333333333-0.2149305555555560.256597222222223
906.46.259143518518526.7-0.4408564814814820.140856481481483
916.76.570254629629636.65833333333333-0.08807870370370380.129745370370371
926.66.598495370370376.62916666666667-0.03067129629629630.00150462962963083
936.46.593402777777786.59583333333333-0.00243055555555562-0.193402777777776
946.36.592476851851856.53750.0549768518518522-0.292476851851852
956.26.448032407407416.45833333333333-0.0103009259259258-0.248032407407407
966.56.516550925925936.404166666666670.112384259259260-0.0165509259259258
976.86.658217592592596.41250.2457175925925930.141782407407408
986.86.69942129629636.46250.2369212962962960.100578703703703
996.46.641550925925936.51250.129050925925926-0.241550925925925
1006.16.533217592592596.5250.00821759259259251-0.433217592592594
1015.86.285069444444446.5-0.214930555555556-0.485069444444444
1026.16.029976851851856.47083333333333-0.4408564814814820.0700231481481488
1037.26.382754629629636.47083333333333-0.08807870370370380.81724537037037
1047.36.490162037037046.52083333333333-0.03067129629629630.809837962962964
1056.96.622569444444446.625-0.002430555555555620.277430555555557
1066.16.817476851851856.76250.0549768518518522-0.717476851851851
1075.86.889699074074076.9-0.0103009259259258-1.08969907407407
1086.27.133217592592597.020833333333330.112384259259260-0.933217592592592
1097.17.341550925925937.095833333333330.245717592592593-0.241550925925925
1107.77.37442129629637.13750.2369212962962960.325578703703704
11187.324884259259267.195833333333330.1290509259259260.675115740740742
1127.87.32071759259267.31250.008217592592592510.479282407407407
1137.47.272569444444447.4875-0.2149305555555560.127430555555557
1147.47.234143518518527.675-0.4408564814814820.165856481481481
1157.7NANA-0.0880787037037038NA
1167.8NANA-0.0306712962962963NA
1177.8NANA-0.00243055555555562NA
1188NANA0.0549768518518522NA
1198.1NANA-0.0103009259259258NA
1208.4NANA0.112384259259260NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927496504h8ycnvj5h9z7c3/1t82k1292749746.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927496504h8ycnvj5h9z7c3/1t82k1292749746.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927496504h8ycnvj5h9z7c3/2t82k1292749746.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927496504h8ycnvj5h9z7c3/2t82k1292749746.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927496504h8ycnvj5h9z7c3/33zjn1292749746.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927496504h8ycnvj5h9z7c3/33zjn1292749746.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927496504h8ycnvj5h9z7c3/43zjn1292749746.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927496504h8ycnvj5h9z7c3/43zjn1292749746.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