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:31:21 -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/t1259325119eake5svnn6fll5p.htm/, Retrieved Fri, 27 Nov 2009 13:32:01 +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/t1259325119eake5svnn6fll5p.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
 
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.1960951.34440.092643
2-0.081944-0.56180.288468
30.0876190.60070.275467
40.0304670.20890.417724
50.0382240.26210.397214
6-0.070595-0.4840.315325
7-0.134708-0.92350.180228
8-0.042449-0.2910.386161
9-0.096769-0.66340.255154
100.0379560.26020.397918
110.0696090.47720.317711
12-0.31912-2.18780.016847
13-0.246439-1.68950.048874
140.0326820.22410.411843
150.0207690.14240.443691
16-0.057923-0.39710.346546
17-0.082058-0.56260.288203
180.0224820.15410.439084
190.0571880.39210.348392
20-0.054118-0.3710.356147
21-0.004143-0.02840.488731
220.0098440.06750.47324
23-0.039312-0.26950.394358
24-0.065295-0.44760.328236
250.0746020.51140.305718
26-0.004009-0.02750.489096
27-0.01345-0.09220.463462
280.0608240.4170.339293
290.0183660.12590.45017
30-0.001714-0.01180.495336
31-0.044369-0.30420.381167
320.0478580.32810.372149
330.0706690.48450.315146
34-0.01867-0.1280.44935
35-0.069452-0.47610.318091
360.0318130.21810.414148


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1960951.34440.092643
2-0.125212-0.85840.197511
30.137620.94350.175131
4-0.032428-0.22230.412517
50.0681160.4670.321336
6-0.114601-0.78570.218003
7-0.086833-0.59530.277251
8-0.026647-0.18270.427917
9-0.100524-0.68920.247056
100.1108690.76010.225502
110.0259570.1780.429762
12-0.330657-2.26690.01402
13-0.14059-0.96380.17003
140.0223530.15320.43943
150.0184350.12640.449984
16-0.043473-0.2980.383494
17-0.030942-0.21210.416463
180.0045510.03120.487622
19-0.062964-0.43170.333982
20-0.106312-0.72880.234858
21-0.039794-0.27280.393096
22-0.006205-0.04250.483124
230.0304020.20840.417899
24-0.181378-1.24350.109932
25-0.019487-0.13360.447147
26-0.101858-0.69830.244214
270.0508530.34860.364462
280.0132290.09070.464062
29-0.077579-0.53190.298665
30-0.030376-0.20820.417969
31-0.078682-0.53940.296072
320.0195710.13420.446921
33-0.042192-0.28930.386831
34-0.002812-0.01930.492349
35-0.079302-0.54370.29462
36-0.050713-0.34770.36482
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259325119eake5svnn6fll5p/1nc5g1259325080.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259325119eake5svnn6fll5p/1nc5g1259325080.ps (open in new window)


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


 
Parameters (Session):
par1 = 36 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 36 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = MA ; 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