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:54:33 -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/t1261050985pctgb5bdpalr5z1.htm/, Retrieved Thu, 17 Dec 2009 12:56: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/17/t1261050985pctgb5bdpalr5z1.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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.452102-3.72810.000198
2-0.029027-0.23940.405773
30.2587932.13410.018223
4-0.256732-2.11710.018957
50.0705670.58190.281276
60.1642311.35430.090064
7-0.193343-1.59430.057748
80.157631.29980.099021
9-0.029429-0.24270.404494
10-0.153065-1.26220.105593
110.2262981.86610.03317
12-0.277303-2.28670.012666
13-0.014775-0.12180.451693
140.1828081.50750.068161
15-0.058573-0.4830.315323
16-0.07262-0.59880.275634
170.1835141.51330.06742
18-0.192114-1.58420.058892
190.0298190.24590.403254
200.0845370.69710.244056
21-0.056475-0.46570.321457
220.0167650.13830.445226
230.118880.98030.165204
24-0.167055-1.37760.086426
250.0816270.67310.251579
260.0352960.29110.385948
27-0.175072-1.44370.07671
280.1951771.60950.056074
29-0.078904-0.65070.25873
300.0137320.11320.455089
310.0163490.13480.446577
32-0.00491-0.04050.483912
33-0.006636-0.05470.47826
34-0.039747-0.32780.372049
350.0242230.19970.421136
36-0.00895-0.07380.470692


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.452102-3.72810.000198
2-0.293391-2.41940.009114
30.150151.23820.109955
4-0.07723-0.63690.263178
5-0.056228-0.46370.322184
60.1323761.09160.139431
70.0132730.10950.456584
80.0981860.80970.21048
90.0163910.13520.446442
10-0.10917-0.90020.185586
110.0743530.61310.270918
12-0.223628-1.84410.034764
13-0.242874-2.00280.024594
14-0.070835-0.58410.280537
150.1861261.53480.064733
160.0029660.02450.49028
170.1062160.87590.192089
180.0389390.32110.37456
19-0.00298-0.02460.490235
20-0.005054-0.04170.48344
210.0416070.34310.366289
22-0.076571-0.63140.264942
230.1040320.85790.19699
24-0.095573-0.78810.216684
25-0.107857-0.88940.188458
260.0164180.13540.446354
27-0.002407-0.01980.492113
280.0504870.41630.339241
290.0257490.21230.416241
300.1272491.04930.148872
31-0.062149-0.51250.304983
320.0313150.25820.398504
330.1109070.91460.181826
34-0.144523-1.19180.118748
350.0163890.13510.446449
36-0.105046-0.86620.194706
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261050985pctgb5bdpalr5z1/1yhiu1261050872.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261050985pctgb5bdpalr5z1/1yhiu1261050872.ps (open in new window)


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


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