Home » date » 2010 » Dec » 13 »

*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: Mon, 13 Dec 2010 09:29: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/13/t1292232567n30m4m8eoqkim84.htm/, Retrieved Mon, 13 Dec 2010 10:29:33 +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/13/t1292232567n30m4m8eoqkim84.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 «
113 95.4 86.2 111.7 97.5 99.7 111.5 91.8 86.3 88.7 95.1 105.1 104.5 89.1 82.6 102.7 91.8 94.1 103.1 93.2 91 94.3 99.4 115.7 116.8 99.8 96 115.9 109.1 117.3 109.8 112.8 110.7 100 113.3 122.4 112.5 104.2 92.5 117.2 109.3 106.1 118.8 105.3 106 102 112.9 116.5 114.8 100.5 85.4 114.6 109.9 100.7 115.5 100.7 99 102.3
 
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
1-0.537399-3.6050.000389
2-0.065879-0.44190.330328
30.487263.26860.001037
4-0.393598-2.64030.005672
50.1343590.90130.186111
60.1512761.01480.157815
7-0.250365-1.67950.049993
80.2508791.68290.049656
9-0.172456-1.15690.126715
10-0.00596-0.040.484143
110.1518481.01860.156912
12-0.221881-1.48840.071808
130.1034540.6940.245627
14-0.025049-0.1680.433656
150.0147320.09880.460858
16-0.102356-0.68660.247921
170.0513890.34470.365952
18-0.00304-0.02040.491909
19-0.062619-0.42010.33822
200.0912320.6120.271807
21-0.040771-0.27350.392859
22-0.113742-0.7630.224721
230.1744951.17050.123972
24-0.176402-1.18330.121444
250.0407980.27370.392792
260.1045930.70160.243261
27-0.170814-1.14590.128956
280.0751120.50390.308407
290.0409510.27470.3924
30-0.084967-0.570.285765
310.0237080.1590.437176
320.03760.25220.401006
33-0.035853-0.24050.405514
340.0062450.04190.483383
350.0217890.14620.442223
36-0.023922-0.16050.436614
37-0.01265-0.08490.466375
380.0541420.36320.359079
39-0.018672-0.12530.45044
40-0.003267-0.02190.491307
410.0149330.10020.460326
42-0.020067-0.13460.446759
430.005130.03440.486351
440.0058020.03890.484562
45NANANA
46NANANA
47NANANA
48NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.537399-3.6050.000389
2-0.498701-3.34540.000833
30.3110452.08660.021313
40.1534591.02940.154389
50.1517811.01820.157018
60.0518810.3480.364721
7-0.063954-0.4290.334979
80.1153470.77380.221556
9-0.148512-0.99630.162227
10-0.107442-0.72070.237399
11-0.064197-0.43060.334391
12-0.047621-0.31950.37543
13-0.042952-0.28810.387284
14-0.171466-1.15020.128063
150.1923471.29030.101768
16-0.128058-0.8590.197435
17-0.018545-0.12440.450774
18-0.153394-1.0290.154491
190.0210560.14120.444152
200.1862291.24930.109014
210.0525060.35220.363158
22-0.135833-0.91120.183523
23-0.145349-0.9750.167379
24-0.12254-0.8220.207699
25-0.079952-0.53630.297185
26-0.025374-0.17020.432804
270.0866230.58110.28204
28-0.071425-0.47910.317083
290.0147350.09880.460849
300.0095780.06430.474527
31-0.032779-0.21990.413475
320.0098410.0660.473828
33-0.019201-0.12880.449044
34-0.054269-0.3640.358765
35-0.013933-0.09350.462975
36-0.013169-0.08830.464999
37-0.032902-0.22070.413157
38-0.071405-0.4790.31713
390.07360.49370.311951
40-0.055383-0.37150.355997
41-0.010835-0.07270.471189
42-0.003186-0.02140.491522
43-0.045361-0.30430.381155
44-0.031052-0.20830.417966
45NANANA
46NANANA
47NANANA
48NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292232567n30m4m8eoqkim84/1hczw1292232541.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292232567n30m4m8eoqkim84/1hczw1292232541.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292232567n30m4m8eoqkim84/2hczw1292232541.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292232567n30m4m8eoqkim84/2hczw1292232541.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; 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 (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='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
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