Home » date » 2009 » 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: Tue, 29 Dec 2009 13:07:39 -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/Dec/29/t1262117861zqvksbo9v1x10ri.htm/, Retrieved Tue, 29 Dec 2009 21:17:44 +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/Dec/29/t1262117861zqvksbo9v1x10ri.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 «
100.44 100.51 101.00 100.88 100.55 100.83 101.51 102.16 102.39 102.54 102.85 103.47 103.57 103.69 103.50 103.47 103.45 103.48 103.93 103.89 104.40 104.79 104.77 105.13 105.26 104.96 104.75 105.01 105.15 105.20 105.77 105.78 106.26 106.13 106.12 106.57 106.44 106.54 107.10 108.10 108.40 108.84 109.62 110.42 110.67 111.66 112.28 112.87 112.18 112.36 112.16 111.49 111.25 111.36 111.74 111.10 111.33 111.25 111.04 110.97 111.31 111.02 111.07 111.36
 
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
10.2334491.85290.034288
20.1569811.2460.108689
30.2125171.68680.048294
40.2184691.7340.0439
5-0.082965-0.65850.256305
6-0.11399-0.90480.184517
70.0944670.74980.228081
8-0.110366-0.8760.192179
9-0.136758-1.08550.140921
10-0.084374-0.66970.252749
110.0307310.24390.404043
12-0.146362-1.16170.124867
13-0.207638-1.64810.052158
14-0.114794-0.91120.182844
15-0.00995-0.0790.468652
16-0.268433-2.13060.018515
17-0.096148-0.76320.22411
18-0.100897-0.80080.213116
19-0.073202-0.5810.281649
20-0.184349-1.46320.074189
210.0225830.17930.429158
220.0813260.64550.260472
23-0.04539-0.36030.359925
240.0595410.47260.319067
250.0440730.34980.36382
260.0173620.13780.445415
27-0.041575-0.330.37125
28-0.03962-0.31450.377101
29-0.009485-0.07530.470114
30-0.021177-0.16810.433528
31-0.05313-0.42170.337338
320.0965950.76670.223062
330.1520331.20670.116025
340.068240.54160.294988
350.0378980.30080.382275
360.1936751.53720.06462
370.0324570.25760.398769
38-0.000231-0.00180.499273
390.0391550.31080.378497
400.0087150.06920.472537
41-0.078744-0.6250.26711
42-0.080644-0.64010.262218
43-0.014623-0.11610.453983
44-0.047716-0.37870.353079
45-0.022356-0.17740.429865
46-0.053393-0.42380.33658
470.0676930.53730.296478
48-0.008441-0.0670.473398
49-0.047679-0.37840.353187
50-0.059579-0.47290.31896
51-0.009227-0.07320.470926
523.8e-053e-040.49988
53-0.030673-0.24350.40422
540.0232440.18450.427111
55-0.014183-0.11260.455362
56-0.019336-0.15350.439256
570.0227330.18040.428695
580.0339940.26980.394091
59-0.021985-0.17450.431016
60-0.002994-0.02380.490557


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2334491.85290.034288
20.108390.86030.196438
30.1653891.31270.097017
40.1406451.11630.134258
5-0.210522-1.6710.049845
6-0.151169-1.19990.117342
70.1301191.03280.152826
8-0.118709-0.94220.17484
9-0.025248-0.20040.420907
10-0.030651-0.24330.404287
110.0342540.27190.393302
12-0.079764-0.63310.264478
13-0.156941-1.24570.108747
14-0.101421-0.8050.211922
150.1006890.79920.213591
16-0.208369-1.65390.051563
170.0644820.51180.305287
18-0.144049-1.14340.12861
19-0.020968-0.16640.434178
20-0.080454-0.63860.262704
210.0679120.5390.29588
220.0152210.12080.452111
23-0.001073-0.00850.496616
24-0.00325-0.02580.489751
25-0.055278-0.43880.331169
26-0.148711-1.18040.121148
270.0290990.2310.409044
28-0.153693-1.21990.113524
290.0025430.02020.491981
30-0.023779-0.18870.425452
31-0.045391-0.36030.359923
320.0655190.520.30243
330.1403031.11360.134836
34-0.094586-0.75070.227799
350.0462970.36750.357251
360.011480.09110.463844
37-0.065158-0.51720.303423
380.0146560.11630.45388
39-0.025874-0.20540.418974
40-0.066048-0.52420.300975
41-0.018138-0.1440.442995
42-0.070275-0.55780.289482
43-0.024722-0.19620.422534
44-0.024274-0.19270.423918
450.0605040.48020.316362
46-0.060104-0.47710.317484
470.0978960.7770.220025
48-0.055058-0.4370.3318
49-0.01827-0.1450.442583
50-0.062251-0.49410.311476
51-0.010741-0.08530.466165
520.119370.94750.17351
530.0404190.32080.374707
54-0.066188-0.52540.300592
55-0.058473-0.46410.322083
56-0.08289-0.65790.256493
570.0039290.03120.48761
580.0105350.08360.466812
59-0.033255-0.2640.39634
60-0.025804-0.20480.419188
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/29/t1262117861zqvksbo9v1x10ri/1x1be1262117257.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/29/t1262117861zqvksbo9v1x10ri/1x1be1262117257.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/29/t1262117861zqvksbo9v1x10ri/2zdqn1262117257.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/29/t1262117861zqvksbo9v1x10ri/2zdqn1262117257.ps (open in new window)


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