Home » date » 2009 » Dec » 04 »

ws9 forcasting 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: Fri, 04 Dec 2009 13:34:46 -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/t1259958931qwdqzybuq834g7s.htm/, Retrieved Fri, 04 Dec 2009 21:35:36 +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/t1259958931qwdqzybuq834g7s.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 «
2.05 2.11 2.09 2.05 2.08 2.06 2.06 2.08 2.07 2.06 2.07 2.06 2.09 2.07 2.09 2.28 2.33 2.35 2.52 2.63 2.58 2.70 2.81 2.97 3.04 3.28 3.33 3.50 3.56 3.57 3.69 3.82 3.79 3.96 4.06 4.05 4.03 3.94 4.02 3.88 4.02 4.03 4.09 3.99 4.01 4.01 4.19 4.30 4.27 3.82 3.15 2.49 1.81 1.26 1.06 0.84 0.78 0.70 0.36 0.35
 
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
12.05NANA0.183845486111111NA
22.11NANA0.127178819444444NA
32.09NANA0.0235329861111111NA
42.05NANA-0.058862847222222NA
52.08NANA-0.134383680555556NA
62.06NANA-0.226258680555555NA
72.062.045303819444442.07166666666667-0.02636284722222190.0146961805555557
82.082.044366319444442.07166666666667-0.02730034722222250.0356336805555557
92.071.996345486111112.07-0.07365451388888880.0736545138888887
102.062.060303819444442.07958333333333-0.0192795138888889-0.000303819444444464
112.072.178532986111112.099583333333330.0789496527777777-0.108532986111111
122.062.274678819444442.122083333333330.152595486111111-0.214678819444444
132.092.337178819444442.153333333333330.183845486111111-0.247178819444444
142.072.322595486111112.195416666666670.127178819444444-0.252595486111111
152.092.263116319444442.239583333333330.0235329861111111-0.173116319444444
162.282.228637152777782.2875-0.0588628472222220.0513628472222223
172.332.210616319444442.345-0.1343836805555560.119383680555555
182.352.187491319444442.41375-0.2262586805555550.162508680555555
192.522.464887152777782.49125-0.02636284722222190.055112847222222
202.632.553949652777782.58125-0.02730034722222250.076050347222222
212.582.609678819444442.68333333333333-0.0736545138888888-0.0296788194444448
222.72.766553819444442.78583333333333-0.0192795138888889-0.0665538194444446
232.812.966866319444442.887916666666670.0789496527777777-0.156866319444445
242.973.142595486111112.990.152595486111111-0.172595486111111
253.043.273428819444443.089583333333330.183845486111111-0.233428819444445
263.283.315095486111113.187916666666670.127178819444444-0.0350954861111115
273.333.311449652777783.287916666666670.02353298611111110.0185503472222219
283.53.331970486111113.39083333333333-0.0588628472222220.168029513888889
293.563.361032986111113.49541666666667-0.1343836805555560.198967013888889
303.573.366241319444443.5925-0.2262586805555550.203758680555555
313.693.652387152777783.67875-0.02636284722222190.0376128472222228
323.823.720199652777783.7475-0.02730034722222250.0998003472222222
333.793.730095486111113.80375-0.07365451388888880.0599045138888892
343.963.829053819444443.84833333333333-0.01927951388888890.130946180555556
354.063.962282986111113.883333333333330.07894965277777770.0977170138888885
364.054.074262152777783.921666666666670.152595486111111-0.0242621527777778
374.034.141345486111113.95750.183845486111111-0.111345486111111
383.944.108428819444443.981250.127178819444444-0.168428819444444
394.024.021032986111113.99750.0235329861111111-0.00103298611111136
403.883.949887152777784.00875-0.058862847222222-0.0698871527777771
414.023.881866319444444.01625-0.1343836805555560.138133680555556
424.033.805824652777784.03208333333333-0.2262586805555550.224175347222223
434.094.026137152777784.0525-0.02636284722222190.0638628472222225
443.994.030199652777784.0575-0.0273003472222225-0.0401996527777770
454.013.942595486111114.01625-0.07365451388888880.0674045138888895
464.013.902803819444443.92208333333333-0.01927951388888890.107196180555556
474.193.851032986111113.772083333333330.07894965277777770.33896701388889
484.33.717178819444443.564583333333330.1525954861111110.582821180555556
494.273.506762152777783.322916666666670.1838454861111110.763237847222222
503.823.192595486111113.065416666666670.1271788194444440.62740451388889
513.152.823116319444442.799583333333330.02353298611111110.326883680555556
522.492.468220486111112.52708333333333-0.0588628472222220.0217795138888892
531.812.095199652777782.22958333333333-0.134383680555556-0.285199652777778
541.261.679157986111111.90541666666667-0.226258680555555-0.419157986111111
551.06NANA-0.0263628472222219NA
560.84NANA-0.0273003472222225NA
570.78NANA-0.0736545138888888NA
580.7NANA-0.0192795138888889NA
590.36NANA0.0789496527777777NA
600.35NANA0.152595486111111NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259958931qwdqzybuq834g7s/16vvb1259958884.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259958931qwdqzybuq834g7s/16vvb1259958884.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259958931qwdqzybuq834g7s/34h7f1259958884.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259958931qwdqzybuq834g7s/34h7f1259958884.ps (open in new window)


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


 
Parameters (Session):
par1 = 60 ; par2 = 1.7 ; par3 = 2 ; par4 = 0 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
 
Parameters (R input):
par1 = additive ; par2 = 12 ; par3 = 2 ; par4 = 0 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
 
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