Home » date » 2010 » Dec » 22 »

*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: Wed, 22 Dec 2010 12:38:16 +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/22/t1293021361frw21wxaxbyjo6p.htm/, Retrieved Wed, 22 Dec 2010 13:36:01 +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/22/t1293021361frw21wxaxbyjo6p.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 «
377 370 358 357 349 348 369 381 368 361 351 351 358 354 347 345 343 340 362 370 373 371 354 357 363 364 363 358 357 357 380 378 376 380 379 384 392 394 392 396 392 396 419 421 420 418 410 418 426 428 430 424 423 427 441 449 452 462 455 461 461 463 462 456 455 456 472 472 471 465 459 465 468 467 463 460 462 461 476 476 471 453 443 442 444 438 427 424 416 406 431 434 418 412 404 409 412 406 398 397 385 390 413 413 401 397 397 409 419 424 428 430 424 433 456 459 446 441 439 454 460 457 451 444 437 443 471 469 454 444 436
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.96975511.09940
20.92638410.60290
30.89289410.21960
40.8703819.9620
50.8579.80880
60.8369279.57910
70.8010259.16820
80.7566218.65990
90.7170238.20670
100.6868987.86190
110.6689937.6570
120.6426387.35530
130.5851466.69730
140.5220185.97480
150.4678645.35490
160.4237644.85022e-06
170.3905454.478e-06
180.352394.03334.6e-05
190.3040923.48050.00034
200.2509632.87240.002377
210.2092942.39550.009007
220.1809862.07150.020138
230.1618641.85260.033094
240.1352281.54780.062047
250.0854950.97850.164805
260.0366580.41960.337745
270.0011780.01350.494633
28-0.025279-0.28930.386394
29-0.040668-0.46550.321185
30-0.059729-0.68360.247708
31-0.085132-0.97440.165833
32-0.115365-1.32040.0945
33-0.134832-1.54320.062595
34-0.142129-1.62670.053097
35-0.141526-1.61980.053835
36-0.147462-1.68780.046916
37-0.173764-1.98880.024402
38-0.200755-2.29770.011581
39-0.218745-2.50370.00676
40-0.22626-2.58970.005347
41-0.225252-2.57810.00552
42-0.226723-2.5950.005269
43-0.234784-2.68720.00407
44-0.246787-2.82460.002737
45-0.248529-2.84450.002581
46-0.241477-2.76380.003268
47-0.231746-2.65250.004489
48-0.225074-2.57610.005551


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.96975511.09940
2-0.23568-2.69750.003953
30.2017862.30950.011239
40.0853250.97660.165287
50.118951.36140.087855
6-0.150645-1.72420.043514
7-0.176596-2.02120.022647
8-0.086009-0.98440.163362
90.0341590.3910.34823
100.0142640.16330.435281
110.1335581.52860.064382
12-0.204938-2.34560.010248
13-0.424754-4.86152e-06
140.0917571.05020.147779
150.0055310.06330.474809
16-0.049311-0.56440.286728
170.0267610.30630.379934
18-0.067312-0.77040.221218
190.0427630.48940.312672
20-0.018961-0.2170.414264
210.1918432.19570.014936
220.0078060.08930.464471
23-0.046659-0.5340.29711
24-0.043907-0.50250.308068
25-0.136847-1.56630.059848
260.1133051.29680.098485
270.0651980.74620.228434
28-0.112521-1.28790.100033
290.0661630.75730.225125
30-0.033691-0.38560.350205
310.1261941.44440.075514
32-0.105671-1.20950.114333
330.052150.59690.275807
34-0.039828-0.45590.324625
350.00260.02980.488151
36-0.013617-0.15580.438196
37-0.096039-1.09920.136844
38-0.056719-0.64920.258681
39-0.031786-0.36380.358295
400.0423160.48430.314481
41-0.016144-0.18480.426845
420.0307570.3520.36269
430.0120830.13830.445109
44-0.012404-0.1420.443659
450.0787410.90120.18456
46-0.062309-0.71320.238509
47-0.006769-0.07750.469184
480.0487110.55750.289059
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293021361frw21wxaxbyjo6p/1h3xc1293021492.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293021361frw21wxaxbyjo6p/1h3xc1293021492.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293021361frw21wxaxbyjo6p/2auxx1293021492.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293021361frw21wxaxbyjo6p/2auxx1293021492.ps (open in new window)


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