Home » date » 2009 » Nov » 25 »

ACF Link 2

*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: Wed, 25 Nov 2009 11:57:31 -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/25/t125917559971xbivux2ajg1hb.htm/, Retrieved Wed, 25 Nov 2009 20:00: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/25/t125917559971xbivux2ajg1hb.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 «
5250.0 3937.0 4004.0 5560.0 3922.0 3759.0 4138.0 4634.0 3996.0 4308.0 4143.0 4429.0 5219.0 4929.0 5755.0 5592.0 4163.0 4962.0 5208.0 4755.0 4491.0 5732.0 5731.0 5040.0 6102.0 4904.0 5369.0 5578.0 4619.0 4731.0 5011.0 5299.0 4146.0 4625.0 4736.0 4219.0 5116.0 4205.0 4121.0 5103.0 4300.0 4578.0 3809.0 5526.0 4247.0 3830.0 4394.0 4826.0 4409.0 4569.0 4106.0 4794.0 3914.0 3793.0 4405.0 4022.0 4100.0 4788.0 3163.0 3585.0 3903.0
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.4022142.81550.003498
20.2354351.6480.052871
30.4724243.3070.000886
40.3970582.77940.003851
50.2115931.48120.072484
60.2001471.4010.083753
70.3065922.14610.01842
80.1935891.35510.090796
90.0714530.50020.309596
100.1493881.04570.150411
11-0.065919-0.46140.323265
12-0.18929-1.3250.095654
13-0.025164-0.17610.430453
14-0.096837-0.67790.250526
15-0.17064-1.19450.119021
16-0.148462-1.03920.151898
17-0.072703-0.50890.306546
18-0.104414-0.73090.234162
19-0.117648-0.82350.207097
20-0.160052-1.12040.13401
21-0.144559-1.01190.158276
22-0.049987-0.34990.363953
23-0.042986-0.30090.382381
24-0.183132-1.28190.102951
25-0.026663-0.18660.426355
260.0809420.56660.286789
27-0.057658-0.40360.344129
28-0.140724-0.98510.164715
29-0.016786-0.11750.453471
30-0.015377-0.10760.45736
31-0.1624-1.13680.130576
32-0.064236-0.44960.327473
330.0029670.02080.491758
34-0.113715-0.7960.214935
35-0.073364-0.51350.304939
36-0.056499-0.39550.347098


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4022142.81550.003498
20.0878750.61510.270658
30.4216472.95150.00242
40.1277750.89440.187733
5-0.016622-0.11640.453925
6-0.061501-0.43050.334356
70.0962330.67360.251855
8-0.034464-0.24120.405185
9-0.065279-0.4570.324861
100.002960.02070.491775
11-0.33127-2.31890.012307
12-0.216553-1.51590.067988
130.0292750.20490.419239
14-0.027078-0.18950.425223
150.0952740.66690.253977
160.0100280.07020.472161
170.0616590.43160.333959
180.0772190.54050.295638
190.1817061.27190.104699
20-0.111024-0.77720.220398
21-0.029808-0.20870.417792
220.0427770.29940.382936
23-0.067651-0.47360.318959
24-0.223158-1.56210.06235
250.0676760.47370.318898
260.0222870.1560.438333
27-0.037268-0.26090.397641
28-0.114893-0.80430.212567
29-0.02395-0.16770.433773
30-0.016397-0.11480.454545
31-0.039298-0.27510.392202
320.0172280.12060.452251
330.0237830.16650.434231
340.0185090.12960.448721
350.0256520.17960.429117
36-0.128797-0.90160.185845
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/25/t125917559971xbivux2ajg1hb/1j5ar1259175446.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t125917559971xbivux2ajg1hb/1j5ar1259175446.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/25/t125917559971xbivux2ajg1hb/2lkzo1259175446.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t125917559971xbivux2ajg1hb/2lkzo1259175446.ps (open in new window)


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