Home » date » 2008 » Jun » 01 »

Ruts Wouter:decompositie additiefmodel eigen reeks

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 01 Jun 2008 09:21:43 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Jun/01/t1212333964sjxk9h6r6bx6n5l.htm/, Retrieved Sun, 01 Jun 2008 15:26:04 +0000
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
6.5300 6.5400 6.5400 6.5100 6.5100 6.4900 6.4600 6.4600 6.5200 6.4800 6.4900 6.4800 6.5300 6.4900 6.4800 6.5700 6.5300 6.5700 6.5500 6.5700 6.6200 6.5600 6.6500 6.5900 6.6800 6.7500 6.7700 6.8200 6.8800 6.8100 6.8700 6.9100 6.9800 7.0400 6.9900 7.0800 7.1300 7.1000 7.0200 7.0300 7.1200 7.1100 7.0900 7.0200 7.0300 7.0600 7.0500 7.1100 7.0600 7.0500 7.1100 7.0900 7.1300 7.0300 7.0600 7.1100 7.0800 7.1300 7.0000 7.0200 6.9600 6.9800 7.0200 7.0200 7.0600 7.0200 6.9400 6.9700 6.9700 6.9400 6.9300 7.0000 6.9700 6.9700 6.9800 6.9200 7.0000 6.9400 6.9700 6.9300 6.9200 6.8400 6.8600 6.8600 6.8400
 
