Home » date » 2009 » Nov » 21 »

WS 8 03

*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: Sat, 21 Nov 2009 04:02:54 -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/21/t1258801409dijjzasqe4z3w08.htm/, Retrieved Sat, 21 Nov 2009 12:03:31 +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/21/t1258801409dijjzasqe4z3w08.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
103.63 103.64 103.66 103.77 103.88 103.91 103.91 103.92 104.05 104.23 104.30 104.31 104.31 104.34 104.55 104.65 104.73 104.75 104.75 104.76 104.94 105.29 105.38 105.43 105.43 105.42 105.52 105.69 105.72 105.74 105.74 105.74 105.95 106.17 106.34 106.37 106.37 106.36 106.44 106.29 106.23 106.23 106.23 106.23 106.34 106.44 106.44 106.48 106.50 106.57 106.40 106.37 106.25 106.21 106.21 106.24 106.19 106.08 106.13 106.09
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.198391-1.51090.068122
2-0.149249-1.13670.13018
3-0.246446-1.87690.032784
4-0.058306-0.4440.32933
50.0266860.20320.419833
60.2434821.85430.034391
70.1497551.14050.129382
8-0.296049-2.25460.013974
9-0.086071-0.65550.25737
10-0.221537-1.68720.048471
110.3438522.61870.005622
120.0863980.6580.256576
130.1666661.26930.104703
14-0.178258-1.35760.089929
15-0.080577-0.61370.27092
16-0.173725-1.32310.095505
170.2386261.81730.037167
180.061950.47180.31942
19-0.140522-1.07020.144486
200.0192360.14650.442018
21-0.058519-0.44570.328747
220.0046220.03520.486021
230.0017260.01310.494779
240.1896841.44460.076977
25-0.13848-1.05460.147984
260.01690.12870.449018
27-0.086336-0.65750.256724
280.1427011.08680.140816
29-0.036388-0.27710.391335
30-0.020028-0.15250.43965
31-0.032624-0.24850.402328
32-0.03717-0.28310.389061
330.0360260.27440.39239
340.0415140.31620.376509
350.0923230.70310.2424
36-0.220342-1.67810.049357
370.1051550.80080.213248
38-0.02739-0.20860.417748
390.0027710.02110.491618
400.0536980.4090.34204
410.0148730.11330.455104
42-0.041643-0.31710.376136
43-0.069641-0.53040.298939
440.0559610.42620.335775
450.02660.20260.420086
460.0192410.14650.442002
47-0.032403-0.24680.402977
48-0.038611-0.29410.384883
49-0.001281-0.00980.496125
500.0360760.27470.392243
510.0062830.04780.481002
520.0038710.02950.488291
53-0.029922-0.22790.41027
540.0016860.01280.494901
550.0244040.18590.426603
56-0.011154-0.08490.466297
57-0.0017-0.01290.494857
58NANANA
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.198391-1.51090.068122
2-0.196336-1.49520.070135
3-0.347354-2.64540.005242
4-0.300582-2.28920.012864
5-0.286621-2.18280.016555
6-0.036675-0.27930.390502
70.1380761.05160.148683
8-0.213181-1.62350.054949
9-0.134343-1.02310.155248
10-0.432956-3.29730.000835
11-0.07806-0.59450.277248
12-0.162079-1.23440.111023
130.0188430.14350.443195
140.0142420.10850.457001
150.1678591.27840.103105
16-0.010935-0.08330.46696
170.3032042.30910.012259
180.0370880.28250.389301
19-0.08022-0.61090.271814
20-0.066234-0.50440.307939
210.1774651.35150.090887
220.0892470.67970.249703
230.1314831.00130.160409
240.0595040.45320.326059
250.0587720.44760.328056
26-0.088032-0.67040.252621
27-0.139625-1.06340.146014
28-0.105121-0.80060.213322
29-0.085808-0.65350.258011
30-0.090836-0.69180.245915
310.0040960.03120.48761
32-0.05717-0.43540.332445
33-0.017214-0.13110.448077
34-0.06414-0.48850.313529
35-0.025292-0.19260.423964
36-0.21234-1.61710.055638
37-0.003848-0.02930.488361
380.0025550.01950.492272
39-0.048356-0.36830.357007
400.0554570.42230.337167
41-0.065707-0.50040.309341
420.0220430.16790.433632
43-0.021016-0.16010.436698
44-0.029187-0.22230.412437
450.017490.13320.447249
46-0.06912-0.52640.300309
470.0917160.69850.243832
48-0.035292-0.26880.394528
490.0024230.01850.49267
500.0737430.56160.288273
510.0288250.21950.413506
52-0.00648-0.04940.480404
530.0584960.44550.328812
540.0236160.17990.428946
550.0331850.25270.400685
56-0.011134-0.08480.466359
57-0.015784-0.12020.452366
58NANANA
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258801409dijjzasqe4z3w08/1bo3g1258801368.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258801409dijjzasqe4z3w08/1bo3g1258801368.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/21/t1258801409dijjzasqe4z3w08/2y9f61258801368.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258801409dijjzasqe4z3w08/2y9f61258801368.ps (open in new window)


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