Home » date » 2009 » Aug » 16 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 16 Aug 2009 09:23:14 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Aug/16/t12504362179nmwzkbu40bp2c3.htm/, Retrieved Sun, 16 Aug 2009 17:23:37 +0200
 
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/Aug/16/t12504362179nmwzkbu40bp2c3.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 «
72.84 73.96 73.26 73.86 73.04 212.8 157.92 111.55 99.01 89.5 100.95 116.06 131.5 137.43 138.53 137.26 136.81 182.98 149.45 109.34 93.37 84.09 83.83 82.94 82.88 81.41 79.87 79.66 76.07 182.69 165.78 142.5 120.6 105.73 98.72 98.41 96.08 97.3 97.5 97.02 98.75 232.81 240.83 193.4 148.28 138.34 135.34 134.02 133.86 131.67 132.43 130.21 129.98 206.16 195.17 159.16 136.33 125.18 121.21 119.38 119.26 119.75 118.78 116.97 121.69 223.51 228.58 205.22 189.4 180.14 177.59 176.39 171.16 173.11 171.74 175.97 179.64 254.62 240.5 212.01 176.36 153.24 146.69 141.52 142.6 143.19 142.32 142.03 144.92 177.31 194.4 189.19 180.44 175.84 178.54 176.55
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.0351730.34280.366244
2-0.20067-1.95590.026708
3-0.170415-1.6610.050006
4-0.094539-0.92150.179575
5-0.022393-0.21830.413846
6-0.006831-0.06660.473528
7-0.015212-0.14830.441223
8-0.073235-0.71380.238549
9-0.13893-1.35410.089454
10-0.173554-1.69160.047001
110.0099530.0970.46146
120.7081736.90240
130.0547880.5340.297291
14-0.172439-1.68070.048051
15-0.152455-1.48590.070302
16-0.071963-0.70140.242383
17-0.004777-0.04660.481479
18-0.004758-0.04640.481554
19-0.010106-0.09850.460873
20-0.06965-0.67890.249436
21-0.134476-1.31070.096558
22-0.197229-1.92240.028779
23-0.052996-0.51650.30334
240.6594076.42710
250.0939050.91530.181184
26-0.093179-0.90820.183037
27-0.11216-1.09320.138535
28-0.053747-0.52390.300799
290.0030150.02940.488308
300.0066720.0650.474141
31-0.015193-0.14810.441296
32-0.061669-0.60110.274611
33-0.11512-1.12210.132335
34-0.15858-1.54560.062757
35-0.058701-0.57210.284288
360.5716575.57180
370.1184131.15410.125668
38-0.094915-0.92510.178625
39-0.134018-1.30620.097311
40-0.053919-0.52550.300219
41-0.00505-0.04920.480421
42-0.004946-0.04820.480824
43-0.011104-0.10820.45702
44-0.044311-0.43190.3334
45-0.071184-0.69380.244747
46-0.111844-1.09010.13921
47-0.054885-0.5350.296966
480.3587433.49660.000359


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0351730.34280.366244
2-0.202157-1.97040.025853
3-0.161616-1.57520.059263
4-0.135501-1.32070.094888
5-0.096916-0.94460.173624
6-0.09352-0.91150.182165
7-0.092917-0.90560.183709
8-0.150574-1.46760.072757
9-0.236265-2.30280.011735
10-0.351337-3.42440.000456
11-0.302037-2.94390.002037
120.5587745.44630
13-0.067799-0.66080.255163
14-0.039082-0.38090.352053
15-0.035231-0.34340.366031
16-0.017701-0.17250.431696
17-0.025782-0.25130.401064
18-0.057598-0.56140.287925
19-0.05737-0.55920.288679
20-0.094152-0.91770.180556
21-0.127995-1.24750.107632
22-0.222496-2.16860.016304
23-0.282722-2.75560.003511
240.1294311.26150.105102
25-0.123715-1.20580.115439
260.0109380.10660.457663
27-0.024378-0.23760.40635
28-0.018487-0.18020.428695
29-0.02113-0.2060.418635
30-0.005085-0.04960.480286
31-0.042686-0.4160.339157
32-0.033174-0.32330.373573
33-0.029379-0.28640.387616
340.0207160.20190.420208
35-0.016712-0.16290.435477
360.0548940.5350.296935
370.0275750.26880.394344
38-0.020528-0.20010.420922
39-0.048569-0.47340.318511
40-0.001987-0.01940.492294
41-0.040451-0.39430.347133
42-0.047939-0.46720.320697
43-0.036107-0.35190.362837
44-0.012513-0.1220.451593
450.045060.43920.330762
460.122311.19210.11809
470.1590021.54980.062262
48-0.211581-2.06220.020958
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/16/t12504362179nmwzkbu40bp2c3/1rna21250436190.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/16/t12504362179nmwzkbu40bp2c3/1rna21250436190.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/16/t12504362179nmwzkbu40bp2c3/2537w1250436190.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/16/t12504362179nmwzkbu40bp2c3/2537w1250436190.ps (open in new window)


 
Parameters (Session):
par2 = grey ; par3 = FALSE ; par4 = Unknown ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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