Home » date » 2009 » Dec » 04 »

*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: Fri, 04 Dec 2009 12:47:16 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/04/t1259956150rrcigbo6sm58ai9.htm/, Retrieved Fri, 04 Dec 2009 20:49:15 +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/2009/Dec/04/t1259956150rrcigbo6sm58ai9.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 «
6802.96 7132.68 7073.29 7264.5 7105.33 7218.71 7225.72 7354.25 7745.46 8070.26 8366.33 8667.51 8854.34 9218.1 9332.9 9358.31 9248.66 9401.2 9652.04 9957.38 10110.63 10169.26 10343.78 10750.21 11337.5 11786.96 12083.04 12007.74 11745.93 11051.51 11445.9 11924.88 12247.63 12690.91 12910.7 13202.12 13654.67 13862.82 13523.93 14211.17 14510.35 14289.23 14111.82 13086.59 13351.54 13747.69 12855.61 12926.93 12121.95 11731.65 11639.51 12163.78 12029.53 11234.18 9852.13 9709.04 9332.75 7108.6 6691.49 6143.05
 
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
16802.96NANA1.00587694394746NA
27132.68NANA1.01565698086674NA
37073.29NANA1.01184043881666NA
47264.5NANA1.03324830456141NA
57105.33NANA1.03034158057347NA
67218.71NANA1.00276944965960NA
77225.727372.143748441527587.724166666670.971588263688840.980138240186584
87354.257473.530483250917760.090833333330.9630725520825730.98403960704807
97745.467781.400735939637941.133750.9798853640942170.995381199714644
108070.268097.317935542158122.526250.9968964933221540.996658407665657
118366.338188.070049033468299.073750.9866245674745881.02177069198224
128667.518497.962782928338479.316251.002199060912291.01995151325118
138854.348722.311037898778671.351.005876943947461.01513692432287
149218.19019.958661139658880.910416666671.015656980866741.02196698968411
159332.99195.527911931969087.922916666671.011840438816661.01493901050420
169358.319582.272449121189273.931.033248304561410.976627417941794
179248.669730.32135833319443.782083333331.030341580573470.950498925924928
189401.29639.577594952519612.9551.002769449659600.975270950142325
199652.049524.673256937559803.199166666670.971588263688841.01337229526164
209957.389643.9196147892610013.70.9630725520825731.03250342160982
2110110.6310029.445164247610235.3250.9798853640942171.00809464874904
2210169.2610427.843450447910460.30708333330.9968964933221540.975202595658762
2310343.7810531.973479304310674.75291666670.9866245674745880.982131223585574
2410750.2110871.423214431510847.568751.002199060912290.988850290156066
2511337.511055.669769928110991.07583333331.005876943947461.02549191825886
2611786.9611322.340044925411147.79916666671.015656980866741.04103568283862
2712083.0411452.839795686811318.821.011840438816661.05502567184696
2812007.7411895.715833554311512.93041666671.033248304561411.00941718581825
2911745.9312080.707808234911724.95416666671.030341580573470.97228822900537
3011051.5111967.122895202211934.07208333331.002769449659600.92348930455379
3111445.911788.070297374712132.783750.971588263688840.970973171287341
3211924.8811861.034618873312315.82666666670.9630725520825731.00538278347364
3312247.6312211.682124645412462.35791666670.9798853640942171.00294372838956
3412690.9112575.056315173212614.20458333330.9968964933221541.00921297542715
3512910.712649.709260130912821.19833333330.9866245674745881.02063215323784
3613202.1213100.032057414613071.28751.002199060912291.00779295364607
3713654.6713395.537364015513317.27251.005876943947461.01934469883087
3813862.8213687.762411132813476.75708333331.015656980866741.01278935034150
3913523.9313731.846381650213571.15791666671.011840438816660.984858818262926
4014211.1714115.397961630213661.18666666671.033248304561411.00678493363277
4114510.3514118.692115052813702.923751.030341580573471.02774038004056
4214289.2313727.073528605213689.16208333331.002769449659601.04095239019615
4314111.8213227.039880825713613.83250.971588263688841.06689177073223
4413086.5912964.083747197613461.17041666670.9630725520825731.00944966533627
4513351.5413026.453130319613293.85416666670.9798853640942171.02495590061455
4613747.6913089.279618094113130.028750.9968964933221541.05030149871623
4712855.6112768.257135035812941.35333333330.9866245674745881.00684140866215
4812926.9312738.643669462012710.69208333331.002199060912291.01478072041448
4912121.9512478.820095033412405.911251.005876943947460.971401936055205
5011731.6512276.949693386012087.69291666671.015656980866740.955583454603571
5111639.5111918.986675446111779.51208333331.011840438816660.976551976853716
5212163.7811712.317703655711335.433751.033248304561411.03854594007499
5312029.5311129.715408635310801.96666666671.030341580573471.08084794249694
5411234.1810290.888051483310262.46666666671.002769449659601.09166283257553
559852.13NANA0.97158826368884NA
569709.04NANA0.963072552082573NA
579332.75NANA0.979885364094217NA
587108.6NANA0.996896493322154NA
596691.49NANA0.986624567474588NA
606143.05NANA1.00219906091229NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259956150rrcigbo6sm58ai9/1uu4p1259956034.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259956150rrcigbo6sm58ai9/1uu4p1259956034.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259956150rrcigbo6sm58ai9/2ckcp1259956034.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259956150rrcigbo6sm58ai9/2ckcp1259956034.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259956150rrcigbo6sm58ai9/3tmjj1259956034.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259956150rrcigbo6sm58ai9/3tmjj1259956034.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259956150rrcigbo6sm58ai9/4a9r01259956034.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259956150rrcigbo6sm58ai9/4a9r01259956034.ps (open in new window)


 
Parameters (Session):
par1 = Aandelenkoers ; par2 = belgostat ; par3 = euronext brussel ;
 
Parameters (R input):
par1 = multiplicative ; par2 = 12 ; par3 = euronext brussel ;
 
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