Home » date » 2009 » Nov » 25 »

ACF Link 1

*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:29:11 -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/t1259174050zp8w5xrymmhw432.htm/, Retrieved Wed, 25 Nov 2009 19:34:12 +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/t1259174050zp8w5xrymmhw432.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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.2676342.09030.020384
20.2286181.78560.03957
30.4367053.41080.000577
40.2804092.19010.016177
50.1848881.4440.076925
60.1753371.36940.087944
70.2031471.58660.058884
80.1338821.04570.149923
90.1451881.1340.130625
100.1127610.88070.19097
11-0.047218-0.36880.356782
120.1678661.31110.097373
13-0.040071-0.3130.377689
14-0.009619-0.07510.470179
150.0104710.08180.467543
16-0.118849-0.92820.17847
17-0.105588-0.82470.206386
18-0.038543-0.3010.382207
19-0.11155-0.87120.193521
20-0.197391-1.54170.064162
21-0.02514-0.19630.422496
22-0.09474-0.73990.231087
23-0.177463-1.3860.085392
24-0.034245-0.26750.395007
25-0.115679-0.90350.184912
26-0.104635-0.81720.208491
27-0.091338-0.71340.239167
28-0.137262-1.07210.14396
29-0.15955-1.24610.108742
30-0.119667-0.93460.176832
31-0.176034-1.37490.087101
32-0.202741-1.58350.059245
33-0.093879-0.73320.233117
34-0.183735-1.4350.078195
35-0.202804-1.58390.059188
36-0.044258-0.34570.36539


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2676342.09030.020384
20.1691031.32070.095762
30.3776872.94980.002252
40.1172380.91570.181725
50.0086170.06730.473282
6-0.067174-0.52460.300864
70.0297110.2320.408639
8-0.002975-0.02320.490768
90.0622770.48640.314212
10-0.015785-0.12330.451145
11-0.191348-1.49450.070103
120.1345541.05090.148725
13-0.155139-1.21170.115155
140.0775330.60550.27353
15-0.074824-0.58440.280556
16-0.117093-0.91450.18202
17-0.094615-0.7390.231382
180.0615570.48080.316197
19-0.026003-0.20310.419869
20-0.078294-0.61150.271572
210.0964480.75330.227089
22-0.076082-0.59420.277282
230.048320.37740.353596
24-0.005911-0.04620.481665
250.0035220.02750.489072
26-0.018331-0.14320.443314
27-0.038773-0.30280.381525
28-0.074603-0.58270.281132
29-0.075664-0.5910.278367
30-0.02764-0.21590.414902
31-0.129005-1.00760.158823
32-0.005053-0.03950.484323
33-0.034236-0.26740.395036
34-0.037257-0.2910.386024
35-0.050847-0.39710.34633
360.0666270.52040.302343
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/25/t1259174050zp8w5xrymmhw432/137q41259173749.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t1259174050zp8w5xrymmhw432/137q41259173749.ps (open in new window)


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


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