Home » date » 2009 » Dec » 28 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 28 Dec 2009 12:44:12 -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/28/t12620298788s6s3rqla246v5n.htm/, Retrieved Mon, 28 Dec 2009 20:51:20 +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/28/t12620298788s6s3rqla246v5n.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 «
40.22 44.23 45.85 53.38 53.26 51.8 55.3 57.81 63.96 63.77 59.15 56.12 57.42 63.52 61.71 63.01 68.18 72.03 69.75 74.41 74.33 64.24 60.03 59.44 62.5 55.04 58.34 61.92 67.65 67.68 70.3 75.26 71.44 76.36 81.71 92.6 90.6 92.23 94.09 102.79 109.65 124.05 132.69 135.81 116.07 101.42 75.73 55.48 43.8 45.29 44.01 47.48 51.07 57.84 69.04 65.61 72.87 68.41 73.25 77.43
 
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.4396973.37740.00065
20.3196162.4550.008527
30.0739290.56790.286143
40.0009360.00720.497145
5-0.171581-1.31790.09631
6-0.337756-2.59440.005968
7-0.166942-1.28230.102375
8-0.236769-1.81870.03702
9-0.143721-1.10390.13705
10-0.04786-0.36760.357237
110.0523680.40220.344478
12-0.07075-0.54340.294436
13-0.099699-0.76580.223424
14-0.033024-0.25370.400319
150.0082950.06370.474707
16-0.019728-0.15150.440037
17-0.101613-0.78050.219108
18-0.062238-0.47810.317188
19-0.069225-0.53170.298454
20-0.101402-0.77890.21958
210.0306920.23580.40722
220.0293650.22560.411162
230.1661321.27610.103464
240.0333510.25620.399352
250.2284961.75510.042216
260.1751591.34540.091819
270.1159540.89070.188365
28-0.005232-0.04020.484038
29-0.093565-0.71870.237585
30-0.027842-0.21390.415697
31-0.15734-1.20860.115828
32-0.01045-0.08030.468146
33-0.045409-0.34880.364244
340.0243310.18690.426195
350.0038560.02960.488237
360.0917370.70460.241901
370.0896250.68840.246943
380.0237980.18280.427793
39-0.027907-0.21440.415502
40-0.058102-0.44630.32851
41-0.047212-0.36260.359083
42-0.081548-0.62640.26674
43-0.081254-0.62410.267476
44-0.154535-1.1870.119991
45-0.122019-0.93720.176227
46-0.029955-0.23010.409409
47-0.061322-0.4710.319682
480.0339140.26050.397692
49-0.02028-0.15580.438373
500.0723830.5560.290163
510.0696140.53470.297429
520.0282570.2170.414462
530.0590090.45330.326012
54-0.033609-0.25820.398594
550.0285170.2190.413687
560.000230.00180.499299
570.0128760.09890.460774
580.0077540.05960.476353
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4396973.37740.00065
20.1565491.20250.116992
3-0.14416-1.10730.136327
4-0.041382-0.31790.375856
5-0.167759-1.28860.101287
6-0.267123-2.05180.022317
70.164821.2660.105244
8-0.125938-0.96740.168658
9-0.059589-0.45770.324422
100.1270460.97590.16656
11-0.029351-0.22540.411204
12-0.279387-2.1460.017998
13-0.025603-0.19670.422386
140.0096390.0740.470615
150.0070310.0540.478556
160.0221520.17020.432737
17-0.175553-1.34840.091335
18-0.142978-1.09820.138281
190.0193350.14850.441221
20-0.145532-1.11780.134081
210.122410.94030.175462
220.0178980.13750.44556
230.0928070.71290.239371
24-0.161368-1.23950.110035
250.1545081.18680.120031
26-0.054843-0.42130.337549
27-0.000605-0.00460.498155
28-0.037332-0.28680.387654
29-0.065097-0.50.309459
300.018270.14030.444438
310.0109420.0840.466652
320.0524880.40320.34414
330.0045470.03490.486127
34-0.004676-0.03590.485734
350.0362450.27840.390839
360.039480.30320.381384
37-0.025539-0.19620.422576
380.0392540.30150.38204
39-0.018934-0.14540.442433
40-0.0459-0.35260.362837
410.0146550.11260.455378
420.0031480.02420.490395
43-0.032123-0.24670.402983
44-0.149801-1.15060.12726
450.0496530.38140.352142
460.0365760.28090.389868
47-0.130363-1.00130.160376
480.016340.12550.450274
49-0.057015-0.43790.331514
50-0.016084-0.12350.451047
510.0473720.36390.358628
52-0.108516-0.83350.203955
53-0.078125-0.60010.275372
540.1054550.810.210593
55-0.048475-0.37230.355485
560.0205480.15780.437563
57-0.094877-0.72880.234515
58-0.039598-0.30420.381039
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620298788s6s3rqla246v5n/1ffot1262029449.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620298788s6s3rqla246v5n/1ffot1262029449.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t12620298788s6s3rqla246v5n/2z1u21262029449.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620298788s6s3rqla246v5n/2z1u21262029449.ps (open in new window)


 
Parameters (Session):
par1 = 12 ;
 
Parameters (R input):
par1 = 60 ; par2 = -0.6 ; 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