Home » date » 2008 » Dec » 23 »

*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: Tue, 23 Dec 2008 09:01:06 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/23/t1230048093xcrkxvjcj78l6zc.htm/, Retrieved Tue, 23 Dec 2008 17:01:34 +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/2008/Dec/23/t1230048093xcrkxvjcj78l6zc.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
0,2 0,8 1,2 4,5 0,4 5,9 6,5 12,8 4,2 -3,3 -12,5 -16,3 -10,5 -11,8 -11,4 -17,7 -17,3 -18,6 -17,9 -21,4 -19,4 -15,5 -7,7 -0,7 -1,6 1,4 0,7 9,5 1,4 4,1 6,6 18,4 16,9 9,2 -4,3 -5,9 -7,7 -5,4 -2,3 -4,8 2,3 -5,2 -10 -17,1 -14,4 -3,9 3,7 6,5 0,9 -4,1 -7 -12,2 -2,5 4,4 13,7 12,3 13,4 2,2 1,7 -7,2 -4,8 -2,9 -2,4 -2,5 -5,3 -7,1 -8 -8,9 -7,7 -1,1 4 9,6 10,9 13
 
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
10.8143517.00530
20.5613334.82884e-06
30.2596872.23390.014255
40.1225031.05380.147699
50.063020.54210.294683
60.0662040.56950.285367
70.0618070.53170.29827
80.0019830.01710.493218
9-0.129708-1.11580.134061
10-0.349727-3.00850.001794
11-0.53103-4.56811e-05
12-0.611281-5.25841e-06
13-0.507901-4.36912e-05
14-0.343366-2.95370.002103
15-0.165301-1.4220.079618
16-0.092956-0.79960.213241
17-0.067377-0.57960.281973
18-0.091515-0.78720.216828
19-0.115808-0.99620.161196
20-0.095521-0.82170.206943
21-0.010107-0.08690.465474
220.1454211.2510.107445
230.3137852.69930.004303
240.3945773.39430.000554
250.3703273.18570.001057
260.2626892.25970.013391
270.1357451.16770.123333
280.0485140.41730.338822
290.0295870.25450.399901
300.0400720.34470.365645
310.0683930.58830.279049
320.032680.28110.3897
33-0.02744-0.23610.407023
34-0.153459-1.32010.095434
35-0.243152-2.09170.01995
36-0.297456-2.55880.006273
37-0.262322-2.25660.013494
38-0.156973-1.35030.090513
39-0.057184-0.49190.312117
400.0261740.22520.41124
410.0201660.17350.431376
42-0.005637-0.04850.480727
43-0.046556-0.40050.344974
44-0.025501-0.21940.413484
450.0201290.17320.431499
460.0915050.78720.216852
470.131311.12960.131153
480.1493371.28460.101461


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8143517.00530
2-0.302332-2.60080.005613
3-0.292223-2.51380.007059
40.3706443.18840.001049
5-0.025325-0.21790.414072
6-0.142569-1.22640.111964
70.0784530.67490.250928
8-0.186469-1.60410.056479
9-0.277587-2.38790.009749
10-0.327214-2.81480.003125
11-0.042595-0.36640.357551
120.0456340.39260.347888
130.1287921.10790.135745
14-0.049167-0.4230.336779
150.0450440.38750.349757
16-0.049266-0.42380.336469
170.0304240.26170.397134
180.0022060.0190.492455
19-0.167744-1.4430.076622
200.0095390.08210.46741
210.0226590.19490.422994
22-0.014627-0.12580.450105
230.2088541.79660.038237
24-0.073408-0.63150.264836
250.0215780.18560.426626
260.0416830.35860.36047
27-0.16717-1.43810.077318
28-0.016672-0.14340.443177
290.1101120.94720.173306
30-0.225628-1.94090.028038
310.0409140.3520.362935
32-0.112738-0.96980.16765
330.0886470.76260.224071
340.0409770.35250.362734
35-0.007491-0.06440.474396
360.0484940.41720.338885
370.0153480.1320.447659
380.0456320.39250.347894
39-0.027635-0.23770.406377
40-0.002907-0.0250.490057
41-0.083886-0.72160.236404
42-0.017692-0.15220.439724
430.014290.12290.451251
440.0141060.12130.451873
450.0515210.44320.329458
46-0.164374-1.4140.080777
470.0311120.26760.394861
480.0412820.35510.361753
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230048093xcrkxvjcj78l6zc/1h5hy1230048063.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230048093xcrkxvjcj78l6zc/1h5hy1230048063.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230048093xcrkxvjcj78l6zc/2jvgb1230048063.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230048093xcrkxvjcj78l6zc/2jvgb1230048063.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1.0 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1.0 ; par3 = 0 ; 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