Home » date » 2009 » Dec » 20 »

*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: Sun, 20 Dec 2009 01:11:29 -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/20/t1261296781ozmddkfwou9fiia.htm/, Retrieved Sun, 20 Dec 2009 09:13:03 +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/20/t1261296781ozmddkfwou9fiia.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 «
101.09 102.71 102.11 101.68 101.7 101.53 101.76 101.15 100.92 100.73 100.55 102.15 100.79 99.93 100.03 100.25 99.6 100.16 100.49 99.72 100.14 98.48 100.38 101.45 98.42 98.6 100.06 98.62 100.84 100.02 97.95 98.32 98.27 97.22 99.28 100.38 99.02 100.32 99.81 100.6 101.19 100.47 101.77 102.32 102.39 101.16 100.63 101.48 101.44 100.09 100.7 100.78 99.81 98.45 98.49 97.48 97.91 96.94 98.53 96.82 95.76
 
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.7384765.16932e-06
20.6219614.35373.4e-05
30.599454.19625.7e-05
40.4025412.81780.003477
50.349372.44560.00905
60.2509851.75690.042592
70.0576250.40340.344213
80.0133970.09380.462834
9-0.155387-1.08770.141023
10-0.266899-1.86830.033853
11-0.270567-1.8940.03207
12-0.439704-3.07790.001705
13-0.387417-2.71190.0046
14-0.317705-2.22390.015397
15-0.378833-2.65180.005378
16-0.292309-2.04620.023063
17-0.250297-1.75210.043008
18-0.279664-1.95760.02799
19-0.140961-0.98670.164312
20-0.151747-1.06220.146669
21-0.150325-1.05230.148917
22-0.057557-0.40290.344388
23-0.117359-0.82150.207666
24-0.078498-0.54950.292585
25-0.015678-0.10970.456531
26-0.077944-0.54560.293905
27-0.079675-0.55770.289787
28-0.075013-0.52510.300944
29-0.100674-0.70470.242161
30-0.059278-0.41490.339997
31-0.099479-0.69640.244749
32-0.066423-0.4650.322009
330.0024620.01720.49316
34-0.017264-0.12080.452152
350.0289840.20290.420031
360.0640580.44840.327918


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.7384765.16932e-06
20.168511.17960.121933
30.2107651.47540.073257
4-0.294257-2.05980.022375
50.1077170.7540.227224
6-0.174391-1.22070.114014
7-0.186535-1.30570.098868
8-0.006868-0.04810.480926
9-0.284108-1.98880.026164
100.0198050.13860.445153
11-0.043898-0.30730.379963
12-0.224935-1.57450.060899
130.2855171.99860.025607
140.0031860.02230.491148
150.0589320.41250.340878
16-0.040671-0.28470.388539
17-0.009153-0.06410.474588
18-0.101985-0.71390.239339
190.0284780.19930.421407
20-0.165855-1.1610.125636
21-0.114923-0.80450.212508
22-0.045156-0.31610.376637
23-0.111768-0.78240.218879
24-0.019816-0.13870.445123
250.0860450.60230.274871
260.0055760.0390.484513
27-0.169016-1.18310.121236
280.0508630.3560.361668
290.034920.24440.403957
30-0.123121-0.86180.196485
31-0.009384-0.06570.473946
320.0376120.26330.396718
33-0.028332-0.19830.421805
340.0334470.23410.407931
35-0.04379-0.30650.380249
36-0.068686-0.48080.316399
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261296781ozmddkfwou9fiia/1juw71261296687.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261296781ozmddkfwou9fiia/1juw71261296687.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261296781ozmddkfwou9fiia/22uxv1261296687.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261296781ozmddkfwou9fiia/22uxv1261296687.ps (open in new window)


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