Home » date » 2009 » Jun » 04 »

*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, 04 Jun 2009 06:24:31 -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/Jun/04/t12441182957al9ovmavv7gueg.htm/, Retrieved Thu, 04 Jun 2009 14:24:58 +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/Jun/04/t12441182957al9ovmavv7gueg.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 «
0 1 0 0 1 3 9 2 3 5 3 5 2 2 0 1 0 1 3 3 2 1 1 5 0 3 1 0 1 4 0 0 1 6 14 1 1 0 0 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 2 0 1 0 1 0 0 1 2 0 0 1 2 0 3 1 1 0 2 0 4 0 2 1 1 1 1 0 1 1 0 2 1 3 1 2 4 0 0 0 1 0 1 0 2 2 4 2 3 3 0 0 2 7 8 2 4 1 1 2 4
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.2827623.09750.001215
20.116451.27560.102273
3-0.032222-0.3530.362362
40.0097360.10670.457621
50.0879010.96290.168765
60.0508940.55750.289108
70.0152760.16730.433692
80.0363180.39780.345726
9-0.016576-0.18160.428111
100.0179030.19610.422423
110.0938511.02810.152989
120.0502410.55040.291548
130.0370620.4060.342735
140.0843320.92380.178719
150.002530.02770.488969
160.0189050.20710.418142
170.0043860.0480.480879
18-0.025142-0.27540.391735
19-0.05333-0.58420.280093
20-0.015111-0.16550.434402
21-0.006678-0.07320.470902
220.0114510.12540.450191
230.1070251.17240.12168
240.0203740.22320.411887
250.0994161.0890.139158
26-0.028936-0.3170.375907
270.0558320.61160.270977
280.1496511.63930.05188
290.0001020.00110.499556
30-0.103312-1.13170.130003
31-0.098206-1.07580.14209
32-0.101919-1.11650.133227
33-0.005237-0.05740.477174
34-0.043122-0.47240.318759
35-0.074999-0.82160.206473
36-0.031932-0.34980.363551
37-0.048437-0.53060.298337
38-0.030308-0.3320.370233
39-0.015041-0.16480.434704
400.0011030.01210.495189
41-0.047819-0.52380.300682
42-0.047561-0.5210.301662
43-0.082814-0.90720.183063
44-0.063808-0.6990.242959
450.0110310.12080.45201
46-0.036368-0.39840.345523
47-0.072499-0.79420.214327
48-0.017749-0.19440.423083


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2827623.09750.001215
20.0396670.43450.332342
3-0.081712-0.89510.186261
40.0378010.41410.339773
50.0956471.04780.148428
6-0.005962-0.06530.474017
7-0.014436-0.15810.437305
80.0493930.54110.294729
9-0.039027-0.42750.334884
100.0167880.18390.427201
110.1019861.11720.133069
12-0.00847-0.09280.463113
130.0007730.00850.496628
140.0994441.08940.139091
15-0.050296-0.5510.291341
16-0.006057-0.06640.473602
170.0190760.2090.417414
18-0.042704-0.46780.32039
19-0.070044-0.76730.222207
200.0377140.41310.34012
21-0.003479-0.03810.484831
22-0.021629-0.23690.406554
230.1409011.54350.062673
24-0.041082-0.450.326749
250.0675190.73960.230484
26-0.051228-0.56120.287863
270.0743150.81410.208607
280.1165251.27650.102129
29-0.09911-1.08570.139894
30-0.115338-1.26350.104435
31-0.01231-0.13490.446478
32-0.057166-0.62620.266178
330.0002290.00250.499001
34-0.050832-0.55680.28934
35-0.059667-0.65360.257305
360.0028930.03170.487385
37-0.021749-0.23830.406047
38-0.019342-0.21190.41628
39-0.043427-0.47570.317569
400.0599660.65690.256254
41-0.062464-0.68430.247567
42-0.021459-0.23510.407278
43-0.013161-0.14420.442804
44-0.02021-0.22140.412581
450.0548990.60140.274359
46-0.028716-0.31460.376816
47-0.057002-0.62440.266767
480.0212770.23310.408049
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t12441182957al9ovmavv7gueg/11nkf1244118270.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t12441182957al9ovmavv7gueg/11nkf1244118270.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t12441182957al9ovmavv7gueg/27dff1244118270.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t12441182957al9ovmavv7gueg/27dff1244118270.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