Home » date » 2009 » Dec » 03 »

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, 02 Dec 2009 16:12:16 -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/03/t1259795883momzqvaqpx8vuwm.htm/, Retrieved Thu, 03 Dec 2009 00:18:06 +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/03/t1259795883momzqvaqpx8vuwm.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 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 502 516 528 533 536 537 524 536 587 597 581 564 564
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
017.7460
10.8883796.88140
20.7256525.62090
30.6170964.786e-06
40.5741044.4471.9e-05
50.5747274.45181.9e-05
60.5638294.36742.5e-05
70.5076413.93220.00011
80.4120243.19150.001127
90.3509072.71810.004285
100.3475692.69230.004592
110.3980853.08360.001545
120.4073333.15520.001254
130.2657952.05880.021929
140.0962330.74540.229464
15-0.020248-0.15680.562053
16-0.075045-0.58130.71839
17-0.089891-0.69630.755532
18-0.11135-0.86250.80408
19-0.163598-1.26720.895014
20-0.247006-1.91330.969758
21-0.294886-2.28420.987043
22-0.291104-2.25490.986099
23-0.239964-1.85880.966015
24-0.218038-1.68890.951787
25-0.29723-2.30230.987599
26-0.392228-3.03820.998239
27-0.436663-3.38240.999365
28-0.433451-3.35750.999315
29-0.40461-3.13410.998666
30-0.373892-2.89620.997368
31-0.358305-2.77540.996329
32-0.37191-2.88080.997253
33-0.361375-2.79920.99656
34-0.310326-2.40380.990333
35-0.238832-1.850.965379
36-0.190768-1.47770.927639
37-0.208048-1.61150.943844
38-0.237535-1.83990.964637
39-0.241601-1.87140.966919
40-0.212358-1.64490.947392
41-0.171772-1.33050.905812
42-0.125153-0.96940.831888
43-0.091932-0.71210.760419
44-0.084922-0.65780.74341
45-0.072136-0.55880.710797
46-0.041835-0.32410.626487
473.1e-052e-040.499905


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.8883796.88140
1-0.301569-2.33590.988573
20.2397631.85720.034096
30.12710.98450.164408
40.1411491.09330.139309
5-0.046667-0.36150.640496
6-0.094483-0.73190.76645
7-0.120981-0.93710.823773
80.1601021.24010.109875
90.0652660.50560.307512
100.2051931.58940.058611
11-0.245508-1.90170.968992
12-0.592492-4.58940.999988
130.1308711.01370.157392
14-0.035322-0.27360.607334
15-0.079587-0.61650.730044
16-0.080305-0.6220.731864
17-0.136262-1.05550.852281
180.1313081.01710.156593
190.0288240.22330.412041
20-0.009176-0.07110.528215
21-0.049762-0.38550.649369
22-0.002675-0.02070.508231
230.0721160.55860.289254
240.0193150.14960.440787
25-0.062303-0.48260.684431
260.0532080.41210.34085
27-0.08851-0.68560.752196
280.0164140.12710.449625
290.072330.56030.288691
300.0472410.36590.357854
31-0.04702-0.36420.64151
32-0.014354-0.11120.544081
330.0188360.14590.442242
34-0.080224-0.62140.731659
350.0646310.50060.309232
36-0.001502-0.01160.504621
37-0.08477-0.65660.743035
38-0.101493-0.78620.782566
390.0542720.42040.337851
40-0.018085-0.14010.55547
410.050390.39030.348841
42-0.126569-0.98040.834587
430.0146220.11330.4551
44-0.067767-0.52490.699214
45-0.026935-0.20860.58228
460.0750730.58150.281537
47-0.063564-0.49240.687871
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259795883momzqvaqpx8vuwm/1qofp1259795535.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259795883momzqvaqpx8vuwm/1qofp1259795535.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/03/t1259795883momzqvaqpx8vuwm/2dyig1259795535.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259795883momzqvaqpx8vuwm/2dyig1259795535.ps (open in new window)


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