Home » date » 2010 » Dec » 28 »

*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: Tue, 28 Dec 2010 12:28:43 +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/28/t1293539194tub9haticxaqrz4.htm/, Retrieved Tue, 28 Dec 2010 13:26:34 +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/28/t1293539194tub9haticxaqrz4.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 «
6 6 8 4 8 10 9 12 9 11 11 11 11 11 9 8 6 7 8 6 5 2 3 3 7 8 7 7 6 6 7 5 5 5 4 4 4 1 -1 3 4 3 2 1 4 3 5 6 6 6 6 6 5 6 5 6 5 7 4 5 6 6 5 3 2 3 3 2 0 4 4 5 6 6 5 5 3 5 5 5 3 6 6 4 6 5 4 5 5 4 3 2 3 2 -1 0 -2 1 -2 -2 -2 -6 -4 -2 0 -5 -4 -5 -1 -2 -4 -1 1 1 -2 1 1 3 3 1 1 0 2 2 -1 1 0 1 1 3 2
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.303627-3.46190.000363
2-0.024219-0.27610.391442
3-0.09504-1.08360.140269
40.0278520.31760.375664
50.1628871.85720.032773
6-0.078965-0.90030.184803
70.0395510.4510.326388
8-0.095343-1.08710.139507
90.0560660.63930.261892
10-0.12401-1.41390.079885
110.0395420.45080.326425
12-0.024314-0.27720.391025
13-0.019576-0.22320.411867
14-0.045652-0.52050.301797
150.0350110.39920.345204
160.0728620.83080.203818
17-0.145068-1.6540.050267
180.0847820.96670.167754
19-0.102479-1.16840.122385
200.0964831.10010.136665
21-0.031154-0.35520.361506
220.0423250.48260.315102
230.0254390.290.386121
24-0.152559-1.73940.042162
250.1080321.23180.110132
260.0041720.04760.481067
270.0016530.01890.492494
28-0.05057-0.57660.282609
29-0.086273-0.98370.163553
300.0798680.91060.182085
310.0610490.69610.243814
32-0.100137-1.14170.12783
330.0043750.04990.480147
340.0018560.02120.491573
350.0802220.91470.181029
36-0.137926-1.57260.059121
370.0734710.83770.201869
380.0333910.38070.352016
39-0.030975-0.35320.362266
400.0069480.07920.468488
41-0.099574-1.13530.129165
420.1589391.81220.036133
43-0.004545-0.05180.479373
44-0.038024-0.43350.332668
45-0.014177-0.16160.435918
460.0165620.18880.425257
470.0281930.32140.374193
480.049670.56630.286075


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.303627-3.46190.000363
2-0.128229-1.4620.073072
3-0.159338-1.81670.035781
4-0.068321-0.7790.218705
50.1495531.70520.045276
60.01810.20640.418411
70.0596980.68070.248648
8-0.041727-0.47580.317523
90.0046060.05250.479098
10-0.162558-1.85340.033043
11-0.069773-0.79550.213876
12-0.075157-0.85690.196533
13-0.061347-0.69950.242755
14-0.096001-1.09460.137862
150.0326770.37260.355037
160.0888781.01340.156384
17-0.089839-1.02430.153794
180.0245660.28010.389926
19-0.081005-0.92360.178703
20-0.029218-0.33310.369785
21-0.052959-0.60380.273506
220.0404150.46080.322855
230.044220.50420.307494
24-0.127576-1.45460.074096
250.0081460.09290.463072
260.0544520.62080.267893
27-0.070652-0.80560.210985
28-0.0569-0.64880.25882
29-0.124255-1.41670.079477
30-0.027308-0.31140.378012
310.0347320.3960.346376
32-0.074478-0.84920.198671
330.0072740.08290.467014
34-0.015305-0.17450.43087
350.0767450.8750.191586
36-0.159699-1.82080.035465
370.0005520.00630.497496
38-0.002698-0.03080.487754
39-0.04087-0.4660.321
40-0.024788-0.28260.388954
41-0.119392-1.36130.087891
420.0817950.93260.176377
430.0449080.5120.304749
44-0.012365-0.1410.44405
450.0165930.18920.425118
46-0.037743-0.43030.333833
47-0.004851-0.05530.477989
480.0501310.57160.284296
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293539194tub9haticxaqrz4/19b5v1293539319.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293539194tub9haticxaqrz4/19b5v1293539319.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293539194tub9haticxaqrz4/29b5v1293539319.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293539194tub9haticxaqrz4/29b5v1293539319.ps (open in new window)


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