Home » date » 2009 » Nov » 27 »

*The author of this computation has been verified*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 27 Nov 2009 05:19:35 -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/Nov/27/t12593245803tsa8iy6pc0gb68.htm/, Retrieved Fri, 27 Nov 2009 13:23:02 +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/Nov/27/t12593245803tsa8iy6pc0gb68.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 «
1.4 1.2 1 1.7 2.4 2 2.1 2 1.8 2.7 2.3 1.9 2 2.3 2.8 2.4 2.3 2.7 2.7 2.9 3 2.2 2.3 2.8 2.8 2.8 2.2 2.6 2.8 2.5 2.4 2.3 1.9 1.7 2 2.1 1.7 1.8 1.8 1.8 1.3 1.3 1.3 1.2 1.4 2.2 2.9 3.1 3.5 3.6 4.4 4.1 5.1 5.8 5.9 5.4 5.5 4.8 3.2 2.7 2.1 1.9 0.6 0.7 -0.2 -1 -1.7 -0.7 -1
 
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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.1628651.21880.11402
20.1036630.77570.220583
30.1416541.060.146839
40.2642381.97740.026465
50.0689170.51570.304036
60.0927980.69440.245141
70.039330.29430.384803
8-0.000713-0.00530.497881
9-0.134865-1.00920.1586
10-0.090703-0.67880.250044
110.0532370.39840.345929
12-0.383352-2.86870.002901
13-0.203986-1.52650.066258
14-0.053163-0.39780.346133
150.0218140.16320.435457
16-0.156749-1.1730.12288
17-0.107203-0.80220.212904
18-0.054069-0.40460.343651
190.0009810.00730.497084
20-0.103101-0.77150.221816
21-0.034521-0.25830.398548
220.046920.35110.363408
23-0.029224-0.21870.413841
24-0.062856-0.47040.319958
250.0955690.71520.238738
260.0159890.11960.452595
27-0.069042-0.51670.303714
280.0169130.12660.44987
290.0420240.31450.377164
300.0375290.28080.389934
31-0.056946-0.42610.335817
320.0025130.01880.492531
330.076430.5720.284821
340.0164430.12310.451254
35-0.068993-0.51630.303841
360.076840.5750.28379
37-0.046429-0.34740.36478
38-0.056262-0.4210.337675
390.0405490.30340.38134
400.0206670.15470.438823
41-0.04555-0.34090.36724
42-0.055653-0.41650.339328
430.0323070.24180.404923
440.028890.21620.414812
45-0.056271-0.42110.337649
46-0.069363-0.51910.30288
470.0008030.0060.497613
48-0.044735-0.33480.369527
490.0290830.21760.41425
500.0543840.4070.342791
51-0.074224-0.55540.290403
52-0.071108-0.53210.298371
530.0300160.22460.411546
540.0200390.150.440667
55-0.004323-0.03240.487153
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1628651.21880.11402
20.079240.5930.277793
30.1170230.87570.192463
40.229381.71650.045797
5-0.015535-0.11630.453933
60.0423320.31680.376294
7-0.036773-0.27520.392095
8-0.08067-0.60370.274248
9-0.167537-1.25370.107574
10-0.099294-0.7430.23028
110.1038880.77740.220089
12-0.401286-3.0030.001996
13-0.037241-0.27870.390756
140.0717070.53660.296833
150.1111210.83160.204597
160.059310.44380.329437
17-0.036819-0.27550.391964
180.033930.25390.400248
19-0.011828-0.08850.464892
20-0.078768-0.58940.278967
21-0.114287-0.85520.198029
22-0.04011-0.30020.382586
230.0572330.42830.33504
24-0.18406-1.37740.086938
250.0800940.59940.275672
26-0.01829-0.13690.445811
270.0206520.15450.438869
280.0918230.68710.247415
29-0.073005-0.54630.293509
300.0501090.3750.354546
31-0.075483-0.56490.287212
32-0.030762-0.23020.409387
33-0.006087-0.04560.481915
34-0.026843-0.20090.420763
350.0109880.08220.46738
36-0.043981-0.32910.371645
37-0.028145-0.21060.416975
38-0.058759-0.43970.330918
390.077410.57930.28236
400.0106290.07950.468443
41-0.077488-0.57990.282165
420.0336060.25150.40118
430.0060680.04540.48197
44-0.01028-0.07690.469477
45-0.045927-0.34370.366186
46-0.030397-0.22750.410444
47-0.070302-0.52610.300452
48-0.046986-0.35160.363225
490.0907570.67920.249916
500.0016160.01210.495196
51-0.068571-0.51310.304935
52-0.0084-0.06290.475052
530.0253840.190.425015
54-0.022622-0.16930.43309
55-0.007207-0.05390.478592
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/27/t12593245803tsa8iy6pc0gb68/1grxo1259324374.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t12593245803tsa8iy6pc0gb68/1grxo1259324374.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/27/t12593245803tsa8iy6pc0gb68/2y9501259324374.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t12593245803tsa8iy6pc0gb68/2y9501259324374.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; 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 (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF')
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