Home » date » 2008 » Dec » 23 »

Paper

*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, 23 Dec 2008 08:13:44 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/23/t1230045279qjjdkbsg7p76u6i.htm/, Retrieved Tue, 23 Dec 2008 16:14:41 +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/2008/Dec/23/t1230045279qjjdkbsg7p76u6i.htm/},
    year = {2008},
}
@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 = {2008},
    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 481 462 457 442 439 488 521 501 485 464 460 467 460 448 443 436 431 484 510 513 503 471 471 476 475 470 461 455 456 517 525 523 519 509 512 519 517 510 509 501 507 569 580 578 565 547 555 562 561 555 544 537 543 594 611 613 611 594 595 591 589 584 573 567 569 621 629 628 612 595 597 593 590 580 574 573 573 620 626 620 588 566 557 561 549 532 526 511 499 555 565 542 527 510 514 517 508 493 490 469 478 528 534 518 506
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9289599.56420
20.8205498.44810
30.7383557.60180
40.6960097.16590
50.6863157.0660
60.6714916.91340
70.6389736.57860
80.6046926.22570
90.6043126.22180
100.6373826.56220
110.6904517.10860
120.7054297.26280
130.6139496.3210
140.4960095.10671e-06
150.398474.10254e-05
160.3363073.46250.000386
170.3034953.12470.001148
180.2681542.76080.003398
190.2212252.27760.012377
200.1747611.79930.03741
210.1646131.69480.046526
220.1862331.91740.02894
230.2187492.25220.013187
240.21652.2290.013962
250.1280831.31870.095057
260.0245150.25240.400611
27-0.05742-0.59120.27783
28-0.107816-1.110.134747
29-0.134455-1.38430.084587
30-0.164494-1.69360.046642
31-0.200843-2.06780.020546
32-0.235491-2.42450.00851
33-0.238194-2.45240.007912
34-0.213784-2.2010.014951
35-0.175983-1.81190.03642
36-0.167446-1.7240.043815
37-0.233404-2.4030.008999
38-0.31454-3.23840.000803
39-0.375929-3.87049.4e-05
40-0.404201-4.16153.2e-05
41-0.41269-4.24892.3e-05
42-0.422524-4.35011.6e-05
43-0.436498-4.4949e-06
44-0.448325-4.61586e-06
45-0.432459-4.45241.1e-05
46-0.395314-4.074.5e-05
47-0.348096-3.58390.000257
48-0.323499-3.33060.000597
49-0.359393-3.70020.000172
50-0.408214-4.20282.8e-05
51-0.439679-4.52688e-06
52-0.446924-4.60146e-06
53-0.439155-4.52148e-06
54-0.429729-4.42431.2e-05
55-0.424497-4.37051.5e-05
56-0.415805-4.2812e-05
57-0.383713-3.95067e-05
58-0.334839-3.44740.000406
59-0.278413-2.86640.002504
60-0.244841-2.52080.006599


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9289599.56420
2-0.309535-3.18690.000945
30.2235472.30160.011658
40.1373991.41460.080057
50.147771.52140.065571
6-0.081024-0.83420.203025
70.0027450.02830.488752
80.068240.70260.24193
90.2575952.65210.004614
100.1236641.27320.102866
110.2104672.16690.016241
12-0.214213-2.20550.014791
13-0.642938-6.61950
140.0690220.71060.23944
15-0.185379-1.90860.02951
16-0.089609-0.92260.179161
17-0.036958-0.38050.352167
18-0.001882-0.01940.492289
190.0223540.23020.409208
20-0.052809-0.54370.293893
210.0920410.94760.172739
220.0233410.24030.405278
23-0.076329-0.78590.216852
240.0606770.62470.266753
25-0.151602-1.56080.060771
260.0963910.99240.16163
27-0.005667-0.05830.476793
28-0.023414-0.24110.404987
290.0070670.07280.471067
30-0.047649-0.49060.312371
310.0460060.47370.318358
32-0.077902-0.80210.212159
33-0.085787-0.88320.189555
340.0227750.23450.407533
350.0736840.75860.22488
360.005120.05270.479029
37-0.086678-0.89240.187099
38-0.063327-0.6520.257908
390.0221580.22810.409993
40-0.000223-0.00230.499086
41-0.050203-0.51690.303161
420.0667310.6870.246781
43-0.015173-0.15620.438081
440.0377330.38850.34922
45-0.020827-0.21440.415314
46-0.032085-0.33030.3709
47-0.003502-0.03610.485653
480.0352120.36250.358841
490.0138010.14210.443639
500.0068940.0710.471773
510.0289180.29770.383246
52-0.066962-0.68940.246035
53-0.014124-0.14540.44233
540.0088560.09120.463762
55-0.054435-0.56040.28818
560.0609550.62760.265818
57-0.055615-0.57260.284066
580.0258790.26640.395208
590.0015620.01610.493599
60-0.042936-0.44210.329674
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230045279qjjdkbsg7p76u6i/1dji41230045223.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230045279qjjdkbsg7p76u6i/1dji41230045223.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230045279qjjdkbsg7p76u6i/2uo1h1230045223.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230045279qjjdkbsg7p76u6i/2uo1h1230045223.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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