Home » date » 2009 » Nov » 27 »

*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: Fri, 27 Nov 2009 05:06:01 -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/Nov/27/t1259323738zfemqgfoqfgrkox.htm/, Retrieved Fri, 27 Nov 2009 13:09: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/2009/Nov/27/t1259323738zfemqgfoqfgrkox.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 «
1.4 1.2 1 1.7 2.4 2 2.1 2 1.8 2.7 2.3 1.9 2 2.3 2.8 2.4 2.3 2.7 2.7 2.9 3 2.2 2.3 2.8 2.8 2.8 2.2 2.6 2.8 2.5 2.4 2.3 1.9 1.7 2 2.1 1.7 1.8 1.8 1.8 1.3 1.3 1.3 1.2 1.4 2.2 2.9 3.1 3.5 3.6 4.4 4.1 5.1 5.8 5.9 5.4 5.5 4.8 3.2 2.7 2.1 1.9 0.6 0.7 -0.2 -1 -1.7 -0.7 -1
 
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.8989147.46690
20.7817366.49360
30.623575.17981e-06
40.4626133.84280.000134
50.2897442.40680.009387
60.1299281.07930.142114
7-0.03955-0.32850.371753
8-0.18764-1.55870.061826
9-0.329312-2.73550.003956
10-0.430032-3.57210.000325
11-0.511026-4.24493.3e-05
12-0.564007-4.6857e-06
13-0.545723-4.53311.2e-05
14-0.500065-4.15394.6e-05
15-0.429683-3.56920.000328
16-0.364071-3.02420.00175
17-0.293325-2.43650.008707
18-0.228028-1.89410.031199
19-0.150897-1.25340.107137
20-0.091293-0.75830.225417
21-0.020922-0.17380.431269
220.0347550.28870.38684
230.0759510.63090.265097
240.1103390.91650.181288
250.1301911.08150.141631
260.1319871.09640.138366
270.1256981.04410.150035
280.1288861.07060.144039
290.1282541.06540.145215
300.1299441.07940.142085
310.1246071.03510.152127
320.123561.02640.154151
330.110980.92190.179905
340.0947180.78680.217051
350.0777410.64580.260286
360.0623070.51760.30321
370.0368210.30590.380317
380.0212820.17680.430099
390.0102860.08540.46608
40-0.002034-0.01690.493285
41-0.014467-0.12020.452347
42-0.03019-0.25080.401367
43-0.051247-0.42570.33583
44-0.065946-0.54780.292803
45-0.086052-0.71480.238572
46-0.094522-0.78520.217525
47-0.103222-0.85740.197088
48-0.120148-0.9980.160878
49-0.112441-0.9340.176779
50-0.105494-0.87630.191954
51-0.106003-0.88050.190815
52-0.101369-0.8420.201338
53-0.093495-0.77660.220016
54-0.077918-0.64720.259814
55-0.050876-0.42260.336949
56-0.029787-0.24740.402656
57-0.007569-0.06290.475023
580.0099820.08290.467079
590.0249170.2070.41832
600.0513890.42690.335402


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8989147.46690
2-0.137067-1.13860.129411
3-0.277418-2.30440.012107
4-0.093085-0.77320.221015
5-0.142066-1.18010.121009
6-0.05939-0.49330.311673
7-0.190439-1.58190.059122
8-0.07507-0.62360.267481
9-0.133222-1.10660.136149
100.0012450.01030.49589
11-0.080394-0.66780.253244
12-0.103283-0.85790.196949
130.2402731.99590.024949
14-0.012814-0.10640.457772
15-0.039776-0.33040.371048
16-0.157992-1.31240.09687
17-0.067674-0.56210.28792
18-0.051822-0.43050.3341
19-0.013536-0.11240.455402
20-0.108989-0.90530.184221
210.0012970.01080.495718
220.0397490.33020.371134
23-0.109467-0.90930.183178
240.0158080.13130.447956
25-0.002431-0.02020.491973
26-0.036389-0.30230.381678
27-0.038728-0.32170.374326
280.0427070.35470.36193
29-0.039984-0.33210.370399
30-0.006328-0.05260.479116
310.0123140.10230.459413
32-0.02704-0.22460.411471
330.0076080.06320.474897
34-0.053649-0.44560.328626
35-0.01547-0.12850.449063
360.0004680.00390.498453
37-0.054821-0.45540.325133
380.0037550.03120.487605
390.0431850.35870.360449
400.0094780.07870.468737
41-0.011636-0.09670.46164
42-0.008953-0.07440.470465
43-0.083675-0.69510.244678
440.0281330.23370.407959
45-0.069851-0.58020.281825
46-0.012053-0.10010.460269
47-0.032585-0.27070.393725
48-0.089557-0.74390.229728
490.1099590.91340.182111
50-0.026973-0.22410.411688
51-0.083135-0.69060.246076
52-0.014504-0.12050.452228
530.0134150.11140.455799
54-0.018556-0.15410.438976
550.002740.02280.490955
56-0.045935-0.38160.35198
57-0.07663-0.63650.263266
580.042930.35660.361239
59-0.04659-0.3870.349971
600.0222630.18490.426913
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259323738zfemqgfoqfgrkox/1l1kn1259323560.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259323738zfemqgfoqfgrkox/1l1kn1259323560.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/27/t1259323738zfemqgfoqfgrkox/2fff91259323560.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259323738zfemqgfoqfgrkox/2fff91259323560.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