Home » date » 2010 » Dec » 10 »

*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, 10 Dec 2010 21:12:03 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/10/t1292015384c6soorz463z4tqw.htm/, Retrieved Fri, 10 Dec 2010 22:09:44 +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/2010/Dec/10/t1292015384c6soorz463z4tqw.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
493 514 522 490 484 506 501 462 465 454 464 427 460 473 465 422 415 413 420 363 376 380 384 346 389 407 393 346 348 353 364 305 307 312 312 286 324 336 327 302 299 311 315 264 278 278 287 279 324 354 354 360 363 385 412 370 389 395 417 404
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.104330.71520.238996
20.2590341.77580.041116
30.2708251.85670.034815
40.2504031.71670.046312
50.1876961.28680.102237
60.0342210.23460.407767
70.0183220.12560.45029
80.1012580.69420.24549
90.0115920.07950.468498
100.105510.72330.236528
11-0.002928-0.02010.492035
12-0.005246-0.0360.485731
13-0.030627-0.210.4173
140.0134040.09190.463586
150.0654850.44890.327769
16-0.067201-0.46070.323567
17-0.009536-0.06540.474076
180.0230070.15770.437672
190.086910.59580.277076
20-0.087798-0.60190.275063
21-0.035969-0.24660.40315
22-0.140491-0.96320.170199
230.1543991.05850.147617
24-0.169409-1.16140.12567
25-0.061021-0.41830.338802
260.0331220.22710.410676
27-0.036857-0.25270.400809
28-0.015191-0.10410.45875
29-0.038194-0.26180.397294
30-0.065585-0.44960.327523
31-0.037182-0.25490.399954
32-0.23086-1.58270.060099
33-0.0196-0.13440.446841
34-0.198737-1.36250.089771
35-0.18093-1.24040.110494
36-0.146053-1.00130.160906
37-0.173051-1.18640.120718
38-0.136776-0.93770.1766
39-0.131957-0.90460.185133
40-0.062417-0.42790.335335
41-0.123973-0.84990.199841
420.0093570.06410.474563
43-0.030258-0.20740.418283
44-0.017011-0.11660.453828
450.0092350.06330.474893
460.0167470.11480.454542
47NANANA
48NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.104330.71520.238996
20.250881.71990.046011
30.2421151.65990.051801
40.1837671.25980.106973
50.0737090.50530.307846
6-0.140596-0.96390.17002
7-0.17255-1.18290.121391
80.0057590.03950.484338
90.0180620.12380.450991
100.1689911.15850.126248
110.0469040.32160.374607
12-0.069137-0.4740.318854
13-0.160083-1.09750.139012
14-0.062944-0.43150.33403
150.1217070.83440.204143
160.0479170.32850.371996
170.0512460.35130.363458
18-0.005609-0.03850.484744
190.0422390.28960.386708
20-0.170509-1.16890.12416
21-0.095337-0.65360.258278
22-0.184163-1.26260.106489
230.276981.89890.031864
240.0146490.10040.460217
250.0112540.07720.469413
260.051470.35290.362885
27-0.099295-0.68070.249691
28-0.101325-0.69470.245347
29-0.078285-0.53670.297004
300.0169670.11630.453946
310.0259580.1780.42976
32-0.154754-1.06090.147069
33-0.052188-0.35780.361053
34-0.165169-1.13230.131617
35-0.088235-0.60490.274074
360.0105570.07240.471305
370.0359550.24650.403186
38-0.03204-0.21970.413546
390.1005960.68970.246902
400.0979170.67130.252663
41-0.098083-0.67240.252304
420.0137970.09460.462523
430.0388140.26610.395666
44-0.026448-0.18130.428447
450.0185680.12730.449626
46-0.037374-0.25620.399447
47NANANA
48NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/10/t1292015384c6soorz463z4tqw/1k0g11292015520.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t1292015384c6soorz463z4tqw/1k0g11292015520.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/10/t1292015384c6soorz463z4tqw/2k0g11292015520.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t1292015384c6soorz463z4tqw/2k0g11292015520.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = 0 ; par3 = 0 ; par4 = 12 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; 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