Home » date » 2009 » May » 29 »

Classical Decomposition - gemiddelde prijs strip - Kenny Dellaert

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Fri, 29 May 2009 05:31:54 -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/May/29/t1243596922gvssfhkqr4nrup6.htm/, Retrieved Fri, 29 May 2009 13:35:27 +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/May/29/t1243596922gvssfhkqr4nrup6.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 «
5,11 5,11 5,11 5,1 5,1 5,1 5,1 5,1 5,12 5,25 5,26 5,26 5,26 5,26 5,26 5,26 5,29 5,3 5,33 5,33 5,35 5,38 5,38 5,38 5,38 5,38 5,39 5,39 5,4 5,4 5,4 5,4 5,4 5,41 5,41 5,41 5,41 5,41 5,42 5,42 5,42 5,42 5,43 5,43 5,45 5,51 5,51 5,51 5,51 5,51 5,51 5,53 5,53 5,53 5,53 5,52 5,53 5,54 5,54 5,57 5,56 5,57 5,58 5,61 5,66 5,68 5,69 5,7 5,72 5,71 5,69 5,7 5,7
 
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'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
15.11NANA1.00069597627142NA
25.11NANA0.99921889698968NA
35.11NANA0.998475750820238NA
45.1NANA0.99865084599588NA
55.1NANA1.00057505922897NA
65.1NANA1.00033487139641NA
75.15.153935493421385.149583333333331.000845148006420.989535085666046
85.15.144625892544355.162083333333330.9966181404557630.991325726403347
95.125.159135035149015.174583333333330.9970145812350130.992414419300448
105.255.189202969520375.18751.000328283281031.01171606330235
115.265.221564654085955.202083333333331.003744907473471.00736088671888
125.265.236584656876525.218333333333331.003497538845711.00447149137420
135.265.239894305751215.236251.000695976271421.00383704194696
145.265.251311644887855.255416666666670.999218896989681.00165451142490
155.265.266543554013915.274583333333330.9984757508202380.998757523991437
165.265.282446870799045.289583333333330.998650845995880.995750667948384
175.295.303047813913555.31.000575059228970.997539563215078
185.35.311778167114915.311.000334871396410.99778263196535
195.335.324496187394145.321.000845148006421.00103367763111
205.335.311974688629225.330.9966181404557631.00339333532770
215.355.324473286537155.340416666666670.9970145812350131.00479422321967
225.385.353006725907635.351251.000328283281031.0050426378061
235.385.381327385192145.361251.003744907473470.999753334986495
245.385.388781783601455.371.003497538845710.998370358282427
255.385.380825655742775.377083333333331.000695976271420.999846555938514
265.385.378712054254035.382916666666670.999218896989681.00023945244382
275.395.379704139106875.387916666666670.9984757508202381.00191383403750
285.395.383976373475295.391250.998650845995881.00111880627010
295.45.396851725716275.393751.000575059228971.00058335385957
305.45.398057049772855.396251.000334871396411.00035993510429
315.45.403312742799645.398751.000845148006420.999386905226972
325.45.382983731136695.401250.9966181404557631.00316112210499
335.45.38761754334875.403750.9970145812350131.00229831767969
345.415.408024781488095.406251.000328283281031.00036523843579
355.415.428587041252355.408333333333331.003744907473470.99657608119551
365.415.428921685155285.411.003497538845710.996514651296772
375.415.415850014912275.412083333333331.000695976271420.998919834394203
385.415.410353985992045.414583333333330.999218896989680.999934572489535
395.425.409658411631485.417916666666670.9984757508202381.00191168971894
405.425.416848630489325.424166666666670.998650845995881.00058177175063
415.425.43562400926145.43251.000575059228970.997125627299686
425.425.442655312789285.440833333333331.000334871396410.995837452220051
435.435.453772019011635.449166666666671.000845148006420.99564117844883
445.435.439043501537335.45750.9966181404557630.998337299281616
455.455.449100109191525.465416666666670.9970145812350131.00016514484785
465.515.475546940609565.473751.000328283281031.00629216766181
475.515.503449682268085.482916666666671.003744907473471.00119022033635
485.515.511292108135535.492083333333331.003497538845710.999765552594531
495.515.504661782806355.500833333333331.000695976271421.00096976297623
505.515.50444709879195.508750.999218896989681.00100880272050
515.515.50742582889935.515833333333330.9984757508202381.00046740004871
525.535.512968774416435.520416666666670.998650845995881.00308930202228
535.535.526092670866685.522916666666671.000575059228971.00070706905693
545.535.52851738925085.526666666666671.000334871396411.00026817510823
555.535.535924724910495.531251.000845148006420.99892976779763
565.525.51711192253975.535833333333330.9966181404557631.00052347632255
575.535.524707048268525.541250.9970145812350131.00095805111208
585.545.549321151501545.54751.000328283281030.998320307791338
595.545.577057642149475.556251.003744907473470.993355341736222
605.575.5873906714985.567916666666671.003497538845710.996887514670003
615.565.584717460908075.580833333333331.000695976271420.995574089274688
625.575.590629728657265.5950.999218896989680.99630994545185
635.585.601864993664385.610416666666670.9984757508202380.996096836733997
645.615.617827113245995.625416666666670.998650845995880.998606736539197
655.665.641992615227375.638751.000575059228971.00319167109933
665.685.65230882958615.650416666666671.000334871396411.00489909013268
675.695.6664516129635.661666666666671.000845148006421.00415575542605
685.7NANA0.996618140455763NA
695.72NANA0.997014581235013NA
705.71NANA1.00032828328103NA
715.69NANA1.00374490747347NA
725.7NANA1.00349753884571NA
735.7NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/29/t1243596922gvssfhkqr4nrup6/1b4x31243596712.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/29/t1243596922gvssfhkqr4nrup6/1b4x31243596712.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/29/t1243596922gvssfhkqr4nrup6/2r6ed1243596712.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/29/t1243596922gvssfhkqr4nrup6/2r6ed1243596712.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/29/t1243596922gvssfhkqr4nrup6/3mn5l1243596712.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/29/t1243596922gvssfhkqr4nrup6/3mn5l1243596712.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/29/t1243596922gvssfhkqr4nrup6/4aklp1243596712.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/29/t1243596922gvssfhkqr4nrup6/4aklp1243596712.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