Home » date » 2009 » Nov » 26 »

*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: Thu, 26 Nov 2009 11:35:46 -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/26/t1259260589yas1qfbtaei6li2.htm/, Retrieved Thu, 26 Nov 2009 19:36:32 +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/26/t1259260589yas1qfbtaei6li2.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 «
110,5 110,8 104,2 88,9 89,8 90 93,9 91,3 87,8 99,7 73,5 79,2 96,9 95,2 95,6 89,7 92,8 88 101,1 92,7 95,8 103,8 81,8 87,1 105,9 108,1 102,6 93,7 103,5 100,6 113,3 102,4 102,1 106,9 87,3 93,1 109,1 120,3 104,9 92,6 109,8 111,4 117,9 121,6 117,8 124,2 106,8 102,7 116,8 113,6 96,1 85 83,2 84,9 83 79,6 83,2 83,8 82,8 71,4
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.6330744.90384e-06
20.3987723.08890.001521
30.383142.96780.002152
40.375812.9110.002525
50.3413042.64370.005224
60.2057911.59410.058089
70.1555361.20480.11651
8-0.010487-0.08120.467765
9-0.174592-1.35240.090664
10-0.30106-2.3320.011538
11-0.159473-1.23530.110772
120.0795490.61620.270051
13-0.143283-1.10990.135742
14-0.312037-2.4170.009352
15-0.229668-1.7790.040153
16-0.12197-0.94480.174281
17-0.081969-0.63490.263945
18-0.098273-0.76120.224754
19-0.07034-0.54490.293936
20-0.126249-0.97790.166019
21-0.210683-1.63190.053965
22-0.26819-2.07740.021027
23-0.136671-1.05870.147001
240.0127410.09870.460857
25-0.133543-1.03440.152546
26-0.289445-2.2420.014334
27-0.23251-1.8010.038363
28-0.123484-0.95650.171328
29-0.128867-0.99820.161095
30-0.120442-0.93290.177294
31-0.113299-0.87760.191827
32-0.141661-1.09730.138446
33-0.187635-1.45340.07566
34-0.186746-1.44650.076617
35-0.085487-0.66220.255196
360.0416820.32290.37396


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.6330744.90384e-06
2-0.003354-0.0260.489678
30.220231.70590.0466
40.0874460.67740.250391
50.0682720.52880.299435
6-0.136894-1.06040.146611
70.0294810.22840.410072
8-0.307607-2.38270.010185
9-0.193832-1.50140.069246
10-0.294832-2.28380.01297
110.3123532.41950.009295
120.4417683.42190.000563
13-0.262852-2.0360.023084
14-0.185823-1.43940.07762
150.0972560.75330.227096
160.0088220.06830.472873
17-0.087773-0.67990.249595
18-0.146639-1.13590.130266
19-0.145907-1.13020.131447
20-0.050373-0.39020.348891
210.0553880.4290.334718
220.0429170.33240.370361
23-0.022575-0.17490.430887
24-0.124669-0.96570.16904
250.0648270.50210.3087
260.0110440.08550.466056
27-0.06713-0.520.302492
28-0.093017-0.72050.237004
29-0.170683-1.32210.095576
30-0.004528-0.03510.486069
31-0.078393-0.60720.272994
32-0.060211-0.46640.321312
33-0.04134-0.32020.374957
340.0668940.51820.303126
35-0.08082-0.6260.266834
360.1119510.86720.194653
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/26/t1259260589yas1qfbtaei6li2/1apg11259260544.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/26/t1259260589yas1qfbtaei6li2/1apg11259260544.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/26/t1259260589yas1qfbtaei6li2/2ohcn1259260544.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/26/t1259260589yas1qfbtaei6li2/2ohcn1259260544.ps (open in new window)


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