Home » date » 2010 » Dec » 22 »

*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: Wed, 22 Dec 2010 15:49:37 +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/22/t1293032848lihbeff7r1mqmjs.htm/, Retrieved Wed, 22 Dec 2010 16:47:28 +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/22/t1293032848lihbeff7r1mqmjs.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 «
8.4 8.4 8.4 8.6 8.9 8.8 8.3 7.5 7.2 7.4 8.8 9.3 9.3 8.7 8.2 8.3 8.5 8.6 8.5 8.2 8.1 7.9 8.6 8.7 8.7 8.5 8.4 8.5 8.7 8.7 8.6 8.5 8.3 8 8.2 8.1 8.1 8 7.9 7.9 8 8 7.9 8 7.7 7.2 7.5 7.3 7 7 7 7.2 7.3 7.1 6.8 6.4 6.1 6.5 7.7 7.9 7.5 6.9 6.6 6.9 7.7 8 8 7.7 7.3 7.4 8.1 8.3 8.1 7.9 7.9 8.3 8.6 8.7 8.5 8.3 8 8.1 8.9 8.9 8.7
 
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.8474697.81330
20.5837975.38230
30.405283.73650.000169
40.4168773.84340.000117
50.5470955.0441e-06
60.6362695.86610
70.5813915.36020
80.4331243.99326.9e-05
90.31582.91150.002296
100.3020772.7850.003299
110.3585873.3060.000694
120.3844023.5440.000322
130.2731142.5180.006839
140.1299411.1980.117123
150.0408550.37670.35368
160.0323240.2980.383211
170.0603870.55670.289585
180.0489260.45110.326541
19-0.04304-0.39680.34625
20-0.160153-1.47650.071747
21-0.235159-2.16810.016475
22-0.23683-2.18350.015879
23-0.193117-1.78050.039288
24-0.166847-1.53830.06385
25-0.228921-2.11050.018875
26-0.301664-2.78120.003334
27-0.34036-3.1380.001169
28-0.327776-3.02190.001659
29-0.294399-2.71420.004021
30-0.278193-2.56480.00604
31-0.299409-2.76040.003535
32-0.336746-3.10460.001294
33-0.351756-3.2430.000845
34-0.329331-3.03630.00159
35-0.282503-2.60450.005429
36-0.251499-2.31870.011406
37-0.27813-2.56420.006049
38-0.294401-2.71420.004021
39-0.272521-2.51250.006938
40-0.217113-2.00170.024254
41-0.170605-1.57290.059729
42-0.171644-1.58250.058627
43-0.223803-2.06340.021064
44-0.276766-2.55170.006255
45-0.260634-2.40290.00922
46-0.163427-1.50670.067795
47-0.055353-0.51030.305571
48-0.017624-0.16250.435656


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8474697.81330
2-0.476964-4.39741.6e-05
30.3618213.33580.000631
40.4009983.6970.000193
50.1381261.27350.103163
6-0.048013-0.44270.32957
7-0.099891-0.92090.179842
80.0463580.42740.335083
90.0474680.43760.33138
10-0.029334-0.27040.393735
11-0.051343-0.47340.318586
12-0.099663-0.91880.180387
13-0.382931-3.53040.000336
140.2879192.65450.00474
15-0.158489-1.46120.073824
16-0.239412-2.20730.014995
170.0057830.05330.478802
18-0.042882-0.39540.346786
19-0.136411-1.25760.105982
20-0.008921-0.08230.467321
21-0.085545-0.78870.216244
220.0294330.27140.393386
230.0476250.43910.330859
240.0162260.14960.44072
25-0.050416-0.46480.321628
260.1471641.35680.08922
27-0.027822-0.25650.39909
280.0609820.56220.28772
29-0.035545-0.32770.37197
300.0488370.45030.326835
310.0745120.6870.246986
32-0.14405-1.32810.093854
330.0634180.58470.280153
340.0222630.20530.418931
35-0.097122-0.89540.186546
36-0.059802-0.55130.291421
37-0.032539-0.30.382456
380.0333290.30730.37969
390.0188250.17360.431312
40-0.078602-0.72470.235321
41-0.06768-0.6240.267155
42-0.112928-1.04110.150381
43-0.139548-1.28660.100869
44-0.016874-0.15560.43837
450.1229841.13390.130021
460.043910.40480.343309
47-0.087267-0.80460.211658
480.0122250.11270.455265
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293032848lihbeff7r1mqmjs/147xk1293032973.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293032848lihbeff7r1mqmjs/147xk1293032973.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293032848lihbeff7r1mqmjs/2xyen1293032973.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293032848lihbeff7r1mqmjs/2xyen1293032973.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293032848lihbeff7r1mqmjs/3xyen1293032973.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293032848lihbeff7r1mqmjs/3xyen1293032973.ps (open in new window)


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