Home » date » 2010 » Dec » 29 »

*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, 29 Dec 2010 13:04:46 +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/29/t1293627752xagwuxncl4ag5pn.htm/, Retrieved Wed, 29 Dec 2010 14:02:35 +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/29/t1293627752xagwuxncl4ag5pn.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 «
01.303763 01.416094 01.052458 01.312283 01.309429 01.492409 01.026556 01.005406 01.334886 01.393873 01.128092 01.122787 01.213104 01.253528 01.094796 00.912944 01.195130 00.927499 00.965333 01.198078 00.966362 00.973685 00.994801 00.826262 00.688888 00.781307 00.604791 01.086240 00.774026 01.026032 00.676435 00.830525 00.791624 00.752391 00.670202 00.880336 00.914297 00.961042 00.930194 00.867966 00.989160 00.997288 00.798744 00.975379 00.934721 00.973234 00.815300 00.940209 00.794493 00.931340 00.922050 00.784517 00.822098 00.891026 00.807306 00.951441 01.147907 01.172609 01.281051 01.165962 00.978911 01.410951 01.197838 01.288368 01.102253 01.197657 01.299984 01.198611 01.299252 01.097604 01.399770 01.398396 01.401880 01.699717 01.397610 01.500135 01.400136 01.400427 01.341477 01.338580 01.482977 01.163253 01.328468 01.234550 01.484741 01.336579 01.339292 01.405225 01.333491 01.149740
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.5407934.77624e-06
20.5730575.06111e-06
30.4770424.21313.4e-05
40.4491833.96718e-05
50.425363.75670.000165
60.3160042.79090.003303
70.3210212.83520.002915
80.3585743.16680.0011
90.3043442.68790.004393
100.1647351.45490.074854
110.1898181.67640.048829
12-0.028712-0.25360.400244
130.1417431.25180.107185
140.0794850.7020.242388
150.0662330.5850.280133
160.1067190.94250.174419
170.0557750.49260.311842
180.1044710.92270.179514
190.0201250.17770.429695
20-0.022-0.19430.423222
21-0.013719-0.12120.451937
22-0.048421-0.42760.335044
23-0.071695-0.63320.264231
24-0.090752-0.80150.212638
25-0.102974-0.90940.182958
26-0.052378-0.46260.322473
27-0.077695-0.68620.247317
28-0.071909-0.63510.263615
29-0.068659-0.60640.273011
30-0.084151-0.74320.229795
31-0.090565-0.79980.213114
32-0.137618-1.21540.113939
33-0.179732-1.58740.058239
34-0.095989-0.84770.199586
35-0.127458-1.12570.131876
36-0.113096-0.99880.160481


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5407934.77624e-06
20.3965843.50250.000383
30.126741.11930.133215
40.077360.68320.248245
50.0809140.71460.238489
6-0.088618-0.78270.218099
70.014570.12870.448972
80.165341.46020.07412
90.0151150.13350.447075
10-0.240961-2.12810.018243
11-0.003232-0.02850.48865
12-0.313084-2.76510.00355
130.1864471.64670.051826
140.1910051.68690.047808
150.004850.04280.482973
160.02910.2570.398926
17-0.042542-0.37570.354071
18-0.006043-0.05340.478787
19-0.042245-0.37310.355043
200.003740.0330.486868
210.0024570.02170.491371
22-0.216311-1.91040.029878
23-0.035695-0.31520.376707
24-0.163209-1.44140.076734
250.0782990.69150.245646
260.233112.05880.021427
270.0248980.21990.413263
280.0914320.80750.210915
29-0.067799-0.59880.275526
30-0.043982-0.38840.349376
31-0.059818-0.52830.299396
32-0.125876-1.11170.13484
33-0.102633-0.90640.18375
34-0.04572-0.40380.343737
35-0.001349-0.01190.495261
36-0.052292-0.46180.322745
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293627752xagwuxncl4ag5pn/1bq1w1293627884.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293627752xagwuxncl4ag5pn/1bq1w1293627884.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293627752xagwuxncl4ag5pn/2mh0z1293627884.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293627752xagwuxncl4ag5pn/2mh0z1293627884.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293627752xagwuxncl4ag5pn/3mh0z1293627884.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293627752xagwuxncl4ag5pn/3mh0z1293627884.ps (open in new window)


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