Home » date » 2009 » Dec » 02 »

*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 11:27:30 -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/02/t12597784962rwewez0vk2nrho.htm/, Retrieved Wed, 02 Dec 2009 19:28:19 +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/02/t12597784962rwewez0vk2nrho.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 «
79.8 83.4 113.6 112.9 104 109.9 99 106.3 128.9 111.1 102.9 130 87 87.5 117.6 103.4 110.8 112.6 102.5 112.4 135.6 105.1 127.7 137 91 90.5 122.4 123.3 124.3 120 118.1 119 142.7 123.6 129.6 151.6 110.4 99.2 130.5 136.2 129.7 128 121.6 135.8 143.8 147.5 136.2 156.6 123.3 104.5 139.8 136.5 112.1 118.5 94.4 102.3 111.4 99.2 87.8 115.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.3877673.00360.001944
20.1176970.91170.182793
30.4021513.1150.00141
40.1939571.50240.069121
50.1707871.32290.095443
60.351242.72070.004256
70.0247650.19180.424262
80.0061180.04740.481181
90.1711751.32590.094947
10-0.126376-0.97890.165778
110.0036410.02820.488796
120.4426773.4290.000551
130.0606820.470.320015
14-0.167091-1.29430.100264
150.0888760.68840.246916
16-0.028071-0.21740.414303
17-0.06139-0.47550.318069
180.0842960.6530.258139
19-0.113004-0.87530.192444
20-0.162647-1.25990.1063
21-0.01042-0.08070.46797
22-0.252338-1.95460.027647
23-0.179518-1.39050.084751
240.1700581.31730.096379
25-0.039296-0.30440.380943
26-0.286355-2.21810.015172
27-0.085202-0.660.255899
28-0.125289-0.97050.167851
29-0.173228-1.34180.092356
30-0.050436-0.39070.348711
31-0.146779-1.13690.130041
32-0.222261-1.72160.045145
33-0.080369-0.62250.267975
34-0.205774-1.59390.058105
35-0.236709-1.83350.035842
360.0356970.27650.391554
37-0.045397-0.35160.363167
38-0.211277-1.63650.053481
39-0.061449-0.4760.317909
40-0.074515-0.57720.282984
41-0.094401-0.73120.233744
420.0111620.08650.465694
43-0.077691-0.60180.27479
44-0.114966-0.89050.18837
45-0.032534-0.2520.400948
46-0.099402-0.770.222171
47-0.108444-0.840.20212
480.0541410.41940.33822
490.00130.01010.495999
50-0.064251-0.49770.310261
510.0164330.12730.44957
520.0494170.38280.351616
530.0619830.48010.316446
540.09310.72120.236808
550.0465540.36060.359829
560.0460050.35640.361413
570.0854550.66190.255274
580.05810.450.327151
590.0016430.01270.494945
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3877673.00360.001944
2-0.038447-0.29780.383438
30.4357313.37520.000649
4-0.172415-1.33550.093375
50.2740842.1230.018942
60.0524790.40650.342911
7-0.221568-1.71630.045637
80.0945440.73230.233407
9-0.120663-0.93470.176857
10-0.173509-1.3440.092006
110.225761.74870.042726
120.4072493.15450.001256
13-0.220117-1.7050.046682
14-0.167244-1.29550.10006
15-0.064698-0.50110.30905
16-0.031012-0.24020.405491
17-0.118646-0.9190.18088
18-0.063987-0.49560.310979
190.166141.28690.101534
20-0.092221-0.71430.238894
21-0.009037-0.070.472213
22-0.110387-0.85510.197961
230.0945770.73260.233331
24-0.066436-0.51460.304359
250.0527770.40880.342068
26-0.151325-1.17220.122883
270.0046120.03570.485811
28-0.101444-0.78580.217545
29-0.041181-0.3190.375422
30-0.029578-0.22910.409782
310.0472730.36620.357761
32-0.030709-0.23790.406396
33-0.00147-0.01140.495476
340.0559930.43370.333025
35-0.141333-1.09480.138998
36-0.047327-0.36660.357605
37-0.070495-0.54610.293527
380.1883931.45930.074851
39-0.087594-0.67850.250032
40-0.0267-0.20680.418425
410.1305271.01110.158024
42-0.099614-0.77160.221689
43-0.107249-0.83070.204705
44-0.043779-0.33910.367854
450.016310.12630.449942
46-0.031295-0.24240.404644
470.0844110.65380.257855
48-0.031122-0.24110.40516
490.017450.13520.446466
50-0.024171-0.18720.426057
510.0258320.20010.421042
520.08950.69330.24541
53-0.024242-0.18780.425841
54-0.030978-0.240.405591
55-0.012021-0.09310.463062
560.0057560.04460.482293
57-0.013411-0.10390.458805
580.0054060.04190.483369
59-0.114786-0.88910.188743
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/02/t12597784962rwewez0vk2nrho/1vnah1259778449.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t12597784962rwewez0vk2nrho/1vnah1259778449.ps (open in new window)


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