Home » date » 2009 » Dec » 08 »

*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, 08 Dec 2009 10:32:48 -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/08/t1260293665ugx6624h6uz2xtf.htm/, Retrieved Tue, 08 Dec 2009 18:34: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/2009/Dec/08/t1260293665ugx6624h6uz2xtf.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 «
87.28 87.09 86.92 87.59 90.72 90.69 90.3 89.55 88.94 88.41 87.82 87.07 86.82 86.4 86.02 85.66 85.32 85 84.67 83.94 82.83 81.95 81.19 80.48 78.86 69.47 68.77 70.06 73.95 75.8 77.79 81.57 83.07 84.34 85.1 85.25 84.26 83.63 86.44 85.3 84.1 83.36 82.48 81.58 80.47 79.34 82.13 81.69 80.7 79.88 79.16 78.38 77.42 76.47 75.46 74.48 78.27 80.7 79.91 78.75 77.78 81.14 81.08 80.03 78.91 78.01 76.9 75.97 81.93 80.27 78.67 77.42 76.16 74.7 76.39 76.04 74.65 73.29 71.79 74.39 74.91 74.54 73.08 72.75 71.32 70.38 70.35 70.01 69.36 67.77 69.26 69.8 68.38 67.62 68.39 66.95 65.21 66.64 63.45 60.66 62.34 60.32 58.64 60.46 58.59 61.87 61.85 67.44 77.06 91.74 93.15 94.15 93.11 91.51 89.96 88.16 86.98 88.03 86.24 84.65 83.23 81.7 80.25 78.8 77.51 76.2 75.04 74 75.49 77.14 76.15 76.27 78.19 76.49 77.31 76.65 74.99 73.51 72.07 70.59 71.96 76.29 74.86 74.93 71.9 71.01 77.47 75.78 76.6 76. etc...
 
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.1201812.27390.011781
2-0.01047-0.19810.421537
30.0725011.37180.085496
4-0.214934-4.06672.9e-05
5-0.160308-3.03320.001298
60.0435680.82430.205146
70.0771511.45980.072616
80.0190170.35980.359595
90.0370140.70030.242086
100.0471790.89270.186317
110.0364050.68880.245696
12-0.084928-1.60690.054478
13-0.004423-0.08370.466676
14-0.049981-0.94570.172476
15-0.085608-1.61980.05308
16-0.029284-0.55410.289936
17-0.013512-0.25570.399179
18-0.049324-0.93320.175661
19-0.124429-2.35430.009548
20-0.007686-0.14540.442225
210.0088890.16820.433267
220.0597371.13030.129559
230.0495450.93740.174584
240.0807771.52840.063653
25-0.011023-0.20860.417456
26-0.03657-0.69190.24471
27-0.032254-0.61030.271032
28-0.066908-1.2660.103177
290.0147250.27860.390353
300.1495432.82950.002462
310.082781.56630.059084
320.0031790.06010.476037
330.1479082.79850.002706
34-0.069774-1.32020.093808
35-0.051901-0.9820.163377
360.0764881.44720.074356
37-0.002989-0.05650.477469
380.026250.49670.309865
39-0.003792-0.07170.471422
40-0.041201-0.77960.218082
41-0.039275-0.74310.228949
42-0.029664-0.56130.287481
430.0185940.35180.362589
44-0.081008-1.53280.06311
45-0.037842-0.7160.237229
46-0.001805-0.03410.48639
470.0221640.41940.337604
48-0.055181-1.04410.148576
49-0.023893-0.45210.325747
500.020710.39190.347701
51-0.044276-0.83770.201367
52-0.037604-0.71150.238618
53-0.022911-0.43350.332455
54-0.038207-0.72290.235103
55-0.078554-1.48630.069038
56-0.025122-0.47530.317419
570.0044290.08380.466633
58-0.00338-0.0640.474521
59-0.010997-0.20810.417648
600.0432390.81810.206919


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1201812.27390.011781
2-0.025279-0.47830.316365
30.0780041.47590.070423
4-0.238781-4.51794e-06
5-0.104469-1.97660.024425
60.0640431.21180.113203
70.1065182.01540.022304
8-0.027529-0.52090.301389
9-0.033929-0.6420.260651
100.037050.7010.241871
110.0912181.72590.042612
12-0.087668-1.65880.04902
13-0.004979-0.09420.462499
14-0.058711-1.11090.133685
15-0.018115-0.34270.365994
16-0.046404-0.8780.190265
17-0.033658-0.63680.262318
18-0.063666-1.20460.114572
19-0.142947-2.70470.003582
20-0.001338-0.02530.489911
210.0171560.32460.372833
220.0808561.52990.063466
23-0.025857-0.48920.312487
240.0487330.92210.178554
250.0012780.02420.49036
260.0282230.5340.296838
27-0.03096-0.58580.279192
28-0.047034-0.88990.187051
290.0335130.63410.263211
300.1624653.0740.001137
310.0121220.22940.409357
32-0.067512-1.27740.101145
330.1105132.0910.018616
34-0.042407-0.80240.211432
350.0218550.41350.339739
360.0482720.91330.180838
370.0199940.37830.352715
380.0337350.63830.261842
39-0.055107-1.04270.148902
40-0.041262-0.78070.217745
410.0029160.05520.478019
420.0005190.00980.496086
430.0255840.48410.314318
44-0.145846-2.75950.003043
450.0222130.42030.337263
46-0.026074-0.49330.311039
470.0675431.2780.101043
48-0.0904-1.71040.044025
49-0.002916-0.05520.478015
500.064941.22870.109991
510.0036530.06910.472465
52-0.030005-0.56770.285288
53-0.097911-1.85260.032384
54-0.036613-0.69280.244455
55-0.057534-1.08860.138533
56-0.028766-0.54430.293297
57-0.023137-0.43780.330906
58-0.029666-0.56130.287471
59-0.069204-1.30940.095618
60-0.01408-0.26640.395042
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/08/t1260293665ugx6624h6uz2xtf/16b7b1260293566.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/08/t1260293665ugx6624h6uz2xtf/16b7b1260293566.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/08/t1260293665ugx6624h6uz2xtf/2jsje1260293566.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/08/t1260293665ugx6624h6uz2xtf/2jsje1260293566.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