Home » date » 2009 » Dec » 14 »

*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: Mon, 14 Dec 2009 05:53:49 -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/14/t1260795323ezgqaluc6men06g.htm/, Retrieved Mon, 14 Dec 2009 13:55:25 +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/14/t1260795323ezgqaluc6men06g.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 «
17823.2 17872 17420.4 16704.4 15991.2 16583.6 19123.5 17838.7 17209.4 18586.5 16258.1 15141.6 19202.1 17746.5 19090.1 18040.3 17515.5 17751.8 21072.4 17170 19439.5 19795.4 17574.9 16165.4 19464.6 19932.1 19961.2 17343.4 18924.2 18574.1 21350.6 18594.6 19823.1 20844.4 19640.2 17735.4 19813.6 22160 20664.3 17877.4 20906.5 21164.1 21374.4 22952.3 21343.5 23899.3 22392.9 18274.1 22786.7 22321.5 17842.2 16373.5 15993.8 16446.1 17729 16643 16196.7 18252.1 17570.4
 
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.5180693.97949.6e-05
20.3469022.66460.004962
30.4402023.38130.000643
40.389162.98920.002037
50.2508181.92660.029427
60.2148291.65010.052115
70.0430190.33040.37112
80.1253110.96250.169855
9-0.051237-0.39360.347663
10-0.165675-1.27260.104081
11-0.0172-0.13210.447672
120.1696981.30350.098738
13-0.067539-0.51880.302929
14-0.16653-1.27910.102928
15-0.069603-0.53460.297457
160.0357880.27490.39218
17-0.074478-0.57210.284723
18-0.070831-0.54410.294225
19-0.03705-0.28460.388479
20-0.065759-0.50510.307683
21-0.165129-1.26840.104822
22-0.159263-1.22330.113036
23-0.097211-0.74670.229107
24-0.00694-0.05330.478834
25-0.092254-0.70860.240676
26-0.231143-1.77540.040491
27-0.124848-0.9590.170741
28-0.036153-0.27770.391107
29-0.139596-1.07230.143985
30-0.138251-1.06190.146299
31-0.072477-0.55670.289916
32-0.192418-1.4780.072364
33-0.194773-1.49610.069982
34-0.164957-1.26710.105057
35-0.186475-1.43230.078662
36-0.103964-0.79860.213873
37-0.154929-1.190.1194
38-0.23236-1.78480.039718
39-0.105147-0.80760.211268
40-0.102701-0.78890.216676
41-0.111452-0.85610.197709
42-0.042829-0.3290.371669
43-0.036818-0.28280.38916
44-0.053033-0.40740.342611
45-0.005602-0.0430.482912
460.017420.13380.447005
470.0722040.55460.290629
480.0895040.68750.247232
490.0779530.59880.27581
500.0897240.68920.246706
510.0972090.74670.229111
520.0795930.61140.271652
530.0668850.51380.304671
540.0471370.36210.359298
550.0330060.25350.400372
560.0199840.15350.439264
570.007130.05480.478255
580.0050760.0390.484516
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5180693.97949.6e-05
20.1073080.82420.20656
30.3099862.3810.010255
40.0797520.61260.271252
5-0.044594-0.34250.366582
6-0.016889-0.12970.448612
7-0.261181-2.00620.024715
80.1568181.20450.116595
9-0.310285-2.38330.010197
10-0.032462-0.24930.401981
110.1678331.28910.101189
120.3562372.73630.004098
13-0.134162-1.03050.153487
14-0.252742-1.94130.028499
15-0.0127-0.09760.46131
160.0263830.20260.420054
17-0.073298-0.5630.287779
180.0093570.07190.471473
190.1080510.830.204955
20-0.166273-1.27720.103273
21-0.029805-0.22890.409854
220.051240.39360.347655
23-0.036625-0.28130.389725
24-0.09061-0.6960.244585
250.1208240.92810.178578
26-0.076904-0.59070.278484
27-0.066333-0.50950.306147
28-0.02023-0.15540.438524
290.012680.09740.461371
30-0.114136-0.87670.192105
31-0.046742-0.3590.360425
32-0.10063-0.7730.221318
330.0345050.2650.395953
34-0.0035-0.02690.489322
35-0.115492-0.88710.189311
360.0802040.61610.270112
37-0.121186-0.93080.177863
380.1022550.78540.21767
39-0.031838-0.24460.403825
40-0.090764-0.69720.244218
41-0.006449-0.04950.48033
420.0120550.09260.463268
430.0042820.03290.486937
44-0.022732-0.17460.430994
450.0871050.66910.253031
46-0.011299-0.08680.465567
470.0218850.16810.43354
480.0291850.22420.4117
490.0085460.06560.473942
50-0.030731-0.2360.407107
51-0.025435-0.19540.422888
52-0.042119-0.32350.373721
53-0.114936-0.88280.190453
54-0.05279-0.40550.343293
550.0286810.22030.413198
560.0760910.58450.280567
570.0203330.15620.438212
58-0.068618-0.52710.300063
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/14/t1260795323ezgqaluc6men06g/1k93q1260795227.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/14/t1260795323ezgqaluc6men06g/1k93q1260795227.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/14/t1260795323ezgqaluc6men06g/2rhvw1260795227.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/14/t1260795323ezgqaluc6men06g/2rhvw1260795227.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