Home » date » 2009 » May » 21 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 21 May 2009 09:07:24 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/May/21/t1242918472nhnnl9r2x4gi9q1.htm/, Retrieved Thu, 21 May 2009 17:07:52 +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/2009/May/21/t1242918472nhnnl9r2x4gi9q1.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 «
4.43 4.43 4.44 4.44 4.44 4.45 4.47 4.48 4.48 4.5 4.52 4.52 4.53 4.53 4.63 4.66 4.67 4.68 4.69 4.69 4.7 4.71 4.72 4.72 4.72 4.73 4.74 4.76 4.81 4.82 4.83 4.83 4.84 4.89 4.92 4.95 4.95 5.01 5.05 5.08 5.11 5.14 5.17 5.18 5.2 5.22 5.24 5.28 5.29 5.33 5.4 5.43 5.46 5.46 5.46 5.47 5.49 5.5 5.54 5.55 5.55 5.56 5.6 5.61 5.63 5.64 5.66 5.67 5.69 5.77 5.77 5.78 5.8 5.82 5.85 5.87 5.88 5.9 5.91 5.94 5.97 5.98 6 6.01 6.02
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9699088.94210
20.9386948.65430
30.906858.36070
40.8744558.06210
50.8410657.75420
60.807697.44650
70.7748117.14340
80.741276.83420
90.7071566.51970
100.6728956.20380
110.6388215.88960
120.6045555.57370
130.5700275.25541e-06
140.5349254.93182e-06
150.5023344.63136e-06
160.4697164.33062e-05
170.4394934.05195.6e-05
180.4092393.7730.000149
190.3785953.49050.000383
200.3473873.20280.000958
210.3158762.91220.002291
220.2844162.62220.005176
230.2525382.32830.011136
240.2209372.03690.022384
250.1885351.73820.042898
260.155381.43250.077829
270.1221031.12570.131723
280.0900240.830.204439
290.0589460.54350.294121
300.0279860.2580.398507
31-0.003281-0.03020.487971
32-0.03554-0.32770.371987
33-0.068506-0.63160.264672
34-0.099523-0.91760.180724
35-0.129249-1.19160.118365
36-0.156289-1.44090.076642
37-0.182867-1.6860.047736
38-0.207816-1.9160.029365
39-0.230572-2.12580.018212
40-0.252106-2.32430.011248
41-0.27254-2.51270.006935
42-0.291988-2.6920.004276
43-0.310718-2.86470.002629
44-0.328509-3.02870.001626
45-0.345134-3.1820.001022
46-0.360417-3.32290.000658
47-0.374318-3.4510.000436
48-0.385823-3.55710.000308


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9699088.94210
2-0.034209-0.31540.37662
3-0.026392-0.24330.404171
4-0.025633-0.23630.406874
5-0.033699-0.31070.3784
6-0.017139-0.1580.43741
7-0.009726-0.08970.464382
8-0.029752-0.27430.392261
9-0.028515-0.26290.396633
10-0.022116-0.20390.419461
11-0.017196-0.15850.437206
12-0.023615-0.21770.414086
13-0.025384-0.2340.407762
14-0.031749-0.29270.38523
150.0200750.18510.426803
16-0.023044-0.21250.41613
170.0183170.16890.433147
18-0.023394-0.21570.414874
19-0.030201-0.27840.390676
20-0.032241-0.29720.383502
21-0.028138-0.25940.39797
22-0.023329-0.21510.415108
23-0.031249-0.28810.386986
24-0.021313-0.19650.422347
25-0.040093-0.36960.356286
26-0.040143-0.37010.356116
27-0.029907-0.27570.391713
28-0.009625-0.08870.464748
29-0.010929-0.10080.459988
30-0.02858-0.26350.396404
31-0.03286-0.3030.381331
32-0.049191-0.45350.325666
33-0.043892-0.40470.343371
34-0.00089-0.00820.496734
35-0.013547-0.12490.450449
360.0105480.09720.461381
37-0.027913-0.25730.398766
38-0.006609-0.06090.475777
390.0018680.01720.493151
40-0.012935-0.11930.452676
41-0.015594-0.14380.443011
42-0.016328-0.15050.440349
43-0.020828-0.1920.424092
44-0.014725-0.13580.446166
45-0.011038-0.10180.45959
46-0.011783-0.10860.456876
47-0.012001-0.11060.45608
480.0089390.08240.467256
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/21/t1242918472nhnnl9r2x4gi9q1/1jhu11242918439.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/21/t1242918472nhnnl9r2x4gi9q1/1jhu11242918439.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/21/t1242918472nhnnl9r2x4gi9q1/2jg3j1242918439.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/21/t1242918472nhnnl9r2x4gi9q1/2jg3j1242918439.ps (open in new window)


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