Home » date » 2009 » Nov » 24 »

Workshop 8

*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, 24 Nov 2009 04:56:57 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Nov/24/t1259063890vmdj86yp8d9hzpi.htm/, Retrieved Tue, 24 Nov 2009 12:58:15 +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/2009/Nov/24/t1259063890vmdj86yp8d9hzpi.htm/},
    year = {2009},
}
@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 = {2009},
    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:
JSSHWWS8P4
 
Dataseries X:
» Textbox « » Textfile « » CSV «
11.1 10.9 10 9.2 9.2 9.5 9.6 9.5 9.1 8.9 9 10.1 10.3 10.2 9.6 9.2 9.3 9.4 9.4 9.2 9 9 9 9.8 10 9.8 9.3 9 9 9.1 9.1 9.1 9.2 8.8 8.3 8.4 8.1 7.7 7.9 7.9 8 7.9 7.6 7.1 6.8 6.5 6.9 8.2 8.7 8.3 7.9 7.5 7.8 8.3 8.4 8.2 7.7 7.2 7.3 8.1
 
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.6087774.17366.4e-05
2-0.003587-0.02460.490244
3-0.493888-3.38590.000721
4-0.560965-3.84580.00018
5-0.255966-1.75480.042904
60.1684231.15470.127035
70.3966752.71950.004567
80.3987792.73390.004398
90.1710651.17280.1234
10-0.144548-0.9910.163388
11-0.377808-2.59010.006368
12-0.44042-3.01940.002043
13-0.279159-1.91380.030872
140.0209480.14360.44321
150.1937861.32850.095209
160.2114791.44980.076874
170.1021580.70040.243577
18-0.084308-0.5780.283016
19-0.184611-1.26560.105942
20-0.157104-1.07710.143477
21-0.081126-0.55620.290367
220.0288750.1980.421967
230.0644880.44210.330219
240.0504350.34580.365532
250.0526240.36080.359944
260.0730470.50080.30943
270.0206760.14170.443942
28-0.044069-0.30210.381947
29-0.117632-0.80640.212024
30-0.110237-0.75570.226786
310.0184240.12630.450013
320.1163350.79760.214571
330.144780.99260.163003
340.0732080.50190.309045
35-0.028915-0.19820.421859
36-0.054091-0.37080.356214
37-0.023968-0.16430.435093
380.0147180.10090.46003
390.0490510.33630.369079
400.0524920.35990.36028
410.0186960.12820.449278
42-0.004801-0.03290.48694
43-0.032708-0.22420.411772
44-0.040959-0.28080.390048
45-0.02321-0.15910.437129
46-0.005859-0.04020.484066
47NANANA
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.6087774.17366.4e-05
2-0.594538-4.07598.8e-05
3-0.315703-2.16440.017775
40.0461810.31660.376473
50.072150.49460.311582
60.0656530.45010.327356
7-0.031486-0.21590.415017
80.1935241.32670.095503
90.0010180.0070.49723
10-0.129694-0.88910.18923
11-0.116281-0.79720.214677
12-0.189568-1.29960.100037
13-0.064971-0.44540.32903
14-0.035155-0.2410.405297
15-0.271571-1.86180.034445
16-0.018487-0.12670.449845
170.0779020.53410.297906
18-0.102103-0.70.243694
190.0324770.22270.412386
200.0676310.46370.322519
21-0.059969-0.41110.341425
22-0.038034-0.26070.397714
23-0.184214-1.26290.106426
24-0.077055-0.52830.299901
250.0165880.11370.454971
260.0142570.09770.461277
27-0.234134-1.60510.057581
28-0.090359-0.61950.2693
290.0275970.18920.425376
30-0.050653-0.34730.364974
310.0347230.23810.406438
32-0.090346-0.61940.269328
330.0034750.02380.490548
34-0.073448-0.50350.30847
35-0.038722-0.26550.395907
360.0212240.14550.442467
37-0.041397-0.28380.388903
380.0375920.25770.398874
39-0.067314-0.46150.323292
40-0.085165-0.58390.281053
41-0.022311-0.1530.439543
42-0.052657-0.3610.359858
43-0.068989-0.4730.319214
44-0.02256-0.15470.438875
45-0.084182-0.57710.283307
46-0.050657-0.34730.364962
47NANANA
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/24/t1259063890vmdj86yp8d9hzpi/11o1k1259063815.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t1259063890vmdj86yp8d9hzpi/11o1k1259063815.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/24/t1259063890vmdj86yp8d9hzpi/2ff341259063815.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t1259063890vmdj86yp8d9hzpi/2ff341259063815.ps (open in new window)


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