Home » date » 2009 » Dec » 09 »

ADHOCForecasting(1)

*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: Wed, 09 Dec 2009 10:49:53 -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/09/t1260381062ggpo6qvnlghgpa7.htm/, Retrieved Wed, 09 Dec 2009 18:51:07 +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/09/t1260381062ggpo6qvnlghgpa7.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:
ADHOCForecasting(1)
 
Dataseries X:
» Textbox « » Textfile « » CSV «
9.3 9.3 8.7 8.2 8.3 8.5 8.6 8.5 8.2 8.1 7.9 8.6 8.7 8.7 8.5 8.4 8.5 8.7 8.7 8.6 8.5 8.3 8 8.2 8.1 8.1 8 7.9 7.9 8 8 7.9 8 7.7 7.2 7.5 7.3 7 7 7 7.2 7.3 7.1 6.8 6.4 6.1 6.5 7.7 7.9 7.5 6.9 6.6 6.9 7.7 8 8 7.7 7.3 7.4 8.1 8.3
 
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
19.3NANA1.0352168535NA
29.3NANA1.01178560674111NA
38.7NANA0.983000307083953NA
48.2NANA0.968708917284983NA
58.3NANA0.991189438397787NA
68.5NANA1.03209909341544NA
78.68.795720089048658.491666666666671.035806094883060.977748258577221
88.58.513002570558768.441666666666661.008450452583470.998472622267997
98.28.381146735074628.408333333333330.9967667078384080.97838640214751
108.18.129632163164578.408333333333330.9668541720314660.996355042568982
117.98.062794281371438.4250.9570082233081810.97980919818982
128.68.55237180550228.441666666666661.013114132932151.00556900419918
138.78.751895815631248.454166666666671.03521685350.99407033439103
148.78.562235697046628.46251.011785606741111.01608975830937
158.58.335023437149358.479166666666670.9830003070839531.01979317323996
168.48.234025796922358.50.9687089172849831.02015711477849
178.58.437500094361168.51250.9911894383977871.00740739614102
188.78.772842294031268.51.032099093415440.991696842187529
198.78.761193219219228.458333333333331.035806094883060.9930154240766
208.68.479387555472648.408333333333331.008450452583471.01422419293119
218.58.335461594298698.36250.9967667078384081.01973956737007
228.38.045032423111828.320833333333330.9668541720314661.03169254808168
2387.91924304787528.2750.9570082233081811.01019755949358
248.28.328642434479698.220833333333331.013114132932150.984554213307666
258.18.449957566693748.16251.03521685350.958584695374906
268.18.19967918796448.104166666666671.011785606741110.987843525864926
2787.917248306638678.054166666666670.9830003070839531.01045207755982
287.97.757743912590578.008333333333330.9687089172849831.01833730128402
297.97.87995603526247.950.9911894383977871.00254366453923
3088.14068159931437.88751.032099093415440.982718695283924
3188.105182692459947.8251.035806094883060.98702278573464
327.97.81128913063617.745833333333331.008450452583471.01135675147601
3387.633571704195817.658333333333330.9967667078384081.04800220787902
347.77.327948912188487.579166666666670.9668541720314661.05077151768794
357.27.189524277602717.51250.9570082233081811.00145708144139
367.57.551921599231717.454166666666671.013114132932150.993124716861866
377.37.647664505231247.38751.03521685350.954539780740456
3877.39025070257157.304166666666671.011785606741110.947193847911585
3977.069410541778767.191666666666670.9830003070839530.990181565864855
4076.837470441169837.058333333333330.9687089172849831.02377042215079
417.26.90115646484466.96250.9911894383977871.04330339946323
427.37.164487873458876.941666666666671.032099093415441.01891441913708
437.17.224747511809346.9751.035806094883060.982733304990184
446.87.080162552513087.020833333333331.008450452583470.960429926511554
456.47.01474570641287.03750.9967667078384080.912363793052283
466.16.784093440420787.016666666666670.9668541720314660.899162143559987
476.56.687094960365926.98750.9570082233081810.97202148893132
487.77.08335631275066.991666666666671.013114132932151.08705529695568
497.97.293965413618747.045833333333331.03521685351.08308712093009
507.57.217403994753237.133333333333331.011785606741111.03915479935060
516.97.114464722520117.23750.9830003070839530.969855114771848
526.67.111937967733917.341666666666670.9687089172849830.92801709322318
536.97.36371153609697.429166666666670.9911894383977870.937027471293005
547.77.72354154905897.483333333333331.032099093415440.99695197482795
5587.785809146537677.516666666666671.035806094883061.02751041663506
568NANA1.00845045258347NA
577.7NANA0.996766707838408NA
587.3NANA0.966854172031466NA
597.4NANA0.957008223308181NA
608.1NANA1.01311413293215NA
618.3NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/09/t1260381062ggpo6qvnlghgpa7/1h5g01260380991.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/09/t1260381062ggpo6qvnlghgpa7/1h5g01260380991.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/09/t1260381062ggpo6qvnlghgpa7/2zd9r1260380991.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/09/t1260381062ggpo6qvnlghgpa7/2zd9r1260380991.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/09/t1260381062ggpo6qvnlghgpa7/36zlr1260380991.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/09/t1260381062ggpo6qvnlghgpa7/36zlr1260380991.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/09/t1260381062ggpo6qvnlghgpa7/4n1t71260380991.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/09/t1260381062ggpo6qvnlghgpa7/4n1t71260380991.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