Home » date » 2008 » Dec » 17 »

*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, 17 Dec 2008 06:38:30 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/17/t1229521386dvqn1xajtljfqsz.htm/, Retrieved Wed, 17 Dec 2008 14:43:06 +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/2008/Dec/17/t1229521386dvqn1xajtljfqsz.htm/},
    year = {2008},
}
@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 = {2008},
    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,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,43 0,43 0,44 0,44 0,44 0,44 0,44 0,44 0,44 0,44 0,44 0,44 0,44 0,43 0,44 0,44 0,46 0,46 0,46 0,46 0,46 0,45 0,45 0,46 0,46 0,46 0,47 0,47 0,47 0,47 0,47 0,47 0,47 0,47 0,47 0,47 0,47
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.131039-1.11190.13494
20.1292271.09650.138251
3-0.132246-1.12210.132764
4-0.045894-0.38940.349057
5-0.307367-2.60810.005532
6-0.047101-0.39970.345292
70.0392510.33310.370029
80.0386470.32790.371957
90.0380430.32280.373888
100.037440.31770.375821
11-0.129831-1.10170.137141
120.1304351.10680.136037
13-0.217995-1.84980.034227
140.3103862.63370.005166
15-0.038043-0.32280.373888
160.2149761.82410.036141
17-0.046498-0.39450.347172
18-0.047101-0.39970.345292
19-0.134662-1.14260.128486
20-0.048309-0.40990.341542
21-0.03442-0.29210.385538
22-0.027778-0.23570.407166
230.0658210.55850.289114
240.0579710.49190.312143
25-0.029589-0.25110.401236
260.0567630.48170.315757
27-0.117754-0.99920.160529
280.0555560.47140.319389
29-0.032005-0.27160.393365
300.1413041.1990.117228
31-0.033213-0.28180.389446
32-0.033816-0.28690.38749
33-0.03442-0.29210.385538
34-0.035024-0.29720.383589
35-0.115338-0.97870.165508
36-0.021739-0.18450.427085
370.071860.60980.271973
38-0.008454-0.07170.471506
39-0.009058-0.07690.469474
400.0772950.65590.257
41-0.010266-0.08710.465414
42-0.01087-0.09220.463385
43-0.011473-0.09740.461357
44-0.012077-0.10250.459331
45-0.012681-0.10760.457305
46-0.013285-0.11270.45528
47-0.013889-0.11790.453257
48-0.014493-0.1230.451235


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.131039-1.11190.13494
20.1140140.96740.168282
3-0.105461-0.89490.186919
4-0.090307-0.76630.223008
5-0.309948-2.630.005217
6-0.142086-1.20560.115952
70.0626850.53190.298216
8-0.000985-0.00840.496676
9-0.043504-0.36910.356551
10-0.080318-0.68150.248865
11-0.215899-1.8320.035546
120.1325971.12510.132136
13-0.164699-1.39750.083274
140.263762.23810.014155
150.0579390.49160.312238
160.0892870.75760.225574
170.0905990.76880.222276
18-0.136606-1.15910.125114
190.0279690.23730.406541
200.0874560.74210.230223
210.031190.26470.396016
220.0112610.09560.462071
23-0.049717-0.42190.337191
24-0.051781-0.43940.330852
250.0688320.58410.280504
26-0.04407-0.37390.354771
270.0132490.11240.455401
28-0.069526-0.590.278535
29-0.010958-0.0930.463087
300.1060430.89980.185611
31-0.076825-0.65190.258277
32-0.111729-0.94810.173137
33-0.022349-0.18960.425063
340.0167070.14180.443832
35-0.062848-0.53330.297741
36-0.062779-0.53270.29794
37-0.025514-0.21650.414607
38-0.050851-0.43150.333701
39-0.066144-0.56130.288184
40-0.010757-0.09130.463764
410.0183030.15530.438507
42-0.014709-0.12480.450512
430.0289370.24550.403369
44-0.105957-0.89910.185805
45-0.044352-0.37630.353885
46-0.014754-0.12520.45036
470.0299910.25450.399923
480.03330.28260.389164
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229521386dvqn1xajtljfqsz/1cv861229521098.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229521386dvqn1xajtljfqsz/1cv861229521098.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229521386dvqn1xajtljfqsz/250tk1229521098.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229521386dvqn1xajtljfqsz/250tk1229521098.ps (open in new window)


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