Home » date » 2010 » Dec » 28 »

*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: Tue, 28 Dec 2010 00:09:09 +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/28/t12934948144c9u5g9vxz43p3m.htm/, Retrieved Tue, 28 Dec 2010 01:06:54 +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/28/t12934948144c9u5g9vxz43p3m.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 «
364 351 380 319 322 386 221 187 343 342 365 313 356 337 389 326 343 357 220 218 391 425 332 298 360 336 325 393 301 426 265 210 429 440 357 431 442 422 544 420 396 482 261 211 448 468 464 425 415 433 531 457 380 481 302 216 509 417 370
 
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.2965242.27760.013193
2-0.022035-0.16930.433089
30.2642952.03010.023432
40.0863850.66350.254785
50.0758870.58290.281091
60.1934871.48620.071275
70.0192310.14770.441537
80.0626760.48140.315997
90.1323471.01660.156752
10-0.08496-0.65260.258277
110.1972391.5150.067553
120.5964194.58121.2e-05
130.1229140.94410.174479
14-0.142528-1.09480.139032
150.0919880.70660.241305
16-0.004692-0.0360.485686
17-0.012593-0.09670.461634
180.0310660.23860.406113
19-0.084912-0.65220.258395
20-0.075389-0.57910.282372
21-0.020285-0.15580.438357
22-0.207105-1.59080.058499
23-0.03783-0.29060.386196
240.2889832.21970.015147
25-0.030068-0.2310.409075
26-0.217195-1.66830.050277
27-0.079135-0.60780.272811
28-0.138835-1.06640.145292
29-0.113166-0.86920.194119
30-0.113357-0.87070.193719
31-0.190228-1.46120.074637
32-0.156721-1.20380.116738
33-0.1184-0.90950.183406
34-0.198326-1.52340.066504
35-0.065133-0.50030.309364
360.1708951.31270.097189
37-0.034713-0.26660.395341
38-0.187421-1.43960.077632
39-0.076385-0.58670.279813
40-0.081837-0.62860.266019
41-0.09986-0.7670.223058
42-0.071921-0.55240.291369
43-0.11272-0.86580.195049
44-0.103998-0.79880.213797
45-0.068477-0.5260.300436
46-0.072603-0.55770.289588
47-0.041526-0.3190.375439
480.0742460.57030.285323


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2965242.27760.013193
2-0.120562-0.92610.179095
30.3419682.62670.005484
4-0.149793-1.15060.127273
50.2107861.61910.055382
60.0019170.01470.494149
7-0.019272-0.1480.441412
80.0801530.61570.270241
9-0.009464-0.07270.471147
10-0.118588-0.91090.183031
110.3397832.60990.00573
120.4461433.42690.000559
13-0.174136-1.33760.093086
14-0.228418-1.75450.042267
15-0.105324-0.8090.21088
16-0.036788-0.28260.389246
174.1e-053e-040.499875
18-0.12162-0.93420.177009
190.0267170.20520.419055
20-0.131595-1.01080.158119
210.0592890.45540.325245
22-0.180619-1.38740.085275
23-0.103907-0.79810.213999
240.0113050.08680.465547
250.0321170.24670.403001
260.0737370.56640.286641
27-0.17825-1.36920.088069
28-0.068714-0.52780.299807
29-0.041839-0.32140.374534
30-0.06692-0.5140.304578
310.0199110.15290.439485
32-0.106172-0.81550.209027
330.0938160.72060.236996
340.0762610.58580.280131
350.1146520.88070.191037
36-0.032675-0.2510.401349
37-0.071559-0.54970.292316
380.0116520.08950.464492
390.0674770.51830.303093
400.076520.58780.279468
41-0.116507-0.89490.187237
420.067660.51970.302605
430.0237820.18270.427839
440.0415460.31910.37538
45-0.097549-0.74930.228331
46-0.001542-0.01180.495294
47-0.091863-0.70560.241603
48-0.104154-0.80.213454
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/28/t12934948144c9u5g9vxz43p3m/138dy1293494945.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t12934948144c9u5g9vxz43p3m/138dy1293494945.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t12934948144c9u5g9vxz43p3m/2wicj1293494945.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t12934948144c9u5g9vxz43p3m/2wicj1293494945.ps (open in new window)


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