Home » date » 2010 » May » 03 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 03 May 2010 15:07:45 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/May/03/t1272899338pkxf7948haoebhb.htm/, Retrieved Mon, 03 May 2010 17:09:00 +0200
 
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/2010/May/03/t1272899338pkxf7948haoebhb.htm/},
    year = {2010},
}
@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 = {2010},
    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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
93.2 96 95.2 77.1 70.9 64.8 70.1 77.3 79.5 100.6 100.7 107.1 95.9 82.8 83.3 80 80.4 67.5 75.7 71.1 89.3 101.1 105.2 114.1 96.3 84.4 91.2 81.9 80.5 70.4 74.8 75.9 86.3 98.7 100.9 113.8 89.8 84.4 87.2 85.6 72 69.2 77.5 78.1 94.3 97.7 100.2 116.4 97.1 93 96 80.5 76.1 69.9 73.6 92.6 94.2 93.5 108.5 109.4 105.1 92.5 97.1 81.4 79.1 72.1 78.7 87.1 91.4 109.9 116.3 113 100 84.8 94.3 87.1 90.3 72.4 84.9 92.7 92.2 114.9 112.5 118.3 106 91.2 96.6 96.3 88.2 70.2 86.5 88.2 102.8 119.1 119.2 125.1 106.1 102.1 105.2 101 84.3 87.5 92.7 94.4 113 113.9 122.9 132.7 106.9 96.6 127.3 98.2 100.2 89.4 95.3 104.2 106.4 116.2 135.9 134 104.6 107.1 123.5 98.8 98.6 90.6 89.1 105.2 114 122.1 138 142.2 116.4 112.6 123.8 103.6 113.9 98.6 95 116 113.9 127.5 131.4 145.9 131.5 131 130.5 118.9 114.3 85.7 104.6 105.1 117.3 142.5 140 159.8 131.2 125.4 126.5 119.4 113.5 98.7 114.5 113. 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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.227653-4.96160
2-0.116247-2.53360.005806
30.090111.96390.025063
4-0.152634-3.32660.000474
50.0512481.11690.132298
6-0.22773-4.96330
7-0.125648-2.73840.003203
80.0171590.3740.354293
90.0459571.00160.158521
10-0.192958-4.20541.6e-05
110.1097332.39160.008582
120.55355512.06440
13-0.135928-2.96250.001602
140.0653381.4240.077549
15-0.035604-0.7760.219077
16-0.15752-3.43310.000325
170.1339972.92040.001831
18-0.331765-7.23060
19-0.047081-1.02610.15268
200.0586681.27860.100823
21-0.080625-1.75720.039765
22-0.104025-2.26720.011914
230.1269332.76640.002944
240.4297489.36610
25-0.041158-0.8970.18508
260.0737761.60790.05426
27-0.116177-2.5320.005831
28-0.062461-1.36130.087033
290.1306412.84730.0023
30-0.433081-9.43880
310.0329490.71810.236523
320.0850491.85360.032209
33-0.19384-4.22471.4e-05
340.0394940.86080.194902
350.0636841.3880.0829
360.3446877.51230
370.1383563.01540.001352
38-0.074757-1.62930.051958
39-0.127082-2.76970.002915
400.0660221.43890.075415
410.0202960.44230.329221
42-0.431767-9.41010
430.1704723.71530.000114
44-0.078896-1.71950.043087
45-0.149368-3.25540.000607
460.1515943.30390.000513
47-0.089546-1.95160.025786
480.4277399.32240


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.227653-4.96160
2-0.17726-3.86336.4e-05
30.0202540.44140.329556
4-0.157049-3.42280.000337
5-0.009981-0.21750.413947
6-0.294186-6.41160
7-0.288104-6.27910
8-0.283937-6.18830
9-0.156524-3.41140.000351
10-0.533336-11.62380
11-0.58767-12.8080
120.0061620.13430.446612
13-0.094895-2.06820.019581
140.057141.24530.106812
150.1106612.41180.008126
160.0053950.11760.453229
170.1038592.26360.012026
18-0.024045-0.5240.300246
190.1107462.41370.008085
200.1280832.79150.002729
210.1782913.88585.8e-05
220.0359860.78430.216627
23-0.195146-4.25311.3e-05
240.014890.32450.372846
25-0.024697-0.53830.295324
260.0339250.73940.230021
270.0261290.56950.284654
280.0184580.40230.343828
290.1685243.67290.000134
30-0.060232-1.31270.094953
31-0.056386-1.22890.109857
320.0927532.02150.021893
33-0.053211-1.15970.123373
340.0302070.65830.255317
35-0.094208-2.05320.0203
36-0.046617-1.0160.155072
370.1375252.99730.001433
380.016840.3670.356884
39-0.050609-1.1030.135292
40-0.01892-0.41240.340131
410.0893171.94660.026084
42-0.110194-2.40160.008353
430.0970522.11520.017467
440.1039252.2650.011982
45-0.066803-1.45590.073034
460.0582391.26930.102478
47-0.038531-0.83980.200733
48-0.003545-0.07730.469223
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/03/t1272899338pkxf7948haoebhb/1wge61272899263.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/03/t1272899338pkxf7948haoebhb/1wge61272899263.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/03/t1272899338pkxf7948haoebhb/27pvq1272899263.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/03/t1272899338pkxf7948haoebhb/27pvq1272899263.ps (open in new window)


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