Home » date » 2009 » Dec » 02 »

*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: Wed, 02 Dec 2009 09:37:11 -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/02/t1259772035xc7k5q15flpv5qs.htm/, Retrieved Wed, 02 Dec 2009 17:40:38 +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/02/t1259772035xc7k5q15flpv5qs.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 «
1111.92 1131.13 1144.94 1113.89 1107.30 1120.68 1140.84 1101.72 1104.24 1114.58 1130.20 1173.78 1211.92 1181.27 1203.60 1180.59 1156.85 1191.50 1191.33 1234.18 1220.33 1228.81 1207.01 1249.48 1248.29 1280.08 1280.66 1302.88 1310.61 1270.05 1270.06 1278.53 1303.80 1335.83 1377.76 1400.63 1418.03 1437.90 1406.80 1420.83 1482.37 1530.63 1504.66 1455.18 1473.96 1527.29 1545.79 1479.63 1467.97 1378.60 1330.45 1326.41 1385.97 1399.62 1276.69 1269.42 1287.83 1164.17 968.67 888.61
 
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.336145-2.27980.01365
2-0.140538-0.95320.172742
3-0.165757-1.12420.133377
40.2051661.39150.085383
5-0.007431-0.05040.480012
6-0.092782-0.62930.26614
70.0420870.28540.388291
8-0.04009-0.27190.393457
90.1261550.85560.198321
10-0.182968-1.2410.110458
110.279691.89690.032062
12-0.197976-1.34270.092973
13-0.061169-0.41490.340084
140.0695830.47190.319602
150.1083560.73490.233063
16-0.010041-0.06810.473001
17-0.191227-1.2970.100556
180.0640590.43450.332991
190.0281150.19070.424804
200.0531740.36060.360009
21-0.037478-0.25420.400242
22-0.003534-0.0240.490492
230.0937610.63590.263991
24-0.205078-1.39090.085473
250.135530.91920.181391
26-0.083745-0.5680.286404
270.0771480.52320.301659
28-0.007224-0.0490.480568
290.0684460.46420.322339
30-0.137596-0.93320.177789
310.074280.50380.308406
32-0.024414-0.16560.434606
33-0.062206-0.42190.337532
340.0934660.63390.264636
35-0.110702-0.75080.228293
360.1298670.88080.191503


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.336145-2.27980.01365
2-0.285828-1.93860.029351
3-0.396027-2.6860.005013
4-0.120254-0.81560.209465
5-0.112159-0.76070.225359
6-0.196926-1.33560.094123
7-0.064357-0.43650.332263
8-0.164826-1.11790.134706
90.0043840.02970.488204
10-0.188792-1.28050.103403
110.2108761.43020.079705
12-0.002099-0.01420.494352
13-0.128129-0.8690.194676
140.0745340.50550.307806
150.0488330.33120.370999
160.1075840.72970.234646
17-0.027796-0.18850.425647
18-0.060319-0.40910.342182
19-0.04112-0.27890.390789
20-0.134435-0.91180.183318
210.0617310.41870.338699
22-0.081499-0.55280.291554
230.1456470.98780.164203
24-0.142161-0.96420.169998
25-0.015016-0.10180.459662
26-0.110857-0.75190.227979
27-0.117371-0.79610.215046
280.1390860.94330.175222
290.0836830.56760.286544
30-0.10457-0.70920.24088
310.1166840.79140.216389
32-0.10422-0.70690.24161
33-0.028343-0.19220.424203
34-0.074117-0.50270.308793
35-0.080418-0.54540.29405
36-0.064438-0.4370.332063
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259772035xc7k5q15flpv5qs/1tbt81259771830.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259772035xc7k5q15flpv5qs/1tbt81259771830.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/02/t1259772035xc7k5q15flpv5qs/2gulm1259771830.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259772035xc7k5q15flpv5qs/2gulm1259771830.ps (open in new window)


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