Home » date » 2009 » Dec » 17 »

*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: Thu, 17 Dec 2009 04:49:21 -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/17/t1261050633eu0ed8n7yohpf92.htm/, Retrieved Thu, 17 Dec 2009 12:50: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/17/t1261050633eu0ed8n7yohpf92.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 «
1322.4 1089.2 1147.3 1196.4 1190.2 1146 1139.8 1045.6 1050.9 1117.3 1120 1052.1 1065.8 1092.5 1422 1367.5 1136.3 1293.7 1154.8 1206.7 1199 1265 1247.1 1116.5 1153.9 1077.4 1132.5 1058.8 1195.1 1263.4 1023.1 1141 1116.3 1135.6 1210.5 1230 1136.5 1068.7 1372.5 1049.9 1302.2 1305.9 1173.5 1277.4 1238.6 1508.6 1423.4 1375.1 1344.1 1287.5 1446.9 1451 1604.4 1501.5 1522.8 1328 1420.5 1648 1631.1 1396.6 1663.4 1283 1582.4 1785.2 1853.6 1994.1 2042.8 1586.1 1942.4 1763.6 1819.9 1836 1449.9 1513.3 1677.7 1494.4 1375.3 1577.7 1537.7 1356.6 1469.6
 
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
1-0.43863-3.92329.2e-05
2-0.029948-0.26790.394748
30.128641.15060.126663
4-0.207954-1.860.033281
50.0714450.6390.262317
60.1604031.43470.077637
7-0.072526-0.64870.259197
80.0147440.13190.447708
9-0.041708-0.3730.355051
10-0.135657-1.21340.114282
110.0150950.1350.446469
120.2243912.0070.024063
13-0.22195-1.98520.025276
140.1909651.7080.045753
15-0.13401-1.19860.117107
16-0.094402-0.84440.200494
170.1456971.30310.098131
18-0.042458-0.37980.352568
190.0338340.30260.381482
200.0502080.44910.327295
21-0.064204-0.57430.283703
22-0.070922-0.63430.263834
230.0517280.46270.322428
240.0314410.28120.389635
250.0265310.23730.406515
260.0551080.49290.311717
27-0.218817-1.95720.026908
280.1446581.29390.099719
29-0.085311-0.7630.223839
300.0350710.31370.377288
310.0820870.73420.232483
32-0.056136-0.50210.308489
330.0008530.00760.496966
34-0.061025-0.54580.293352
35-0.026632-0.23820.406167
360.0659490.58990.278473


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.43863-3.92329.2e-05
2-0.275313-2.46250.007973
3-0.011888-0.10630.457795
4-0.199966-1.78850.038737
5-0.131161-1.17310.122111
60.1205271.0780.142131
70.1336261.19520.117773
80.0781550.6990.243278
9-0.021583-0.1930.423707
10-0.171245-1.53170.064775
11-0.227197-2.03210.02273
120.1040360.93050.177449
13-0.099796-0.89260.187374
140.0924530.82690.20537
15-0.038066-0.34050.367198
16-0.036647-0.32780.371966
170.0201760.18050.428623
18-0.008232-0.07360.470744
190.00960.08590.465893
20-0.002892-0.02590.489713
210.0559770.50070.308988
22-0.040262-0.36010.359856
23-0.031932-0.28560.38796
24-0.015838-0.14170.443851
250.0860890.770.221782
260.0479840.42920.334472
27-0.153509-1.3730.08679
280.0116050.10380.458796
29-0.079066-0.70720.240752
300.0367890.3290.371489
31-0.021943-0.19630.42245
320.0089790.08030.468096
330.0455910.40780.342264
34-0.018373-0.16430.434942
35-0.073366-0.65620.256789
36-0.066683-0.59640.276284
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261050633eu0ed8n7yohpf92/1ogdp1261050559.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261050633eu0ed8n7yohpf92/1ogdp1261050559.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/17/t1261050633eu0ed8n7yohpf92/2ltzj1261050559.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261050633eu0ed8n7yohpf92/2ltzj1261050559.ps (open in new window)


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