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 10:21: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/Nov/27/t1259342543bk7odqy3rszrymw.htm/, Retrieved Fri, 27 Nov 2009 18:22:25 +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/t1259342543bk7odqy3rszrymw.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 «
252.5 251.1 255.1 258.3 255.3 261.1 253.8 252.9 253.9 255.5 262 262.8 263.3 262.5 269.2 270.8 274.1 273 267.3 267.1 268.2 270.2 271.5 281 280.1 281.5 285.9 289.8 292.9 291.2 291.8 289.8 292.5 290.3 297.5 307.5 304.7 304.6 310.7 310.7 315.7 314.7 312.2 312.8 314.3 319.7 319.9 329.5 326.9 329.7 335.7 337.2 339.7 338.3 339.2 342.5 342.2 338.3 339 345.9
 
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
1-0.514831-3.92080.000118
20.0259440.19760.422031
30.0621480.47330.318887
4-0.162549-1.23790.110364
50.1494911.13850.129798
6-0.086942-0.66210.255256
70.1441831.09810.138357
8-0.254736-1.940.028623
90.2577021.96260.027248
10-0.233672-1.77960.040191
11-0.010079-0.07680.469538
120.2818442.14650.018015
13-0.101178-0.77050.222052
14-0.12097-0.92130.180359
150.1781241.35660.09009
16-0.116845-0.88990.188607
17-0.070971-0.54050.29546
180.1693351.28960.101151
19-0.164378-1.25190.107822
200.062790.47820.317154
210.087990.67010.252723
22-0.097954-0.7460.229341
23-0.142052-1.08180.141902
240.2435511.85480.034353
25-0.024499-0.18660.42632
26-0.069065-0.5260.300453
270.0733560.55870.289271
28-0.07624-0.58060.28187
29-0.035317-0.2690.394454
300.1002450.76340.224147
31-0.063061-0.48030.316425
32-0.063891-0.48660.314195
330.2121621.61580.055785
34-0.274373-2.08960.020527
350.1431641.09030.140043
360.0126270.09620.461862


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.514831-3.92080.000118
2-0.325338-2.47770.008079
3-0.133368-1.01570.156994
4-0.271598-2.06840.021534
5-0.121622-0.92620.179079
6-0.151634-1.15480.126452
70.0854580.65080.258862
8-0.2428-1.84910.03477
90.056420.42970.334509
10-0.237286-1.80710.037966
11-0.3203-2.43930.008897
12-0.066394-0.50560.307512
130.2182691.66230.050925
14-0.152916-1.16460.12448
150.2079761.58390.059327
160.085590.65180.258541
17-0.006438-0.0490.480531
18-0.051861-0.3950.34716
19-0.056385-0.42940.334607
20-0.133749-1.01860.156312
210.1107610.84350.201198
220.0647830.49340.311807
23-0.12373-0.94230.174974
24-0.114119-0.86910.194186
250.0903090.68780.247169
260.0912890.69520.244841
27-0.100555-0.76580.22345
280.0157590.120.452441
290.0178830.13620.44607
300.0020280.01540.493865
31-0.013229-0.10070.460048
32-0.038743-0.29510.384502
33-0.00682-0.05190.479376
34-0.169751-1.29280.100606
350.1306450.9950.161944
36-0.026833-0.20440.419397
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259342543bk7odqy3rszrymw/15bgy1259342499.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259342543bk7odqy3rszrymw/15bgy1259342499.ps (open in new window)


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


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