Home » date » 2010 » May » 28 »

Classical Deomposition eigen reeks

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Fri, 28 May 2010 08:17:05 +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/May/28/t1275034682z4esa3qssmmffxw.htm/, Retrieved Fri, 28 May 2010 10:18:07 +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/2010/May/28/t1275034682z4esa3qssmmffxw.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:
KDGP2W52
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2 2.4 1.5 1.2 1.5 0.6 2.7 3.7 4.9 6.6 7.4 7.2 5.3 4.7 6.1 6.6 7 7.5 6.6 7.8 4.7 5.4 4.3 4.5 5.8 4.6 5.2 3.6 4.8 6.7 6.3 4.8 8.7 6.8 7.4 9 7.9 9.1 8.7 9.8 6.4 6.1 4.7 4.8 4.2 2.8 6.1 5.8 4.9 4.6 4.1 3.6 5.9 4.5 4.8 5.7 5 7 4.6 2.6 5 4.1 3.2 0 2.3 3.8 4.5 5.9 5 4.2 4.5 6
 
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
12NANA0.262638888888889NA
22.4NANA-0.130694444444445NA
31.5NANA-0.109861111111111NA
41.2NANA-0.830694444444444NA
51.5NANA-0.226527777777777NA
60.6NANA0.247638888888889NA
72.73.258472222222223.6125-0.354027777777778-0.558472222222222
83.73.792638888888893.84583333333333-0.0531944444444443-0.0926388888888883
94.94.191805555555564.133333333333330.05847222222222250.708194444444445
106.64.824305555555554.550.2743055555555561.77569444444445
117.45.521805555555555.004166666666670.5176388888888881.87819444444445
127.25.865138888888895.520833333333330.3443055555555551.33486111111111
135.36.233472222222225.970833333333330.262638888888889-0.933472222222222
144.76.173472222222226.30416666666667-0.130694444444445-1.47347222222222
156.16.356805555555556.46666666666667-0.109861111111111-0.256805555555554
166.65.577638888888896.40833333333333-0.8306944444444441.02236111111111
1776.002638888888896.22916666666667-0.2265277777777770.997361111111112
187.56.235138888888895.98750.2476388888888891.26486111111111
196.65.541805555555565.89583333333333-0.3540277777777781.05819444444444
207.85.859305555555555.9125-0.05319444444444431.94069444444445
214.75.929305555555555.870833333333330.0584722222222225-1.22930555555555
225.45.982638888888895.708333333333330.274305555555556-0.582638888888888
234.36.009305555555565.491666666666670.517638888888888-1.70930555555556
244.55.710972222222225.366666666666670.344305555555555-1.21097222222222
255.85.583472222222225.320833333333330.2626388888888890.216527777777778
264.65.052638888888895.18333333333333-0.130694444444445-0.452638888888889
275.25.115138888888895.225-0.1098611111111110.0848611111111106
283.64.619305555555565.45-0.830694444444444-1.01930555555556
294.85.410972222222225.6375-0.226527777777777-0.610972222222222
306.76.201805555555565.954166666666670.2476388888888890.498194444444445
316.35.875138888888896.22916666666667-0.3540277777777780.42486111111111
324.86.450972222222226.50416666666667-0.0531944444444443-1.65097222222222
338.76.895972222222226.83750.05847222222222251.80402777777778
346.87.515972222222227.241666666666670.274305555555556-0.715972222222223
357.48.084305555555567.566666666666670.517638888888888-0.684305555555556
3697.952638888888897.608333333333330.3443055555555551.04736111111111
377.97.779305555555567.516666666666670.2626388888888890.120694444444445
389.17.319305555555567.45-0.1306944444444451.78069444444444
398.77.152638888888897.2625-0.1098611111111111.54736111111111
409.86.077638888888896.90833333333333-0.8306944444444443.72236111111111
416.46.460972222222226.6875-0.226527777777777-0.0609722222222224
426.16.747638888888896.50.247638888888889-0.647638888888889
434.75.887638888888896.24166666666667-0.354027777777778-1.18763888888889
444.85.875972222222225.92916666666667-0.0531944444444443-1.07597222222222
454.25.608472222222225.550.0584722222222225-1.40847222222222
462.85.374305555555565.10.274305555555556-2.57430555555556
476.15.338472222222224.820833333333330.5176388888888880.761527777777777
485.85.077638888888894.733333333333330.3443055555555550.722361111111111
494.94.933472222222224.670833333333330.262638888888889-0.0334722222222226
504.64.581805555555554.7125-0.1306944444444450.0181944444444451
514.14.673472222222224.78333333333333-0.109861111111111-0.573472222222223
523.64.160972222222224.99166666666667-0.830694444444444-0.560972222222222
535.94.877638888888895.10416666666667-0.2265277777777771.02236111111111
544.55.155972222222224.908333333333330.247638888888889-0.655972222222221
554.84.425138888888894.77916666666667-0.3540277777777780.374861111111112
565.74.709305555555564.7625-0.05319444444444430.990694444444444
5754.762638888888894.704166666666670.05847222222222250.237361111111110
5874.790972222222224.516666666666670.2743055555555562.20902777777778
594.64.734305555555554.216666666666670.517638888888888-0.134305555555555
602.64.381805555555564.03750.344305555555555-1.78180555555555
6154.258472222222223.995833333333330.2626388888888890.741527777777778
624.13.860972222222223.99166666666667-0.1306944444444450.239027777777779
633.23.890138888888894-0.109861111111111-0.690138888888888
6403.052638888888893.88333333333333-0.830694444444444-3.05263888888889
652.33.535972222222223.7625-0.226527777777777-1.23597222222222
663.84.147638888888893.90.247638888888889-0.347638888888889
674.5NANA-0.354027777777778NA
685.9NANA-0.0531944444444443NA
695NANA0.0584722222222225NA
704.2NANA0.274305555555556NA
714.5NANA0.517638888888888NA
726NANA0.344305555555555NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/28/t1275034682z4esa3qssmmffxw/1dg5f1275034623.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/28/t1275034682z4esa3qssmmffxw/1dg5f1275034623.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/28/t1275034682z4esa3qssmmffxw/2dg5f1275034623.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/28/t1275034682z4esa3qssmmffxw/2dg5f1275034623.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/28/t1275034682z4esa3qssmmffxw/36q401275034623.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/28/t1275034682z4esa3qssmmffxw/36q401275034623.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/28/t1275034682z4esa3qssmmffxw/46q401275034623.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/28/t1275034682z4esa3qssmmffxw/46q401275034623.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