Home » date » 2010 » Dec » 24 »

*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, 24 Dec 2010 14:42:57 +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/24/t12932016364jtpvevvsmmgnkl.htm/, Retrieved Fri, 24 Dec 2010 15:40:37 +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/24/t12932016364jtpvevvsmmgnkl.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 «
740 691 683 594 729 731 386 331 706 715 657 653 642 643 718 654 632 731 392 344 792 852 649 629 685 617 715 715 629 916 531 357 917 828 708 858 775 785 1006 789 734 906 532 387 991 841 892 782
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.1890931.31010.098202
2-0.206369-1.42980.07963
30.1829841.26770.105501
40.001770.01230.495134
50.0298470.20680.418527
60.2438941.68970.048781
7-0.016593-0.1150.454479
80.0639550.44310.329844
90.1753161.21460.115225
10-0.209488-1.45140.07659
110.0820740.56860.286131
120.5762963.99270.000112
130.0160180.1110.45605
14-0.262525-1.81880.03759
150.0004180.00290.49885
16-0.052392-0.3630.359106
17-0.000295-0.0020.49919
180.0283790.19660.42248
19-0.112362-0.77850.220057
20-0.06346-0.43970.331077
21-0.033689-0.23340.408221
22-0.227817-1.57840.060525
23-0.046671-0.32330.373918
240.2941112.03770.023558
250.0089290.06190.475466
26-0.236842-1.64090.053679
27-0.094191-0.65260.258573
28-0.112039-0.77620.220711
29-0.103706-0.71850.237967
30-0.048774-0.33790.36845
31-0.126743-0.87810.192131
32-0.101527-0.70340.242603
33-0.038715-0.26820.394839
34-0.098714-0.68390.24866
35-0.032603-0.22590.411126
360.1260540.87330.193417
37-0.008003-0.05540.478006
38-0.131293-0.90960.183784
39-0.078088-0.5410.295501
40-0.034933-0.2420.404898
41-0.024149-0.16730.433914
42-0.010859-0.07520.47017
43-0.025813-0.17880.42941
440.0031550.02190.491325
450.0051110.03540.485949
460.007740.05360.478729
470.0035090.02430.490351
48NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1890931.31010.098202
2-0.251104-1.73970.04416
30.3091362.14180.018658
4-0.221626-1.53550.065617
50.2853691.97710.026895
60.0269680.18680.426286
7-0.000263-0.00180.499278
80.187791.3010.099726
9-0.047026-0.32580.372994
10-0.177399-1.22910.112522
110.2890082.00230.025459
120.3742672.5930.006287
13-0.193105-1.33790.093621
14-0.152832-1.05890.147483
15-0.14674-1.01660.157211
160.061160.42370.336829
17-0.10701-0.74140.231035
18-0.18655-1.29250.101194
190.0476060.32980.371484
20-0.250184-1.73330.044729
21-0.020662-0.14310.443386
22-0.056514-0.39150.348566
23-0.02485-0.17220.432016
240.078010.54050.295686
250.0328130.22730.410565
260.1077120.74630.229578
27-0.027306-0.18920.425373
28-0.133201-0.92280.180352
29-0.030217-0.20940.41753
30-0.00288-0.020.492083
31-0.076003-0.52660.300461
32-0.028521-0.19760.422095
33-0.022568-0.15640.438205
340.1248440.86490.195685
35-0.04027-0.2790.390722
36-0.13624-0.94390.174974
370.0566950.39280.348106
380.0453390.31410.377397
39-0.027371-0.18960.425198
400.1181080.81830.208621
41-0.065771-0.45570.325339
420.0453520.31420.377362
43-0.0365-0.25290.40072
440.1105090.76560.223822
450.0008180.00570.497751
46-0.072818-0.50450.308109
47-0.062686-0.43430.333008
48NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/24/t12932016364jtpvevvsmmgnkl/1ar3d1293201773.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t12932016364jtpvevvsmmgnkl/1ar3d1293201773.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t12932016364jtpvevvsmmgnkl/231kg1293201773.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t12932016364jtpvevvsmmgnkl/231kg1293201773.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t12932016364jtpvevvsmmgnkl/331kg1293201773.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t12932016364jtpvevvsmmgnkl/331kg1293201773.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 = 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 (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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