Home » date » 2009 » Dec » 10 »

Paper - 9

*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, 10 Dec 2009 08:28:07 -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/10/t1260459001tsvtl9mo8u9o8ow.htm/, Retrieved Thu, 10 Dec 2009 16:30:04 +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/10/t1260459001tsvtl9mo8u9o8ow.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 «
62.7 62.3 61.9 62 62.3 62.8 62.4 62.3 62.7 62.7 62.9 63 62.2 62.3 62.8 62.8 62.8 62.2 62.6 62.8 62.5 62.4 62.3 61.9 61.7 62 62.1 61.7 61.8 61.8 61.8 61.3 61.3 61.3 61.2 61.4 62.2 62.9 63.1 63.5 63.6 64.4 64.1 65.1 65.8 65.9 65.4 65.5 64.8 63.2 62.7 62.1 61.9 60.6 60.7 59.8 59 58.3 59.3 59 59.1
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.2181041.68940.048164
20.2108781.63350.053805
30.1746441.35280.0906
40.319712.47650.008053
5-0.036778-0.28490.388358
60.0619270.47970.316598
70.1031340.79890.213758
8-0.037995-0.29430.384768
9-0.221989-1.71950.045337
10-0.166926-1.2930.100484
110.0344730.2670.395182
12-0.418752-3.24360.000965
13-0.280031-2.16910.017024
14-0.14662-1.13570.130296
150.0195550.15150.440057
16-0.216757-1.6790.049177
17-0.056151-0.43490.332581
18-0.030096-0.23310.40823
19-0.033825-0.2620.397105
20-0.121471-0.94090.175262
210.0019680.01520.493943
220.1436671.11280.135107
23-0.015721-0.12180.451741
24-0.068402-0.52980.299089
250.0973840.75430.2268
260.0752650.5830.281038
27-0.04864-0.37680.353838
280.0387980.30050.382406
290.0858330.66490.254345
300.0480450.37220.355546
31-0.059026-0.45720.324584
320.0702410.54410.2942
330.1149440.89040.188416
34-0.000544-0.00420.498326
35-0.10619-0.82250.207012
360.0816110.63220.264843
37-0.023517-0.18220.428034
38-0.041751-0.32340.373758
390.0015280.01180.495298
400.0330230.25580.399493
41-0.098653-0.76420.223882
42-0.083605-0.64760.259856
43-0.038125-0.29530.384387
440.0001048e-040.499681
45-0.064621-0.50050.30926
46-0.093991-0.72810.234707
470.0381250.29530.384387
48-0.028412-0.22010.413278
490.0001048e-040.499681
500.0266770.20660.418496
51-0.009557-0.0740.470617
52-0.043331-0.33560.369157
530.035690.27650.391574
540.0406370.31480.377013
550.041570.3220.374287
56-0.008003-0.0620.475388
57-0.016395-0.1270.449685
580.0017610.01360.49458
59-0.003522-0.02730.489162
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2181041.68940.048164
20.1714651.32820.094577
30.1072440.83070.204716
40.2581541.99970.025036
5-0.198862-1.54040.064363
6-0.004273-0.03310.486851
70.0744720.57690.283096
8-0.15811-1.22470.112734
9-0.181622-1.40680.082317
10-0.143872-1.11440.134771
110.1494621.15770.125782
12-0.391856-3.03530.001775
13-0.082325-0.63770.263051
140.0797630.61780.26951
150.1297961.00540.159372
160.0835920.64750.259888
17-0.064217-0.49740.310354
18-0.02985-0.23120.408967
19-0.015448-0.11970.452576
20-0.039075-0.30270.381593
21-0.149572-1.15860.12561
220.0197070.15260.439594
230.0751320.5820.281383
24-0.23071-1.78710.039489
250.0357170.27670.391496
26-0.053277-0.41270.340656
270.0896150.69420.245132
280.1043320.80820.211098
29-0.051969-0.40260.344355
300.0374210.28990.38646
31-0.086417-0.66940.25291
320.072470.56130.288325
33-0.054018-0.41840.338566
34-0.004404-0.03410.486451
35-0.05989-0.46390.322198
36-0.079764-0.61780.269507
37-0.040852-0.31640.376383
38-0.034835-0.26980.394109
390.1442291.11720.134183
40-0.046045-0.35670.361299
41-0.044189-0.34230.366665
420.0235670.18260.427883
43-0.105527-0.81740.208464
440.0589240.45640.324867
45-0.046398-0.35940.360281
460.0122710.0950.462296
47-0.029138-0.22570.411102
48-0.046047-0.35670.361291
490.0461610.35760.360962
50-0.021954-0.17010.432769
51-0.029565-0.2290.409819
52-0.02333-0.18070.428601
530.0379010.29360.385045
54-0.011575-0.08970.464428
55-0.080707-0.62520.267119
56-0.016236-0.12580.45017
57-0.0222-0.1720.432024
58-0.013631-0.10560.458133
59-0.013111-0.10160.459725
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/10/t1260459001tsvtl9mo8u9o8ow/1h2q61260458885.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/10/t1260459001tsvtl9mo8u9o8ow/1h2q61260458885.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/10/t1260459001tsvtl9mo8u9o8ow/2cfm71260458885.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/10/t1260459001tsvtl9mo8u9o8ow/2cfm71260458885.ps (open in new window)


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