Home » date » 2010 » Aug » 15 »

Autocorrelation

*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, 15 Aug 2010 20:24:45 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Aug/15/t1281903858u1re30sf3ads7u8.htm/, Retrieved Sun, 15 Aug 2010 22:24:20 +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/2010/Aug/15/t1281903858u1re30sf3ads7u8.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
244 243 242 240 260 259 244 234 235 235 236 238 240 233 233 233 247 251 233 226 233 233 227 225 223 212 206 202 223 221 212 205 204 200 195 193 196 180 174 164 192 189 181 167 166 164 167 164 161 141 134 111 147 144 142 140 143 137 140 130 129 112 101 74 104 103 100 98 99 91 92 94 93 76 64 32 62 69 69 68 68 59 66 73 70 57 48 22 64 74 67 61 61 52 54 69 69 53 50 22 69 78 74 63 67 59 60 80 77 58 54 32 78 86 84 78 72 64 62 72
 
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.96991710.62490
20.94306110.33070
30.92049310.08350
40.9088099.95550
50.8943219.79680
60.8805159.64560
70.8602339.42340
80.8392899.1940
90.8132138.90830
100.7981388.74320
110.7868558.61960
120.7814278.56010
130.7467598.18030
140.7146677.82880
150.685797.51250
160.6658517.2940
170.6416377.02880
180.6188446.77910
190.5920696.48580
200.5631316.16880
210.5281575.78570
220.5033245.51360
230.4833715.29510
240.4700775.14941e-06
250.433264.74613e-06
260.3987454.3681.3e-05
270.3671924.02245.1e-05
280.3443363.7720.000126
290.3167343.46960.000362
300.2921793.20070.000877
310.2639252.89120.002279
320.2330662.55310.005965
330.1971222.15940.016406
340.1703721.86630.032218
350.1488921.6310.052753
360.1337931.46560.072682
370.0994821.08980.138998
380.0688880.75460.225975
390.0399170.43730.331352
400.0204660.22420.411494
41-0.004961-0.05430.478376
42-0.027959-0.30630.379963
43-0.054045-0.5920.277471
44-0.081771-0.89580.186089
45-0.11423-1.25130.106624
46-0.137975-1.51140.066652
47-0.157093-1.72090.043926
48-0.168596-1.84690.033615


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.96991710.62490
20.0391620.4290.334346
30.0615090.67380.250868
40.1807751.98030.024979
5-0.026591-0.29130.385665
60.029140.31920.37506
7-0.087795-0.96170.169055
8-0.042907-0.470.319595
9-0.111505-1.22150.112149
100.129281.41620.079655
110.0624760.68440.247523
120.1040991.14030.128206
13-0.444567-4.872e-06
140.020090.22010.413093
150.01480.16210.435738
160.0088550.0970.461444
17-0.069942-0.76620.222539
18-0.018053-0.19780.421782
190.0019520.02140.491489
20-0.065207-0.71430.238212
21-0.046972-0.51460.303905
220.0229010.25090.401174
230.0380770.41710.338672
240.0315320.34540.365195
25-0.191613-2.0990.018956
260.0087610.0960.461851
270.0084340.09240.463272
280.0128610.14090.444097
29-0.065391-0.71630.237592
300.003890.04260.48304
31-0.030722-0.33650.368524
32-0.048438-0.53060.298335
33-0.00213-0.02330.490711
34-0.006452-0.07070.471887
350.0198930.21790.413933
36-0.001938-0.02120.491548
37-0.086259-0.94490.1733
380.0359190.39350.347334
39-0.022529-0.24680.402745
400.036570.40060.344714
41-0.074612-0.81730.20768
42-0.033897-0.37130.355526
43-0.035479-0.38870.349111
44-0.017321-0.18970.424917
45-0.010731-0.11760.453308
46-0.01133-0.12410.450716
47-0.001029-0.01130.495513
480.0328030.35930.359987
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/15/t1281903858u1re30sf3ads7u8/1b0ng1281903883.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/15/t1281903858u1re30sf3ads7u8/1b0ng1281903883.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/15/t1281903858u1re30sf3ads7u8/2g6xv1281903883.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/15/t1281903858u1re30sf3ads7u8/2g6xv1281903883.ps (open in new window)


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