Text written by user:
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
16.53NANA0.000993055555555333NA
26.54NANA-0.00525694444444431NA
36.54NANA-0.00725694444444445NA
46.51NANA0.0111597222222222NA
56.51NANA0.041659722222222NA
66.49NANA-0.00234027777777781NA
76.466.484493055555566.50083333333333-0.0163402777777780-0.0244930555555554
86.466.488743055555566.49875-0.0100069444444446-0.0287430555555561
96.526.495993055555566.494166666666670.001826388888889150.0240069444444444
106.486.498909722222226.494166666666670.00474305555555583-0.0189097222222223
116.496.473409722222226.4975-0.02409027777777770.0165902777777784
126.486.506576388888896.501666666666670.00490972222222252-0.0265763888888886
136.536.509743055555566.508750.0009930555555553330.0202569444444451
146.496.511826388888896.51708333333333-0.00525694444444431-0.021826388888889
156.486.518576388888896.52583333333333-0.00725694444444445-0.0385763888888881
166.576.544493055555566.533333333333330.01115972222222220.0255069444444445
176.536.584993055555566.543333333333330.041659722222222-0.0549930555555553
186.576.552243055555566.55458333333333-0.002340277777777810.0177569444444448
196.556.549076388888896.56541666666667-0.01634027777777800.00092361111111039
206.576.572493055555566.5825-0.0100069444444446-0.00249305555555512
216.626.607243055555566.605416666666670.001826388888889150.0127569444444440
226.566.632659722222226.627916666666670.00474305555555583-0.0726597222222232
236.656.628826388888896.65291666666667-0.02409027777777770.0211736111111112
246.596.682409722222226.67750.00490972222222252-0.0924097222222224
256.686.701826388888896.700833333333330.000993055555555333-0.0218263888888881
266.756.723076388888896.72833333333333-0.005256944444444310.0269236111111120
276.776.750243055555566.7575-0.007256944444444450.0197569444444436
286.826.803659722222226.79250.01115972222222220.0163402777777772
296.886.868326388888896.826666666666670.0416597222222220.0116736111111120
306.816.858909722222226.86125-0.00234027777777781-0.0489097222222226
316.876.884076388888896.90041666666667-0.0163402777777780-0.0140763888888884
326.916.923743055555556.93375-0.0100069444444446-0.0137430555555547
336.986.960576388888896.958750.001826388888889150.0194236111111117
347.046.982659722222226.977916666666670.004743055555555830.0573402777777776
356.996.972576388888896.99666666666667-0.02409027777777770.0174236111111119
367.087.024076388888897.019166666666670.004909722222222520.0559236111111101
377.137.041826388888897.040833333333330.0009930555555553330.0881736111111113
387.17.049326388888897.05458333333333-0.005256944444444310.0506736111111108
397.027.053993055555567.06125-0.00725694444444445-0.0339930555555563
407.037.075326388888897.064166666666670.0111597222222222-0.0453263888888866
417.127.109159722222227.06750.0416597222222220.0108402777777794
427.117.068909722222227.07125-0.002340277777777810.0410902777777782
437.097.053243055555557.06958333333333-0.01634027777777800.0367569444444449
447.027.054576388888897.06458333333333-0.0100069444444446-0.0345763888888886
457.037.068076388888897.066250.00182638888888915-0.0380763888888893
467.067.077243055555567.07250.00474305555555583-0.0172430555555563
477.057.051326388888897.07541666666667-0.0240902777777777-0.00132638888888970
487.117.077409722222227.07250.004909722222222520.0325902777777793
497.067.068909722222227.067916666666670.000993055555555333-0.00890972222222253
507.057.065159722222227.07041666666667-0.00525694444444431-0.0151597222222222
517.117.068993055555557.07625-0.007256944444444450.0410069444444465
527.097.092409722222227.081250.0111597222222222-0.00240972222222258
537.137.123743055555557.082083333333330.0416597222222220.00625694444444491
547.037.073909722222227.07625-0.00234027777777781-0.0439097222222209
557.067.051993055555557.06833333333333-0.01634027777777800.00800694444444527
567.117.051243055555557.06125-0.01000694444444460.0587569444444451
577.087.056409722222227.054583333333330.001826388888889150.023590277777779
587.137.052659722222227.047916666666670.004743055555555830.077340277777778
5977.017993055555557.04208333333333-0.0240902777777777-0.0179930555555545
607.027.043659722222227.038750.00490972222222252-0.0236597222222228
616.967.034326388888897.033333333333330.000993055555555333-0.0743263888888874
626.987.017243055555557.0225-0.00525694444444431-0.0372430555555532
637.027.004826388888897.01208333333333-0.007256944444444450.0151736111111109
647.027.010743055555566.999583333333330.01115972222222220.00925694444444325
657.067.030409722222226.988750.0416597222222220.0295902777777775
667.026.982659722222226.985-0.002340277777777810.0373402777777780
676.946.968243055555566.98458333333333-0.0163402777777780-0.0282430555555546
686.976.974576388888896.98458333333333-0.0100069444444446-0.00457638888888923
696.976.984326388888896.98250.00182638888888915-0.0143263888888896
706.946.981409722222226.976666666666660.00474305555555583-0.0414097222222205
716.936.945909722222226.97-0.0240902777777777-0.0159097222222213
7276.969076388888896.964166666666670.004909722222222520.0309236111111115
736.976.963076388888896.962083333333330.0009930555555553330.0069236111111115
746.976.956409722222226.96166666666667-0.005256944444444310.0135902777777783
756.986.950659722222226.95791666666667-0.007256944444444450.0293402777777789
766.926.962826388888896.951666666666670.0111597222222222-0.042826388888888
7776.986243055555556.944583333333330.0416597222222220.0137569444444452
786.946.933493055555566.93583333333333-0.002340277777777810.00650694444444433
796.976.908243055555556.92458333333333-0.01634027777777800.0617569444444452
806.93NANA-0.0100069444444446NA
816.92NANA0.00182638888888915NA
826.84NANA0.00474305555555583NA
836.86NANA-0.0240902777777777NA
846.86NANA0.00490972222222252NA
856.84NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212333964sjxk9h6r6bx6n5l/15sab1212333698.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212333964sjxk9h6r6bx6n5l/15sab1212333698.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212333964sjxk9h6r6bx6n5l/273ln1212333698.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212333964sjxk9h6r6bx6n5l/273ln1212333698.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212333964sjxk9h6r6bx6n5l/3pnue1212333698.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212333964sjxk9h6r6bx6n5l/3pnue1212333698.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212333964sjxk9h6r6bx6n5l/423ke1212333698.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212333964sjxk9h6r6bx6n5l/423ke1212333698.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