Home » date » 2010 » Dec » 20 »

classical decomposition (faillissementen) - jonas poels

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 20 Dec 2010 13:22:19 +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/20/t12928512397j8vcv44a09ap6v.htm/, Retrieved Mon, 20 Dec 2010 14:20:44 +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/20/t12928512397j8vcv44a09ap6v.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 «
48 49 59 56 47 56 50 54 79 50 54 56 50 46 47 43 52 48 36 41 34 37 37 34 55 37 27 38 43 26 32 29 41 55 50 30 35 29 22 39 24 38 30 31 39 33 57 49 74 74 115 67 51 114 70 73 77 67 60 73
 
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'Gwilym Jenkins' @ 72.249.127.135
R Framework
error message
Warning: there are blank lines in the 'Data' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
148NANA6.24045138888889NA
249NANA-1.16579861111111NA
359NANA4.90711805555555NA
456NANA-1.24913194444444NA
547NANA-5.73871527777778NA
656NANA8.02170138888888NA
75048.344618055555554.9166666666667-6.572048611111111.65538194444446
85449.521701388888954.875-5.353298611111114.47829861111112
97957.552951388888954.253.3029513888888921.4470486111111
105051.313368055555653.2083333333333-1.89496527777778-1.31336805555555
115456.573784722222252.8753.69878472222222-2.57378472222221
125648.552951388888952.75-4.197048611111117.44704861111112
135058.073784722222251.83333333333336.24045138888889-8.07378472222222
144649.542534722222250.7083333333333-1.16579861111111-3.54253472222221
154753.198784722222248.29166666666674.90711805555555-6.19878472222221
164344.625868055555645.875-1.24913194444444-1.62586805555556
175238.886284722222244.625-5.7387152777777813.1137152777778
184851.0217013888889438.02170138888888-3.02170138888889
193635.719618055555642.2916666666667-6.572048611111110.28038194444445
204136.771701388888942.125-5.353298611111114.22829861111111
213444.219618055555640.91666666666673.30295138888889-10.2196180555556
223737.980034722222239.875-1.89496527777778-0.980034722222221
233742.990451388888939.29166666666673.69878472222222-5.99045138888889
243433.802951388888938-4.197048611111110.197048611111121
255543.157118055555636.91666666666676.2404513888888911.8428819444444
263735.084201388888936.25-1.165798611111111.91579861111111
272740.948784722222236.04166666666674.90711805555555-13.9487847222222
283835.834201388888937.0833333333333-1.249131944444442.16579861111111
294332.636284722222238.375-5.7387152777777810.3637152777778
302646.771701388888938.758.02170138888888-20.7717013888889
313231.177951388888937.75-6.572048611111110.822048611111114
322931.230034722222236.5833333333333-5.35329861111111-2.23003472222223
334139.344618055555636.04166666666673.302951388888891.65538194444444
345533.980034722222235.875-1.8949652777777821.0199652777778
355038.823784722222235.1253.6987847222222211.1762152777778
363030.636284722222234.8333333333333-4.19704861111111-0.636284722222221
373541.490451388888935.256.24045138888889-6.49045138888889
382934.084201388888935.25-1.16579861111111-5.08420138888889
392240.157118055555635.254.90711805555555-18.1571180555556
403933.000868055555634.25-1.249131944444445.99913194444444
412427.886284722222233.625-5.73871527777778-3.88628472222222
423842.730034722222234.70833333333338.02170138888888-4.73003472222222
433030.552951388888937.125-6.57204861111111-0.552951388888886
443135.271701388888940.625-5.35329861111111-4.27170138888889
453949.677951388888946.3753.30295138888889-10.6779513888889
463349.521701388888951.4166666666667-1.89496527777778-16.5217013888889
475757.407118055555653.70833333333333.69878472222222-0.40711805555555
484953.802951388888958-4.19704861111111-4.80295138888889
497469.073784722222262.83333333333336.240451388888894.92621527777779
507465.084201388888966.25-1.165798611111118.91579861111111
5111574.490451388888969.58333333333334.9071180555555540.5095486111111
526771.334201388888972.5833333333333-1.24913194444444-4.33420138888889
535168.386284722222274.125-5.73871527777778-17.3862847222222
5411483.271701388888975.258.0217013888888830.7282986111111
5570NANA-6.57204861111111NA
5673NANA-5.35329861111111NA
5777NANA3.30295138888889NA
5867NANA-1.89496527777778NA
5960NANA3.69878472222222NA
6073NANA-4.19704861111111NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/20/t12928512397j8vcv44a09ap6v/1kvk31292851336.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t12928512397j8vcv44a09ap6v/1kvk31292851336.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t12928512397j8vcv44a09ap6v/2kvk31292851336.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t12928512397j8vcv44a09ap6v/2kvk31292851336.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t12928512397j8vcv44a09ap6v/3kvk31292851336.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t12928512397j8vcv44a09ap6v/3kvk31292851336.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t12928512397j8vcv44a09ap6v/4u4j61292851336.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t12928512397j8vcv44a09ap6v/4u4j61292851336.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