Home » date » 2009 » Dec » 03 »

*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, 03 Dec 2009 12:45:01 -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/03/t1259869608b0rzg5t3le8grr9.htm/, Retrieved Thu, 03 Dec 2009 20:46:51 +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/03/t1259869608b0rzg5t3le8grr9.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 «
1915 1843 1761 2858 3968 5061 4661 4269 3857 3568 3274 2987 1683 1381 1071 2772 4485 6181 5479 4782 4067 3489 2903 2330 1736 1483 1242 2334 3423 4523 3986 3462 2908 2575 2237 1904 1610 1251 941 2450 3946 5409 4741 4069 3539 3189 2960 2704 1697 1598 1456 2316 3083 4158 3469 2892 2578 2233 1947 2049
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.3789442.59790.006243
2-0.016728-0.11470.454594
3-0.217138-1.48860.071633
4-0.1574-1.07910.14303
5-0.075375-0.51670.30388
6-0.024205-0.16590.434458
7-0.007608-0.05220.479313
80.0610190.41830.338807
90.2296311.57430.061066
100.0378210.25930.398271
11-0.294611-2.01980.024565
12-0.481752-3.30270.000918
13-0.305566-2.09490.0208
14-0.053357-0.36580.358078
150.1339050.9180.181651
160.05080.34830.364597
17-0.048909-0.33530.369443
18-0.09741-0.66780.25376
190.0257980.17690.430187
200.0178850.12260.451468
21-0.063574-0.43580.332474
22-0.022996-0.15770.437704
230.1993221.36650.089144
240.2444151.67560.050226
250.2391981.63990.053856
260.0449890.30840.37956
27-0.156906-1.07570.143777
28-0.10063-0.68990.246829
290.0429070.29420.384967
300.085790.58810.279625
31-0.00819-0.05620.47773
320.0213460.14630.44214
330.0417140.2860.388077
340.0380350.26080.39771
35-0.054233-0.37180.355856
36-0.219679-1.5060.069374


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3789442.59790.006243
2-0.187209-1.28340.102814
3-0.167803-1.15040.127899
4-0.005994-0.04110.483697
5-0.043037-0.2950.384629
6-0.039921-0.27370.392764
7-0.02264-0.15520.438658
80.0627730.43040.334454
90.2094931.43620.078783
10-0.17527-1.20160.117772
11-0.299335-2.05210.022875
12-0.261467-1.79250.039743
13-0.075549-0.51790.303466
14-0.057968-0.39740.346432
15-0.007792-0.05340.478811
16-0.157394-1.0790.143039
17-0.141022-0.96680.169296
18-0.208923-1.43230.079337
190.0360590.24720.402911
200.0232680.15950.436972
21-0.047201-0.32360.37384
22-0.073276-0.50240.308882
230.0562730.38580.350698
24-0.133353-0.91420.182634
250.1017640.69770.244414
26-0.01792-0.12290.451372
27-0.130599-0.89530.187584
28-0.109553-0.75110.228181
29-0.068605-0.47030.320146
30-0.055151-0.37810.35353
31-0.067478-0.46260.32289
32-0.038549-0.26430.396361
330.0048320.03310.486857
34-0.079242-0.54330.29476
35-0.028806-0.19750.42215
36-0.103813-0.71170.240082
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259869608b0rzg5t3le8grr9/130z71259869498.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259869608b0rzg5t3le8grr9/130z71259869498.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/03/t1259869608b0rzg5t3le8grr9/2c5fu1259869498.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259869608b0rzg5t3le8grr9/2c5fu1259869498.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