Home » date » 2009 » Dec » 14 »

*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: Mon, 14 Dec 2009 03:10:41 -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/Dec/14/t12607855041b0pvokb84k2yze.htm/, Retrieved Mon, 14 Dec 2009 11:11:46 +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/Dec/14/t12607855041b0pvokb84k2yze.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 «
95,1 97,0 112,7 102,9 97,4 111,4 87,4 96,8 114,1 110,3 103,9 101,6 94,6 95,9 104,7 102,8 98,1 113,9 80,9 95,7 113,2 105,9 108,8 102,3 99,0 100,7 115,5 100,7 109,9 114,6 85,4 100,5 114,8 116,5 112,9 102,0 106,0 105,3 118,8 106,1 109,3 117,2 92,5 104,2 112,5 122,4 113,3 100,0 110,7 112,8 109,8 117,3 109,1 115,9 96,0 99,8 116,8 115,7 99,4 94,3
 
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.0192590.13340.447205
20.2097281.4530.07636
30.271581.88160.032984
40.0418540.290.386542
50.1378030.95470.17225
60.1311670.90880.18401
7-0.031635-0.21920.413722
80.066420.46020.323735
90.0781390.54140.295382
10-0.096778-0.67050.252876
110.0487650.33790.368473
12-0.051848-0.35920.360506
13-0.050276-0.34830.36456
14-0.093837-0.65010.259357
150.0124850.08650.465715
16-0.153869-1.0660.14587
17-0.037308-0.25850.398571
18-0.033291-0.23060.409285
19-0.167336-1.15930.126027
20-0.071402-0.49470.311538
21-0.083611-0.57930.282557
22-0.250703-1.73690.044408
230.1219750.84510.201133
24-0.259312-1.79660.039349
25-0.128243-0.88850.189354
26-0.019309-0.13380.447068
27-0.130405-0.90350.185394
28-0.075683-0.52430.301225
29-0.068718-0.47610.318083
30-0.119001-0.82450.206877
31-0.132938-0.9210.180823
32-0.038997-0.27020.39409
33-0.160954-1.11510.135174
34-0.005351-0.03710.48529
35-0.061104-0.42330.336968
360.0463430.32110.374775


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0192590.13340.447205
20.2094351.4510.076641
30.2765831.91620.030651
40.0057590.03990.48417
50.029540.20470.419351
60.0606690.42030.338062
7-0.079406-0.55010.292387
8-0.022792-0.15790.437595
90.0573380.39730.346472
10-0.094145-0.65230.258674
11-0.007609-0.05270.479087
12-0.047198-0.3270.372546
13-0.011575-0.08020.468208
14-0.115447-0.79980.213873
150.0598010.41430.340246
16-0.088241-0.61130.271927
17-0.018392-0.12740.449568
180.0177030.12270.451447
19-0.085287-0.59090.278684
20-0.076353-0.5290.299625
21-0.022931-0.15890.43722
22-0.176055-1.21970.11426
230.1980451.37210.088207
24-0.196863-1.36390.089479
25-0.041357-0.28650.387854
26-0.048649-0.33710.368774
270.0440430.30510.380791
28-0.050419-0.34930.364191
29-0.059654-0.41330.340616
30-0.056134-0.38890.349532
31-0.113536-0.78660.217692
32-0.073165-0.50690.307271
33-0.043328-0.30020.382665
34-0.013862-0.0960.461946
350.0035180.02440.490328
360.05980.41430.340249
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/14/t12607855041b0pvokb84k2yze/103ww1260785439.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/14/t12607855041b0pvokb84k2yze/103ww1260785439.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/14/t12607855041b0pvokb84k2yze/20qtw1260785439.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/14/t12607855041b0pvokb84k2yze/20qtw1260785439.ps (open in new window)


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