Home » date » 2008 » Dec » 19 »

Autocorrelation function

*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, 19 Dec 2008 09:25:44 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/19/t12297041373pyp5gx7x7ssgsk.htm/, Retrieved Fri, 19 Dec 2008 17:28:57 +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/2008/Dec/19/t12297041373pyp5gx7x7ssgsk.htm/},
    year = {2008},
}
@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 = {2008},
    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:
paper: tijdsreeks 2
 
Dataseries X:
» Textbox « » Textfile « » CSV «
99.4 102.7 109.3 93.9 95.3 101.8 85.6 81.1 109.5 104.0 94.5 79.0 92.8 95.6 101.7 90.8 89.5 91.8 83.8 77.4 112.7 98.8 85.7 72.8 96.9 95.0 94.2 87.3 80.6 87.9 79.6 71.9 94.6 91.4 86.6 68.5 90.1 91.6 95.4 85.4 81.6 88.9 84.1 74.7 97.1 95.3 85.1 67.3 80.6 87.9 89.2 81.3 79.7 83.7 82.1 69.3 91.2 85.7 85.2 70.0 85.8 91.4 97.5 87.1 85.1 94.1 85.8 74.7 99.9 90.7 86.8 74.8 91.8 97.6 100.8 85.4 84.0 90.6 80.5 73.9 93.6
 
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'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.2181541.96340.026516
2-0.14527-1.30740.097383
3-0.03339-0.30050.38228
40.3546793.19210.001006
50.1632291.46910.072845
60.0958520.86270.195434
70.1618031.45620.074598
80.3157232.84150.002839
9-0.079249-0.71320.238873
10-0.192443-1.7320.043541
110.0536850.48320.315142
120.6708946.0380
130.0464830.41830.338399
14-0.244703-2.20230.015243
15-0.1378-1.24020.109241
160.2152951.93770.028075
170.0671660.60450.273603
180.0065890.05930.476428
190.055290.49760.310052
200.2056181.85060.033939
21-0.124351-1.11920.13319
22-0.214002-1.9260.028805
23-0.042262-0.38040.352337
240.4710464.23943e-05
250.0225680.20310.419778
26-0.255336-2.2980.01207
27-0.213913-1.92520.028856
280.0869820.78280.218004
290.0240180.21620.414704
30-0.082357-0.74120.230353
31-0.067094-0.60380.273817
320.0859190.77330.220806
33-0.169998-1.530.064958
34-0.246834-2.22150.014554
35-0.118087-1.06280.14552
360.31882.86920.002623
37-0.019012-0.17110.432282
38-0.22792-2.05130.021736
39-0.211118-1.90010.030491
400.0203810.18340.427461
41-0.01242-0.11180.455638
42-0.095039-0.85540.19744
43-0.107462-0.96720.168173
440.0389250.35030.363502
45-0.146845-1.32160.095011
46-0.230024-2.07020.020809
47-0.140101-1.26090.105481
480.1970051.7730.039991


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2181541.96340.026516
2-0.202498-1.82250.036036
30.0535330.48180.315624
40.3520943.16880.00108
5-0.018381-0.16540.434509
60.1976641.7790.039498
70.1871481.68430.047984
80.2115761.90420.030218
9-0.225-2.0250.023081
10-0.166282-1.49650.0692
11-0.021619-0.19460.423108
120.5672095.10491e-06
13-0.402845-3.62560.000251
14-0.001328-0.0120.495246
15-0.106831-0.96150.169588
16-0.065905-0.59310.277368
170.1119361.00740.158366
18-0.023022-0.20720.418186
19-0.002757-0.02480.490133
200.0151370.13620.445987
210.0237780.2140.415542
22-0.014567-0.13110.448008
23-0.03109-0.27980.390167
24-0.011711-0.10540.45816
250.0703730.63340.264142
26-0.114893-1.0340.152097
27-0.096514-0.86860.19381
28-0.091528-0.82370.20625
290.0453450.40810.342138
30-0.140401-1.26360.104998
31-0.003788-0.03410.486445
32-0.045985-0.41390.340034
33-0.021755-0.19580.422629
340.0498990.44910.327282
350.0187330.16860.433266
360.0252650.22740.410347
37-0.063309-0.56980.285201
380.1506951.35630.089393
39-0.034985-0.31490.376839
40-0.063026-0.56720.286061
41-0.114294-1.02860.153353
420.0176770.15910.436996
43-0.122882-1.10590.136013
44-0.011428-0.10290.459166
45-0.017999-0.1620.435857
46-0.07403-0.66630.253566
470.0514220.46280.322375
48-0.078419-0.70580.241179
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t12297041373pyp5gx7x7ssgsk/1ftwh1229703939.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t12297041373pyp5gx7x7ssgsk/1ftwh1229703939.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t12297041373pyp5gx7x7ssgsk/2b2vn1229703939.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t12297041373pyp5gx7x7ssgsk/2b2vn1229703939.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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