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 08:57:43 -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/t1259769520vxx5fvvoblt1e97.htm/, Retrieved Wed, 02 Dec 2009 16:58:42 +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/t1259769520vxx5fvvoblt1e97.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 time0 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.3584852.75360.003912
2-0.046457-0.35680.361241
30.0235510.18090.428535
40.2302851.76890.041044
50.0890810.68420.248249
6-0.027396-0.21040.417027
70.1286860.98850.163484
80.1620831.2450.10903
90.1114560.85610.197701
100.0529910.4070.342729
110.1860861.42940.079088
120.01710.13140.447973
13-0.102763-0.78930.216538
14-0.077008-0.59150.27822
150.0508670.39070.348708
160.0413670.31770.375899
17-0.120113-0.92260.179985
18-0.125683-0.96540.169146
19-0.047131-0.3620.359315
200.0077490.05950.476368
21-0.009627-0.07390.470653
22-0.033753-0.25930.398168
23-0.080025-0.61470.270563
24-0.162654-1.24940.108232
25-0.051251-0.39370.347624
26-0.08419-0.64670.260174
27-0.030413-0.23360.40805
280.0299070.22970.409553
290.0656110.5040.308079
30-0.047434-0.36430.35845
31-0.081833-0.62860.266029
32-0.069424-0.53330.297931
33-0.046084-0.3540.36231
340.0059320.04560.481905
35-0.049754-0.38220.351854
36-0.01794-0.13780.445434


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3584852.75360.003912
2-0.20077-1.54210.064193
30.1381241.0610.146517
40.1924531.47830.072329
5-0.09118-0.70040.243226
60.0289340.22220.412446
70.1689841.2980.099671
8-0.019206-0.14750.44161
90.0977860.75110.227785
100.0288490.22160.412698
110.1442021.10760.136257
12-0.186157-1.42990.07901
13-0.026584-0.20420.419452
14-0.058238-0.44730.328135
15-0.010432-0.08010.468204
160.0042270.03250.487105
17-0.124896-0.95930.170649
18-0.085102-0.65370.257927
19-0.021282-0.16350.435353
20-0.011567-0.08890.46475
210.0811120.6230.267831
22-0.038151-0.2930.385258
23-0.022504-0.17290.431677
24-0.126265-0.96990.168037
250.110280.84710.200189
26-0.154283-1.18510.12037
270.129850.99740.161323
280.1177650.90460.184687
290.0231580.17790.429712
30-0.09203-0.70690.241208
310.0167340.12850.44908
32-0.139897-1.07460.143472
330.0721150.55390.29086
340.0565380.43430.332837
35-0.038267-0.29390.384918
36-0.092055-0.70710.241149
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259769520vxx5fvvoblt1e97/17kz61259769460.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259769520vxx5fvvoblt1e97/17kz61259769460.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/02/t1259769520vxx5fvvoblt1e97/274ix1259769460.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259769520vxx5fvvoblt1e97/274ix1259769460.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