Home » date » 2010 » May » 05 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 05 May 2010 16:49: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/May/05/t1273078223jj6dm0y7wnmmxko.htm/, Retrieved Wed, 05 May 2010 18:50:25 +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/05/t1273078223jj6dm0y7wnmmxko.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 «
77 70 67 76 85 106 108 120 108 111 109 104 104 117 111 110 116 118 115 111 112 97 106 93 95 97 81 71 75 70 72 80 78 80 81 99 87 100 95 128 112 104 102 108 103 99 96 85 78 74 106 100 109 87 107 106 109 83 84 83 65 68 61 75 66 78 68 68 174 64 48 45
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.393273-3.31380.000726
2-0.011104-0.09360.462861
3-0.009425-0.07940.468461
40.0067530.05690.477393
50.030780.25940.398056
6-0.069996-0.58980.2786
70.0226710.1910.424525
8-0.095044-0.80090.212944
90.0831180.70040.242993
10-0.057839-0.48740.313753
11-0.020454-0.17230.431827
120.0486350.40980.341593
130.0623710.52550.300421
14-0.025007-0.21070.416857
15-0.04701-0.39610.346604
160.0253150.21330.415849
170.009430.07950.468446
180.0625980.52750.299758
19-0.080887-0.68160.248864
20-0.035615-0.30010.38249
21-0.021348-0.17990.42888
220.0293710.24750.402623
23-0.033725-0.28420.388553
240.0173320.1460.442152
250.0056180.04730.481189
260.0336120.28320.388917
27-0.06626-0.55830.289191
280.0099210.08360.466807
290.1171730.98730.16342
30-0.061054-0.51450.304266
310.0103910.08760.465237
32-0.046868-0.39490.347045
330.0832890.70180.242547
34-0.009391-0.07910.468576
35-0.02205-0.18580.426567
36-0.014508-0.12220.451525
370.0385560.32490.373113
38-0.028596-0.2410.405143
39-0.009835-0.08290.467093
400.0063730.05370.478664
41-0.033137-0.27920.390445
42-0.056468-0.47580.317837
430.0896260.75520.226312
44-0.029285-0.24680.402904
45-0.011591-0.09770.461234
460.0706050.59490.27689
47-0.056974-0.48010.316326
480.0355370.29940.382738


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.393273-3.31380.000726
2-0.196096-1.65230.051441
3-0.112899-0.95130.172338
4-0.056148-0.47310.318793
50.0100330.08450.466434
6-0.063527-0.53530.297062
7-0.036251-0.30550.380457
8-0.141642-1.19350.118324
9-0.031353-0.26420.396202
10-0.073438-0.61880.269016
11-0.090324-0.76110.224565
12-0.018631-0.1570.437851
130.0827990.69770.243828
140.0394830.33270.370174
15-0.027987-0.23580.407126
16-0.026213-0.22090.41291
17-0.004987-0.0420.483301
180.0734870.61920.268879
19-0.008084-0.06810.472941
20-0.060002-0.50560.307356
21-0.091825-0.77370.220829
22-0.051607-0.43490.332495
23-0.06923-0.58330.280755
24-0.018937-0.15960.436839
25-0.02053-0.1730.431576
260.025260.21280.416028
27-0.076889-0.64790.259576
28-0.064289-0.54170.294859
290.0842330.70980.240088
300.0122930.10360.458895
31-0.004502-0.03790.484922
32-0.029507-0.24860.402181
330.0806810.67980.249411
340.0745190.62790.266039
350.0243450.20510.419026
36-0.002343-0.01970.492151
370.074680.62930.265599
380.0016950.01430.494323
390.0039280.03310.486844
400.00810.06820.472889
41-0.041052-0.34590.365217
42-0.172934-1.45720.07474
43-0.02056-0.17320.431478
440.0025730.02170.491382
45-0.005478-0.04620.481658
460.035460.29880.382986
47-0.045341-0.38210.351782
480.0173180.14590.442198
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/05/t1273078223jj6dm0y7wnmmxko/1q5oo1273078180.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/05/t1273078223jj6dm0y7wnmmxko/1q5oo1273078180.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/05/t1273078223jj6dm0y7wnmmxko/2q5oo1273078180.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/05/t1273078223jj6dm0y7wnmmxko/2q5oo1273078180.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