Home » date » 2010 » Dec » 03 »

workshop 9 - tutorial 7

*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: Fri, 03 Dec 2010 10:18:34 +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/Dec/03/t1291371406735324hftueingr.htm/, Retrieved Fri, 03 Dec 2010 11:16:48 +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/2010/Dec/03/t1291371406735324hftueingr.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1579 2146 2462 3695 4831 5134 6250 5760 6249 2917 1741 2359 1511 2059 2635 2867 4403 5720 4502 5749 5627 2846 1762 2429 1169 2154 2249 2687 4359 5382 4459 6398 4596 3024 1887 2070 1351 2218 2461 3028 4784 4975 4607 6249 4809 3157 1910 2228 1594 2467 2222 3607 4685 4962 5770 5480 5000 3228 1993 2288 1580 2111 2192 3601 4665 4876 5813 5589 5331 3075 2002 2306 1507 1992 2487 3490 4647 5594 5611 5788 6204 3013 1931 2549 1504 2090 2702 2939 4500 6208 6415 5657 5964 3163 1997 2422
 
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.227011-2.08060.020259
20.0419930.38490.350651
30.293182.6870.004344
4-0.068264-0.62560.266621
50.0750010.68740.246864
60.1957691.79430.038185
7-0.126132-1.1560.125475
80.0462890.42420.336236
90.2065861.89340.030874
10-0.036415-0.33380.3697
110.0517050.47390.318405
120.0750290.68770.246783
13-0.122177-1.11980.133001
140.2660872.43870.008423
15-0.092346-0.84640.199876
16-0.070394-0.64520.260286
170.136051.24690.107946
18-0.060963-0.55870.288916
19-0.153578-1.40760.081475
200.076070.69720.243802
21-0.052513-0.48130.315782
22-0.206344-1.89120.031024
230.2700322.47490.007669
24-0.182614-1.67370.048956
25-0.09401-0.86160.195677
260.1560221.430.078218
27-0.095755-0.87760.191328
28-0.03422-0.31360.377288
290.0509680.46710.320809
30-0.083726-0.76740.222509
31-0.018826-0.17250.431714
320.1212681.11140.134775
33-0.152255-1.39540.083281
34-0.040735-0.37330.354917
350.0797370.73080.233466
36-0.183671-1.68340.048008
370.2260192.07150.02069
38-0.102973-0.94380.173999
39-0.06143-0.5630.287461
400.091840.84170.201165
410.0285380.26160.397151
42-0.03025-0.27720.391137
430.0895220.82050.207131
44-0.005246-0.04810.480884
45-0.049634-0.45490.325176
460.1200111.09990.137255
47-0.024965-0.22880.409786
48-0.136841-1.25420.10663


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.227011-2.08060.020259
2-0.010059-0.09220.463383
30.3168862.90430.002351
40.0789250.72340.235735
50.0528580.48440.314664
60.1520241.39330.083599
7-0.062858-0.57610.283043
8-0.065221-0.59780.275804
90.1390231.27420.10306
100.106560.97660.165775
110.0310490.28460.388339
12-0.022682-0.20790.417913
13-0.136545-1.25150.10712
140.1933921.77250.039972
15-0.051689-0.47370.318457
16-0.081172-0.7440.22949
170.0039030.03580.485776
18-0.011192-0.10260.459271
19-0.213566-1.95740.026813
20-0.132855-1.21760.113386
210.0614610.56330.287365
22-0.12963-1.18810.119075
230.1550961.42150.07944
24-0.030713-0.28150.389513
25-0.025267-0.23160.408717
260.0036270.03320.48678
270.0684930.62770.265936
280.0130860.11990.452411
290.0217670.19950.421179
300.0382110.35020.363528
31-0.026373-0.24170.404797
320.0889880.81560.208522
33-0.038057-0.34880.364056
34-0.081478-0.74680.228648
35-0.021852-0.20030.420874
36-0.044285-0.40590.342931
370.1208021.10720.135691
38-0.032346-0.29650.383808
390.0126220.11570.454092
40-0.097113-0.89010.187989
410.0356070.32630.37249
420.0857410.78580.21709
430.0710260.6510.258424
440.0238090.21820.413896
450.0257180.23570.407117
46-0.069645-0.63830.262504
47-0.00335-0.03070.487791
48-0.103505-0.94860.172764
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291371406735324hftueingr/11twq1291371511.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291371406735324hftueingr/11twq1291371511.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291371406735324hftueingr/21twq1291371511.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291371406735324hftueingr/21twq1291371511.ps (open in new window)


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