Home » date » 2010 » Dec » 16 »

*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, 16 Dec 2010 00:38:04 +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/Dec/16/t12924598198iocrlyb2qrrjik.htm/, Retrieved Thu, 16 Dec 2010 01:37:02 +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/2010/Dec/16/t12924598198iocrlyb2qrrjik.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 «
46 62 66 59 58 61 41 27 58 70 49 59 44 36 72 45 56 54 53 35 61 52 47 51 52 63 74 45 51 64 36 30 55 64 39 40 63 45 59 55 40 64 27 28 45 57 45 69 60 56 58 50 51 53 37 22 55 70 62 58 39 49 58 47 42 62 39 40 72 70 54 65
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.32741-2.75880.003687
2-0.339512-2.86080.002773
30.2750332.31750.011683
4-0.054891-0.46250.32256
5-0.18859-1.58910.058242
60.2226181.87580.032396
7-0.109603-0.92350.179429
8-0.059735-0.50330.308144
90.2145041.80740.037465
10-0.24925-2.10020.019631
11-0.056729-0.4780.317057
120.4447883.74790.00018
13-0.152034-1.28110.10217
14-0.297798-2.50930.00719
150.2823352.3790.010026
16-0.052136-0.43930.330886
17-0.157278-1.32520.094669
180.1898641.59980.05704
19-0.15344-1.29290.100117
20-0.014846-0.12510.450401
210.2246641.89310.031213
22-0.205014-1.72750.044215
23-0.10795-0.90960.183056
240.3721763.1360.001246
25-0.019654-0.16560.434468
26-0.366215-3.08580.001447
270.2904192.44710.008439
28-0.076406-0.64380.260887
29-0.119623-1.0080.158448
300.1239421.04440.149932
31-0.06101-0.51410.304396
320.0096020.08090.467871
330.1710111.4410.076996
34-0.229717-1.93560.028448
35-0.071036-0.59860.275686
360.3069482.58640.005875
37-0.082618-0.69610.244304
38-0.169543-1.42860.078752
390.1611951.35830.089342
40-0.01462-0.12320.451152
41-0.173242-1.45980.074382
420.1081090.91090.182704
430.04860.40950.341697
44-0.064545-0.54390.29412
450.0958710.80780.210945
46-0.138276-1.16510.123932
47-0.007085-0.05970.476281
480.187881.58310.058921


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.32741-2.75880.003687
2-0.500345-4.2163.6e-05
3-0.083018-0.69950.243257
4-0.179429-1.51190.067499
5-0.252623-2.12860.018377
6-0.039617-0.33380.369751
7-0.229299-1.93210.028669
8-0.137548-1.1590.12517
90.0132290.11150.455778
10-0.301959-2.54430.006562
11-0.312158-2.63030.005227
120.0990020.83420.203481
130.1410951.18890.119223
14-0.041969-0.35360.36233
150.0610640.51450.304238
160.0362680.30560.380402
170.0558030.47020.319824
180.1080370.91030.182864
19-0.132943-1.12020.133202
20-0.072079-0.60730.272779
210.0170320.14350.443145
22-0.044362-0.37380.354832
23-0.203541-1.71510.045347
24-0.118847-1.00140.160011
250.2107811.77610.040003
26-0.025928-0.21850.413842
270.1438381.2120.114765
28-0.063739-0.53710.296448
290.0822730.69320.24521
300.048660.410.341515
31-0.002201-0.01850.492627
320.1180330.99460.161663
330.0686020.5780.282531
340.0337150.28410.388586
35-0.051664-0.43530.332322
36-0.146326-1.2330.110827
37-0.117336-0.98870.163086
38-0.030434-0.25640.399177
39-0.008243-0.06950.472409
40-0.013857-0.11680.453688
41-0.094517-0.79640.214223
42-0.136561-1.15070.126862
430.0722870.60910.2722
440.0281820.23750.40649
45-0.091335-0.76960.222044
46-0.099954-0.84220.201244
470.017750.14960.440767
480.0125050.10540.458191
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/16/t12924598198iocrlyb2qrrjik/1dcje1292459882.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t12924598198iocrlyb2qrrjik/1dcje1292459882.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t12924598198iocrlyb2qrrjik/26l0h1292459882.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t12924598198iocrlyb2qrrjik/26l0h1292459882.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t12924598198iocrlyb2qrrjik/36l0h1292459882.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t12924598198iocrlyb2qrrjik/36l0h1292459882.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; 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 (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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