Home » date » 2011 » May » 17 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 17 May 2011 12:09:54 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/17/t1305633968sdn415jwg0a6v4t.htm/, Retrieved Tue, 17 May 2011 14:06:11 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,43 0,43 0,44 0,44 0,44 0,44 0,44 0,44 0,44 0,44 0,44 0,44 0,44 0,43 0,44 0,44 0,46 0,46 0,46 0,46 0,46 0,45 0,45 0,46 0,46 0,46 0,47 0,47 0,47 0,47 0,47 0,47 0,47 0,47 0,47 0,47 0,47
 
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'Herman Ole Andreas Wold' @ www.yougetit.org


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9567818.11860
20.9163767.77570
30.8703427.38510
40.8271237.01840
50.7839036.65160
60.7491276.35660
70.7143516.06150
80.676765.74250
90.6363555.39970
100.5931365.03292e-06
110.5471024.64238e-06
120.5140074.36152.1e-05
130.4752834.03296.8e-05
140.4421873.75210.000176
150.4079583.46160.000453
160.3737293.17120.001116
170.3209332.72320.004053
180.2681372.27520.012936
190.2153411.82720.035905
200.1653591.40310.082439
210.1153780.9790.165426
220.0924060.78410.217779
230.0694350.58920.278795
240.0537730.45630.324782
250.0251720.21360.415733
26-0.003428-0.02910.488438
27-0.034842-0.29560.384175
28-0.063443-0.53830.296005
29-0.094857-0.80490.211766
30-0.126272-1.07150.143772
31-0.163315-1.38580.085046
32-0.200359-1.70010.046714
33-0.237402-2.01440.023851
34-0.274445-2.32870.011342
35-0.311489-2.64310.005038
36-0.328832-2.79020.003368
37-0.346174-2.93740.002221
38-0.349445-2.96510.002051
39-0.352716-2.99290.001892
40-0.355987-3.02070.001745
41-0.362073-3.07230.001499
42-0.368158-3.12390.001286
43-0.374243-3.17560.001101
44-0.380329-3.22720.000941
45-0.386414-3.27880.000804
46-0.392499-3.33050.000685
47-0.398584-3.38210.000583
48-0.40467-3.43370.000495


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9567818.11860
20.0111910.0950.462305
3-0.086613-0.73490.232384
40.0047210.04010.484078
5-0.017638-0.14970.440723
60.0726870.61680.269665
7-0.013992-0.11870.452912
8-0.066273-0.56230.287813
9-0.05407-0.45880.323881
10-0.05476-0.46470.321791
11-0.051324-0.43550.33225
120.1288041.09290.139031
13-0.087572-0.74310.229928
140.0114410.09710.461467
15-0.025745-0.21850.413846
16-0.03897-0.33070.370927
17-0.21991-1.8660.033058
18-0.054514-0.46260.322536
19-0.017456-0.14810.44133
20-0.013342-0.11320.455088
21-0.05696-0.48330.315168
220.2628672.23050.014416
230.0087260.0740.47059
240.032010.27160.393348
25-0.155331-1.3180.095837
26-0.0338-0.28680.387543
27-0.011073-0.0940.462701
28-0.048358-0.41030.34139
29-0.070206-0.59570.276617
30-0.075118-0.63740.262945
31-0.155321-1.31790.09585
32-0.048711-0.41330.340296
330.1016980.86290.19552
34-0.060344-0.5120.305096
35-0.016271-0.13810.445286
360.182681.55010.062752
370.0112490.09540.462112
380.0096850.08220.467366
39-0.033841-0.28710.387412
40-0.071332-0.60530.273452
410.0056010.04750.481112
42-0.065719-0.55760.28941
430.0710460.60280.274252
44-0.005741-0.04870.480643
45-0.031482-0.26710.395066
46-0.103848-0.88120.190577
470.06620.56170.288023
48-0.075475-0.64040.261965
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/17/t1305633968sdn415jwg0a6v4t/1ie981305634193.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305633968sdn415jwg0a6v4t/1ie981305634193.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/17/t1305633968sdn415jwg0a6v4t/28evj1305634193.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305633968sdn415jwg0a6v4t/28evj1305634193.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/17/t1305633968sdn415jwg0a6v4t/3p73d1305634193.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305633968sdn415jwg0a6v4t/3p73d1305634193.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
R code (references can be found in the software module):
if (par1 == 'Default') {
par1 = 10*log10(length(x))
} else {
par1 <- as.numeric(par1)
}
par2 <- as.numeric(par2)
par3 <- as.numeric(par3)
par4 <- as.numeric(par4)
par5 <- as.numeric(par5)
if (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
if (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
dev.off()
(myacf <- c(racf$acf))
(mypacf <- c(rpacf$acf))
lengthx <- length(x)
sqrtn <- sqrt(lengthx)
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','ACF(k)','click here for more information about the Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 2:(par1+1)) {
a<-table.row.start(a)
a<-table.element(a,i-1,header=TRUE)
a<-table.element(a,round(myacf[i],6))
mytstat <- myacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Partial Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','PACF(k)','click here for more information about the Partial Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:par1) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,round(mypacf[i],6))
mytstat <- mypacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.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