Home » date » 2010 » Dec » 28 »

*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, 28 Dec 2010 08:26:55 +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/28/t1293525058lqjlhrptg8tf0jp.htm/, Retrieved Tue, 28 Dec 2010 09:30:58 +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/28/t1293525058lqjlhrptg8tf0jp.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.194 36.943 45.062 35.062 47.177 38.064 47.663 35.483 46.228 36.255 45.134 33.472 44.720 35.487 41.753 33.142 41.744 33.462 42.743 31.518 39.946 31.647 39.603 31.372 42.638 29.654 38.626 29.534 36.721 30.310 37.285 28.979 35.801 28.451 36.125 28.141 34.333 27.082 34.356 27.975 33.537 26.218 33.191 25.219 32.272 24.838 31.723 24.753 30.393 24.346 30.192 23.387 28.385 23.000 28.581 22.512
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.1908241.4280.079423
20.9132846.83440
30.1446591.08250.141828
40.849676.35840
50.1025070.76710.223124
60.7693595.75740
70.0427540.31990.375101
80.6862285.13532e-06
9-0.005446-0.04080.48382
100.6017644.50321.7e-05
11-0.054399-0.40710.34275
120.5318263.97981e-04
13-0.098909-0.74020.231146
140.4504563.37090.000682
15-0.144517-1.08150.142062
160.3894372.91430.002558
17-0.178253-1.33390.093815
180.3320682.4850.007985
19-0.220989-1.65370.051889
200.2593131.94050.028678
21-0.253877-1.89980.031304
220.203171.52040.06702
23-0.280446-2.09870.020184
240.1483291.110.135873
25-0.312758-2.34050.011424
260.0823950.61660.270003
27-0.331511-2.48080.00807
280.0325280.24340.404287
29-0.350678-2.62420.005586
30-0.006799-0.05090.4798
31-0.373628-2.7960.003538
32-0.043812-0.32790.372121
33-0.365102-2.73220.004201
34-0.072714-0.54410.294252
35-0.373951-2.79840.003515
36-0.106962-0.80040.213422
37-0.378962-2.83590.003174
38-0.125742-0.9410.175381
39-0.365233-2.73320.00419
40-0.142348-1.06520.145671
41-0.358693-2.68420.004772
42-0.156149-1.16850.123775
43-0.34315-2.56790.006464
44-0.151052-1.13040.131569
45-0.311808-2.33340.011623
46-0.150413-1.12560.132571
47-0.27274-2.0410.022987
48-0.131477-0.98390.164703


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1908241.4280.079423
20.9100076.80990
3-0.269733-2.01850.024169
40.181181.35580.090298
5-0.102864-0.76980.222337
6-0.091403-0.6840.248398
7-0.089882-0.67260.251978
8-0.037271-0.27890.390671
90.0251110.18790.425813
10-0.089675-0.67110.252468
110.0246930.18480.427033
120.0319210.23890.406038
13-0.054351-0.40670.34288
14-0.095452-0.71430.239004
150.003620.02710.489243
160.0463190.34660.365087
17-0.03398-0.25430.400105
180.0071040.05320.478897
19-0.082687-0.61880.269288
20-0.126791-0.94880.173395
210.0441390.33030.371202
22-0.020236-0.15140.440089
230.0119910.08970.464409
24-0.039224-0.29350.385104
25-0.05852-0.43790.331562
26-0.110299-0.82540.206324
270.0647380.48450.314977
28-0.036005-0.26940.394292
29-0.043186-0.32320.373882
300.0547450.40970.341803
31-0.115661-0.86550.195221
320.0328420.24580.40338
330.117110.87640.192286
34-0.132067-0.98830.163629
35-0.076351-0.57140.285023
36-0.050079-0.37480.354629
37-0.01589-0.11890.452886
380.0378190.2830.389105
390.0425210.31820.375759
40-0.061776-0.46230.322832
41-0.054018-0.40420.34379
42-0.017703-0.13250.447541
430.0310310.23220.40861
440.0953470.71350.239247
45-0.032831-0.24570.403412
46-0.082692-0.61880.269275
470.1448511.0840.141513
48-0.003925-0.02940.488336
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293525058lqjlhrptg8tf0jp/1507s1293524811.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293525058lqjlhrptg8tf0jp/1507s1293524811.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293525058lqjlhrptg8tf0jp/2g9pv1293524811.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293525058lqjlhrptg8tf0jp/2g9pv1293524811.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293525058lqjlhrptg8tf0jp/3g9pv1293524811.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293525058lqjlhrptg8tf0jp/3g9pv1293524811.ps (open in new window)


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