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:24:16 +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/t1292232266ipq6juirh74njp7.htm/, Retrieved Mon, 13 Dec 2010 10:24:27 +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/t1292232266ipq6juirh74njp7.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.287273-2.16890.01714
2-0.320895-2.42270.009303
30.155031.17040.123346
4-0.1958-1.47830.072422
50.1389741.04920.149251
60.0931860.70350.242292
70.0587790.44380.329443
8-0.022485-0.16980.432899
9-0.030256-0.22840.410065
10-0.208299-1.57260.06067
11-0.14468-1.09230.139646
120.5921164.47041.9e-05
13-0.110137-0.83150.204577
14-0.253324-1.91260.030417
150.0303430.22910.409813
16-0.087775-0.66270.255101
170.1342511.01360.157536
180.0098370.07430.470528
190.0489880.36990.356432
200.0087720.06620.473713
21-0.08351-0.63050.265447
22-0.130977-0.98890.163457
23-0.06409-0.48390.315165
240.350952.64960.005205
25-0.017664-0.13340.447188
26-0.2064-1.55830.062351
27-0.034468-0.26020.397813
280.0169430.12790.449334
290.0570570.43080.334129
300.0050330.0380.484912
310.0942780.71180.23975
32-0.108017-0.81550.209088
330.0148890.11240.455447
34-0.041255-0.31150.378289
35-0.159783-1.20630.116336
360.3477192.62520.005549
37-0.038888-0.29360.385065
38-0.205772-1.55350.062914
390.0960920.72550.235562
40-0.053985-0.40760.342554
410.0072920.05510.478144
420.0723970.54660.293399
430.0384860.29060.386219
44-0.102527-0.77410.221047
450.0395860.29890.383065
46-0.013513-0.1020.459549
47-0.122072-0.92160.180306
480.2118051.59910.057664


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.287273-2.16890.01714
2-0.439708-3.31970.000788
3-0.140531-1.0610.146586
4-0.444158-3.35330.000712
5-0.163672-1.23570.11082
6-0.210041-1.58580.059162
70.1567151.18320.120826
80.1339671.01140.158043
90.4135753.12240.001408
10-0.009764-0.07370.470748
11-0.354671-2.67770.004833
120.2046281.54490.063951
130.064680.48830.313597
140.0836190.63130.265181
15-0.267092-2.01650.024234
16-0.033948-0.25630.39932
17-0.033929-0.25620.399376
180.0056960.0430.482924
19-0.049641-0.37480.354606
20-0.065248-0.49260.312091
21-0.002843-0.02150.491474
22-0.035715-0.26960.394204
230.0128850.09730.461422
24-0.102919-0.7770.22018
25-0.041635-0.31430.377206
26-0.113998-0.86070.196514
27-0.087513-0.66070.25573
28-0.007819-0.0590.476565
29-0.109957-0.83020.204958
30-0.0092-0.06950.472435
310.0726910.54880.292642
32-0.090571-0.68380.248436
330.075130.56720.286396
340.0940810.71030.240207
35-0.018784-0.14180.443864
360.0555620.41950.338219
37-0.09201-0.69470.245044
38-0.080372-0.60680.273197
390.0473330.35740.361073
40-0.011894-0.08980.46438
41-0.107564-0.81210.210059
42-0.073611-0.55570.290278
43-0.006926-0.05230.479242
440.0010630.0080.496813
45-0.029535-0.2230.412173
46-0.051802-0.39110.348591
470.0337010.25440.400036
48-0.097107-0.73310.233238
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292232266ipq6juirh74njp7/1y8em1292232252.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292232266ipq6juirh74njp7/1y8em1292232252.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292232266ipq6juirh74njp7/2y8em1292232252.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292232266ipq6juirh74njp7/2y8em1292232252.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 = 0 ; 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