Home » date » 2009 » Dec » 09 »

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: Wed, 09 Dec 2009 12:51: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/Dec/09/t1260388430saaz6z0tqq6226j.htm/, Retrieved Wed, 09 Dec 2009 20:53:52 +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/Dec/09/t1260388430saaz6z0tqq6226j.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 «
595 591 612 595 597 589 584 573 567 569 621 629 628 593 588 566 557 590 580 574 573 573 620 626 620 561 527 510 514 549 532 526 511 499 555 565 542 517 506 502 516 508 493 490 469 478 528 534 518 528 533 536 537 524 536 587 597 581 564 558
 
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
10.8501746.58540
20.6479685.01912e-06
30.4964223.84530.000147
40.4504183.48890.000457
50.4792413.71220.000226
60.4692163.63450.00029
70.4017133.11170.001424
80.3327242.57730.006217
90.3166792.4530.008546
100.3495352.70750.004409
110.3718932.88070.002748
120.3540862.74270.00401
130.2029841.57230.060569
140.0731040.56630.286665
15-0.006385-0.04950.48036
16-0.030755-0.23820.406259
17-0.014444-0.11190.455645
18-0.055943-0.43330.333164
19-0.116683-0.90380.184852
20-0.150178-1.16330.124662
21-0.17494-1.35510.090236
22-0.186763-1.44670.076598
23-0.207447-1.60690.056666
24-0.236794-1.83420.035792
25-0.298018-2.30840.012219
26-0.332853-2.57830.006201
27-0.351195-2.72030.00426
28-0.358657-2.77810.003643
29-0.354707-2.74750.003959
30-0.361003-2.79630.003467
31-0.335275-2.5970.005905
32-0.276682-2.14320.018082
33-0.238023-1.84370.035082
34-0.218797-1.69480.04765
35-0.217959-1.68830.048272
36-0.225248-1.74480.043073
37-0.23157-1.79370.038948
38-0.225327-1.74540.043019
39-0.225405-1.7460.042967
40-0.223808-1.73360.044062
41-0.213604-1.65460.051617
42-0.190148-1.47290.073005
43-0.138898-1.07590.14314
44-0.07523-0.58270.281131
45-0.028832-0.22330.412018
46-0.023294-0.18040.42871
47-0.040258-0.31180.378122
48-0.049003-0.37960.352799
49-0.035942-0.27840.390829
50-0.019472-0.15080.440308
51-0.004402-0.03410.486457
520.0111010.0860.465881
530.028740.22260.412294
540.0412980.31990.37508
550.0459980.35630.361432
560.0311930.24160.404949
570.0143860.11140.455822
580.0041430.03210.487253
590.0009230.00720.497159
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8501746.58540
2-0.269939-2.09090.020388
30.1024360.79350.215316
40.2367451.83380.035821
50.1574951.21990.113629
6-0.139546-1.08090.14203
7-0.045866-0.35530.361815
80.1048540.81220.209946
90.1222910.94730.173652
100.0335810.26010.397832
11-0.037235-0.28840.387008
120.0211780.1640.435123
13-0.445502-3.45080.000515
140.1402031.0860.14091
15-0.109692-0.84970.199442
16-0.078869-0.61090.271782
170.0067980.05270.47909
18-0.138147-1.07010.144434
190.0700140.54230.294801
20-0.005916-0.04580.4818
21-0.184164-1.42650.07945
22-0.031596-0.24470.403745
230.0639380.49530.311112
24-0.054071-0.41880.338418
25-0.000754-0.00580.497681
26-0.047574-0.36850.356896
27-0.007959-0.06170.475522
28-0.032041-0.24820.402417
29-0.120165-0.93080.177846
300.1609451.24670.108681
310.0887520.68750.247218
320.0077020.05970.476311
330.0405720.31430.377203
340.0048410.03750.485106
350.0484740.37550.354313
36-0.095914-0.74290.230206
37-0.074711-0.57870.282475
380.0509530.39470.34724
39-0.049315-0.3820.351909
40-0.094946-0.73540.232467
410.0045290.03510.486064
420.0147780.11450.454625
43-0.039955-0.30950.379011
44-0.017968-0.13920.444886
450.0643480.49840.309999
46-0.060013-0.46490.321859
47-0.053399-0.41360.340312
480.0253530.19640.422487
490.0378060.29280.385327
50-0.07954-0.61610.270074
510.0567920.43990.330791
520.0013330.01030.495897
530.0448620.34750.364717
54-0.090892-0.7040.242065
55-0.123689-0.95810.170931
56-0.03067-0.23760.406513
57-0.002882-0.02230.491131
580.0461050.35710.361124
59-0.063615-0.49280.311991
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/09/t1260388430saaz6z0tqq6226j/1ngeb1260388298.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/09/t1260388430saaz6z0tqq6226j/1ngeb1260388298.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/09/t1260388430saaz6z0tqq6226j/2dt4g1260388298.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/09/t1260388430saaz6z0tqq6226j/2dt4g1260388298.ps (open in new window)


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