Home » date » 2009 » Dec » 03 »

*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: Thu, 03 Dec 2009 08:49:35 -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/t1259855865p38h02seubi8lz8.htm/, Retrieved Thu, 03 Dec 2009 16:57:47 +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/t1259855865p38h02seubi8lz8.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 «
8.1 7.7 7.5 7.6 7.8 7.8 7.8 7.5 7.5 7.1 7.5 7.5 7.6 7.7 7.7 7.9 8.1 8.2 8.2 8.2 7.9 7.3 6.9 6.6 6.7 6.9 7 7.1 7.2 7.1 6.9 7 6.8 6.4 6.7 6.6 6.4 6.3 6.2 6.5 6.8 6.8 6.4 6.1 5.8 6.1 7.2 7.3 6.9 6.1 5.8 6.2 7.1 7.7 7.9 7.7 7.4 7.5 8 8.1 8
 
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
10.8489756.63070
20.608984.75636e-06
30.4222273.29770.000815
40.3756062.93360.002358
50.4233643.30660.000793
60.4459433.48290.000462
70.3592062.80550.003366
80.2150751.67980.049057
90.1061310.82890.205194
100.1085670.84790.199893
110.1758521.37340.08732
120.2300931.79710.038636
130.1814961.41750.080708
140.0852470.66580.254025
15-0.014365-0.11220.455518
16-0.079779-0.62310.267773
17-0.116701-0.91150.182819
18-0.144341-1.12730.132006
19-0.177061-1.38290.08587
20-0.225148-1.75850.041842
21-0.27119-2.11810.019126
22-0.308821-2.4120.009445
23-0.325246-2.54030.00682
24-0.318818-2.490.007756
25-0.306422-2.39320.009897
26-0.269955-2.10840.019555
27-0.241171-1.88360.032194
28-0.236938-1.85050.03454
29-0.275806-2.15410.017595
30-0.325721-2.5440.006755
31-0.350458-2.73720.004054
32-0.356762-2.78640.003547
33-0.323198-2.52430.007106
34-0.259805-2.02910.023407
35-0.211302-1.65030.052009
36-0.180143-1.4070.082256
37-0.15675-1.22430.112782
38-0.110503-0.86310.195743
39-0.048429-0.37820.353283
400.0129190.10090.459981
410.0358960.28040.390077
420.021560.16840.433419
43-0.016848-0.13160.447871
44-0.053211-0.41560.339584
45-0.049176-0.38410.351128
46-0.009544-0.07450.470411
470.0080240.06270.475117
480.0043060.03360.486641


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8489756.63070
2-0.400289-3.12640.001355
30.1624751.2690.104636
40.3050932.38290.010155
50.0973110.760.225085
6-0.124597-0.97310.167166
7-0.196909-1.53790.064621
80.0273250.21340.415857
90.0528960.41310.34048
100.127280.99410.162054
11-0.031845-0.24870.402206
120.0165270.12910.448859
13-0.153161-1.19620.118118
140.0945310.73830.231578
15-0.136885-1.06910.144617
16-0.186517-1.45670.075158
17-0.117334-0.91640.181532
180.0059650.04660.481498
190.0625340.48840.313508
20-0.125229-0.97810.165952
21-0.033388-0.26080.397575
22-0.103056-0.80490.212004
230.0514520.40190.344599
24-0.027372-0.21380.415716
25-0.047345-0.36980.356415
260.0891430.69620.244464
27-0.012665-0.09890.460764
280.007490.05850.476771
29-0.179508-1.4020.082992
30-0.029169-0.22780.410276
31-0.041001-0.32020.374945
32-0.10649-0.83170.204407
330.1090740.85190.198802
340.146671.14550.128233
35-0.012911-0.10080.460005
360.0123610.09650.461703
370.0638840.49890.309806
380.0132960.10380.458817
39-0.047177-0.36850.3569
40-0.045704-0.3570.361178
41-0.041856-0.32690.372428
42-0.008839-0.0690.472594
43-0.052927-0.41340.340392
44-0.026061-0.20350.419694
45-0.005799-0.04530.48201
46-0.011821-0.09230.463372
47-0.163869-1.27990.10272
480.0411080.32110.374631
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259855865p38h02seubi8lz8/1atsc1259855374.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259855865p38h02seubi8lz8/1atsc1259855374.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/03/t1259855865p38h02seubi8lz8/24vxe1259855374.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259855865p38h02seubi8lz8/24vxe1259855374.ps (open in new window)


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